*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000000;
  --text: #f0ede8;
  --text-muted: #888;
  --text-dim: #444;
  --accent: #4d9fff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--text); font-family: var(--font); overflow-x: hidden; }

/* ─── LOADER ─────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  z-index: 1000;
  transition: opacity 0.7s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-brand { font-size: 1rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text); }
.loader-bar-wrap { width: 180px; height: 1px; background: #1a1a1a; }
#loader-bar { height: 1px; width: 0%; background: var(--accent); transition: width 0.15s linear; }
#loader-percent { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; }

/* ─── SITE HEADER ────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  z-index: 200;
  mix-blend-mode: difference;
}
.logo { font-size: 0.95rem; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: 0.04em; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { font-size: 0.78rem; color: #fff; text-decoration: none; letter-spacing: 0.08em; opacity: 0.65; transition: opacity 0.2s; }
.site-header nav a:hover { opacity: 1; }

/* ─── HERO ───────────────────────────────────── */
.hero-standalone {
  height: 100vh;
  background: #000;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 8vw 12vh;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.7;
}
.hero-standalone > *:not(.hero-video) {
  position: relative;
  z-index: 1;
}
.hero-label {
  display: block;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-heading {
  font-size: clamp(5rem, 13vw, 15rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-heading span { display: block; overflow: hidden; }
.hero-tagline {
  margin-top: 30px;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.scroll-indicator {
  position: absolute; bottom: 36px; right: 8vw;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── SCROLL CONTAINER + CANVAS ─────────────── */
#scroll-container { height: 900vh; position: relative; }
.canvas-wrap {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
canvas { display: block; width: 100%; height: 100%; }

/* ─── DARK OVERLAY ───────────────────────────── */
#dark-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.91);
  opacity: 0;
  pointer-events: none;
  z-index: 9;
  transition: opacity 0.05s;
}

/* ─── MARQUEE ────────────────────────────────── */
.marquee-wrap {
  position: fixed;
  bottom: 6vh; left: 0; right: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 11;
}
.marquee-text {
  font-size: 10vw;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  opacity: 0.055;
  will-change: transform;
}

/* ─── SCROLL SECTIONS (fixed overlays) ──────── */
.scroll-section {
  position: fixed; inset: 0;
  display: flex; align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

/* Side alignment */
.align-left { justify-content: flex-start; }
.align-left .section-inner { padding-left: 5vw; max-width: 38vw; }

.align-right { justify-content: flex-end; }
.align-right .section-inner { padding-right: 5vw; max-width: 38vw; }

/* Dark backdrop behind section text for readability */
.section-inner {
  position: relative;
}
.section-inner::before {
  content: '';
  position: absolute;
  inset: -24px -28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  z-index: -1;
}

/* Section content */
.section-label {
  display: block;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 18px;
}
.section-body {
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 320px;
}
.section-price {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cta-button {
  display: inline-flex; align-items: center;
  margin-top: 20px;
  padding: 15px 38px;
  background: var(--text);
  color: #000;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.cta-button:hover { background: var(--accent); transform: scale(1.04); }

/* ─── STATS ──────────────────────────────────── */
.section-stats { justify-content: center; align-items: center; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  padding: 0 8vw;
  text-align: center;
  gap: 0 4vw;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat-row { display: flex; align-items: baseline; gap: 4px; }
.stat-number {
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  font-weight: 300;
  color: var(--accent);
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── DEMO NOTICE ────────────────────────────── */
.demo-notice {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 999;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ─── WAITLIST FORM ──────────────────────────── */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  max-width: 320px;
}
.waitlist-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}
.waitlist-btn { width: 100%; justify-content: center; }
.waitlist-msg {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-height: 1em;
}
.waitlist-msg.success { color: #4ade80; }
.waitlist-msg.error   { color: #f87171; }
.waitlist-msg.dupe    { color: var(--text-muted); }

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .align-left .section-inner,
  .align-right .section-inner { padding: 0 6vw; max-width: 100%; }
  .align-right { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 6vw; }
  .hero-heading { font-size: clamp(4rem, 16vw, 9rem); }
  .marquee-text { font-size: 14vw; }
  .section-heading { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .site-header { padding: 18px 24px; }
  .site-header nav { gap: 18px; }
}
