:root {
  --background: #ffffff;
  --surface-muted: #fafafa;
  --surface-subtle: #f4f4f5;
  --foreground: #09090b;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --border-hover: #a1a1aa;
  --primary: #09090b;
  --primary-hover: #27272a;
  --primary-foreground: #fafafa;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-text: #047857;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #b45309;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

section[id],
.filter-bar {
  scroll-margin-top: 84px;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Glassmorphism Claro */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.main-nav a {
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--foreground);
}

/* Buttons (shadcn/ui style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.89rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--border-hover);
}

.btn-white {
  background: #ffffff;
  color: var(--foreground);
}

.btn-white:hover {
  background: var(--surface-subtle);
}

/* Hero Minimalista Luminoso (OpenAlternative + shadcn/ui) */
.hero {
  position: relative;
  background-color: var(--background);
  background-image: radial-gradient(#e4e4e7 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--border);
  padding: 76px 0 64px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.92) 85%, #ffffff 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-center {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--foreground);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--muted-foreground);
  margin: 0 auto 28px;
  max-width: 620px;
}

.hero p.lead strong {
  color: var(--foreground);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 0.97rem;
}

/* Calculator (shadcn/ui Dashboard style) */
.calc-wrapper {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
}

.calc-step {
  margin-bottom: 22px;
}

.calc-step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 6px;
}

.field select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--foreground);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.field select:focus {
  outline: 2px solid var(--foreground);
  outline-offset: -1px;
}

.deals-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.deal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.deal-check:hover {
  border-color: var(--border-hover);
}

.deal-check:has(input:checked) {
  border-color: var(--foreground);
  background: var(--surface-muted);
}

.deal-check input {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.deal-check-meta strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--foreground);
}

.deal-check-meta span {
  font-size: 0.77rem;
  color: var(--muted-foreground);
}

.calc-results {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.savings-banner {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.savings-metric small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}

.savings-metric strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--foreground);
}

.savings-metric.metric-highlight strong {
  color: var(--emerald-text);
}

.result-block h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 10px;
}

.rec-list {
  display: grid;
  gap: 8px;
}

.rec-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rec-card-info strong {
  display: block;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
}

.rec-card-info p {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--foreground);
}

.badge-green {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.badge-amber {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-text);
}

.badge-neutral {
  background: var(--surface-subtle);
  border-color: var(--border);
  color: var(--muted-foreground);
}

/* Segmented Control Filters (shadcn Tabs) */
.filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-btn:hover {
  color: var(--foreground);
}

.filter-btn.active {
  background: var(--background);
  color: var(--foreground);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* OpenAlternative Directory Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card,
.deal-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s ease;
}

.tool-card:hover,
.deal-card:hover {
  border-color: var(--border-hover);
}

.tool-card.hidden {
  display: none;
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--foreground);
  flex-shrink: 0;
}

.tool-identity h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 2px;
}

.score-pill {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.tool-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 10px;
}

.tool-desc {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--surface-subtle);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--foreground);
}

.check-list li::before {
  content: "✓ ";
  color: var(--emerald-text);
  font-weight: 700;
}

.cons-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted-foreground);
}

.cons-list li::before {
  content: "– ";
  color: var(--muted-foreground);
  font-weight: 700;
}

/* Lifetime Deals */
.deal-pricing-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-caption {
  display: block;
  font-size: 0.73rem;
  color: var(--muted-foreground);
}

.price-old {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.price-once {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--emerald-text);
}

/* Directory Links */
.directory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dir-box {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.dir-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--foreground);
}

.dir-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dir-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--foreground);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dir-link::after {
  content: "→";
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.dir-link:hover {
  background: var(--background);
  border-color: var(--border-hover);
}

/* Telegram Banner (Minimal Monochrome CTA) */
.telegram-banner {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.telegram-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.telegram-banner p {
  color: #a1a1aa;
  font-size: 0.94rem;
  max-width: 620px;
}

/* Comparison & Sector Pages (Light Minimal Header) */
.page-hero {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  padding: 40px 0;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted-foreground);
  max-width: 760px;
  font-size: 0.98rem;
}

.vs-table-wrap {
  overflow-x: auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

table.vs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.vs-table th,
table.vs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

table.vs-table tr:last-child td {
  border-bottom: none;
}

table.vs-table th {
  background: var(--surface-muted);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.84rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.verdict-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.verdict-box h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 10px;
}

/* Footer Claro Minimalista */
.site-footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-grid h4 {
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
}

.footer-grid a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.footer-desc,
.footer-note {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

@media (max-width: 960px) {
  .hero-stats,
  .calc-wrapper,
  .cards-grid,
  .directory-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .telegram-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
  }

  .form-grid,
  .deals-checklist,
  .dir-links,
  .savings-banner {
    grid-template-columns: 1fr;
  }
}
