/* SUNS GONE — Tesla-grade scroll experience, original identity */
:root {
  --bg:       oklch(14% 0.02 270);
  --bg-deep:  oklch(9%  0.02 270);
  --paper:    oklch(95% 0.012 85);
  --ink:      oklch(20% 0.02 270);
  --surface:  oklch(20% 0.03 270 / 0.55);
  --line:     oklch(70% 0.02 270 / 0.14);
  --text:     oklch(96% 0.01 270);
  --muted:    oklch(72% 0.02 270);
  --faint:    oklch(58% 0.02 270);
  --accent:   oklch(78% 0.16 195);
  --accent-2: oklch(70% 0.2 300);
  --ember:    oklch(72% 0.19 45);
  --glow:     oklch(85% 0.18 195 / 0.5);

  --display: 'Sora', system-ui, sans-serif;
  --mono: 'Space Grotesk', ui-monospace, monospace;
  --hero: clamp(3.2rem, 1rem + 12vw, 10rem);
  --h2: clamp(2.6rem, 1rem + 8vw, 7rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-deep); color: var(--text); font-family: var(--display);
  font-weight: 300; -webkit-font-smoothing: antialiased; overflow: hidden; }

/* fixed atmosphere */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.aurora { position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 80% 6%, oklch(55% 0.19 45 / 0.4), transparent 68%),
    radial-gradient(55% 45% at 18% 92%, oklch(45% 0.15 195 / 0.42), transparent 72%),
    radial-gradient(80% 60% at 50% 50%, var(--bg), var(--bg-deep) 90%);
  animation: drift 22s var(--ease) infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(-2%,-1%,0) scale(1.05); } to { transform: translate3d(2%,2%,0) scale(1.15); } }
.stars { position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, oklch(95% 0 0/.9), transparent),
    radial-gradient(1px 1px at 75% 18%, oklch(95% 0 0/.7), transparent),
    radial-gradient(1.5px 1.5px at 45% 70%, oklch(95% 0 0/.8), transparent),
    radial-gradient(1px 1px at 88% 60%, oklch(90% 0 0/.6), transparent),
    radial-gradient(1px 1px at 12% 82%, oklch(95% 0 0/.7), transparent),
    radial-gradient(1.5px 1.5px at 62% 42%, oklch(95% 0 0/.7), transparent);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }
.grain { position: absolute; inset: 0; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem,2vw,1.6rem) clamp(1.2rem,5vw,4rem);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease); }
.nav.scrolled { backdrop-filter: blur(14px); background: oklch(9% 0.02 270 / 0.5);
  border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; letter-spacing: .36em;
  font-family: var(--mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: clamp(1rem,2.5vw,2.4rem); align-items: center; }
.nav-links a { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color .3s var(--ease); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); outline: none; }
.nav-links .reserve-link { color: var(--text); border: 1px solid var(--line);
  padding: .5rem .9rem; border-radius: 999px; }
.nav-links .reserve-link:hover { border-color: var(--accent); background: oklch(78% 0.16 195 / 0.08); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* snap scroller */
.snap { position: relative; z-index: 1; height: 100dvh; overflow-y: scroll;
  scroll-snap-type: y proximity; scroll-behavior: smooth; }
.panel { position: relative; min-height: 100dvh; scroll-snap-align: start;
  display: grid; place-items: center; padding: clamp(5rem,10vh,7rem) clamp(1.2rem,5vw,4rem) clamp(2rem,6vh,4rem); }
.inner { width: 100%; max-width: 1180px; text-align: center; }

/* reveal */
.reveal { opacity: 0; transform: translate3d(0,28px,0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.panel.in .reveal { opacity: 1; transform: none; }
.panel.in .reveal.d1 { transition-delay: .08s; }
.panel.in .reveal.d2 { transition-delay: .18s; }
.panel.in .reveal.d3 { transition-delay: .28s; }
.panel.in .reveal.d4 { transition-delay: .38s; }

.eyebrow { font-family: var(--mono); font-size: clamp(.7rem,1.4vw,.84rem);
  letter-spacing: .5em; text-transform: uppercase; color: var(--accent); margin-bottom: clamp(1rem,3vw,1.8rem); }
.overline { font-family: var(--mono); font-size: .76rem; letter-spacing: .42em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
h1 { font-weight: 700; font-size: var(--hero); line-height: .86; letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text) 30%, oklch(70% 0.06 270) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-weight: 700; font-size: var(--h2); line-height: .9; letter-spacing: -0.03em; }
.spark { background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px var(--glow)); }
.sub { margin: clamp(1.3rem,3vw,2rem) auto 0; max-width: 42ch;
  font-size: clamp(1.02rem,1.05rem+.4vw,1.32rem); color: var(--muted); line-height: 1.5; }

/* CTA buttons */
.ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(1.8rem,4vw,2.8rem); }
.btn { font-family: var(--mono); font-weight: 600; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 999px;
  padding: .95rem 2rem; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.btn-primary { color: var(--bg-deep); background: linear-gradient(110deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px oklch(78% 0.16 195 / 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px oklch(78% 0.16 195 / 0.45); }
.btn-ghost { color: var(--text); border-color: var(--line); background: oklch(70% 0.02 270 / 0.06); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.light .btn-ghost { color: var(--ink); border-color: oklch(20% 0.02 270 / 0.2); }
.light .btn-ghost:hover { color: oklch(45% 0.16 250); border-color: oklch(45% 0.16 250); }

/* chevron */
.chev { position: absolute; bottom: clamp(1.6rem,4vh,2.6rem); left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; color: var(--faint); animation: bob 2.4s ease-in-out infinite; background: none; border: none; cursor: pointer; }
.chev svg { width: 100%; height: 100%; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

/* car */
.stagecar { position: relative; width: min(620px, 86vw); margin: clamp(1rem,3vw,2.2rem) auto 0; }
.car { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 64px oklch(78% 0.16 195 / 0.22)); }
.car .line { fill: none; stroke: url(#edge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.car .wheel { fill: none; stroke: var(--text); stroke-width: 2; opacity: .85; }
.car .underglow { stroke: url(#edge); stroke-width: 6; stroke-linecap: round; opacity: .6; filter: blur(6px); animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:.35; } 50%{ opacity:.8; } }
.light .car .wheel { stroke: var(--ink); }

/* specs */
.specs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem,5vw,4.5rem); margin: clamp(2rem,5vw,3rem) auto 0; }
.spec { display: flex; flex-direction: column; gap: .25rem; }
.spec b { font-family: var(--mono); font-weight: 700; font-size: clamp(1.6rem,3vw,2.4rem); letter-spacing: -0.02em; }
.spec b small { font-size: .5em; letter-spacing: .05em; }
.spec span { font-family: var(--mono); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--faint); }

/* light manifesto panel */
.panel.light { background: var(--paper); color: var(--ink); }
.panel.light h2, .panel.light .lead { color: var(--ink); }
.panel.light .overline { color: oklch(45% 0.16 250); }
.lead { max-width: 24ch; margin: 0 auto; font-weight: 600; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,4vw,3rem); margin-top: clamp(2.5rem,6vw,4rem); }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; gap: 2rem; } }
.pillar { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.pillar svg { width: 40px; height: 40px; color: oklch(45% 0.16 250); }
.pillar h3 { font-family: var(--mono); font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; }
.pillar p { font-size: .98rem; color: oklch(40% 0.02 270); max-width: 26ch; line-height: 1.5; }

/* notify */
.notify { display: flex; gap: .6rem; max-width: 460px; margin: clamp(1.8rem,4vw,2.6rem) auto 0; flex-wrap: wrap; justify-content: center; }
.notify input { flex: 1 1 220px; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .95rem 1.3rem; color: var(--text); font-family: var(--mono); font-size: .9rem; backdrop-filter: blur(12px); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.notify input::placeholder { color: var(--faint); }
.notify input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px oklch(78% 0.16 195 / 0.14); }
.said { display: block; width: 100%; text-align: center; font-family: var(--mono); font-size: .8rem;
  color: var(--accent); margin-top: 1rem; min-height: 1.2em; }

/* footer pinned in reserve panel */
.foot { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-wrap: wrap;
  gap: .8rem 1.6rem; align-items: center; justify-content: space-between;
  padding: clamp(1.2rem,3vw,2rem) clamp(1.2rem,5vw,4rem);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); border-top: 1px solid var(--line); }
.foot a { color: var(--muted); text-decoration: none; transition: color .3s var(--ease); }
.foot a:hover { color: var(--accent); }
.fam { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* section dots */
.dots { position: fixed; right: clamp(1rem,2vw,1.8rem); top: 50%; transform: translateY(-50%);
  z-index: 30; display: flex; flex-direction: column; gap: .9rem; }
@media (max-width: 640px) { .dots { display: none; } }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: oklch(70% 0.02 270 / 0.3); transition: background .3s var(--ease), transform .3s var(--ease); padding: 0; }
.dots button:hover { background: var(--muted); }
.dots button.active { background: var(--accent); transform: scale(1.4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
