/* ============================================================
   Clamor — marketing site styles
   Editorial-cinematic. Tokens come from tokens.css (linked first).
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  background: var(--curtain);
  color: var(--fg);
  font-family: var(--font-program);
  overflow-x: hidden;
}
::selection { background: var(--tint-marquee-20); color: var(--house-lights); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* The marquee glow — the only screen-level gradient, top-centered amber haze */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(244,184,96,0.10), transparent 60%),
    radial-gradient(80% 50% at 50% 108%, rgba(255,77,77,0.05), transparent 60%);
}
.shell { position: relative; z-index: 1; }

/* ---- shared layout ---------------------------------------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-marquee);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--marquee);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow.muted { color: var(--audience); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--marquee); }
.eyebrow .dot.live { background: var(--on-air); }

.serif { font-family: var(--font-marquee); letter-spacing: var(--tracking-marquee); }
.section-title {
  font-family: var(--font-marquee);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  color: var(--house-lights);
  margin: 16px 0 0;
  text-wrap: balance;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--audience);
  max-width: 56ch;
  text-wrap: pretty;
}

/* digit / mono atoms */
.digit { font-family: var(--font-digit); font-variant-numeric: tabular-nums; }

/* ---- nav --------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10,14,26,0.62);
  border-bottom: 1px solid var(--velvet);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font-family: var(--font-marquee);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.4px;
  color: var(--marquee);
  white-space: nowrap;
}
.wordmark.foot { font-size: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--audience);
  transition: color 160ms var(--motion-glide);
}
.nav-links a:hover { color: var(--house-lights); }
.nav-cta {
  font-size: 13px; font-weight: 600; color: var(--curtain);
  background: var(--marquee);
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: transform 120ms ease-out, filter 160ms;
}
.nav-cta:hover { filter: brightness(1.06); }
.nav-cta:active { transform: scale(0.97); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 120ms ease-out, filter 160ms, background 200ms, border-color 200ms;
  white-space: nowrap;
}
.btn-primary { background: var(--marquee); color: var(--curtain); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--velvet);
  color: var(--house-lights);
}
.btn-ghost:hover { border-color: rgba(244,184,96,0.4); background: rgba(244,184,96,0.06); }
.btn svg { width: 18px; height: 18px; }

/* ---- hero -------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-headline {
  font-family: var(--font-marquee);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.02;
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero-headline .accent-italic { font-style: italic; color: var(--house-lights); }
.hero-headline .accent-amber { color: var(--marquee); font-style: normal; }
.hero-sub { margin-top: 24px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-fineprint {
  margin-top: 18px; font-size: 13px; color: var(--audience);
  display: flex; align-items: center; gap: 8px;
}

/* centered layout variant */
.hero[data-layout="centered"] .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.hero[data-layout="centered"] .hero-copy { max-width: 760px; }
.hero[data-layout="centered"] .lede { margin-left: auto; margin-right: auto; }
.hero[data-layout="centered"] .hero-actions,
.hero[data-layout="centered"] .hero-fineprint { justify-content: center; }
.hero[data-layout="centered"] .hero-stage { margin-top: 18px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-copy { max-width: 640px; }
  .hero-actions, .hero-fineprint { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
}

/* ---- phone ------------------------------------------------- */
.hero-stage { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 314px;
  aspect-ratio: 314 / 648;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #20263a, #0d1120);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 40px 80px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04);
}
.phone.bare {
  background: none; padding: 0; box-shadow: none; border-radius: var(--radius-card);
  width: 320px; aspect-ratio: 320 / 620;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 34px; overflow: hidden;
  background: var(--curtain);
  border: 1px solid rgba(255,255,255,0.05);
}
.phone.bare .phone-screen { border-radius: var(--radius-card); border-color: var(--velvet); }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 28px; background: #05070e; border-radius: 999px; z-index: 6;
}
.phone.bare .phone-notch { display: none; }

/* room backdrop (blurred poster) */
.room-backdrop {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #6B2B2B 0%, #2A1414 82%);
  filter: blur(34px) brightness(0.62);
  transform: scale(1.25);
  transition: filter var(--duration-glide) var(--motion-glide);
}
.room.is-live .room-backdrop { filter: blur(34px) brightness(0.92); }
.room-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0.72) 55%, rgba(10,14,26,0.92) 100%);
}
.room { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* room header */
.room-head {
  position: relative; z-index: 3;
  padding: 40px 16px 12px;
  display: flex; align-items: center; gap: 10px;
}
.room-title { flex: 1; min-width: 0; }
.room-title .t {
  font-family: var(--font-marquee); font-weight: 700; font-size: 16px;
  letter-spacing: 0.3px; color: var(--house-lights);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.room-title .s { font-size: 11px; color: var(--audience); margin-top: 2px; }
.glass-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-family: var(--font-digit); font-size: 11px; font-weight: 600;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  white-space: nowrap;
}
.pill-rsvp { background: var(--tint-marquee-12); border: 1px solid rgba(244,184,96,0.22); color: var(--house-lights); }
.pill-live {
  background: var(--tint-onair-18); border: 1px solid rgba(255,77,77,0.32);
  color: var(--house-lights);
  transition: box-shadow var(--duration-glide) var(--motion-glide);
}
.room.is-live .pill-live.pulsing { box-shadow: var(--shadow-glow-onair); }
.pill-live .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--on-air); }
.pulse-scale { animation: ti-pulse-scale 1600ms var(--motion-snap); }
.breathe { animation: ti-breathe var(--duration-breathe) ease-in-out infinite; }

/* watching count */
.room-watch {
  position: relative; z-index: 3;
  margin: 0 16px 4px; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-digit); font-size: 11px; color: var(--audience);
}
.room-watch .wd { width: 6px; height: 6px; border-radius: 50%; background: var(--on-air); }

/* messages */
.room-msgs {
  position: relative; z-index: 3; flex: 1;
  padding: 8px 16px 6px; display: flex; flex-direction: column; gap: 13px;
  justify-content: flex-end; overflow: hidden;
}
.msg { display: flex; flex-direction: column; gap: 6px;
  animation: msg-in 440ms var(--motion-snap) both; }
@keyframes msg-in { from { transform: translateY(10px); } to { transform: none; } }
.msg-head { display: flex; align-items: center; gap: 8px; }
.msg-av {
  width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
}
.msg-name { font-family: var(--font-marquee); font-weight: 700; font-size: 12.5px; letter-spacing: 0.3px; color: var(--house-lights); }
.msg-min {
  font-family: var(--font-digit); font-size: 10px; font-weight: 600; color: var(--house-lights);
  background: var(--tint-marquee-12); border: 1px solid rgba(244,184,96,0.22);
  border-radius: 999px; padding: 1px 7px;
}
.msg-bubble {
  margin-left: 32px; max-width: 86%;
  padding: 9px 13px; border-radius: var(--radius-bubble);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; line-height: 1.4; color: var(--house-lights);
}

/* pre-show overlay (rendered only while not live) */
.room-curtain {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(10,14,26,0.55);
  backdrop-filter: blur(2px);
}
.room-curtain .cd-label {
  font-family: var(--font-marquee); font-style: italic; font-size: 16px; color: var(--audience);
}
.room-curtain .cd-count { font-family: var(--font-digit); font-size: 44px; font-weight: 600; color: var(--marquee); }
.room-curtain .cd-sub { font-size: 11px; color: var(--audience); letter-spacing: 0.4px; }

/* composer */
.room-composer {
  position: relative; z-index: 3; margin: 4px 14px 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 16px; border-radius: var(--radius-composer);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-composer);
  transition: background 300ms, border-color 300ms;
}
.room.is-live .room-composer { background: var(--tint-onair-14); border-color: rgba(255,77,77,0.22); }
.room-composer .ph { flex: 1; font-size: 13px; color: var(--audience); }
.room-composer .send {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--marquee); color: var(--curtain);
}
.room-composer .send svg { width: 16px; height: 16px; }

/* keyframes shared */
@keyframes ti-breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes ti-pulse-scale { 0%,100% { transform: scale(1); } 45% { transform: scale(1.16); } }

/* ---- marquee ticker --------------------------------------- */
.ticker {
  border-top: 1px solid var(--velvet);
  border-bottom: 1px solid var(--velvet);
  padding: 20px 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; align-items: center; gap: 0; animation: ticker-scroll 34s linear infinite; }
.ticker-item {
  font-family: var(--font-marquee); font-size: 24px; font-weight: 600;
  letter-spacing: 0.4px; color: var(--house-lights); padding: 0 26px;
  display: inline-flex; align-items: center; gap: 26px;
}
.ticker-item .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--marquee); flex-shrink: 0; }
.ticker-item.dim { color: var(--audience); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---- how it works ----------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; }
.steps {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.step { padding: 0 32px; position: relative; }
.step + .step { border-left: 1px solid var(--velvet); }
.step-num {
  font-family: var(--font-marquee); font-weight: 700; font-style: italic;
  font-size: 56px; line-height: 1; color: var(--marquee);
}
.step-title { font-family: var(--font-marquee); font-weight: 700; font-size: 21px; letter-spacing: 0.3px; color: var(--house-lights); margin: 20px 0 10px; }
.step-body { font-size: 15px; line-height: 1.55; color: var(--audience); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { padding: 0; } .step + .step { border-left: none; padding-top: 36px; border-top: 1px solid var(--velvet); }
}

/* ---- features --------------------------------------------- */
.features-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature {
  padding: 26px 24px 28px; border-radius: var(--radius-editorial);
  background: var(--tint-marquee-08); border: 1px solid rgba(244,184,96,0.10);
  transition: transform 200ms var(--motion-glide), border-color 200ms, background 200ms;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(244,184,96,0.24); background: var(--tint-marquee-10); }
.feature-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint-marquee-12); color: var(--marquee);
  border: 1px solid rgba(244,184,96,0.2); margin-bottom: 18px;
}
.feature-ico svg { width: 21px; height: 21px; }
.feature.live .feature-ico { background: var(--tint-onair-18); color: var(--on-air); border-color: rgba(255,77,77,0.28); }
.feature-title { font-family: var(--font-marquee); font-weight: 700; font-size: 19px; letter-spacing: 0.3px; color: var(--house-lights); margin-bottom: 9px; }
.feature-body { font-size: 14px; line-height: 1.55; color: var(--audience); }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ---- final cta -------------------------------------------- */
.finale { text-align: center; padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.finale .section-title { font-size: clamp(34px, 5.4vw, 64px); margin: 18px auto 0; max-width: 16ch; }
.finale .lede { margin: 22px auto 0; text-align: center; }
.finale .btn { margin-top: 36px; }
.finale-glow {
  position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%);
  width: 460px; height: 200px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255,77,77,0.16), transparent 70%);
}

/* ---- footer ----------------------------------------------- */
.footer { border-top: 1px solid var(--velvet); padding: 56px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .tag { margin-top: 12px; font-size: 14px; color: var(--audience); max-width: 30ch; line-height: 1.5; }
.footer-col h4 {
  font-family: var(--font-program); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--audience); margin: 0 0 14px; font-weight: 600;
}
.footer-col a { display: block; font-size: 14px; color: var(--house-lights); margin-bottom: 10px; opacity: 0.82; transition: opacity 160ms; }
.footer-col a:hover { opacity: 1; color: var(--marquee); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--velvet);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--audience);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---- scroll reveal ---------------------------------------- */
/* transform-only reveal: visible even if time-based CSS is frozen */
.reveal { transform: translateY(22px); transition: transform 720ms var(--motion-glide); will-change: transform; }
.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  .ticker-track, .breathe, .pulse-scale, .msg { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- legal pages ------------------------------------------ */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 100px; }
.legal h1 { font-family: var(--font-marquee); font-weight: 700; font-size: clamp(34px,5vw,52px); letter-spacing: 0.3px; margin: 0 0 8px; }
.legal .updated { font-family: var(--font-digit); font-size: 12px; color: var(--audience); margin-bottom: 40px; }
.legal h2 { font-family: var(--font-marquee); font-weight: 700; font-size: 22px; letter-spacing: 0.3px; color: var(--house-lights); margin: 40px 0 12px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--audience); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a.inline { color: var(--marquee); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--house-lights); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--audience); margin-bottom: 40px; }
.back-link:hover { color: var(--marquee); }
