/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The nav's two "back" links set their own display via a class below, which
   would otherwise win over the UA stylesheet's [hidden]{display:none} at
   equal specificity (author styles beat user-agent styles in the cascade). */
[hidden] { display: none !important; }

:root {
  --bg:          #04040e;
  --bg-panel:    #07070f;
  --bg-panel-2:  #0a0817;
  --purple:      #5B5EE2;
  --indigo:      #4338ca;
  --grad-text:   linear-gradient(120deg, #a78bfa 0%, #60a5fa 100%);
  --text:        #ffffff;
  --text-muted:  #94a3b8;
  --text-dim:    #475569;
  --border:      rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.16);
  --card-bg:     rgba(255,255,255,0.045);
  --card-bg-hi:  rgba(255,255,255,0.065);
  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --blur:        blur(24px) saturate(180%);

  --c-engine:  #f59e0b;  --c-engine-text:  rgba(253,211,77,0.95);
  --c-auth:    #10b981;  --c-auth-text:    rgba(110,231,183,0.95);
  --c-export:  #ec4899;  --c-export-text:  rgba(249,168,212,0.95);
  --c-history: #3b82f6;  --c-history-text: rgba(147,197,253,0.95);
}

/* ── Nav "back" links (authenticated vs. anonymous, toggled via JS) ─── */
.sec-nav-link, .sec-nav-cta {
  font-family: var(--font); font-size: 13px; font-weight: 500; text-decoration: none;
  display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px;
  transition: background .15s, color .15s, transform .15s;
}
.sec-nav-link svg, .sec-nav-cta svg { width: 13px; height: 13px; flex-shrink: 0; }
.sec-nav-link {
  color: rgba(148,163,184,0.9); border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05);
}
.sec-nav-link:hover { background: rgba(255,255,255,0.10); color: #fff; }
/* Matches the sister site's .hub-nav-link pillbox exactly (same brand
   family, same "back to the marketing site" role). */
.sec-nav-cta {
  height: 20px; font-size: 10px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 0 10px;
}
.sec-nav-cta:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.24); }
.sec-nav-cta svg { width: 10px; height: 10px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .sec-jumpnav-indicator { transition: opacity .25s ease !important; }
}
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1.visible { transition-delay: .08s; }
.reveal-d2.visible { transition-delay: .16s; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.sec-hero { padding: 140px 8px 96px; text-align: center; position: relative; overflow: hidden; }
.sec-hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.sec-orb { position: absolute; border-radius: 50%; filter: blur(120px); }
.sec-orb-1 { width: 900px; height: 640px; top: -260px; left: 50%; transform: translateX(-62%); background: radial-gradient(circle, rgba(16,185,129,0.55), transparent 70%); }
.sec-orb-2 { width: 640px; height: 640px; top: -120px; right: -8%; background: radial-gradient(circle, rgba(91,94,226,0.45), transparent 70%); }
.sec-orb-3 { width: 520px; height: 420px; bottom: -220px; left: 4%; background: radial-gradient(circle, rgba(96,165,250,0.28), transparent 70%); }
.sec-hero-inner { position: relative; max-width: 920px; margin: 0 auto; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(110,231,183,0.95); background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.30); padding: 6px 16px; border-radius: 999px; margin-bottom: 36px; }
.sec-h1 { font-size: clamp(42px, 7vw, 96px); font-weight: 800; line-height: 0.98; letter-spacing: -.035em; color: #fff; margin-bottom: 26px; text-wrap: balance; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sec-hero-sub { font-size: 19px; color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.7; }

/* ── Quick facts strip (glass card grid) ─────────────────────────────── */
.sec-quickgrid { max-width: 1160px; margin: 76px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.sec-quick-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 26px 22px; text-align: left; backdrop-filter: var(--blur); transition: background .2s, border-color .2s, transform .2s; }
.sec-quick-item:hover { background: var(--card-bg-hi); border-color: var(--border-soft); transform: translateY(-2px); }
.sec-quick-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sec-quick-icon svg { width: 18px; height: 18px; }
.sec-quick-title { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 5px; letter-spacing: -.01em; }
.sec-quick-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ── In-page nav (sticky pill row) ────────────────────────────────────── */
.sec-jumpnav-wrap { position: sticky; top: 56px; z-index: 40; background: rgba(4,4,14,0.72); backdrop-filter: var(--blur); border-bottom: 1px solid var(--border); }
.sec-jumpnav { position: relative; max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sec-jumpnav a { position: relative; z-index: 1; font-size: 12.5px; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.sec-jumpnav a:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: var(--border-soft); }
.sec-jumpnav a.active { color: #fff; }

/* Sliding highlight tracking the section currently in view — position,
   size, and visibility are all driven from JS (scroll-spy), only the
   motion itself is a CSS transition. */
.sec-jumpnav-indicator {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0;
  background: rgba(91,94,226,0.16); border: 1px solid rgba(91,94,226,0.38); border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: left .35s cubic-bezier(.16,1,.3,1), top .35s cubic-bezier(.16,1,.3,1),
              width .35s cubic-bezier(.16,1,.3,1), height .35s cubic-bezier(.16,1,.3,1),
              opacity .25s ease;
}
.sec-jumpnav-indicator.visible { opacity: 1; }

/* ── Panel shell (full-bleed, alternating ground) ────────────────────── */
.sec-panel { position: relative; border-top: 1px solid var(--border); }
.sec-panel.alt { background: var(--bg-panel); }
.sec-panel.deep { background: var(--bg-panel-2); }
.sec-panel-inner { max-width: 820px; margin: 0 auto; padding: 128px 24px; }
.sec-panel-inner.wide { max-width: 1160px; }
.sec-panel:last-of-type { border-bottom: 1px solid var(--border); }

.sec-section-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.sec-section-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; color: #fff; margin-bottom: 22px; text-wrap: balance; }
.sec-section-lead { font-size: 17px; color: var(--text-muted); line-height: 1.75; margin-bottom: 36px; max-width: 62ch; }
.sec-prose { font-size: 15.5px; color: rgba(226,232,240,0.85); line-height: 1.85; margin-bottom: 20px; max-width: 68ch; }
.sec-prose strong { color: #fff; font-weight: 600; }
.sec-prose + .sec-prose { margin-top: -6px; }

/* eyebrow color variants keyed to the app's own category palette */
.sec-section-eyebrow.engine  { color: var(--c-engine-text); }
.sec-section-eyebrow.auth    { color: var(--c-auth-text); }
.sec-section-eyebrow.export  { color: var(--c-export-text); }
.sec-section-eyebrow.history { color: var(--c-history-text); }
.sec-section-eyebrow.workflow{ color: rgba(167,139,250,0.95); } /* purple, matches the Human pillbox text */
.sec-section-eyebrow.ui      { color: rgba(255,255,255,0.75); }

/* ── Feature card grid ─────────────────────────────────────────────── */
.sec-cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0 8px; max-width: 1160px; }
.sec-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 28px; backdrop-filter: var(--blur); transition: background .2s, border-color .2s, transform .2s; }
.sec-card:hover { background: var(--card-bg-hi); border-color: var(--border-soft); transform: translateY(-2px); }
.sec-card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sec-card-icon svg { width: 18px; height: 18px; }
.sec-card-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -.01em; }
.sec-card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ── Numbered flow — giant stamped numerals ──────────────────────────── */
.sec-flow { display: flex; flex-direction: column; margin: 44px 0 8px; max-width: 900px; }
.sec-flowstep { display: grid; grid-template-columns: 96px 1fr; gap: 32px; position: relative; padding: 40px 0; border-top: 1px solid var(--border); align-items: center; }
.sec-flowstep:first-child { border-top: none; padding-top: 0; }
.sec-flow-num {
  font-size: 64px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  color: rgba(110,231,183,0.9); /* matches the AI-assisted pillbox text color */
}
.sec-flowstep.human .sec-flow-num { color: rgba(167,139,250,0.95); /* matches the Human pillbox text color */ }
.sec-flow-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -.01em; }
.sec-flow-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-left: 10px; background: rgba(16,185,129,0.14); color: rgba(110,231,183,0.9); border: 1px solid rgba(16,185,129,0.28); vertical-align: middle; }
.sec-flowstep.human .sec-flow-tag { background: rgba(91,94,226,0.16); color: rgba(167,139,250,0.95); border-color: rgba(91,94,226,0.32); }
.sec-flow-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; max-width: 60ch; }

/* ── Callout box ───────────────────────────────────────────────────── */
.sec-callout { background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.24); border-radius: 18px; padding: 28px 30px; margin: 32px 0; display: flex; gap: 18px; align-items: flex-start; max-width: 820px; }
.sec-callout-icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.30); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.sec-callout-icon svg { width: 16px; height: 16px; }
.sec-callout-text { font-size: 14.5px; color: rgba(226,232,240,0.92); line-height: 1.75; }
.sec-callout-text strong { color: #fff; }
.sec-callout.neutral { background: var(--card-bg); border-color: var(--border); }
.sec-callout.neutral .sec-callout-icon { background: rgba(255,255,255,0.07); border-color: var(--border-soft); }

/* ── Fact list (definition-style rows) ────────────────────────────── */
.sec-facts { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin: 32px 0 8px; max-width: 900px; backdrop-filter: var(--blur); }
.sec-fact-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.sec-fact-row:last-child { border-bottom: none; }
.sec-fact-row:nth-child(odd) { background: rgba(255,255,255,0.025); }
.sec-fact-label { font-size: 13px; font-weight: 700; color: #fff; }
.sec-fact-value { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ── Vendor badges ─────────────────────────────────────────────────── */
.sec-vendor-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0 8px; max-width: 900px; }
.sec-vendor-badge { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: 14px; padding: 18px 20px; backdrop-filter: var(--blur); }
.sec-vendor-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(110,231,183,0.9); box-shadow: 0 0 0 4px rgba(16,185,129,0.15); flex-shrink: 0; }
.sec-vendor-name { font-size: 14.5px; font-weight: 700; color: #fff; }
.sec-vendor-role { font-size: 12px; color: var(--text-dim); }

/* ── CTA (closing statement panel) ────────────────────────────────────── */
.sec-cta { position: relative; padding: 140px 24px; text-align: center; overflow: hidden; }
.sec-cta-inner { position: relative; max-width: 620px; margin: 0 auto; }
.sec-cta-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 18px; letter-spacing: -.025em; line-height: 1.1; }
.sec-cta-sub   { font-size: 15.5px; color: var(--text-muted); margin-bottom: 4px; line-height: 1.75; }
.sec-cta-sub a { color: rgba(167,139,250,0.95); text-decoration: none; border-bottom: 1px solid rgba(167,139,250,0.35); transition: border-color .15s, color .15s; }
.sec-cta-sub a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.sec-cta-updated { font-size: 12px; color: var(--text-dim); margin-top: 28px; }

@media (max-width: 860px) {
  .sec-quickgrid { grid-template-columns: 1fr 1fr; }
  .sec-cardgrid { grid-template-columns: 1fr; }
  .sec-vendor-row { grid-template-columns: 1fr; }
  .sec-fact-row { grid-template-columns: 1fr; gap: 6px; }
  .sec-flowstep { grid-template-columns: 1fr; gap: 10px; }
  .sec-flow-num { font-size: 44px; }
  .sec-hero { padding: 100px 20px 72px; text-align: left; }
  .sec-hero-sub { text-align: left; }
  .sec-jumpnav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .sec-panel-inner { padding: 88px 24px; }
  .sec-cta { padding: 96px 24px; }
}
