/* ─── TOKENS ─── */
:root {
  --bg:         oklch(88% 0.12 58);
  --bg-surface: oklch(84% 0.16 54);
  --bg-cta:     oklch(86% 0.14 58);
  --text:       oklch(34% 0.28 255);
  --text-muted: oklch(44% 0.23 255);
  --text-dim:   oklch(56% 0.17 255);
  --blue:       oklch(52% 0.30 258);
  --blue-dark:  oklch(34% 0.28 255);
  --orange-mid: oklch(72% 0.20 50);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(88vw, 1120px);
  --section-y: clamp(5rem, 10vw, 9rem);
  --h-pad:     clamp(1.5rem, 5vw, 3rem);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ol { list-style: none; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal          { opacity: 1; transform: none; }
  .hero-label,
  .hero-heading,
  .hero-sub,
  .hero-bottom     { opacity: 1; transform: none; }
}

/* ─── ACCESSIBILITY ─── */
.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;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ─── KEYFRAMES ─── */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

@keyframes particle-rise {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  15%  { opacity: var(--p-op, 0.4); }
  85%  { opacity: calc(var(--p-op, 0.4) * 0.35); }
  100% { opacity: 0; transform: translateY(-70px) translateX(var(--p-drift, 8px)); }
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--h-pad);
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.is-scrolled {
  background: oklch(88% 0.12 58 / 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--text);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid oklch(52% 0.30 258 / 0.45);
  padding: 0.5rem 1.25rem;
  border-radius: 1px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  border-color: var(--blue);
  background: oklch(52% 0.30 258 / 0.08);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(8rem, 16vw, 13rem) var(--h-pad) clamp(3rem, 5vw, 5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 65% 50%, oklch(82% 0.20 52 / 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 80% 25%, oklch(78% 0.24 46 / 0.4)  0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 40% 80%, oklch(80% 0.18 56 / 0.45) 0%, transparent 60%);
  animation: glow-breathe 11s ease-in-out infinite;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 70% at 0%  50%, oklch(86% 0.11 58 / 0.7) 0%, transparent 65%),
    radial-gradient(ellipse 60% 36% at 50% 0%,  oklch(86% 0.11 58 / 0.6) 0%, transparent 55%),
    radial-gradient(ellipse 50% 32% at 50% 100%,oklch(86% 0.11 58 / 0.5) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-rise linear infinite;
}

.particle--1 { width: 4px; height: 4px; left: 58%; top: 38%; background: var(--blue); filter: blur(1px); --p-op: 0.35; --p-drift:  10px; animation-duration: 14s; animation-delay:   0s; }
.particle--2 { width: 3px; height: 3px; left: 72%; top: 50%; background: var(--orange-mid); filter: blur(1px); --p-op: 0.4; --p-drift: -6px; animation-duration: 18s; animation-delay:  -5s; }
.particle--3 { width: 5px; height: 5px; left: 65%; top: 62%; background: var(--blue); filter: blur(2px); --p-op: 0.3; --p-drift:  12px; animation-duration: 22s; animation-delay:  -9s; }
.particle--4 { width: 3px; height: 3px; left: 80%; top: 40%; background: var(--blue); filter: blur(1px); --p-op: 0.28; --p-drift: -8px; animation-duration: 16s; animation-delay:  -3s; }
.particle--5 { width: 4px; height: 4px; left: 76%; top: 68%; background: var(--orange-mid); filter: blur(1px); --p-op: 0.38; --p-drift:  6px; animation-duration: 20s; animation-delay: -12s; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.label-sep { color: var(--blue); }

body.js-loaded .hero-label { opacity: 1; transform: translateY(0); }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease) 0.12s, transform 1.1s var(--ease) 0.12s;
}

body.js-loaded .hero-heading { opacity: 1; transform: translateY(0); }

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 50ch;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.05s var(--ease) 0.26s, transform 1.05s var(--ease) 0.26s;
}

body.js-loaded .hero-sub { opacity: 1; transform: translateY(0); }

.hero-bottom {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.48s;
}

body.js-loaded .hero-bottom { opacity: 1; }

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.hero-scroll:hover { color: var(--text-muted); }
.hero-scroll svg { animation: scroll-bob 2.8s ease-in-out infinite; }

/* ─── SECTIONS ─── */
.section {
  padding: var(--section-y) var(--h-pad);
}

.section--alt {
  background: var(--bg-surface);
  border-top: 1px solid oklch(78% 0.18 52);
  border-bottom: 1px solid oklch(78% 0.18 52);
}

.section--cta {
  background: var(--bg-cta);
  border-top: 1px solid oklch(80% 0.16 54);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 580px;
  text-align: center;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-body {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  line-height: 1.78;
}

/* ─── PROSE ─── */
.prose { max-width: 62ch; }

.prose p {
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.prose p:last-child { margin-bottom: 0; }

/* ─── STEPS ─── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 5vw, 4rem);
  margin-top: clamp(0.5rem, 2vw, 1rem);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 3.5vw, 3rem);
    align-items: start;
  }
}

.step { display: flex; flex-direction: column; gap: 0.875rem; }

.step-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: oklch(52% 0.30 258 / 0.2);
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.step-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── WAITLIST FORM ─── */
.waitlist-form { width: 100%; }

.form-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.form-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: oklch(93% 0.06 58);
  border: 1px solid oklch(76% 0.18 52);
  border-radius: 1px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 0.9375rem 1.25rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-row input[type="email"]::placeholder { color: var(--text-dim); }

.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  background: oklch(95% 0.04 60);
}

.form-row button {
  background: var(--blue);
  color: oklch(96% 0.01 60);
  border: none;
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9375rem 2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.form-row button:hover { background: var(--blue-dark); }

.form-success {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--blue);
}

/* ─── FOOTER ─── */
.footer {
  padding: 2.5rem var(--h-pad);
  border-top: 1px solid oklch(80% 0.16 52);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-dim);
}

.footer-copy a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-copy a:hover { color: var(--blue); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.36s; }
