/* =====================================================
   AppLabx GEO — Design System
   Inspired by Perplexity.ai aesthetic
   Dark, precise, teal-accented, editorial
   ===================================================== */

:root {
  --bg: #080a0b;
  --bg-2: #0d1112;
  --bg-3: #121718;
  --bg-card: #101415;
  --bg-card-hover: #141a1c;
  --border: rgba(213,236,234,0.08);
  --border-bright: rgba(213,236,234,0.16);

  --teal: #22c3b6;
  --teal-dim: rgba(34,195,182,0.12);
  --teal-glow: rgba(34,195,182,0.22);
  --teal-bright: #39d6c8;

  --text: #f2f5f4;
  --text-muted: #9aa7a7;
  --text-dim: #667273;

  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 8px;
  --transition: 0.2s ease;

  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  top: 0 !important;
}

/* ---- UTILITY ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(135deg, var(--teal) 0%, #8fe7df 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(10,11,13,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav.scrolled { padding: 12px 0; }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand-logo {
  display: block;
  width: 128px;
  height: auto;
}
.footer .brand-logo {
  width: 142px;
}
.logo-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  background: var(--teal-dim); color: var(--teal);
  border: 1px solid rgba(32,192,160,0.25);
  padding: 2px 6px; border-radius: 4px;
  vertical-align: middle; margin-left: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 400;
  padding: 6px 12px; border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-3); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-lang { display: flex; align-items: center; margin-left: 8px; }
.lang-switcher-wrap { padding: 12px 0; }
.lang-switcher {
  min-width: 122px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}
.lang-switcher option { color: #111; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all 0.2s; }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.nav-mobile .nav-link { display: block; padding: 10px 12px; }
.nav-mobile.open { display: flex; }

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: #000; font-weight: 600;
}
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-1px); box-shadow: 0 4px 20px var(--teal-glow); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: 132px 0 76px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 30%, black 25%, transparent 78%);
}
.hero-shell {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--teal);
  background: var(--teal-dim); border: 1px solid rgba(32,192,160,0.3);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 var(--teal-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--teal-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700; line-height: 1.02;
  letter-spacing: 0;
  max-width: 900px;
  margin-bottom: 22px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted); line-height: 1.65;
  max-width: 710px; margin-bottom: 34px;
  font-weight: 400;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 28px;
  animation: fadeInUp 0.6s 0.5s ease both;
}
.hero-engines {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.engine-label { font-size: 13px; color: var(--text-dim); font-weight: 400; }
.engine-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.engine-badge {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 7px;
}
.engine-badge.active {
  color: var(--teal);
  background: var(--teal-dim);
  border-color: rgba(34,195,182,0.24);
}
.query-console {
  width: min(780px, 100%);
  animation: fadeInUp 0.6s 0.3s ease both;
}
.query-bar {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  background: #0b0e0f;
  border: 1px solid rgba(213,236,234,0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  text-align: left;
}
.query-icon {
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
}
.query-text {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.query-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  background: var(--teal);
  color: #031211;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.answer-panel {
  margin-top: 14px;
  padding: 22px;
  background: rgba(16,20,21,0.82);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
}
.answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.answer-header strong {
  color: var(--teal);
  font-size: 15px;
}
.answer-panel p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.answer-panel strong { color: var(--text); }
.source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.source-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}
.source-item > span {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}
.source-item small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
}

/* ---- STATS BAND ---- */
.stats-band {
  background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 16px 48px; }
.stat-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  color: var(--teal); line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.stat-divider {
  width: 1px; height: 60px; background: var(--border);
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-muted); font-size: 17px; }
.section-cta { text-align: center; margin-top: 48px; }

/* ---- TWO COL ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.col-text .section-label { display: inline-block; margin-bottom: 12px; }
.col-text h2 { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px; }
.col-text p { color: var(--text-muted); margin-bottom: 14px; font-size: 16px; }
.col-text p strong { color: var(--text); }

/* ---- GEO DIAGRAM ---- */
.col-visual { display: flex; justify-content: center; }
.geo-diagram {
  position: relative; width: 360px; height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.diagram-center {
  position: relative; z-index: 2;
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #7dd4f0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #000;
  text-align: center;
  box-shadow: 0 0 60px var(--teal-glow);
}
.diagram-orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.diagram-ring {
  position: absolute; inset: 0;
  animation: spin 18s linear infinite;
}
.ring-item {
  position: absolute; font-size: 12px; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: 6px 14px; border-radius: 100px;
  transform-origin: 50% 50%;
}
.ri-1 { top: 8px; left: 50%; transform: translateX(-50%); }
.ri-2 { top: 50%; right: 0; transform: translateY(-50%); }
.ri-3 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ri-4 { top: 50%; left: 0; transform: translateY(-50%); }
.ri-5 { top: 20%; right: 10%; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* counter-rotate text */
.diagram-ring .ring-item { animation: counterSpin 18s linear infinite; }
@keyframes counterSpin { from { transform: rotate(0deg) translateX(-50%); } to { transform: rotate(-360deg) translateX(-50%); } }
.ri-2 { animation: counterSpinY 18s linear infinite !important; }
.ri-4 { animation: counterSpinY 18s linear infinite !important; }
@keyframes counterSpinY { from { transform: rotate(0deg) translateY(-50%); } to { transform: rotate(-360deg) translateY(-50%); } }
.ri-5 { animation: counterSpinFree 18s linear infinite !important; }
@keyframes counterSpinFree { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-card); padding: 36px 32px;
  transition: background var(--transition);
  cursor: default;
  color: inherit;
  text-decoration: none;
}
.service-card:hover { background: var(--bg-card-hover); }
.service-icon {
  font-size: 28px; color: var(--teal); margin-bottom: 16px;
  line-height: 1;
}
.service-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

.model-grid, .vertical-grid, .affiliate-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.model-card, .vertical-card, .dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.model-card h3, .vertical-card h3, .dashboard-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 8px;
}
.model-card p, .vertical-card p, .dashboard-card p {
  color: var(--text-muted);
  font-size: 14px;
}
.model-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(34,195,182,0.24);
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---- LLM MODEL PAGE ---- */
.llm-hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 90px;
  background:
    linear-gradient(180deg, rgba(34,195,182,0.08), transparent 38%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.llm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 82%);
  pointer-events: none;
}
.llm-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
}
.llm-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.llm-hero-copy p {
  max-width: 660px;
  color: var(--text-muted);
  font-size: 18px;
}
.llm-orbit {
  position: relative;
  height: min(520px, 82vw);
  min-height: 360px;
}
.orbit-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(213,236,234,0.12);
  border-radius: 50%;
}
.ring-two {
  inset: 25%;
  border-color: rgba(34,195,182,0.22);
}
.orbit-core {
  position: absolute;
  inset: 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,195,182,0.26), rgba(16,20,21,0.92) 66%);
  border: 1px solid rgba(34,195,182,0.32);
  box-shadow: 0 0 80px rgba(34,195,182,0.22);
}
.orbit-core span {
  font-size: 28px;
  font-weight: 900;
  color: var(--teal);
}
.orbit-core small {
  color: var(--text-muted);
  font-size: 12px;
}
.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(16,20,21,0.92);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.chip-a { top: 8%; left: 36%; }
.chip-b { top: 24%; right: 0; }
.chip-c { bottom: 26%; right: 5%; }
.chip-d { bottom: 8%; left: 34%; }
.chip-e { bottom: 30%; left: 0; }
.chip-f { top: 25%; left: 3%; }
.llm-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.llm-card {
  min-height: 282px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.llm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34,195,182,0.36);
  background:
    linear-gradient(180deg, rgba(34,195,182,0.08), transparent),
    var(--bg-card-hover);
}
.llm-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.llm-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 16px 34px rgba(0,0,0,0.24);
}
.llm-type {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}
.llm-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.llm-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.llm-tags {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.llm-tags span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.icon-openai { background: radial-gradient(circle at 35% 30%, #7df4e8, #0f7f78 72%); }
.icon-claude { background: linear-gradient(135deg, #d97745, #8f4f28); }
.icon-google { background: conic-gradient(from 45deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4); }
.icon-gemini { background: radial-gradient(circle, #a8c7ff, #5b5ce2 65%, #251657); }
.icon-grok { background: linear-gradient(135deg, #111, #4b5563); }
.icon-perplexity { background: linear-gradient(135deg, #22c3b6, #1d5d79); }
.icon-copilot { background: conic-gradient(from 90deg, #7c3aed, #2563eb, #22c55e, #7c3aed); }
.icon-qwen { background: linear-gradient(135deg, #ff6b35, #b91c1c); }
.icon-deepseek { background: linear-gradient(135deg, #335cff, #111827); }
.icon-kimi { background: linear-gradient(135deg, #e2e8f0, #64748b); color: #0b0e0f; }
.icon-glm { background: linear-gradient(135deg, #9333ea, #312e81); font-size: 16px; }
.icon-minimax { background: linear-gradient(135deg, #f43f5e, #7c2d12); }
.icon-mistral { background: linear-gradient(135deg, #fbbf24, #dc2626); color: #120d05; }
.icon-cohere { background: linear-gradient(135deg, #84cc16, #0f766e); font-size: 16px; }
.icon-ai21 { background: linear-gradient(135deg, #0ea5e9, #1e3a8a); font-size: 16px; }
.icon-nvidia { background: linear-gradient(135deg, #76b900, #214f12); }
.icon-amazon { background: linear-gradient(135deg, #ff9900, #232f3e); }
.icon-phi { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.icon-ibm { background: linear-gradient(135deg, #0f62fe, #001d6c); font-size: 13px; }
.icon-sarvam { background: linear-gradient(135deg, #fb7185, #be123c); }
.icon-falcon { background: linear-gradient(135deg, #c084fc, #581c87); }
.icon-ernie { background: linear-gradient(135deg, #2563eb, #dc2626); font-size: 18px; }
.llm-pipeline {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pipeline-step {
  background: var(--bg-card);
  padding: 24px;
}
.pipeline-step span {
  display: inline-block;
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 10px;
}
.pipeline-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}
.pipeline-step p {
  color: var(--text-muted);
  font-size: 14px;
}
.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process-step {
  counter-increment: step;
  background: var(--bg-card);
  padding: 28px;
}
.process-step::before {
  content: counter(step);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #031211;
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}
.process-step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- PRICING ---- */
.pricing-preview {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: start;
}
.billing-toggle {
  width: fit-content;
  margin: 0 auto 32px;
  padding: 4px;
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.billing-option {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
}
.billing-option span {
  color: var(--teal);
  font-size: 12px;
  margin-left: 4px;
}
.billing-option.active {
  background: var(--teal);
  color: #031211;
}
.billing-option.active span { color: #031211; }
.plan-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative;
  transition: border-color var(--transition);
}
.plan-card:hover { border-color: var(--border-bright); }
.plan-card.plan-featured {
  border-color: var(--teal);
  background: linear-gradient(160deg, rgba(32,192,160,0.06), var(--bg-card));
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #000;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px;
}
.plan-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-bottom: 4px;
}
.plan-for { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.plan-price { margin-bottom: 24px; line-height: 1; }
.price-original {
  display: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.plan-price.yearly .price-original {
  display: block;
}
.price-amount {
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  color: var(--text);
}
.plan-price.yearly .price-amount {
  color: var(--teal);
}
.price-period { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.plan-features {
  list-style: none; margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.plan-features li {
  font-size: 14px; color: var(--text-muted);
  padding-left: 20px; position: relative;
}
.plan-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--teal); font-weight: 700; font-size: 12px;
}
.plan-saving {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 12px;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: var(--border-bright); }
.testi-quote {
  font-family: var(--font-display); font-size: 60px; line-height: 0.8;
  color: var(--teal); opacity: 0.4; margin-bottom: 16px;
}
.testimonial-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.testi-meta { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #7dd4f0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #000;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--text-dim); }
.testi-plan {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--teal);
  background: var(--teal-dim); border: 1px solid rgba(32,192,160,0.25);
  padding: 3px 10px; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--bg-2); padding: 100px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-inner {
  position: relative;
  text-align: center; max-width: 600px; margin: 0 auto;
  overflow: hidden;
}
.cta-orb {
  display: none;
}
.cta-inner h2 {
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.cta-inner p { color: var(--text-muted); font-size: 17px; margin-bottom: 32px; }

/* ---- LINK ARROW ---- */
.link-arrow {
  color: var(--teal); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: gap 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow:hover { gap: 10px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg); padding: 72px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted); font-size: 14px; margin: 16px 0 20px; line-height: 1.7;
}
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-size: 13px;
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--teal); color: var(--teal); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-dim);
  flex-wrap: wrap; gap: 12px;
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 140px 0 80px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(32,192,160,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .section-label { display: block; margin-bottom: 12px; }
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-header p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ---- PRICING PAGE ---- */
.pricing-note {
  text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 16px;
}
.feature-table-wrap { overflow-x: auto; margin-top: 20px; }
.feature-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.feature-table thead th {
  padding: 16px 20px; text-align: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-2);
}
.feature-table thead th:first-child { text-align: left; }
.feature-table thead .th-essential { color: var(--text-muted); }
.feature-table thead .th-accelerator { color: var(--teal); }
.feature-table thead .th-pinnacle { color: #a78bfa; }
.feature-table .th-price {
  font-size: 12px; color: var(--text-dim);
  font-family: var(--font-body); font-weight: 400; margin-top: 4px;
}
.feature-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.feature-table tbody tr:hover { background: var(--bg-card); }
.feature-table tbody tr.section-row td {
  background: var(--bg-3); font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); padding: 10px 20px;
}
.feature-table td {
  padding: 14px 20px; color: var(--text-muted);
}
.feature-table td:first-child { color: var(--text); }
.feature-table td:not(:first-child) { text-align: center; }
.check-yes { color: var(--teal); font-size: 16px; }
.check-no { color: var(--text-dim); font-size: 16px; }
.check-partial { color: #f59e0b; font-size: 13px; }

/* ---- CASE STUDIES ---- */
.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  text-decoration: none; color: inherit;
  display: block;
  transition: all var(--transition);
  cursor: pointer;
}
.cs-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.cs-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px; display: block;
}
.cs-card h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  margin-bottom: 10px; line-height: 1.3;
}
.cs-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.65; }
.cs-stats { display: flex; gap: 16px; padding-top: 20px; border-top: 1px solid var(--border); }
.cs-stat-num {
  font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--teal);
}
.cs-stat-label { font-size: 11px; color: var(--text-dim); }
.cs-card-meta {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px;
}
.cs-plan {
  font-size: 11px; background: var(--bg-3); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px; color: var(--text-muted);
}

.episode-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; gap: 20px; align-items: center;
  transition: border-color var(--transition);
}
.episode-card:hover { border-color: var(--border-bright); }
.ep-num {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  color: var(--border); min-width: 60px; text-align: center; flex-shrink: 0;
}
.ep-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; border: none;
  font-size: 14px; color: #000;
  transition: all var(--transition);
}
.ep-play:hover { background: var(--teal-bright); transform: scale(1.05); }
.ep-info { flex: 1; }
.ep-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.ep-desc { color: var(--text-muted); font-size: 13px; }
.ep-meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
.contact-info h2 {
  font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 16px;
}
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-detail {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--teal-dim); border: 1px solid rgba(32,192,160,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 14px; flex-shrink: 0;
}
.contact-detail-label { font-size: 12px; color: var(--text-dim); }
.contact-detail-value { font-size: 14px; color: var(--text); }
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--bg-2); }
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.form-status {
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.form-status.success { color: var(--teal); }
.form-status.error { color: #fca5a5; }

/* ---- COOKIE CONSENT ---- */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(13,17,18,0.96);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgba(0,0,0,0.42);
}
.cookie-banner strong { display: block; margin-bottom: 4px; }
.cookie-banner p { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- AFFILIATE / ADMIN ---- */
.auth-shell {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.dashboard-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dashboard-table th, .dashboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.dashboard-table th {
  color: var(--text);
  background: var(--bg-3);
  font-weight: 600;
}
.dashboard-table td { color: var(--text-muted); }
.dashboard-table td span { color: var(--text-dim); font-size: 12px; }
.dashboard-table select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.status-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--teal) !important;
  border: 1px solid rgba(34,195,182,0.24);
  text-transform: capitalize;
}

/* ---- PRIVACY / TERMS ---- */
.prose-content {
  max-width: 780px; margin: 0 auto;
}
.prose-content h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin: 40px 0 12px; padding-top: 40px; border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.prose-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.prose-content ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 16px; }
.prose-content li { margin-bottom: 8px; line-height: 1.7; }
.prose-content a { color: var(--teal); text-decoration: none; }
.prose-content a:hover { text-decoration: underline; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  color: var(--text); font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-chevron { color: var(--text-muted); font-size: 18px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  color: var(--text-muted); font-size: 14px; line-height: 1.7;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 20px; }

/* ---- ALERT BAND ---- */
.alert-band {
  background: var(--teal-dim); border-bottom: 1px solid rgba(32,192,160,0.2);
  padding: 10px 24px; text-align: center;
  font-size: 13px; color: var(--teal);
}
.alert-band a { color: var(--teal); font-weight: 600; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid, .vertical-grid, .affiliate-stats, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .llm-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .llm-orbit { max-width: 560px; width: 100%; margin: 0 auto; }
  .llm-card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .col-visual { display: none; }
  .pricing-preview { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 112px 0 56px; }
  .nav-links, .nav-cta, .nav-lang { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { flex-direction: column; gap: 24px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .model-grid, .vertical-grid, .affiliate-stats, .process-steps { grid-template-columns: 1fr; }
  .llm-hero { padding: 118px 0 58px; }
  .llm-card-grid { grid-template-columns: 1fr; }
  .llm-card { min-height: auto; }
  .llm-orbit { min-height: 320px; }
  .orbit-chip { min-width: 88px; min-height: 36px; font-size: 12px; }
  .chip-b, .chip-c { right: 0; }
  .chip-e, .chip-f { left: 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .episode-card { flex-direction: column; align-items: flex-start; }
  .source-list { grid-template-columns: 1fr; }
  .query-bar { grid-template-columns: auto minmax(0, 1fr); }
  .query-action { grid-column: 1 / -1; width: 100%; }
  .query-text { white-space: normal; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; }
  .dashboard-head { flex-direction: column; }
}
