/* ═══════════════════════════════════════════
   EMRALD — getemrald.com (product site)
   Design system: EMRALD palette (emerald + warm gold)
   Fonts: Satoshi (headings) + system-ui (body fallback for Geist)
   ═══════════════════════════════════════════ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg-deep:      #091E18;
  --bg-primary:   #0E2822;
  --bg-secondary: #1A3A31;
  --bg-tertiary:  #24493E;
  --bg-hover:     #2F5548;
  --bg-soft:      #132E27;
  --paper:        #ECE9E1;
  --paper-warm:   #DDD7CB;

  /* Text */
  --text-primary:   #E5E4DC;
  --text-secondary: #A19A8D;
  --text-muted:     #5E6B63;
  --ink-soft:       #38453F;

  /* Borders */
  --border:       #2A3F37;
  --border-light: #354D43;
  --border-soft:  rgba(164, 174, 167, 0.38);

  /* Accent — Emerald */
  --accent:       #34865B;
  --accent-hover: #2A6E4A;
  --accent-light: #4CA67A;
  --accent-muted: #1E4D3A;

  /* Secondary — Warm Gold */
  --gold:       #C4943A;
  --gold-hover: #A67D2E;
  --gold-muted: #3D3222;
  --gold-soft:  rgba(196, 148, 58, 0.16);
  --gold-surface-top: #D7BC80;
  --gold-surface-bottom: #CCA355;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Brand inline */
  --obsidian-purple: #A88BFA;
}

.emrald-brand {
  color: var(--accent-light);
}

a.obsidian-link {
  color: var(--obsidian-purple);
  text-decoration: none;
  transition: opacity 0.15s;
}

a.obsidian-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* --- Layout --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--space-md); }

.section {
  padding: 96px 0;
}
.section-dark {
  background:
    linear-gradient(180deg, rgba(14, 40, 34, 0.98), rgba(12, 33, 28, 0.98));
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  text-align: center;
}

.section h2 em {
  font-style: normal;
  color: var(--accent-light);
}

.section-desc {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
  text-align: center;
}
.section-label-left,
.section-desc-left,
.product-intro-copy h2,
.research-head h2 {
  text-align: center;
}
.section-label-left,
.section-desc-left {
  margin-left: 0;
  margin-right: 0;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 30, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand:hover { color: var(--text-primary); }
.nav-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  border: 1px solid var(--gold-muted);
  background: rgba(61, 50, 34, 0.72);
  padding: 4px 12px;
  border-radius: 100px;
}
.nav-logo { color: var(--accent-light); font-size: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent);
  color: var(--text-primary) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* --- HERO --- */
.hero {
  padding: 140px 0 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(43, 94, 69, 0.88) 0%, transparent 52%),
    radial-gradient(circle at 50% 16%, rgba(236, 233, 225, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(196, 148, 58, 0.10) 0%, transparent 34%),
    radial-gradient(circle at 18% 20%, rgba(147, 114, 62, 0.08) 0%, transparent 28%),
    linear-gradient(180deg, #11261F 0%, #0A201A 42%, #091E18 100%);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(236, 233, 225, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(8, 23, 19, 0.12), transparent 30%, transparent 74%, rgba(86, 63, 35, 0.10));
  opacity: 0.9;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(236, 233, 225, 0.028), transparent 24%, transparent 68%, rgba(196, 148, 58, 0.05));
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}
.hero-head {
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-sub strong { color: var(--accent-light); }
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-note {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--gold);
}
.hero-proof-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
  margin-top: 52px;
}

/* ── Hero stage: fullscreen screenshot + floating bubbles ── */
.hero-stage {
  margin-top: 40px;
}
.hero-stage-frame {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.18);
}
.hero-stage-img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(53, 77, 67, 0.55);
}
.hero-stage-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-primary);
}

/* ── Floating hero bubbles ── */
/* NOTE: .proof-shell sets position:relative later in the cascade, so we must
   use .hero-stage-frame .hero-bubble for higher specificity. */
.hero-stage-frame .hero-bubble {
  position: absolute;
  width: 230px;
  z-index: 5;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  opacity: 0.96;
}
.hero-stage-frame .hero-bubble-timer {
  top: 3%;
  right: 22%;
}
.hero-stage-frame .hero-bubble-projects {
  top: 38%;
  right: 22%;
}
.hero-stage-frame .hero-bubble-effort {
  bottom: 4%;
  right: 22%;
}
.hero-proof-stack {
  display: grid;
  gap: 18px;
}
.hero-ring-wrap strong,
.proof-stat {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.proof-shell p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.mini-label,
.proof-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gold);
}
.mini-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 6px;
  height: 72px;
  margin: 14px 0 8px;
}
.mini-bars span {
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(110, 236, 154, 0.95), rgba(52, 134, 91, 0.4));
}
.mini-bars span:nth-child(1) { height: 34%; }
.mini-bars span:nth-child(2) { height: 78%; }
.mini-bars span:nth-child(3) { height: 56%; }
.mini-bars span:nth-child(4) { height: 68%; }
.mini-bars span:nth-child(5) { height: 48%; }
.mini-bars span:nth-child(6) { height: 72%; }
.risk-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(36, 73, 62, 0.65);
  overflow: hidden;
  margin: 14px 0 10px;
}
.risk-bar span {
  display: block;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--accent-light), rgba(196, 148, 58, 0.85));
  border-radius: inherit;
}
.risk-bar-warn span {
  width: 58%;
  background: linear-gradient(90deg, var(--accent-light), rgba(196, 148, 58, 0.95), rgba(180, 68, 68, 0.9));
}
.proof-shell {
  border-radius: 20px;
  border: 1px solid rgba(53, 77, 67, 0.95);
  padding: 18px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}
.proof-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%);
  pointer-events: none;
}
.proof-shell-lg { padding: 20px; }
.proof-shell-sm { padding: 16px; }
.proof-shell-light {
  background:
    linear-gradient(180deg, rgba(239, 235, 226, 0.995), rgba(223, 217, 205, 0.975)),
    radial-gradient(circle at 18% 10%, rgba(196, 148, 58, 0.05), transparent 28%);
  color: var(--bg-primary);
  border-color: rgba(164, 174, 167, 0.58);
}
.proof-shell-gold {
  background:
    linear-gradient(180deg, var(--gold-surface-top), var(--gold-surface-bottom)),
    radial-gradient(circle at 18% 10%, rgba(255, 245, 214, 0.18), transparent 30%);
  color: #1f241f;
  border-color: rgba(132, 101, 42, 0.42);
}
.proof-shell-dark {
  background:
    radial-gradient(circle at 88% 8%, rgba(196, 148, 58, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(16, 42, 36, 0.97), rgba(9, 30, 24, 0.97));
}
.proof-shell-main {
  min-height: 220px;
}
.proof-shell-screenshot {
  padding-bottom: 14px;
}
.proof-shell-top-simple {
  margin-bottom: 12px;
}
.proof-meta-lead {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.45px;
  color: var(--gold);
}
.proof-shell-light .proof-meta-lead {
  color: rgba(48, 61, 55, 0.72);
}
.proof-image {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(53, 77, 67, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  background: rgba(12, 31, 27, 0.28);
}
.proof-shell-dark .proof-image {
  border-color: rgba(53, 77, 67, 0.62);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}
.proof-shell-hero-shot {
  justify-self: start;
  width: min(100%, 520px);
}
.proof-image-hero {
  max-height: 460px;
  object-fit: contain;
  object-position: top center;
}
.proof-image-receipt,
.proof-image-metrics,
.proof-image-burnout {
  max-width: 480px;
  width: 100%;
  object-fit: contain;
  object-position: top center;
}
.proof-image-plugin {
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
}

/* ── Integrate stage: hero-style artifact, copy centered below ── */
.integrate-section {
  margin-top: 64px;
}
.integrate-stage-frame {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.18);
}
.integrate-stage-img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(53, 77, 67, 0.55);
}
.integrate-stage-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-primary);
}
.integrate-copy {
  text-align: center;
  max-width: 620px;
  margin: 40px auto 0;
}
.integrate-copy .feature-label {
  text-align: center;
}
.integrate-copy h3 {
  text-align: center;
}
.integrate-copy p {
  text-align: center;
}
/* Floating integrate bubbles — two-class specificity to beat .proof-shell */
.integrate-stage-frame .integrate-bubble {
  position: absolute;
  width: 210px;
  z-index: 5;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  opacity: 0.96;
}
.integrate-stage-frame .integrate-bubble-meta {
  top: 10%;
  right: 30%;
  left: auto;
}
.integrate-stage-frame .integrate-bubble-native {
  bottom: 8%;
  right: 30%;
  left: auto;
}
.proof-shell-gold .proof-image,
.product-intro-artifact .product-intro-shot {
  background: rgba(249, 240, 215, 0.36);
}
.proof-caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(48, 61, 55, 0.74);
}
.proof-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.proof-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
}
.proof-shell-dark .proof-eyebrow { color: var(--gold); }
.proof-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.proof-shell-light .proof-meta { color: rgba(48, 61, 55, 0.72); }
.proof-list {
  list-style: none;
  margin-top: 12px;
}
.proof-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid rgba(53, 77, 67, 0.2);
}
.proof-list li:last-child { border-bottom: none; }
.proof-shell-light .proof-list li,
.proof-shell-light p,
.proof-shell-light .proof-kicker,
.proof-shell-gold p,
.proof-shell-gold .proof-kicker {
  color: var(--bg-primary);
}
.proof-board {
  display: grid;
  gap: var(--space-sm);
}
.proof-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.proof-mini-grid-wide {
  grid-template-columns: 1.05fr 1fr;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(180deg, #3C8D62, #2C704C);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 47, 40, 0.22);
}
.btn-primary:hover { background: linear-gradient(180deg, #43986A, #327A53); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); }
.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-muted); }
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* --- PROBLEM GRID --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.problem-card {
  background:
    linear-gradient(180deg, rgba(20, 48, 41, 0.88), rgba(14, 40, 34, 0.82)),
    linear-gradient(180deg, rgba(236, 233, 225, 0.016), transparent 42%);
  border: 1px solid rgba(42, 63, 55, 0.92);
  border-radius: 20px;
  padding: var(--space-md);
  text-align: left;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}
.problem-card-active {
  border-color: rgba(76, 166, 122, 0.55);
}
.problem-card-warn {
  border-color: rgba(196, 148, 58, 0.42);
}
.problem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.problem-chip {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-secondary);
  background: rgba(36, 73, 62, 0.5);
  border: 1px solid rgba(53, 77, 67, 0.78);
  border-radius: 999px;
  padding: 6px 10px;
}
.problem-icon { font-size: 28px; }
.problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- PRODUCT INTRO --- */
.product-intro-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.65fr);
  gap: 36px;
  align-items: center;
  margin-top: 36px;
}
.product-intro-copy {
  background:
    radial-gradient(circle at 88% 14%, rgba(196, 148, 58, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(15, 41, 35, 0.88), rgba(9, 30, 24, 0.82)),
    linear-gradient(180deg, rgba(236, 233, 225, 0.02), transparent 34%);
  border: 1px solid rgba(42, 63, 55, 0.88);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}
.product-intro-copy-free {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.product-intro-copy h2 {
  margin-bottom: var(--space-sm);
}
.product-intro-copy .section-desc strong {
  color: var(--accent-light);
}
.product-intro-artifact {
  background:
    linear-gradient(180deg, var(--gold-surface-top), var(--gold-surface-bottom)),
    radial-gradient(circle at 18% 8%, rgba(255, 244, 210, 0.18), transparent 26%);
  border: 1px solid rgba(164, 174, 167, 0.5);
  border-radius: 24px;
  padding: 18px;
  color: var(--bg-primary);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 12px;
}
.product-intro-artifact-free {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.product-intro-artifact-free .product-intro-kicker {
  margin-left: 0;
  color: var(--gold);
  text-align: center;
  display: block;
}
.product-intro-kicker,
.step-kicker,
.research-card-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.product-intro-artifact .product-intro-kicker {
  color: rgba(45, 34, 16, 0.78);
}
.product-intro-artifact.product-intro-artifact-free .product-intro-kicker {
  color: var(--gold);
}
.product-intro-shot {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(78, 60, 27, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}
.product-intro-artifact-free .product-intro-shot {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

/* --- FEATURES: Sticky horizontal scroll --- */
.features-sticky-wrap {
  position: relative;
  /* 3 panels = 3x viewport scroll height (content fills during scroll) */
  height: 300vh;
  background:
    linear-gradient(180deg, rgba(14, 40, 34, 0.98), rgba(12, 33, 28, 0.98));
}
.features-sticky-inner {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.features-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.features-track {
  display: flex;
  flex: 1;
  min-height: 0;
  will-change: transform;
  transition: transform 0.05s linear;
}
.features-panel {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  min-height: 0;
  overflow-y: auto;
}
.features-panel > .container {
  max-width: 1120px;
  width: 100%;
}

/* Normalize proof-shell height inside horizontal feature panels */
.features-panel .proof-shell-main {
  min-height: 0;
}
.features-panel .proof-shell-screenshot {
  max-width: 520px;
}
.features-panel .proof-board {
  display: grid;
  gap: var(--space-sm);
  max-width: 520px;
}

/* Nav dots + arrows */
.features-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 0 24px;
  flex-shrink: 0;
}
.features-dots {
  display: flex;
  gap: 10px;
}
.features-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.features-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}
.features-arrow {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.features-arrow:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--gold);
}
.features-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Feature row (inside panels) */
.feature-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.02fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 0;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse .feature-text { order: 2; }
.feature-row-reverse .feature-visual { order: 1; }
.feature-row-proof {
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(196, 148, 58, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(14, 35, 30, 0.82), rgba(9, 30, 24, 0.4)),
    linear-gradient(90deg, rgba(196, 148, 58, 0.02), transparent 18%, transparent 82%, rgba(236, 233, 225, 0.025));
  border: 1px solid rgba(42, 63, 55, 0.78);
  box-shadow: inset 0 1px 0 rgba(110, 236, 154, 0.03);
}
.feature-row-open {
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.feature-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}
.feature-text h3 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.16;
  margin-bottom: var(--space-sm);
}
.feature-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.62;
}
.feature-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gold) !important;
  letter-spacing: 0.01em;
}
.feature-hint em {
  color: inherit;
}
.feature-visual {
  position: relative;
}

/* --- Bubble reveal animations --- */
.bubble-reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Hero bubbles slide in from the right — off-screen */
.bubble-reveal-right {
  transform: translateX(calc(100vw * 0.4));
}
/* Integrate bubbles slide in from the left — off-screen */
.bubble-reveal-left {
  transform: translateX(calc(-100vw * 0.6));
}
.bubble-reveal.bubble-revealed {
  opacity: 0.96;
  transform: translateX(0);
}
/* Stagger delays */
.bubble-reveal-delay-1 { transition-delay: 0.15s; }
.bubble-reveal-delay-2 { transition-delay: 0.35s; }
.bubble-reveal-delay-3 { transition-delay: 0.55s; }


/* --- STEPS --- */
.how-shell {
  margin-top: var(--space-lg);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 10%, rgba(196, 148, 58, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(14, 40, 34, 0.94), rgba(10, 31, 26, 0.9)),
    linear-gradient(180deg, rgba(236, 233, 225, 0.018), transparent 38%);
  border: 1px solid rgba(42, 63, 55, 0.88);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}
.how-shell-open {
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.how-head {
  max-width: 620px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.steps {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-md);
}
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: 0;
  padding: 20px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 47, 40, 0.7), rgba(12, 33, 28, 0.58)),
    linear-gradient(90deg, rgba(196, 148, 58, 0.02), transparent 28%, transparent 72%, rgba(236, 233, 225, 0.018));
  border: 1px solid rgba(42, 63, 55, 0.72);
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(18, 47, 40, 0.32);
}
.step-kicker {
  margin-bottom: 8px;
}
.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.step-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Reveal on scroll animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESEARCH --- */
.research-shell {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(196, 148, 58, 0.10), transparent 28%),
    radial-gradient(circle at 18% 0%, rgba(236, 233, 225, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(15, 42, 36, 0.96), rgba(9, 30, 24, 0.94));
  border: 1px solid rgba(42, 63, 55, 0.92);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
}
.research-shell-open {
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.research-head {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
  text-align: center;
}
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.research-card {
  background:
    linear-gradient(180deg, rgba(18, 47, 40, 0.84), rgba(14, 40, 34, 0.8)),
    linear-gradient(180deg, rgba(236, 233, 225, 0.015), transparent 45%);
  border: 1px solid rgba(42, 63, 55, 0.9);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}
.research-card-spotlight {
  background:
    linear-gradient(180deg, rgba(239, 235, 226, 0.995), rgba(224, 218, 206, 0.975)),
    radial-gradient(circle at 82% 12%, rgba(196, 148, 58, 0.06), transparent 28%);
  border-color: rgba(164, 174, 167, 0.5);
}
.research-card-spotlight .research-card-kicker,
.research-card-spotlight .research-cite {
  color: rgba(48, 61, 55, 0.66);
}
.research-card-spotlight .research-finding {
  color: var(--bg-primary);
}
.research-card-kicker {
  margin-bottom: 12px;
}
.research-finding {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 10px;
}
.research-cite {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- PRICING --- */
.pricing-grid {
  margin-top: var(--space-lg);
}
.pricing-compare {
  background:
    linear-gradient(180deg, rgba(14, 40, 34, 0.96), rgba(10, 31, 26, 0.94));
  border: 1px solid rgba(42, 63, 55, 0.9);
  border-radius: 24px;
  padding: var(--space-md);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}
.pricing-compare-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  text-align: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}
.pricing-compare-feature { text-align: left; }
.pricing-compare-tier { text-align: center; }
.pricing-compare-tier h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pricing-compare-tier-pro {
  position: relative;
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gold);
  color: var(--bg-deep);
  margin-bottom: 0;
  vertical-align: middle;
}
.pricing-amount {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
}
.pricing-amount span { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.pricing-divider {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--border);
}
.pricing-divider-ai {
  color: var(--gold);
}
.pricing-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 63, 55, 0.5);
  font-size: 14px;
}
.pricing-row:last-of-type { border-bottom: none; }
.pricing-row-label {
  color: var(--text-secondary);
}
.pricing-row-check {
  text-align: center;
  color: var(--accent-light);
  font-weight: 600;
}
.pricing-row-check.muted {
  color: var(--text-muted);
}
.pricing-row-miss {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-row-miss svg {
  opacity: 0.85;
}
.pricing-row-check.pro-highlight {
  color: var(--gold);
  font-weight: 700;
}
.pricing-compare-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
  text-align: center;
}

/* --- STORY --- */
.story-shell {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.72fr);
  gap: var(--space-md);
  align-items: start;
}
.story-content {
  background:
    radial-gradient(circle at 84% 10%, rgba(196, 148, 58, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(17, 47, 40, 0.84), rgba(10, 31, 26, 0.9)),
    linear-gradient(180deg, rgba(236, 233, 225, 0.015), transparent 34%);
  border: 1px solid rgba(42, 63, 55, 0.92);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
.story-content-free {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.story-content p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}
.story-content-free p {
  color: rgba(229, 228, 220, 0.86);
}
.story-content em { color: var(--gold); font-style: italic; }
.story-content strong { color: var(--accent-light); }
.story-sidecard {
  background:
    linear-gradient(180deg, rgba(239, 235, 226, 0.995), rgba(224, 218, 206, 0.975)),
    radial-gradient(circle at 16% 8%, rgba(196, 148, 58, 0.05), transparent 24%);
  border: 1px solid rgba(164, 174, 167, 0.58);
  border-radius: 24px;
  padding: 24px;
  color: var(--bg-primary);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 92px;
}
.story-sidecard-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(48, 61, 55, 0.72);
  margin-bottom: 12px;
}
.story-sidecard h3 {
  font-size: 24px;
  line-height: 1.18;
  margin-bottom: 12px;
}
.story-sidecard p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(32, 48, 42, 0.78);
  margin-bottom: 18px;
}
.story-sidecard-stat {
  padding: 14px 0;
  border-top: 1px solid rgba(53, 77, 67, 0.18);
}
.story-sidecard-stat span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(48, 61, 55, 0.6);
  margin-bottom: 6px;
}
.story-sidecard-stat strong {
  font-size: 22px;
  color: var(--bg-primary);
}
.story-sign {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.story-sign span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-style: italic;
}
.story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CTA --- */
.section-cta {
  background:
    radial-gradient(ellipse at 50% 100%, var(--accent-muted) 0%, transparent 60%),
    radial-gradient(circle at 80% 12%, rgba(196, 148, 58, 0.06), transparent 28%),
    var(--bg-deep);
  position: relative;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
}
.cta-shell {
  background:
    radial-gradient(circle at 84% 12%, rgba(196, 148, 58, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(15, 42, 36, 0.96), rgba(9, 30, 24, 0.94)),
    linear-gradient(180deg, rgba(236, 233, 225, 0.018), transparent 40%);
  border: 1px solid rgba(42, 63, 55, 0.92);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}
.cta-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.footer-brand .nav-logo { display: inline; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-theme-link {
  color: var(--gold) !important;
}
.footer-theme-link:hover {
  color: var(--gold) !important;
  text-decoration: underline;
}
.footer-bottom {
  max-width: 1120px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-deep); border-bottom: 1px solid var(--border); padding: var(--space-md); gap: var(--space-sm); }
  .nav-links.open { display: flex; }
  .nav-menu-btn { display: block; }

  .hero { padding: 100px 0 0; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 17px; }
  .hero-stage { margin-top: 36px; }
  .nav-badge { display: none; }

  /* Mobile: unfloat hero bubbles, stack them below the screenshot */
  .hero-stage-frame {
    overflow: visible;
  }
  .hero-stage-frame .hero-bubble {
    position: static;
    width: 100%;
    margin-top: 14px;
    opacity: 1;
  }
  .hero-stage-frame .hero-bubble-timer,
  .hero-stage-frame .hero-bubble-projects,
  .hero-stage-frame .hero-bubble-effort {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  /* Mobile: unfloat integrate bubbles */
  .integrate-stage-frame .integrate-bubble {
    position: static;
    width: 100%;
    margin-top: 14px;
    opacity: 1;
  }
  .integrate-stage-frame .integrate-bubble-meta,
  .integrate-stage-frame .integrate-bubble-native {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .hero-proof-board,
  .hero-dashboard-grid,
  .proof-mini-grid,
  .proof-mini-grid-wide,
  .metrics-grid,
  .plugin-frame,
  .product-intro-shell {
    grid-template-columns: 1fr;
  }
  .proof-shell,
  .feature-row-proof,
  .feature-row-open,
  .how-shell,
  .how-shell-open,
  .research-shell,
  .research-shell-open,
  .product-intro-copy,
  .product-intro-copy-free,
  .product-intro-artifact {
    padding: 18px;
  }
  .hero-dashboard-card,
  .proof-shell-main {
    min-height: auto;
  }
  .hero-ring-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .problem-grid { grid-template-columns: 1fr; }

  /* Mobile: features fall back to vertical scroll */
  .features-sticky-wrap {
    height: auto;
  }
  .features-sticky-inner {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .features-track {
    flex-direction: column;
    transform: none !important;
  }
  .features-panel {
    flex: none;
    padding: 48px var(--space-md);
    overflow: visible;
  }
  .features-nav {
    display: none;
  }
  /* Bubbles always visible + positioned static on mobile */
  .bubble-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .feature-row { grid-template-columns: 1fr; gap: var(--space-md); }
  .feature-row-reverse .feature-text { order: 1; }
  .feature-row-reverse .feature-visual { order: 2; }
  .story-shell { grid-template-columns: 1fr; }
  .story-sidecard { position: static; }
  .pricing-card-topline,
  .problem-card-top { align-items: flex-start; flex-direction: column; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .step { grid-template-columns: 1fr; }
  .step-img { margin-top: 12px; }

  .research-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .section-label-left,
  .section-desc-left,
  .product-intro-copy h2,
  .research-head h2 { text-align: center; }
  .section-label-left,
  .section-desc-left { margin-left: auto; margin-right: auto; }
  .research-head { margin-left: auto; margin-right: auto; text-align: center; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bubble-reveal {
    opacity: 0.96 !important;
    transform: none !important;
  }
  .features-track {
    transition: none !important;
  }
}

/* --- TOUCH --- */
a, button, input, select, textarea {
  touch-action: manipulation;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  cursor: default;
}

/* ── Waitlist Section ────────────────────── */
.section-waitlist {
  background: var(--bg-alt, #0D2818);
  border-top: 1px solid rgba(76, 166, 122, 0.15);
  border-bottom: 1px solid rgba(76, 166, 122, 0.15);
}
.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}
.waitlist-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.waitlist-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(76, 166, 122, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text, #E8F0EC);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-input:focus {
  border-color: var(--accent, #4CA67A);
}
.waitlist-input::placeholder {
  color: rgba(232, 240, 236, 0.4);
}
.waitlist-btn {
  white-space: nowrap;
  padding: 12px 24px;
}
.waitlist-msg {
  margin-top: 12px;
  font-size: 0.9rem;
}
.waitlist-msg-success {
  color: var(--accent, #4CA67A);
}
.waitlist-msg-error {
  color: #D45858;
}

/* Light mode */
[data-theme="light"] .section-waitlist {
  background: #F5F0E8;
  border-top-color: rgba(76, 166, 122, 0.2);
  border-bottom-color: rgba(76, 166, 122, 0.2);
}
[data-theme="light"] .waitlist-input {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(76, 166, 122, 0.3);
  color: #1a2e23;
}
[data-theme="light"] .waitlist-input::placeholder {
  color: rgba(26, 46, 35, 0.4);
}

@media (max-width: 600px) {
  .waitlist-input-group {
    flex-direction: column;
  }
  .waitlist-btn {
    width: 100%;
  }
}
