/* Accelereight v2 — Resend-style hero, locked spec.
   Canvas #000, Instrument Serif H1, Geist body/mono, atmospheric accent #ff801f. */

/* ────────────────────────────────────────────────────────────────────────────
   NOTE: Inter Tight 500 is a placeholder substitute for PP Neue Montreal.
   When licensed (https://pangrampangram.com/products/neue-montreal),
   swap --font-display to ['"PP Neue Montreal"', '"Inter Tight"', 'sans-serif']
   and adjust weight 500 → 500 (no change), letter-spacing stays -0.045em.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --canvas:           #000000;
  --surface-card:     #0a0a0c;
  --surface-elevated: #101012;
  --surface-deep:     #06060a;
  --hairline:         rgba(255,255,255,0.06);
  --hairline-strong:  rgba(255,255,255,0.14);
  --divider-soft:     rgba(255,255,255,0.04);
  --ink:              #fcfdff;
  --body:             rgba(252,253,255,0.86);
  --charcoal:         rgba(252,253,255,0.70);
  --ash:              #888e90;
  --stone:            #464a4d;
  --accent:           #ff801f;
  --live:             #11ff99;
  --font-sans:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
  --font-serif:   'Instrument Serif', 'Times New Roman', serif;
  --font-display: 'Inter Tight', 'Inter Tight Variable', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--canvas); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'ss03';
}
::selection { background: var(--ink); color: var(--canvas); }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar      { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 3px; }

/* ============== HEADER ============== */
.main-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
}
.main-header.is-scrolled {
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 15px; letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-wrap: nowrap;
}
.brand .brand-word, .brand .brand-sep { white-space: nowrap; }
.brand-mark {
  color: var(--ink);
  display: inline-block;
  flex-shrink: 0;
  /* SVG is a square viewBox with chevrons offset slightly below center
     so flex-centering lands on the cap-optical center of "acclr8" */
}
.brand-word {
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand-eight {
  color: var(--accent);
  font-weight: 700;
}
.brand-sep {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--charcoal);
  letter-spacing: 0;
}
.header-nav {
  display: none;
  gap: 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}
@media (min-width: 900px) { .header-nav { display: flex; } }
.header-nav a { transition: color .2s; }
.header-nav a:hover { color: var(--ink); }
.header-cta {
  display: none;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: filter .2s;
}
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
.header-cta:hover { filter: brightness(1.1); }

/* ============== HERO ============== */
.hero {
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 96px clamp(20px, 4vw, 48px) 8px;
  overflow: hidden;
  background: var(--canvas);
  isolation: isolate;
}

/* Shader layer — opacity comes from canvas content, not from this wrapper */
.hero-shader {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0;            /* GSAP fades to 1 */
}
.hero-shader canvas { width: 100%; height: 100%; display: block; }

/* Soft side-vignette only — DON'T crush the whole frame back to pure black */
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.45) 100%);
}

/* Content layout — two-column on desktop, stacks on mobile */
.hero-content {
  position: relative; z-index: 5;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 860px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.hero-copy {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
@media (min-width: 860px) {
  .hero-copy { align-items: flex-start; text-align: left; }
}

/* Pill */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: rgba(16, 16, 18, 0.4);
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  white-space: nowrap;
}
.hero-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(17,255,153,0.4);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(17,255,153,0.4); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 4px rgba(17,255,153,0); }
}

/* H1 — display family (Inter Tight, placeholder for PP Neue Montreal) */
.hero-h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-h1 .line { display: block; white-space: nowrap; }
.hero-h1 i {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  /* solid #ff801f per brief — no gradient text */
}

/* Subhead */
.hero-sub {
  margin: 0 0 44px;
  max-width: 560px;
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--charcoal);
  text-wrap: balance;
  font-weight: 400;
}
.sub-em { color: var(--ink); font-weight: 500; }
@media (min-width: 860px) { .hero-sub { margin-left: 0; margin-right: auto; } }

/* CTAs */
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 860px) { .hero-cta-row { justify-content: flex-start; } }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .2s, background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { background: var(--surface-elevated); }
.btn-arrow { font-family: var(--font-sans); }

/* Cube wrapper */
.hero-cube {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
}
.hero-cube canvas { display: block; width: 100% !important; height: 100% !important; }

/* ============== "Beyond the hero" placeholder ============== */
.placeholder-band {
  border-top: 1px solid var(--hairline);
  padding: 96px clamp(20px, 4vw, 48px);
  text-align: center;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.placeholder-band b {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
