/*
 * landing.css — Styles for Agorai Marketing Landing Page (landing.html)
 * =====================================================================
 * Served at GET /landing.css via the Go router (staticFileHandler).
 * Source of truth for design tokens: DESIGN_SYSTEM.md at repo root.
 *
 * Fonts are imported here so the HTML only needs a single <link> to this file.
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=DM+Mono:wght@400;500&display=swap');

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

/* ─── Design Tokens ─── */
:root {
  --bg:        #0A0C14;
  --bg-2:      #111118;
  --bg-3:      #1A1A24;
  --border:    rgba(255,255,255,.07);
  --border-hi: rgba(13,115,119,.35);
  --text:      #F3F4F6;
  --text-2:    #9CA3AF;
  --text-3:    #6B7280;
  --purple:    #0D7377;
  --purple-hi: #14B8A6;
  --purple-lo: rgba(13,115,119,.12);
  --pink:      #F97316;
  --green:     #10B981;
  --brand-ring: #0D7377;
  --brand-dot:  #F97316;
  --brand-dot-hi: #FB923C;
  --brand-ring-hi: #14B8A6;
  --brand-ring-lo: rgba(13,115,119,.12);
  --font: 'DM Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

/* ─── Light Mode ─── */
body.light {
  --bg:        #FFFFFF;
  --bg-2:      #F8FAFC;
  --bg-3:      #F1F5F9;
  --border:    rgba(0,0,0,.08);
  --border-hi: rgba(13,115,119,.3);
  --text:      #0F172A;
  --text-2:    #475569;
  --text-3:    #94A3B8;
  --purple-lo: rgba(13,115,119,.08);
  --brand-ring-lo: rgba(13,115,119,.08);
}

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

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(10,12,20,.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.nav-logo svg { color: var(--brand-ring) }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  cursor: pointer;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  line-height: 1;
}
.theme-toggle:hover { color: var(--text); border-color: rgba(255,255,255,.15) }
body.light .theme-toggle:hover { border-color: rgba(0,0,0,.2) }
.theme-toggle svg { width: 16px; height: 16px }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color .15s;
}
.nav-link:hover { color: var(--text) }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  border: none;
  font-family: var(--font);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-dot);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dot-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.15);
  color: var(--text);
  background: rgba(255,255,255,.04);
}

/* ─── Agora Tooltip ─── */
.agora-hover {
  position: relative;
  cursor: help;
  text-decoration: underline;
  text-decoration-color: rgba(13,115,119,.35);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .2s ease;
}
.agora-hover:hover { text-decoration-color: rgba(13,115,119,.7) }

.agora-hover .agora-tip {
  position: absolute;
  top: 50%;
  left: calc(100% + 18px);
  transform: translateY(-50%) translateX(6px);
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 14px 18px;
  width: 320px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-2);
  letter-spacing: normal;
  -webkit-text-fill-color: var(--text-2);
  -webkit-background-clip: unset;
  background-clip: unset;
  text-transform: none;
  font-style: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  z-index: 100;
  text-align: left;
}
.agora-hover .agora-tip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  border: 7px solid transparent;
  border-right-color: var(--border-hi);
}
.agora-hover:hover .agora-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.agora-tip em {
  color: var(--purple-hi);
  -webkit-text-fill-color: var(--purple-hi);
  font-style: italic;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

/* Gradient orb background — pure CSS, no images */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,115,119,.22) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}
.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,.15) 0%, transparent 70%);
  bottom: 0;
  right: -80px;
}

/* Subtle grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,115,119,.1);
  border: 1px solid rgba(13,115,119,.25);
  color: var(--purple-hi);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .01em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1 }
  50% { opacity: .4 }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 .line-1 { display: block; color: var(--text) }
.hero h1 .line-2 {
  display: block;
  background: linear-gradient(135deg, var(--brand-ring) 0%, var(--brand-dot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-ctas .btn-primary { font-size: 15px; padding: 12px 28px }
.hero-ctas .btn-ghost   { font-size: 15px; padding: 12px 28px }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ─── Section Common ─── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 40px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--brand-ring);
  margin-bottom: 14px;
}

/* ─── Feature Sections ─── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature.reverse { direction: rtl }
.feature.reverse > * { direction: ltr }

.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-text p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}
.feature-detail + .feature-detail { margin-top: 16px }

.feature-detail-icon {
  width: 32px;
  height: 32px;
  background: var(--purple-lo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple-hi);
  margin-top: 2px;
}

.feature-detail-icon svg { width: 16px; height: 16px }

.feature-detail-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.feature-detail-text span {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ─── Code Block ─── */
.code-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.code-dots {
  display: flex;
  gap: 6px;
}
.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-dot-red    { background: #ff5f57 }
.code-dot-yellow { background: #febc2e }
.code-dot-green  { background: #28c841 }

.code-filename {
  font-size: 12px;
  color: var(--text-3);
  margin-left: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── Code Tabs ─── */
.code-tabs {
  display: flex;
  margin-left: auto;
  gap: 2px;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  padding: 2px;
}
.code-tab {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-3);
  background: transparent;
  border: none;
  font-family: var(--font);
  transition: all .15s ease;
  letter-spacing: .01em;
}
.code-tab:hover { color: var(--text-2) }
.code-tab.active {
  background: rgba(255,255,255,.1);
  color: #e2e8f0;
}
.code-panel { display: none }
.code-panel.active { display: block }

pre {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  color: #cbd5e1;
  margin: 0;
}

/* Inline syntax highlighting — no library needed */
.k  { color: #14B8A6 } /* keyword / built-in */
.f  { color: #67e8f9 } /* function name */
.s  { color: #86efac } /* string */
.n  { color: #fb923c } /* numbers */
.c  { color: #475569; font-style: italic } /* comment */
.p  { color: #94a3b8 } /* punctuation */
.a  { color: #a5b4fc } /* attr / param name */
.cl { color: #FB923C } /* class / type */

/* ─── Divider ─── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Pricing ─── */
.pricing-section {
  padding: 96px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -.035em;
  margin-bottom: 14px;
  color: var(--text);
}

.pricing-header p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: border-color .2s;
}
.pricing-card:hover { border-color: rgba(255,255,255,.12) }

.pricing-card.featured {
  background: linear-gradient(160deg, rgba(13,115,119,.12) 0%, var(--bg) 60%);
  border-color: var(--border-hi);
  box-shadow: 0 0 60px rgba(13,115,119,.12);
}
.pricing-card.featured:hover { border-color: rgba(13,115,119,.55) }

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-dot);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text);
}

.plan-price-note {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
  min-height: 18px;
}

.plan-tagline {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
  min-height: 72px;
}

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  transition: all .18s ease;
  border: none;
  font-family: var(--font);
  cursor: pointer;
}

.plan-cta-primary {
  background: var(--brand-dot);
  color: #fff;
}
.plan-cta-primary:hover {
  background: var(--brand-dot-hi);
  box-shadow: 0 8px 24px rgba(249,115,22,.3);
}

.plan-cta-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.plan-cta-ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.15);
  color: var(--text);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

.plan-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.check { color: var(--green) }
.dash  { color: var(--text-3) }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
}
.footer-logo svg { color: var(--brand-ring) }

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text-2) }

/* ─── Explainer Section ─── */
.explainer-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 40px;
  text-align: center;
}
.explainer-problem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(13,115,119,.08) 0%, rgba(13,115,119,.06) 100%);
  border: 1px solid rgba(13,115,119,.15);
  border-radius: 14px;
  padding: 22px 32px;
  margin-bottom: 20px;
  text-align: left;
}
.explainer-problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13,115,119,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-ring);
}
.explainer-problem-icon svg { width: 22px; height: 22px }
.explainer-problem-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.explainer-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.explainer-sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Comparison grid */
.explainer-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.compare-card {
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compare-old {
  background: rgba(239,68,68,.05);
  border: 1px solid rgba(239,68,68,.12);
}
.compare-new {
  background: rgba(13,115,119,.06);
  border: 1px solid rgba(13,115,119,.15);
}
.compare-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1;
  margin-bottom: 2px;
}
.compare-old .compare-label { color: #f87171 }
.compare-new .compare-label { color: var(--brand-ring) }
.compare-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.compare-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ring);
  font-size: 18px;
  font-weight: 300;
  align-self: center;
}

/* ─── Uses / Domain Use Cases Section ─── */
.uses-section {
  padding: 96px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.uses-header {
  text-align: center;
  margin-bottom: 64px;
}

.uses-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

.uses-header p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Domain Use-Case Card ─── */
.usecase-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.usecase-card:hover {
  border-color: rgba(13,115,119,.3);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(13,115,119,.07);
}

.usecase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.usecase-icon svg { width: 24px; height: 24px }
.icon-energy { background: rgba(250,204,21,.12); color: #eab308 }
.icon-realestate { background: rgba(52,211,153,.12); color: var(--green) }
.icon-marketing { background: rgba(13,115,119,.12); color: var(--purple-hi) }

.usecase-domain {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.usecase-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.usecase-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 20px;
}

.usecase-agents {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.usecase-agents-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.usecase-agent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.usecase-agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-2);
}
.usecase-agent-tag svg { width: 12px; height: 12px; opacity: .6 }

/* Testimonial card */
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.testimonial-card:hover {
  border-color: rgba(13,115,119,.25);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(13,115,119,.07);
}

/* Metric highlight at top */
.testimonial-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  width: fit-content;
}
.testimonial-metric svg { width: 14px; height: 14px; flex-shrink: 0 }

.metric-purple {
  background: rgba(13,115,119,.1);
  border: 1px solid rgba(13,115,119,.2);
  color: var(--purple-hi);
}
.metric-green {
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.2);
  color: var(--green);
}
.metric-blue {
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.2);
  color: #38bdf8;
}

/* Quote */
.testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: -4px;
  font-size: 48px;
  font-weight: 700;
  color: rgba(13,115,119,.15);
  line-height: 1;
  font-family: Georgia, serif;
}

/* What they built — agent setup tags */
.testimonial-setup {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
}
.testimonial-setup-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.testimonial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.testimonial-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-2);
}
.testimonial-tag svg { width: 12px; height: 12px; opacity: .6 }

/* Author row */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-purple { background: linear-gradient(135deg, rgba(13,115,119,.25), rgba(13,115,119,.1)); color: var(--purple-hi) }
.avatar-pink   { background: linear-gradient(135deg, rgba(236,72,153,.25), rgba(236,72,153,.1)); color: #f472b6 }
.avatar-green  { background: linear-gradient(135deg, rgba(52,211,153,.25), rgba(52,211,153,.1)); color: var(--green) }

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}
.testimonial-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.testimonial-author-role {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.3;
}

/* ─── Light Mode Overrides ─── */
body.light nav { background: rgba(255,255,255,.85) }
body.light .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}
body.light .hero::before { background: radial-gradient(circle, rgba(13,115,119,.1) 0%, transparent 70%) }
body.light .hero::after  { background: radial-gradient(circle, rgba(249,115,22,.08) 0%, transparent 70%) }
body.light .code-window { box-shadow: 0 16px 48px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.06) inset; background: #1E293B }
body.light .code-titlebar { background: rgba(0,0,0,.08) }
body.light .btn-ghost { border-color: rgba(0,0,0,.12); color: var(--text-2) }
body.light .btn-ghost:hover { border-color: rgba(0,0,0,.2); color: var(--text); background: rgba(0,0,0,.03) }
body.light .pricing-card:hover { border-color: rgba(0,0,0,.12) }
body.light .pricing-card.featured { background: linear-gradient(160deg, rgba(13,115,119,.06) 0%, #fff 60%); border-color: rgba(13,115,119,.3) }
body.light .use-card::before { background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.04) }
body.light .usecase-card { border-color: rgba(0,0,0,.06) }
body.light .usecase-card:hover { border-color: rgba(13,115,119,.25); box-shadow: 0 20px 60px rgba(13,115,119,.06) }
body.light .explainer-problem { background: linear-gradient(135deg, rgba(13,115,119,.05) 0%, rgba(13,115,119,.03) 100%); border-color: rgba(13,115,119,.1) }
body.light .compare-old { background: rgba(239,68,68,.03); border-color: rgba(239,68,68,.08) }
body.light .compare-new { background: rgba(13,115,119,.04); border-color: rgba(13,115,119,.1) }
body.light .usecase-agent-tag { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.06) }

/* ─── Arcade Demo Section ─── */
.arcade-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 40px;
}
.arcade-section .feature {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 40px;
}
.arcade-section .feature > * {
  min-width: 0;
}
/* Both panels start at full height immediately */
.arcade-section .code-window {
  height: 560px;
  display: flex;
  flex-direction: column;
}
.arcade-section .code-window pre {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.arcade-section .arcade-viewer {
  height: 560px;
  display: flex;
  flex-direction: column;
}
.arcade-heading {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.arcade-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 680px;
}

/* Arcade viewer card */
.arcade-viewer {
  background: #1a1610;
  border: 1px solid rgba(255,200,87,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,200,87,.06) inset;
  position: relative;
}
.arcade-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,200,87,.08);
  background: rgba(255,200,87,.03);
}
.arcade-titlebar .code-dots { flex-shrink: 0 }
.arcade-title-text {
  font-size: 12px;
  color: rgba(255,200,87,.5);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.arcade-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  margin-left: auto;
  animation: pulse-dot 2s ease infinite;
}
.arcade-body {
  padding: 0;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.arcade-body iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.arcade-body img {
  width: 100%;
  height: auto;
  display: block;
}
/* CRT scanline overlay */
.arcade-body::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  z-index: 10;
}
/* Animated pulse dots overlaid on agent positions */
.arc-pulse {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: arc-pulse-glow 2s ease-in-out infinite;
  z-index: 5;
}
@keyframes arc-pulse-glow {
  0%, 100% { box-shadow: 0 0 4px 2px currentColor; opacity: .7; }
  50% { box-shadow: 0 0 10px 5px currentColor; opacity: 1; }
}
/* Flying message particles */
.arc-fly {
  position: absolute;
  width: 6px; height: 4px;
  border-radius: 1px;
  z-index: 5;
  opacity: 0;
}
@keyframes arc-fly-1 {
  0% { opacity: 0; left: 30%; top: 55%; }
  20% { opacity: 1; }
  50% { left: 50%; top: 42%; }
  80% { opacity: 1; }
  100% { opacity: 0; left: 72%; top: 58%; }
}
@keyframes arc-fly-2 {
  0% { opacity: 0; left: 72%; top: 58%; }
  20% { opacity: 1; }
  50% { left: 50%; top: 38%; }
  80% { opacity: 1; }
  100% { opacity: 0; left: 48%; top: 68%; }
}

/* Agent nodes */
.arc-agents {
  position: absolute;
  top: 24px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-around;
  z-index: 2;
}
.arc-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.arc-agent-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  transition: box-shadow .4s ease;
}
.arc-agent-circle.online {
  box-shadow: 0 0 0 3px rgba(52,211,153,.3), 0 0 20px rgba(52,211,153,.15);
}
.arc-agent-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color .4s ease;
}
.arc-agent-circle.online .arc-agent-ring {
  border-color: rgba(52,211,153,.4);
}
.arc-agent-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}
.arc-agent-status {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all .3s ease;
}
.arc-agent-status.online {
  color: #34d399;
  background: rgba(52,211,153,.1);
}
.arc-agent-status.offline {
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.04);
}

/* Message arcs */
.arc-messages {
  position: absolute;
  top: 90px; left: 0; right: 0;
  height: 60px;
  z-index: 1;
}
.arc-msg {
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
@keyframes msg-fly-right {
  0% { left: 18%; opacity: 0; transform: translateY(-50%) scale(.5) }
  15% { opacity: 1; transform: translateY(-70%) scale(1) }
  85% { opacity: 1; transform: translateY(-30%) scale(1) }
  100% { left: 78%; opacity: 0; transform: translateY(-50%) scale(.5) }
}
@keyframes msg-fly-left {
  0% { left: 78%; opacity: 0; transform: translateY(-50%) scale(.5) }
  15% { opacity: 1; transform: translateY(-30%) scale(1) }
  85% { opacity: 1; transform: translateY(-70%) scale(1) }
  100% { left: 18%; opacity: 0; transform: translateY(-50%) scale(.5) }
}

/* Task queue */
.arc-task-queue {
  position: absolute;
  bottom: 20px; left: 24px; right: 24px;
  z-index: 2;
}
.arc-queue-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,200,87,.4);
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}
.arc-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arc-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  color: rgba(255,255,255,.65);
  transition: all .4s ease;
}
.arc-task-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .4s ease;
}
.arc-task-dot.open { background: #fbbf24 }
.arc-task-dot.claimed { background: #60a5fa }
.arc-task-dot.done { background: #34d399 }
.arc-task-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.arc-task-status.open { color: #fbbf24 }
.arc-task-status.claimed { color: #60a5fa }
.arc-task-status.done { color: #34d399 }

/* Event log overlay */
.arc-event-log {
  position: absolute;
  top: 155px; left: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.arc-event {
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: rgba(255,255,255,.35);
  padding: 3px 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: all .3s ease;
}
.arc-event.visible {
  opacity: 1;
  transform: translateY(0);
}
.arc-event .ev-time { color: rgba(255,200,87,.3) }
.arc-event .ev-type { color: #67e8f9 }
.arc-event .ev-agent { color: #c084fc }
.arc-event .ev-detail { color: rgba(255,255,255,.45) }

body.light .arcade-viewer {
  box-shadow: 0 16px 48px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.06) inset;
}

/* ─── Show-Don't-Tell Demo Sections ─── */
.demo-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 40px;
}
.demo-section .section-label { text-align: center }
.demo-section h2 {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.demo-section .demo-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

/* Demo console window */
.demo-console {
  background: #0c0f1a;
  border: 1px solid rgba(13,115,119,.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.demo-titlebar .code-dots { flex-shrink: 0 }
.demo-title-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  letter-spacing: .04em;
}
.demo-replay {
  margin-left: auto;
  font-size: 11px;
  color: rgba(13,115,119,.5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.demo-replay-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse-dot 2s ease infinite;
}

/* 3-pane layout for solo demo */
.demo-3pane {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  min-height: 420px;
}
.demo-pane {
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,.05);
}
.demo-pane:last-child { border-right: none }
.demo-pane-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  margin-bottom: 14px;
  font-family: var(--font-display);
}

/* Agent list items */
.demo-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .4s ease;
}
.demo-agent.visible { opacity: 1; transform: translateX(0) }
.demo-agent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background .4s ease, box-shadow .4s ease;
  flex-shrink: 0;
}
.demo-agent-dot.online {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,.4);
}
.demo-agent-name {
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: rgba(255,255,255,.6);
}
.demo-agent-role {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  margin-left: auto;
}

/* Event log entries */
.demo-event {
  padding: 5px 0;
  font-size: 12px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  opacity: 0;
  transform: translateY(-6px);
  transition: all .35s ease;
  line-height: 1.65;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.demo-event.visible { opacity: 1; transform: translateY(0) }
.demo-event .ev-time { color: rgba(255,255,255,.2) }
.demo-event .ev-action { color: #67e8f9 }
.demo-event .ev-agent { color: #c084fc }
.demo-event .ev-detail { color: rgba(255,255,255,.45) }
.demo-event .ev-llm { color: #fbbf24 }
.demo-event .ev-skill { color: #f472b6 }
.demo-event .ev-done { color: #34d399 }
.demo-event .ev-file { color: #fb923c }

/* Task queue cards */
.demo-task {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .4s ease;
}
.demo-task.visible { opacity: 1; transform: translateY(0) }
.demo-task-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.demo-task-status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  transition: all .3s ease;
}
.demo-task-status.open { color: #fbbf24; background: rgba(251,191,36,.1) }
.demo-task-status.claimed { color: #60a5fa; background: rgba(96,165,250,.1) }
.demo-task-status.review { color: #c084fc; background: rgba(192,132,252,.1) }
.demo-task-status.done { color: #34d399; background: rgba(52,211,153,.1) }

/* 2-team split for team demo */
.demo-2team {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  min-height: 420px;
}
.demo-team-pane { padding: 20px }
.demo-team-header {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  font-family: var(--font-display);
  letter-spacing: .03em;
}
.demo-topic-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.05);
  border-right: 1px solid rgba(255,255,255,.05);
  padding: 16px 0;
}
.demo-topic-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(13,115,119,.4);
  writing-mode: vertical-lr;
  text-orientation: mixed;
}
.demo-topic-arrow {
  color: var(--purple);
  font-size: 18px;
  opacity: 0;
  transition: opacity .4s ease;
}
.demo-topic-arrow.visible { opacity: 1 }

/* Skill tags */
.demo-skills {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.demo-skills-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.2);
  margin-bottom: 8px;
}
.demo-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(244,114,182,.06);
  border: 1px solid rgba(244,114,182,.12);
  color: rgba(244,114,182,.6);
  margin: 0 4px 4px 0;
  opacity: 0;
  transition: all .4s ease;
}
.demo-skill-tag.visible { opacity: 1 }
.demo-skill-tag.pulse {
  border-color: rgba(244,114,182,.5);
  color: #f472b6;
  box-shadow: 0 0 12px rgba(244,114,182,.15);
}

/* Activity feed (team demo) */
.demo-activity {
  border-top: 1px solid rgba(255,255,255,.05);
  grid-column: 1 / -1;
  padding: 14px 20px;
}
.demo-activity-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.2);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

/* Demo punchline */
.demo-punchline {
  text-align: center;
  margin-top: 28px;
  font-size: 16px;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.6;
}
.demo-punchline em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

/* Demo CTA */
.demo-cta {
  text-align: center;
  margin-top: 16px;
}
.demo-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-hi);
  transition: color .15s;
}
.demo-cta a:hover { color: var(--purple) }
.demo-cta a svg { width: 14px; height: 14px }

/* Light mode overrides for demos */
body.light .demo-console {
  background: #1E293B;
  box-shadow: 0 16px 48px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.06) inset;
}
body.light .demo-titlebar { background: rgba(0,0,0,.08) }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  nav { padding: 0 20px }
  .nav-links .nav-link { display: none }

  section, .pricing-section, .uses-section, .arcade-section, .demo-section { padding: 72px 20px }
  .demo-3pane { grid-template-columns: 1fr; min-height: auto }
  .demo-3pane .demo-pane { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05) }
  .demo-2team { grid-template-columns: 1fr; min-height: auto }
  .demo-topic-bridge { flex-direction: row; border: none; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); padding: 12px 20px }
  .demo-topic-label { writing-mode: horizontal-tb }
  .hero { padding: 100px 20px 60px }

  .feature {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature.reverse { direction: ltr }

  .explainer-compare { grid-template-columns: 1fr }
  .uses-grid { grid-template-columns: 1fr }
  .pricing-grid { grid-template-columns: 1fr }
  .pricing-card.featured { order: -1 }

  .arcade-viewer { min-height: 360px }
  .arcade-body { min-height: 320px }
  .arc-agent-circle { width: 36px; height: 36px; font-size: 15px }

  footer { padding: 32px 20px; flex-direction: column; align-items: flex-start }
}
