/* ============================================================
   NEURANOVA — Investor Pitch
   Design system: Premium dark · Violet/Emerald accents
   Inspired by Linear · Mistral · VoltAgent (awesome-design-md)
   ============================================================ */

:root {
  /* Palette */
  --bg:           #0a0a0f;
  --bg-soft:      #0f0f17;
  --bg-card:      #12121c;
  --bg-card-hl:   #161624;
  --border:       #1f1f2e;
  --border-hl:    #2a2a3f;
  --text:         #e9e9f1;
  --text-dim:     #9b9bb0;
  --text-mute:    #5e5e74;
  --accent:       #8b5cf6;   /* violet */
  --accent-2:     #22d3a4;   /* emerald */
  --accent-glow:  rgba(139, 92, 246, 0.35);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --pad: 28px;
  --r: 14px;
  --r-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============== background ============== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  z-index: -1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

/* ============== layout ============== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 120px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(139,92,246,0.03), transparent); }

/* ============== nav ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.logo-mark { color: var(--accent); font-size: 20px; line-height: 1; }
.logo-text { font-size: 15px; letter-spacing: 0.18em; }
.nav-links { display: none; }
.nav-links a {
  font-size: 13.5px; color: var(--text-dim); font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.lang-btn { color: var(--text-mute); transition: color .15s; padding: 4px 2px; }
.lang-btn.active { color: var(--accent-2); }
.lang-btn:hover { color: var(--text); }
.lang-divider { color: var(--text-mute); }

/* ============== buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.4), 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(139,92,246,0.6), 0 12px 32px -8px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hl);
}
.btn-ghost:hover { background: var(--bg-card); border-color: #3a3a55; }

/* ============== hero ============== */
.hero { padding: 120px 0 100px; text-align: center; position: relative; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.25);
  color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 32px;
  font-family: var(--font-mono);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 28px;
}
.grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(18,18,28,0.5);
  backdrop-filter: blur(8px);
}
.stat-num {
  font-size: 26px; font-weight: 700;
  background: linear-gradient(180deg, #fff, #b0b0c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-lbl { font-size: 12px; color: var(--text-mute); line-height: 1.4; }

/* ============== sections common ============== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 56px;
  max-width: 800px;
}
.muted { color: var(--text-dim); }
.lede {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ============== problem grid ============== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.prob-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .25s, transform .25s;
}
.prob-card:hover { border-color: var(--border-hl); transform: translateY(-2px); }
.prob-num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
  margin-bottom: 14px; letter-spacing: 0.08em;
}
.prob-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.prob-card p { color: var(--text-dim); font-size: 14.5px; }

/* ============== solution duo ============== */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 56px;
}
.duo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.duo-card-accent {
  background: linear-gradient(160deg, var(--bg-card-hl), var(--bg-card));
  border-color: rgba(139,92,246,0.3);
}
.duo-card-accent::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(139,92,246,0.12), transparent 60%);
  pointer-events: none;
}
.duo-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 18px;
  position: relative;
}
.duo-card h3 {
  font-size: 26px; font-weight: 700; margin-bottom: 14px;
  letter-spacing: -0.02em; position: relative;
}
.duo-card p { color: var(--text-dim); margin-bottom: 22px; position: relative; font-size: 15px; }
.bullets { list-style: none; position: relative; }
.bullets li {
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--border);
  position: relative;
  font-size: 14px;
  color: var(--text);
}
.bullets li::before {
  content: '→';
  position: absolute; left: 0; top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.pitch-line {
  margin-top: 40px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--bg-soft);
  position: relative;
}
.pitch-line .quote {
  position: absolute;
  top: -8px; left: 18px;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}
.pitch-line p {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-style: italic;
  color: var(--text);
}

/* ============== how grid ============== */
.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.how-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 26px;
}
.how-step-n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}
.how-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.how-step p { color: var(--text-dim); font-size: 14px; }
.how-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 22px; opacity: 0.6;
}

/* ============== business model ============== */
.rev-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 64px;
}
.rev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: all .25s;
}
.rev-card:hover { border-color: var(--border-hl); transform: translateY(-3px); }
.rev-card-hl {
  border-color: rgba(34, 211, 164, 0.3);
  background: linear-gradient(160deg, rgba(34,211,164,0.05), var(--bg-card));
}
.rev-num {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: #fff;
}
.rev-unit { font-size: 14px; color: var(--text-mute); font-weight: 500; }
.rev-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.rev-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.rev-card p { color: var(--text-dim); font-size: 13.5px; }

.moat {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  background: var(--bg-soft);
}
.moat h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 24px;
  color: var(--accent-2); letter-spacing: -0.01em;
}
.moat-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.moat-grid > div { display: flex; flex-direction: column; gap: 4px; }
.moat-grid strong { font-size: 14px; font-weight: 600; color: var(--text); }
.moat-grid span { font-size: 13px; color: var(--text-dim); }

/* ============== traction ============== */
.trac-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trac-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.trac-k {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.trac-v { font-size: 16px; font-weight: 600; color: var(--text); }

/* ============== timeline ============== */
.timeline {
  position: relative;
  border-left: 1px dashed var(--border-hl);
  padding-left: 32px;
  margin-left: 12px;
}
.tl-item {
  position: relative;
  padding-bottom: 36px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -39px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.1);
}
.tl-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.tl-body h4 {
  font-size: 18px; font-weight: 600; margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.tl-body p { color: var(--text-dim); font-size: 14px; }

/* ============== CTA ============== */
.section-cta {
  text-align: center;
  padding: 140px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(139,92,246,0.1), transparent 60%),
    linear-gradient(180deg, transparent, rgba(34,211,164,0.04));
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { margin: 0 auto 18px; }
.cta-inner .section-title { margin: 0 auto 24px; text-align: center; }
.cta-inner .lede { margin: 0 auto 36px; text-align: center; }
.cta-inner .hero-cta { justify-content: center; }

/* ============== footer ============== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-meta {
  display: flex; gap: 24px; font-size: 13px;
  color: var(--text-dim);
}
.footer-meta .dim { color: var(--text-mute); }

/* ============== public vs private comparison ============== */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 56px;
}
.vs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  position: relative;
}
.vs-card-public {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(160deg, rgba(239,68,68,0.04), var(--bg-card));
}
.vs-card-private {
  border-color: rgba(34, 211, 164, 0.3);
  background: linear-gradient(160deg, rgba(34,211,164,0.05), var(--bg-card));
}
.vs-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 18px;
}
.vs-label-public { color: rgba(239,68,68,0.7); }
.vs-label-private { color: var(--accent-2); }
.vs-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.vs-card > p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }
.vs-list { list-style: none; }
.vs-list li {
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-dim);
  position: relative; line-height: 1.4;
}
.vs-list-risk li::before {
  content: '×';
  position: absolute; left: 2px; top: 10px;
  color: rgba(239,68,68,0.65); font-weight: 700;
}
.vs-list-good li::before {
  content: '✓';
  position: absolute; left: 2px; top: 10px;
  color: var(--accent-2); font-weight: 700;
}
.vs-final {
  text-align: center;
  padding: 40px 48px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-soft);
  margin-bottom: 0;
}
.vs-final p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}
.vs-final strong { color: var(--text); font-weight: 600; }

/* ============== login modal ============== */
.login-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.login-overlay.active { opacity: 1; pointer-events: all; }
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hl);
  border-radius: var(--r);
  padding: 48px 44px;
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: 0 32px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(139,92,246,0.15);
  animation: fade .2s ease both;
}
.login-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-mute);
  transition: all .2s;
}
.login-close:hover { background: var(--bg-card-hl); color: var(--text); border-color: var(--border-hl); }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-logo-mark { color: var(--accent); font-size: 20px; }
.login-logo-text { font-size: 14px; font-weight: 700; letter-spacing: 0.18em; }
.login-title { font-size: 21px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.login-sub { font-size: 13.5px; color: var(--text-dim); margin-bottom: 32px; }
.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em;
  color: var(--text-mute); text-transform: uppercase;
  margin-bottom: 8px;
}
.login-field input {
  width: 100%; padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono); font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.login-field input:focus { border-color: var(--accent); }
.login-field input::placeholder { color: var(--text-mute); }
.login-error {
  font-size: 13px; color: rgba(239,68,68,0.9);
  margin-bottom: 16px; display: none;
  padding: 10px 14px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--r-sm);
}
.login-error.visible { display: block; }
.login-submit {
  width: 100%; padding: 13px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .2s; margin-top: 4px;
  font-family: var(--font-sans);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.4), 0 8px 24px -8px var(--accent-glow);
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(139,92,246,0.6), 0 12px 32px -8px var(--accent-glow); }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-btn-nav {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  color: var(--text-mute); padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--border);
  transition: all .2s; cursor: pointer;
  background: transparent; font-family: var(--font-sans);
}
.login-btn-nav:hover { border-color: var(--border-hl); background: var(--bg-card); color: var(--text); }

/* ── hamburger / nav drawer ── */
.nav-burger {
  display: flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer; color: var(--text);
  transition: all .2s;
  flex-shrink: 0;
}
.nav-burger:hover { background: var(--bg-card); border-color: var(--border-hl); }
.nav-drawer-backdrop {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.nav-drawer-backdrop.open { opacity: 1; pointer-events: all; }
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 90vw;
  z-index: 295;
  background: var(--bg-soft);
  border-left: 1px solid var(--border-hl);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow: hidden;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}
.nav-drawer-body a {
  display: block;
  padding: 15px 22px;
  font-size: 15px; font-weight: 500;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  transition: color .15s, background .15s;
}
.nav-drawer-body a:hover { color: var(--text); background: var(--bg-card); }
.nav-drawer-foot {
  padding: 22px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  flex-shrink: 0;
  align-items: flex-start;
}

/* ============== responsive ============== */
@media (max-width: 900px) {
  /* nav-links always hidden, burger always shown — no change needed at breakpoint */
  .nav-actions .btn-primary { display: none; }
  .nav-actions .login-btn-nav { display: none; }

  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .problem-grid, .duo, .rev-grid, .trac-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-arrow { transform: rotate(90deg); padding: 8px 0; }
  .moat-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 80px 0; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { margin-top: 50px; padding: 24px 18px; }
  .vs-grid { grid-template-columns: 1fr; }

  /* pitch-page specific */
  .tier-table { font-size: 13px; }
  .tier-table th, .tier-table td { padding: 10px 8px; }
  .bridge-callout { flex-direction: column; }
  .bridge-mid { transform: rotate(90deg); margin: 8px 0; }
  .econ-band { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .future-grid { grid-template-columns: repeat(2,1fr); }
  .endstate-banner { padding: 32px 24px; }
  .vs-card { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .moat-grid { grid-template-columns: 1fr; }
  .login-card { padding: 36px 24px; margin: 16px; }
  .vs-final { padding: 32px 24px; }

  /* typography scale-down */
  .hero-title, .section-title { font-size: clamp(28px, 8vw, 52px); }
  .hero-sub { font-size: 14.5px; }
  .section-title { line-height: 1.2; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 50px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .tier-table thead { display: none; }
  .tier-table tr { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .tier-table td { border: none; padding: 4px 12px; }
  .nav-inner { gap: 12px; padding: 14px 16px; }
}

/* fade-in */
.section, .hero { animation: fade .7s ease both; }
@keyframes fade { from {opacity:0; transform: translateY(8px);} to {opacity:1; transform: none;} }

/* ============================================================
   STRATEGIC BRANCH
   ============================================================ */
.strat-flow {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin: 0 auto 56px;
}
.strat-node {
  min-width: 280px; text-align: center;
  padding: 18px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
}
.strat-node-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em; color: var(--text-mute);
  margin-bottom: 6px; text-transform: uppercase;
}
.strat-node-name {
  font-size: 20px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text); margin-bottom: 4px;
}
.strat-node-sub { font-size: 13px; color: var(--text-dim); }
.strat-parent { border-color: var(--border-hl); }
.strat-parent .strat-node-name { color: var(--text); }
.strat-branch {
  border-color: rgba(139,92,246,0.45);
  background: linear-gradient(160deg, rgba(139,92,246,0.10), var(--bg-card));
  box-shadow: 0 0 0 1px rgba(139,92,246,0.15), 0 12px 40px -16px var(--accent-glow);
}
.strat-branch .strat-node-name { color: var(--accent); }
.strat-branch .strat-node-tag { color: var(--accent-2); }
.strat-arrow {
  font-size: 22px; color: var(--accent);
  line-height: 1; opacity: 0.8;
}

.strat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-bottom: 40px;
}
.strat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: all .25s;
}
.strat-card:hover { border-color: var(--border-hl); transform: translateY(-3px); }
.strat-card-hl {
  border-color: rgba(34,211,164,0.3);
  background: linear-gradient(160deg, rgba(34,211,164,0.05), var(--bg-card));
}
.strat-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.08em; margin-bottom: 8px;
}
.strat-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--accent-2); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
}
.strat-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 10px;
  letter-spacing: -0.01em; line-height: 1.3;
}
.strat-card p {
  color: var(--text-dim); font-size: 14px; line-height: 1.55;
  margin-bottom: 18px; flex: 1;
}
.strat-kpi {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--accent-2); padding-top: 14px;
  border-top: 1px solid var(--border);
}

.strat-thesis {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--r);
  padding: 24px 28px;
  background: var(--bg-soft);
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.strat-thesis-eye {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--accent-2);
  text-transform: uppercase; white-space: nowrap;
}
.strat-thesis p {
  font-size: 16px; color: var(--text); flex: 1; min-width: 240px;
  letter-spacing: -0.005em;
}

/* ============================================================
   ARCHITECTURE — visual flow (Linear / Mistral / VoltAgent style)
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 64px;
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background:
    radial-gradient(circle at 50% 0%, rgba(139,92,246,0.08), transparent 60%),
    var(--bg-soft);
  position: relative;
}
.flow::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: var(--r);
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 30%, transparent 90%);
}

.flow-stage {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
  position: relative; z-index: 1;
}
.flow-stage-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
}
.flow-stage-name {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.flow-card {
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hl);
  border-radius: 18px;
  background: var(--bg-card);
  color: var(--text-dim);
  position: relative;
  transition: all .3s ease;
}
.flow-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 14px 40px -16px var(--accent-glow);
}
.flow-card-icon { width: 32px; height: 32px; display: flex; }
.flow-card-icon svg { width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.flow-card-label {
  position: absolute;
  bottom: -28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--text-mute);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* core / highlighted node */
.flow-stage-core .flow-stage-name { color: var(--accent); }
.flow-card-core {
  background: linear-gradient(160deg, rgba(139,92,246,0.18), rgba(34,211,164,0.08));
  border-color: rgba(139,92,246,0.5);
  color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.2),
    0 18px 48px -16px var(--accent-glow);
}
.flow-card-core:hover { color: var(--accent); border-color: var(--accent); }
.flow-card-pulse {
  position: absolute; inset: -6px;
  border-radius: 22px;
  border: 1px solid rgba(139,92,246,0.35);
  animation: flowPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flowPulse {
  0%, 100% { opacity: 0; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.04); }
}

/* connector line between stages */
.flow-link {
  position: relative;
  height: 1px;
  width: 100%;
  min-width: 28px;
  background: linear-gradient(90deg, transparent, var(--border-hl) 20%, var(--border-hl) 80%, transparent);
  align-self: center;
  margin-top: -16px; /* align with card center */
}
.flow-link-dot {
  position: absolute;
  top: 50%; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  transform: translateY(-50%);
  animation: flowDot 3s linear infinite;
}
@keyframes flowDot {
  0%   { left: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* pillars */
.flow-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px 24px;
  transition: all .25s;
}
.pillar:hover { border-color: var(--border-hl); transform: translateY(-2px); }
.pillar-accent {
  background: linear-gradient(160deg, rgba(34,211,164,0.06), var(--bg-card));
  border-color: rgba(34,211,164,0.28);
}
.pillar-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--accent-2); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
}
.pillar-name {
  font-size: 18px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pillar-desc {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.55;
}

/* boundary callout */
.flow-boundary {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 26px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--r);
  background: var(--bg-soft);
}
.flow-boundary-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(34,211,164,0.1);
  color: var(--accent-2);
  flex-shrink: 0;
}
.flow-boundary-icon svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.flow-boundary-title {
  font-size: 15px; font-weight: 600;
  color: var(--text); letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.flow-boundary-sub {
  font-size: 13px; color: var(--text-dim);
}

/* responsive */
@media (max-width: 900px) {
  .strat-grid { grid-template-columns: 1fr; }
  .flow {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px;
  }
  .flow-link {
    width: 1px; height: 28px;
    min-width: 0; min-height: 28px;
    background: linear-gradient(180deg, transparent, var(--border-hl) 20%, var(--border-hl) 80%, transparent);
    margin: 0 auto;
    justify-self: center;
  }
  .flow-link-dot { animation: flowDotV 3s linear infinite; left: 50%; transform: translate(-50%, 0); top: 0; }
  @keyframes flowDotV {
    0%   { top: 0%;   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  .flow-pillars { grid-template-columns: 1fr; }
}


/* ============== deployment & security checks ============== */
.sec-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 48px;
  margin-bottom: 56px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.sec-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.4;
}
.sec-check svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--accent-2);
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 600px) {
  .sec-checks { grid-template-columns: 1fr; padding: 24px; }
}

/* ============== preview / video player ============== */
.preview-frame {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--bg-card-hl), var(--bg-card));
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(139,92,246,0.06);
  position: relative;
}
.preview-frame::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(139,92,246,0.18), transparent 70%);
  opacity: .6;
  z-index: 0;
}

.preview-chrome {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.55);
  backdrop-filter: blur(8px);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.preview-dots .dot-r { background: #ff5f57; }
.preview-dots .dot-y { background: #febc2e; }
.preview-dots .dot-g { background: #28c840; }

.preview-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}
.preview-title [data-i18n="prev.badge"] {
  color: var(--accent);
  letter-spacing: 0.22em;
}
.preview-rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34,211,164,0.55);
  animation: prevRec 1.8s ease-out infinite;
}
@keyframes prevRec {
  0%   { box-shadow: 0 0 0 0 rgba(34,211,164,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34,211,164,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,164,0); }
}
.preview-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: none;
  letter-spacing: 0;
}
.preview-sep { color: var(--text-mute); }

.preview-meta { margin-left: auto; }
.preview-pill-mini {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,164,0.35);
  background: rgba(34,211,164,0.08);
  color: var(--accent-2);
}

.preview-stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}
.preview-video {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.preview-bigplay {
  position: absolute; inset: 0; margin: auto;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(139,92,246,0.92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 20px 60px -10px rgba(139,92,246,0.6),
    0 0 0 0 rgba(139,92,246,0.45);
  transition: transform .2s ease, opacity .25s ease, background .2s ease;
  animation: prevPulse 2.4s ease-out infinite;
}
.preview-bigplay svg { width: 36px; height: 36px; margin-left: 4px; }
.preview-bigplay:hover { transform: scale(1.06); background: var(--accent); }
.preview-bigplay.is-hidden { opacity: 0; pointer-events: none; transform: scale(.85); animation: none; }
@keyframes prevPulse {
  0%   { box-shadow: 0 20px 60px -10px rgba(139,92,246,0.6), 0 0 0 0 rgba(139,92,246,0.45); }
  70%  { box-shadow: 0 20px 60px -10px rgba(139,92,246,0.6), 0 0 0 24px rgba(139,92,246,0); }
  100% { box-shadow: 0 20px 60px -10px rgba(139,92,246,0.6), 0 0 0 0 rgba(139,92,246,0); }
}

.preview-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.preview-stage:hover .preview-controls,
.preview-stage.is-active .preview-controls,
.preview-controls:focus-within { opacity: 1; transform: translateY(0); }

.pc-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  flex: none;
}
.pc-btn:hover { background: rgba(139,92,246,0.25); border-color: rgba(139,92,246,0.5); color: #fff; }
.pc-btn svg { width: 16px; height: 16px; }
.pc-btn-text {
  width: auto; padding: 0 10px;
  font-size: 12px; font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.pc-ico-pause, .pc-ico-mute { display: none; }
.preview-stage.is-playing .pc-ico-play { display: none; }
.preview-stage.is-playing .pc-ico-pause { display: block; }
.preview-stage.is-muted .pc-ico-vol { display: none; }
.preview-stage.is-muted .pc-ico-mute { display: block; }

.pc-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
}

.pc-scrub {
  flex: 1;
  height: 22px;
  display: flex; align-items: center;
  cursor: pointer;
  position: relative;
}
.pc-scrub-bar {
  position: relative;
  width: 100%; height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  overflow: visible;
  transition: height .15s ease;
}
.pc-scrub:hover .pc-scrub-bar { height: 6px; }
.pc-scrub-buf {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: rgba(255,255,255,0.18);
  border-radius: inherit;
}
.pc-scrub-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}
.pc-scrub-thumb {
  position: absolute;
  top: 50%; left: 0%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.35);
  transition: transform .15s ease;
}
.pc-scrub:hover .pc-scrub-thumb,
.preview-stage.is-active .pc-scrub-thumb { transform: translate(-50%, -50%) scale(1); }

.pc-vol { width: 80px; display: flex; align-items: center; }
.pc-vol input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
  outline: none;
}
.pc-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #fff;
}
.pc-vol input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #fff;
}

.preview-caption {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  background: rgba(10,10,15,0.4);
}
.preview-caption-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.preview-caption-item:last-child { border-right: none; }
.preview-caption-k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.preview-caption-v { color: var(--text); }

@media (max-width: 780px) {
  .preview-chrome { padding: 10px 12px; gap: 10px; }
  .preview-mono { display: none; }
  .preview-controls { gap: 8px; padding: 10px 8px; }
  .pc-vol, .pc-speed, .pc-time { display: none; }
  .preview-bigplay { width: 64px; height: 64px; }
  .preview-bigplay svg { width: 28px; height: 28px; }
  .preview-caption { grid-template-columns: 1fr; }
  .preview-caption-item { border-right: none; border-bottom: 1px solid var(--border); }
  .preview-caption-item:last-child { border-bottom: none; }
}
