/* ============================================================
   OUTURE / coming-soon — self-contained
   Mirrors the brand tokens from src/app/globals.css and uses
   only locally-bundled fonts (no CDN dependency).
   ============================================================ */

/* ---------- Local fonts ---------- */
@font-face {
  font-family: "Alliance No.2";
  src: url("fonts/AllianceNo.2-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens (ported from globals.css) ---------- */
:root {
  --paper:        #F5F1EA;
  --paper-2:      #ECE6DA;
  --bone:         #FFFDF7;
  --ink:          #0A0A0A;
  --ink-2:        #2B2A28;
  --ink-3:        #6B6862;

  --moonshot-red:    #E8442C;
  --moonshot-amber:  #c9874b;
  --moonshot-cobalt: #1F3FB6;

  --outure-paper:  var(--paper);
  --outure-ink:    var(--ink);
  --outure-blue:   var(--moonshot-cobalt);
  --outure-accent: var(--moonshot-red);

  --font-display:  "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:     "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-wordmark: "Alliance No.2", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1280px;
  --gut:  48px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--outure-paper);
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden; /* full-bleed single screen */
}
::selection { background: var(--outure-paper); color: var(--outure-ink); }
a { color: inherit; text-decoration: none; }

/* ============================================================
   STAGE — full viewport canvas
   ============================================================ */
.o-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 4vw, 48px);
  isolation: isolate;
  overflow: hidden;
}

/* ============================================================
   ATMOSPHERE — radial gradients + grain
   Recipe ported from .o-hero-bg in globals.css
   ============================================================ */
.o-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 78% 28%, var(--moonshot-amber) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 22% 82%, var(--outure-blue) 0%, transparent 55%),
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  /* Will be drifted via JS for parallax. */
  transform: translate3d(0, 0, 0);
  transition: transform 1200ms var(--ease);
}
.o-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 253, 247, 0.04) 0%, transparent 60%);
}

/* Subtle grain — pure CSS via SVG data URI, layered at low opacity */
.o-grain {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.085;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 280px 280px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.o-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.o-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--outure-paper);
  -webkit-text-stroke: 0.4px currentColor;
  user-select: none;
}

.o-copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 241, 234, 0.6);
  text-transform: uppercase;
}

/* ============================================================
   CONTENT — center mass
   ============================================================ */
.o-content {
  position: relative; z-index: 1;
  align-self: center;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 3vh, 48px) 0;
  display: flex; flex-direction: column;
  gap: clamp(16px, 1.8vw, 26px);
}

/* Eyebrow with leading dash — exact port of .o-eyebrow */
.o-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--outure-paper);
  text-transform: lowercase;
}
.o-eyebrow-dash {
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* Headline — Space Grotesk 500, very tight */
.o-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--outure-paper);
  margin: 0;
  text-wrap: balance;
  max-width: 19ch;
}
/* The blue accent — same pattern as <em> across the codebase:
   same display font, NOT italic, weight 400, cobalt-blue. */
.o-headline-em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  color: var(--outure-blue);
  /* Lift the cobalt slightly so it reads on near-black */
  filter: saturate(1.08) brightness(1.18);
}

/* Lede */
.o-lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(245, 241, 234, 0.78);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

/* CTA row */
.o-cta-row {
  display: flex; align-items: baseline; gap: 24px 32px;
  flex-wrap: wrap;
  margin: 0;
}
.o-cta {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--outure-paper);
  border-bottom: 1px solid var(--outure-paper);
  padding-bottom: 2px;
  text-transform: lowercase;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), gap 220ms var(--ease);
}
.o-cta:hover {
  color: var(--moonshot-amber);
  border-bottom-color: var(--moonshot-amber);
  gap: 18px;
}
.o-cta-arrow {
  display: inline-block;
  transition: transform 220ms var(--ease);
}
.o-cta:hover .o-cta-arrow { transform: translateX(2px); }
.o-cta-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 241, 234, 0.55);
  text-transform: lowercase;
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.o-bottom {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 241, 234, 0.6);
  text-transform: lowercase;
}
.o-domain {
  font-feature-settings: "tnum" 1;
}

/* ============================================================
   PROGRESS BAR — indeterminate "almost there" sweep at page edge
   ============================================================ */
.o-progress {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(245, 241, 234, 0.08);
  overflow: hidden;
  z-index: 1;
}
.o-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 30%;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--outure-paper) 35%,
    var(--moonshot-amber) 65%,
    transparent 100%);
  animation: progressSweep 4.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes progressSweep {
  0%   { transform: translateX(-50%); width: 28%; opacity: 0.3; }
  50%  { width: 60%; opacity: 1; }
  100% { transform: translateX(380%); width: 28%; opacity: 0.3; }
}

/* ============================================================
   ENTRANCE STAGGER
   Initial state: blur(8px), translateY(24px), opacity 0
   Released by JS adding [data-anim-ready] to <html>.
   ============================================================ */
[data-anim] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

[data-anim-ready] [data-anim] {
  animation: revealUp 0.95s var(--ease) forwards;
}
@keyframes revealUp {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0px);
  }
}
[data-anim-ready] [data-anim="0"] { animation-delay: 0.10s; }
[data-anim-ready] [data-anim="1"] { animation-delay: 0.30s; }
[data-anim-ready] [data-anim="2"] { animation-delay: 0.45s; }
[data-anim-ready] [data-anim="3"] { animation-delay: 0.85s; }
[data-anim-ready] [data-anim="4"] { animation-delay: 1.05s; }
[data-anim-ready] [data-anim="5"] { animation-delay: 1.30s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .o-stage { padding: 24px; }

  .o-top { gap: 16px; }
  .o-wordmark { font-size: 18px; }
  .o-copyright { font-size: 10px; }

  .o-headline { line-height: 1.0; max-width: 12ch; }
  .o-cta-row { gap: 12px; }

  .o-bottom { font-size: 10px; }
}

@media (max-width: 380px) {
  .o-copyright { font-size: 9px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .o-bg { transition: none !important; }
  .o-progress-fill { animation: none !important; opacity: 0.5; width: 50%; }
}
