:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #064e3b 100%);
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --primary-text: #3730a3;
  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-text: #065f46;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.05);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-elevated: #111827;
  --bg-subtle: #1e293b;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --border-strong: #334155;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-soft: rgba(99, 102, 241, 0.15);
  --primary-text: #a5b4fc;
  --emerald: #10b981;
  --emerald-hover: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-text: #6ee7b7;
  --amber-soft: rgba(217, 119, 6, 0.15);
  --rose-soft: rgba(225, 29, 72, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Affiliate Disclosure & Trust Bar */
.topbar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.45rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-badges {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  font-weight: 500;
}

.topbar-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: rgba(17, 24, 39, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #059669 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
  line-height: 1.25;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-emerald:hover {
  background: var(--emerald-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.btn-outline {
  background: var(--bg-elevated);
  color: var(--text) !important;
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--primary-soft);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.02rem;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  background: var(--bg-hero);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.22), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.25), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a7f3d0;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1.15rem;
  color: #ffffff;
}

.hero h1 span {
  background: linear-gradient(90deg, #6ee7b7, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.hero-stat-lbl {
  font-size: 0.83rem;
  color: #94a3b8;
}

/* Section Layout */
.section {
  padding: 4.25rem 0;
}

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

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

/* Interactive ROI & AI-Stack Calculator */
.calc-wrapper {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-inputs {
  padding: 2.25rem;
  border-right: 1px solid var(--border);
}

@media (max-width: 960px) {
  .calc-inputs {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.calc-results {
  padding: 2.25rem;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-elevated) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 600px) {
  .stack-selector {
    grid-template-columns: 1fr;
  }
}

.stack-btn {
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stack-btn:hover {
  border-color: var(--primary);
}

.stack-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.stack-btn-title {
  font-weight: 700;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.2rem;
}

.stack-btn-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

.slider-group {
  margin-bottom: 1.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.slider-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  outline: none;
  accent-color: var(--primary);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.kpi-card.highlight {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  grid-column: span 2;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.kpi-card.highlight .kpi-label {
  color: var(--emerald-text);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}

.kpi-card.highlight .kpi-value {
  font-size: 1.85rem;
  color: var(--emerald);
}

.kpi-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.stack-tools-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.stack-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.8rem 1rem;
}

.stack-tool-info strong {
  display: block;
  font-size: 0.95rem;
}

.stack-tool-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tool Directory Cards */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.sort-select {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.35rem;
}

@media (max-width: 440px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.tool-card.editor-choice {
  border: 2px solid var(--primary);
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-text);
}

.tool-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
}

.tool-title-row {
  margin-bottom: 0.6rem;
}

.tool-title-row h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tool-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tool-meta-box {
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 0.85rem;
  margin: 0.95rem 0;
  font-size: 0.83rem;
  display: grid;
  gap: 0.4rem;
}

.tool-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.tool-meta-row span:first-child {
  color: var(--text-muted);
  font-weight: 600;
}

.tool-meta-row span:last-child {
  font-weight: 700;
  text-align: right;
}

.tool-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.tool-highlights li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
}

.tool-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 900;
}

.tool-actions {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.6rem;
  margin-top: auto;
}

/* Comparison Cards Grid */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

.comp-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.16s ease;
  color: var(--text);
}

.comp-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.comp-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.comp-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--text);
}

.comp-card p {
  font-size: 0.89rem;
  color: var(--text-secondary);
  margin: 0 0 1.2rem;
}

.comp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 700;
}

.winner-pill {
  background: var(--emerald-soft);
  color: var(--emerald-text);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Comparison Article Page Layout */
.article-hero {
  background: var(--bg-hero);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.verdict-box {
  background: var(--bg-elevated);
  border: 2px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: -2rem 0 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.verdict-badge {
  background: var(--emerald);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.contenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.contender-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.contender-card.is-winner {
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow-md);
}

.score-circle {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.35rem;
  background: var(--primary-soft);
  color: var(--primary-text);
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.pros-box, .cons-box {
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.pros-box {
  background: var(--emerald-soft);
}

.cons-box {
  background: var(--rose-soft);
}

.pros-box h4 {
  margin: 0 0 0.5rem;
  color: var(--emerald-text);
  font-size: 0.9rem;
}

.cons-box h4 {
  margin: 0 0 0.5rem;
  color: var(--rose);
  font-size: 0.9rem;
}

.pros-box ul, .cons-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pros-box li, .cons-box li {
  margin-bottom: 0.35rem;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0 3rem;
}

table.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

table.comp-table th,
table.comp-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.comp-table th {
  background: var(--bg-subtle);
  font-weight: 800;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

table.comp-table tr:hover td {
  background: var(--bg-subtle);
}

/* Content Cards & Deep Dives */
.content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.content-card h2, .content-card h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin: 1.5rem 0 2.5rem;
}

.usecase-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1.25rem;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

details.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  transition: border-color 0.15s ease;
}

details.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2.5rem;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Language Switcher in Header */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.2rem;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.28rem 0.48rem;
  border-radius: 7px;
  text-decoration: none;
  line-height: 1;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.lang-link.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.25);
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 0.9rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 1rem;
  }
  .topbar {
    padding: 0.3rem 0;
    font-size: 0.72rem;
  }
  .topbar-inner {
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
  }
  .topbar-badges {
    display: none;
  }
  .nav-inner {
    height: auto;
    min-height: 54px;
    padding: 0.55rem 0;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .brand {
    font-size: 1.15rem;
    gap: 0.45rem;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .brand-tag {
    font-size: 0.62rem;
    padding: 0.12rem 0.42rem;
    white-space: nowrap;
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
  }
  .lang-switcher {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 0.12rem;
    padding: 0.18rem;
  }
  .lang-link {
    flex: 1;
    justify-content: center;
    padding: 0.32rem 0.25rem;
    font-size: 0.72rem;
  }
  .theme-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .nav-actions .btn-sm {
    display: none;
  }
  .hero {
    padding: 2.1rem 0 2.4rem;
  }
  .hero-eyebrow {
    font-size: 0.74rem;
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.9rem;
  }
  .hero h1 {
    font-size: 1.95rem;
    line-height: 1.14;
    margin-bottom: 0.9rem;
  }
  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }
  .hero-ctas .btn-lg {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.94rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding-top: 1.35rem;
  }
  .hero-stat-val {
    font-size: 1.25rem;
  }
  .section {
    padding: 2.75rem 0;
  }
  .content-card, .verdict-box, .contender-card {
    padding: 1.25rem;
  }
}
