/* ============ TOKENS ============ */
:root {
  --bg: #070914;
  --bg-2: #0c0f20;
  --surface: rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.10);
  --text: #f4f5fb;
  --muted: #a3a8c4;
  --muted-2: #7a809f;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --accent-3: #ff7a9c;
  --grad: linear-gradient(120deg, #8b7bff 0%, #6aa8ff 45%, #33e1d0 100%);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --maxw: 1200px;
  --radius: 18px;
  --ease: cubic-bezier(.22,.8,.28,1);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Film grain */
.grain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  width: min(var(--maxw), 92vw); margin-inline: auto;
  padding: 18px 0;
  transition: padding .35s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0 calc((100vw - min(var(--maxw), 92vw)) / -2);
  background: rgba(7,9,20,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
}
.nav.scrolled::before { opacity: 1; border-bottom-color: var(--line); }
.nav.scrolled { padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand-text span { color: var(--muted); font-weight: 400; }
.brand-mark { position: relative; width: 24px; height: 24px; display: inline-block; }
.brand-mark i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.brand-mark i:nth-child(1) { transform: translate(-110%,-50%); }
.brand-mark i:nth-child(3) { transform: translate(10%,-50%); }
.brand-mark i:nth-child(2) { opacity: .65; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 6px; }
.menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  padding: 13px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--text); color: #0a0c18; box-shadow: 0 8px 30px rgba(255,255,255,.12); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(255,255,255,.22); }
.btn-primary span, .btn-text span, .btn-ghost span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.25); }
.btn-text { background: transparent; color: var(--muted); padding-inline: 8px; }
.btn-text:hover { color: var(--text); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 100px; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; z-index: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; }
.glow-one { width: 620px; height: 620px; background: rgba(91,75,255,.22); top: -180px; right: -120px; animation: float 14s ease-in-out infinite; }
.glow-two { width: 520px; height: 520px; background: rgba(34,211,238,.14); bottom: -200px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-30px); } }
.hero-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: var(--surface);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 32px; backdrop-filter: blur(8px);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); } 70% { box-shadow: 0 0 0 12px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.hero-title { font-size: clamp(3.4rem, 9.5vw, 8.2rem); line-height: .95; font-weight: 500; letter-spacing: -.055em; }
.hero-title .line { display: block; }
.hero-title .italic-accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.hero-sub { max-width: 610px; margin: 28px auto 0; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 46px; color: var(--muted-2); font-size: 13px; }
.hero-meta strong { color: var(--text); font-weight: 500; }
.avatars { display: flex; }
.avatars span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; border: 2px solid var(--bg); margin-left: -9px; background: linear-gradient(135deg,#7c6cff,#22d3ee); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg,#ff7a9c,#ffb86b); }
.avatars span:nth-child(3) { background: linear-gradient(135deg,#22d3ee,#6aa8ff); }
.avatars span:nth-child(4) { background: linear-gradient(135deg,#f9d423,#ff7a9c); }
.avatars span:nth-child(5) { background: var(--surface-2); color: var(--muted); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--muted-2), transparent); animation: scrolldown 1.8s ease-in-out infinite; }
@keyframes scrolldown { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); white-space: nowrap; }
.marquee-track b { color: var(--accent); font-size: 14px; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 130px 0; position: relative; }
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 22px; font-weight: 500; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2, .idea h2, .journey h2, .cta h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; font-weight: 500; letter-spacing: -.04em; }
.section-head h2 em, .idea h2 em, .journey h2 em, .cta h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head > p:last-child { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

/* ---- IDEA ---- */
.idea { background: linear-gradient(180deg, transparent, rgba(124,108,255,.04), transparent); }
.idea-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.idea-copy h2 { margin-bottom: 26px; }
.idea-copy .lead { font-size: 1.2rem; color: var(--text); line-height: 1.6; margin-bottom: 20px; }
.idea-copy p:not(.kicker):not(.lead) { color: var(--muted); font-size: 1.02rem; margin-bottom: 26px; }
.link-arrow { color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .25s, color .25s; }
.link-arrow span { display: inline-block; transition: transform .25s; }
.link-arrow:hover { color: var(--accent-2); border-color: var(--accent-2); }
.link-arrow:hover span { transform: translate(3px,-3px); }
/* orbit visual */
.idea-visual { position: relative; aspect-ratio: 1; max-width: 480px; margin-inline: auto; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-ring.r1 { inset: 4%; }
.orbit-ring.r2 { inset: 20%; border-color: rgba(124,108,255,.22); }
.orbit-ring.r3 { inset: 36%; border-color: rgba(34,211,238,.18); }
.orbit-core { position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 70px rgba(124,108,255,.55); z-index: 3; }
.orbit-core span { font-family: var(--serif); font-style: italic; font-size: 26px; color: #fff; }
.orbit-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 20px rgba(124,108,255,.7); z-index: 2; }
.orbit-dot.d1 { top: 4%; left: 50%; animation: orbit1 9s linear infinite; }
.orbit-dot.d2 { top: 20%; right: 8%; background: var(--accent-2); animation: orbit2 12s linear infinite reverse; }
.orbit-dot.d3 { bottom: 8%; right: 22%; animation: orbit3 8s linear infinite; }
.orbit-dot.d4 { bottom: 24%; left: 4%; background: var(--accent-3); animation: orbit2 10s linear infinite; }
.orbit-dot.d5 { top: 40%; left: 20%; background: var(--accent-2); animation: orbit1 14s linear infinite reverse; }
@keyframes orbit1 { to { transform: rotate(360deg) translateX(190px) rotate(-360deg); } }
@keyframes orbit2 { to { transform: rotate(360deg) translateX(130px) rotate(-360deg); } }
@keyframes orbit3 { to { transform: rotate(360deg) translateX(160px) rotate(-360deg); } }

/* ---- HOW ---- */
.how { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 32px 36px; transition: transform .4s var(--ease), background .4s, border-color .4s; overflow: hidden; }
.step::after { content:""; position:absolute; inset:0; background: radial-gradient(400px circle at 0 0, rgba(124,108,255,.10), transparent 60%); opacity: 0; transition: opacity .4s; }
.step:hover { transform: translateY(-6px); background: var(--surface-2); border-color: rgba(255,255,255,.22); }
.step:hover::after { opacity: 1; }
.step-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted-2); }
.step-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin: 26px 0 22px; background: rgba(124,108,255,.12); color: var(--accent); border: 1px solid rgba(124,108,255,.22); }
.step-icon svg { width: 34px; height: 34px; }
.step h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---- FEATURES ---- */
.features { padding-top: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; transition: transform .4s var(--ease), border-color .4s, background .4s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); background: var(--surface-2); }
.feature-glyph { font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .97rem; }

/* ---- JOURNEY ---- */
.journey { background: linear-gradient(180deg, transparent, rgba(34,211,238,.035), transparent); }
.journey-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: start; }
.journey-intro { position: sticky; top: 130px; }
.journey-intro h2 { margin-bottom: 22px; }
.journey-intro p:last-child { color: var(--muted); max-width: 420px; }
.timeline { list-style: none; position: relative; padding-left: 40px; }
.timeline::before { content:""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.timeline li { position: relative; padding: 0 0 44px; }
.timeline li:last-child { padding-bottom: 0; }
.t-dot { position: absolute; left: -36px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 5px rgba(124,108,255,.12); }
.timeline li:nth-child(2) .t-dot { border-color: #6aa8ff; }
.timeline li:nth-child(3) .t-dot { border-color: var(--accent-2); }
.timeline li:nth-child(4) .t-dot { border-color: var(--accent-3); box-shadow: 0 0 0 5px rgba(255,122,156,.12); }
.timeline h4 { font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; letter-spacing: -.02em; }
.timeline p { color: var(--muted); }

/* ---- VOICES ---- */
.voices { border-top: 1px solid var(--line); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; transition: transform .4s var(--ease), border-color .4s; }
.quote:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); }
.quote blockquote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; letter-spacing: -.01em; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.q-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--grad); color: #fff; }
.quote:nth-child(2) .q-avatar { background: linear-gradient(135deg,#ff7a9c,#ffb86b); }
.quote:nth-child(3) .q-avatar { background: linear-gradient(135deg,#22d3ee,#6aa8ff); }
.quote figcaption strong { display: block; font-size: 14px; font-weight: 500; }
.quote figcaption small { color: var(--muted-2); font-size: 12px; }

/* ---- CTA ---- */
.cta { position: relative; overflow: hidden; padding: 150px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-glow { position: absolute; width: 800px; height: 500px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: radial-gradient(ellipse, rgba(124,108,255,.22), transparent 65%); filter: blur(30px); pointer-events: none; }
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin-bottom: 22px; }
.cta p:not(.kicker):not(.form-note) { color: var(--muted); max-width: 540px; font-size: 1.08rem; }
.signup { display: flex; gap: 10px; margin-top: 36px; width: min(480px, 100%); }
.signup input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 14px 20px; border-radius: 100px; outline: none; transition: border-color .25s, background .25s; }
.signup input::placeholder { color: var(--muted-2); }
.signup input:focus { border-color: var(--accent); background: var(--surface-2); }
.form-note { color: var(--muted-2); font-size: 12px; margin-top: 16px; }
.form-note.success { color: var(--accent-2); }
.form-note.error { color: var(--accent-3); }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 34px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-brand p { color: var(--muted-2); font-family: var(--serif); font-style: italic; font-size: 17px; margin-top: 14px; }
.footer-links { display: flex; gap: 28px; align-items: start; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .25s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; color: var(--muted-2); font-size: 12px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.footer-social a:hover { background: var(--surface-2); color: var(--text); border-color: rgba(255,255,255,.25); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { gap: 18px; }
  .nav-cta { display: none; }
  .idea-grid, .journey-grid { grid-template-columns: 1fr; gap: 50px; }
  .journey-intro { position: static; }
  .steps { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .idea-visual { max-width: 380px; }
}
@media (max-width: 680px) {
  .section { padding: 90px 0; }
  .menu-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(7,9,20,.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s var(--ease); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 6vw; font-size: 15px; }
  .nav-links a + a { border-top: 1px solid var(--line); }
  .menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: min(300px, 100%); }
  .hero-meta { flex-direction: column; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 18px; }
  .signup { flex-direction: column; }
  .signup input, .signup .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  #heroCanvas { display: none; }
}
