/* ==========================================================================
   BROADCASTIFY STUDIO — MAIN STYLES
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: transparent;
  color: var(--text-hi);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { background: transparent; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--signal-blue); color: #fff; }

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(52, 231, 255, 0.10);
  border: 1px solid rgba(52, 231, 255, 0.22);
}
.eyebrow.on-light {
  color: var(--signal-blue);
  background: rgba(11, 110, 255, 0.08);
  border-color: rgba(11, 110, 255, 0.18);
}

h1, h2, h3, .num {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  color: var(--text-hi);
  max-width: 16ch;
}
.section-title.on-light { color: var(--text-hi-on-light); }
.section-sub {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-lo);
  font-size: 17px;
  line-height: 1.65;
  max-width: 58ch;
  margin-top: 18px;
}
.section-sub.on-light { color: var(--text-lo-on-light); }

section { position: relative; z-index: 1; }
.section-pad { padding: clamp(64px, 10vw, 128px) 0; }

/* Glass panels over the fixed, site-wide video background. Each surface
   tints and blurs the footage behind it rather than hiding it outright,
   so the production reel stays visible through the whole scroll. */
/* Adaptive Liquid Glass: main.js measures the actual brightness of the
   video frame behind the page and writes it into --adaptive-dark-alpha
   and --adaptive-light-alpha. Dark surfaces automatically deepen when the
   footage behind them turns bright, and light surfaces automatically
   lighten when the footage behind them turns dark, so text stays legible
   whether the reel is showing deep navy or blown-out neon. */
.dark-surface {
  background: rgb(10 15 28 / var(--adaptive-dark-alpha, 0.42));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.6s ease;
}
.void-surface {
  background: rgb(5 7 13 / var(--adaptive-dark-alpha, 0.42));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background-color 0.6s ease;
}
.light-surface {
  background: rgb(245 247 251 / var(--adaptive-light-alpha, 0.6));
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  color: var(--text-hi-on-light);
  transition: background-color 0.6s ease;
}

/* ---- HUD corner brackets: the recurring signature motif ---- */
.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after,
.hud-frame .hb-tl, .hud-frame .hb-tr, .hud-frame .hb-bl, .hud-frame .hb-br { content: ''; }
.hud-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--cyan);
  opacity: 0.85;
  pointer-events: none;
}
.hud-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.hud-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.hud-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.hud-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), padding 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 9, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  padding-top: 11px; padding-bottom: 11px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-lo);
}
.nav-links a { transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text-hi); }

.nav-signin {
  font-weight: 600;
  color: var(--text-hi);
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--hairline-strong);
  transition: border-color 0.2s, background 0.2s;
}
.nav-signin:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--signal-blue), #2478ff);
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(11,110,255,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(11,110,255,0.5); }

.nav-toggle { display: none; }

/* ==========================================================================
   SITE-WIDE VIDEO BACKGROUND — fixed behind the entire page.
   Scrubbed across total document scroll in main.js.
   ========================================================================== */

.site-video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--void);
}
.site-video-bg .video-fallback {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(155,77,255,0.35), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(52,231,255,0.25), transparent 50%),
    linear-gradient(160deg, #060b16 0%, #0a1224 45%, #060814 100%);
}
.site-video-bg canvas {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  display: block;
}

/* A gentle, unmoving vignette so text stays legible over bright footage,
   independent of which part of the video is currently showing. */
.site-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.35) 0%, rgba(5,7,13,0.45) 50%, rgba(5,7,13,0.65) 100%);
}

/* ==========================================================================
   HERO — sits directly over the fixed video, fully transparent so the
   footage shows crisp and unobscured at the top of the page.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 clamp(20px, 5vw, 48px);
  max-width: 1240px;
  margin: 0 auto;
}

.hero-frame {
  position: absolute;
  inset: clamp(70px, 8vw, 96px) clamp(16px, 4vw, 40px) clamp(28px, 5vw, 56px);
  z-index: 8;
  pointer-events: none;
}
.hero-frame .hud-corner { width: 30px; height: 30px; opacity: 0.55; }

.hud-readout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  z-index: 9;
}
.hud-readout.top-left { top: clamp(28px, 5vw, 46px); left: clamp(20px, 5vw, 48px); }
.hud-readout.top-right { top: clamp(28px, 5vw, 46px); right: clamp(20px, 5vw, 48px); }
.hud-readout.bottom-left { bottom: clamp(20px, 4vw, 36px); left: clamp(20px, 5vw, 48px); }
.hud-readout.bottom-right { bottom: clamp(20px, 4vw, 36px); right: clamp(20px, 5vw, 48px); }

.tally-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tally-red);
  animation: tally-pulse 1.6s ease-in-out infinite;
  flex: none;
}

.signal-bars { display: flex; align-items: flex-end; gap: 3px; height: 12px; }
.signal-bars span { width: 3px; background: var(--cyan); opacity: 0.85; border-radius: 1px; }
.signal-bars span:nth-child(1){ height: 40%; }
.signal-bars span:nth-child(2){ height: 65%; }
.signal-bars span:nth-child(3){ height: 100%; }
.signal-bars span:nth-child(4){ height: 75%; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}

.hero-title {
  font-size: clamp(52px, 9.5vw, 128px);
  color: #fff;
  text-shadow: 0 4px 60px rgba(0,0,0,0.4);
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--cyan), var(--signal-blue-bright) 55%, var(--lens-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(235,239,250,0.82);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.btn-primary {
  font-weight: 600;
  font-size: 15px;
  color: #071019;
  background: linear-gradient(135deg, var(--cyan), #7fd8ff);
  padding: 15px 30px;
  border-radius: 100px;
  box-shadow: 0 8px 40px rgba(52,231,255,0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 46px rgba(52,231,255,0.5); }

.btn-ghost {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  padding: 15px 28px;
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }

.scroll-cue {
  position: absolute;
  bottom: clamp(20px, 4vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  text-align: center;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  margin: 10px auto 0;
}

/* ==========================================================================
   BIG IDEA / PIPELINE STEPS
   ========================================================================== */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
.pipeline-step {
  background: rgba(16, 24, 40, 0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 34px 26px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.pipeline-step .num {
  font-size: 15px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.pipeline-step h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text-hi);
  margin: 14px 0 8px;
}
.pipeline-step p { color: var(--text-lo); font-size: 14.5px; line-height: 1.55; margin: 0; }
.pipeline-step::after {
  content: '';
  position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  border-top: 1px solid var(--hairline-strong);
  border-right: 1px solid var(--hairline-strong);
  background: var(--void);
  rotate: 45deg;
  z-index: 2;
}
.pipeline-step:last-child::after { display: none; }

/* ==========================================================================
   MODE CARDS (VLOG / PROCAM / REPORTER)
   ========================================================================== */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.mode-card {
  position: relative;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 34px 30px 30px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 24px 60px -30px rgba(0,0,0,0.55);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background-color 0.6s ease;
}
.mode-card:hover { transform: translateY(-6px); border-color: rgba(52,231,255,0.35); }
.mode-card .glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  filter: blur(60px); opacity: 0.28; top: -80px; right: -80px; pointer-events: none;
}
.mode-card .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid rgba(52,231,255,0.3);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}
.mode-card h3 { font-size: 30px; margin: 20px 0 10px; color: var(--text-hi); }
.mode-card p.desc { color: var(--text-lo); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }
.mode-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mode-card li {
  font-size: 13.5px; color: var(--text-lo);
  display: flex; align-items: center; gap: 9px;
}
.mode-card li::before {
  content: ''; width: 5px; height: 5px; background: var(--cyan);
  border-radius: 1px; transform: rotate(45deg); flex: none;
}

/* ==========================================================================
   SIGNAL CHAIN DIAGRAM (reporter mode)
   ========================================================================== */

.chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 52px;
  flex-wrap: wrap;
}
.chain-node {
  flex: 1 1 200px;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px 20px;
  min-width: 180px;
}
.chain-node .k { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.chain-node .v { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text-hi); margin-top: 6px; }
.chain-node .d { font-size: 12.5px; color: var(--text-lo); margin-top: 6px; line-height: 1.5; }
.chain-arrow {
  flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-family: var(--font-mono); font-size: 18px;
}

/* ==========================================================================
   FEATURE ROWS (talkback / guest / background removal)
   ========================================================================== */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse .feature-visual { order: 2; }
.feature-visual {
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
  min-height: 300px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 24px 60px -30px rgba(0,0,0,0.55);
}

.talkback-diagram { display: flex; flex-direction: column; gap: 16px; }
.talkback-lane {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-lo);
}
.talkback-lane b { color: var(--text-hi); font-weight: 600; }
.talkback-lane .pill {
  margin-left: auto;
  font-size: 10.5px; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 100px;
  color: #071019; font-weight: 700;
}
.pill.blue { background: var(--signal-blue-bright); }
.pill.cyan { background: var(--cyan); }

.guest-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.guest-tile {
  aspect-ratio: 4/3;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
}
.guest-tile .avatar-icon {
  width: 46%;
  margin: auto;
  flex: 1;
}
.guest-tile .name {
  width: 100%;
  text-align: left;
}
.guest-tile .name {
  font-family: var(--font-mono); font-size: 11px; color: #fff;
  background: rgba(0,0,0,0.45); padding: 3px 8px; border-radius: 6px; align-self: flex-start;
}
.guest-tile .live-dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tally-green);
}

/* ==========================================================================
   DIRECTOR / CONTROL ROOM PANEL
   ========================================================================== */

.director-panel {
  margin-top: 56px;
  background: rgba(16, 24, 40, 0.42);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 40px 100px -30px rgba(0,0,0,0.6);
}
.panel-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.panel-topbar .dots { display: flex; gap: 6px; }
.panel-topbar .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline-strong); }

.panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.sources-list { display: flex; flex-direction: column; gap: 10px; }
.source-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.source-row .thumb {
  width: 46px; height: 30px; border-radius: 5px; flex: none;
}
.source-row .meta { flex: 1; }
.source-row .meta .name { color: var(--text-hi); font-weight: 600; }
.source-row .meta .role { color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; }
.source-row .status { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 9px; border-radius: 100px; letter-spacing: 0.06em; }
.status.live { background: rgba(255,59,59,0.15); color: var(--tally-red); }
.status.ready { background: rgba(41,224,125,0.15); color: var(--tally-green); }
.status.standby { background: rgba(147,160,184,0.15); color: var(--text-lo); }

.program-preview { display: flex; flex-direction: column; gap: 14px; }
.pp-box {
  border-radius: 10px; border: 1px solid var(--hairline);
  aspect-ratio: 16/8; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 10px;
}
.pp-box .label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 6px; color: #071019; font-weight: 700;
}
.pp-box.program .label { background: var(--tally-red); color: #fff; }
.pp-box.preview .label { background: var(--cyan); }

/* ==========================================================================
   GRAPHICS ENGINE
   ========================================================================== */

.overlay-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 13.5px;
  font-family: var(--font-mono);
}
.overlay-table th, .overlay-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 13px 10px;
  text-align: left;
  color: var(--text-lo);
}
.overlay-table th { color: var(--text-faint); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.overlay-table td b { color: var(--text-hi); font-family: var(--font-body); font-weight: 600; }
.state-chip { padding: 3px 9px; border-radius: 100px; font-size: 10.5px; letter-spacing: 0.06em; }
.state-chip.on { background: rgba(41,224,125,0.15); color: var(--tally-green); }
.state-chip.off { background: rgba(147,160,184,0.15); color: var(--text-faint); }
.state-chip.live-out { background: rgba(255,59,59,0.18); color: var(--tally-red); }
.state-chip.hidden-out { background: rgba(147,160,184,0.15); color: var(--text-faint); }

/* ==========================================================================
   STREAM DESTINATIONS
   ========================================================================== */

.dest-panel {
  margin-top: 56px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(10,15,28,0.1);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 20px 50px -30px rgba(10,15,28,0.3);
}
.dest-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(10,15,28,0.08);
}
.dest-row:last-of-type { border-bottom: none; }
.dest-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dest-row .name { font-weight: 600; font-size: 15px; flex: 1; }
.dest-row .state { font-family: var(--font-mono); font-size: 12px; color: var(--text-lo-on-light); min-width: 110px; text-align: right; }

.switch {
  width: 42px; height: 24px; border-radius: 100px;
  background: rgba(10,15,28,0.15);
  position: relative; flex: none;
  border: none; cursor: pointer;
  transition: background 0.25s;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.switch.on { background: var(--signal-blue); }
.switch.on::after { transform: translateX(18px); }

.global-stream-btn {
  margin-top: 22px;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--text-hi-on-light);
  color: #fff;
  transition: background 0.2s;
}
.global-stream-btn.live { background: var(--tally-red); }

/* ==========================================================================
   AUDIENCE GRID
   ========================================================================== */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
.audience-card {
  background: rgba(16, 24, 40, 0.34);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 28px 22px;
  transition: background-color 0.25s;
}
.audience-card:hover { background: rgba(16, 24, 40, 0.55); }
.audience-card h4 { font-family: var(--font-display); font-size: 21px; color: var(--text-hi); margin: 0 0 8px; }
.audience-card p { font-size: 13px; color: var(--text-lo); margin: 0; line-height: 1.5; }

/* ==========================================================================
   ROADMAP
   ========================================================================== */

.roadmap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.roadmap-col {
  border-left: 2px solid var(--hairline-strong);
  padding-left: 22px;
}
.roadmap-col .status-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 14px;
}
.status-label.shipped { background: rgba(41,224,125,0.15); color: var(--tally-green); }
.status-label.progress { background: rgba(52,231,255,0.15); color: var(--cyan); }
.status-label.planned { background: rgba(155,77,255,0.15); color: var(--lens-violet); }
.roadmap-col h4 { font-family: var(--font-display); font-size: 24px; color: var(--text-hi); margin: 0 0 14px; }
.roadmap-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.roadmap-col li { font-size: 13.5px; color: var(--text-lo); }

/* ==========================================================================
   CTA / DOWNLOAD
   ========================================================================== */

.cta-band {
  border-radius: var(--r-lg);
  padding: clamp(48px, 7vw, 90px) clamp(24px, 6vw, 70px);
  background:
    radial-gradient(circle at 20% 20%, rgba(52,231,255,0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(155,77,255,0.18), transparent 50%),
    rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  text-align: center;
}
.download-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px;
}
.download-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px;
  border: 1px solid var(--hairline-strong);
  background: rgba(255,255,255,0.05);
  font-size: 14px; font-weight: 600;
}
.download-chip .status {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
  border-left: 1px solid var(--hairline-strong); padding-left: 10px;
}

/* ==========================================================================
   ABOUT / FOOTER
   ========================================================================== */

.about-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.journey {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(10,15,28,0.08);
  border: 1px solid rgba(10,15,28,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.journey-item {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding: 26px 22px;
}
.journey-item .year {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--signal-blue);
  margin-bottom: 10px;
}
.journey-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--text-hi-on-light);
  margin: 0 0 8px;
}
.journey-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-lo-on-light);
  margin: 0;
}
.journey-close {
  margin-top: 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text-hi-on-light);
  max-width: 32ch;
}

.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
}
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--text-lo); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-hi); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--text-faint);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 66px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(10,15,28,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-md);
    padding: 10px 8px;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 12px 10px; width: 100%; border-radius: 8px; }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }
  .nav-links .nav-cta { margin-top: 4px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.08); border: 1px solid var(--hairline-strong);
  }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .panel-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .about-row { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   SUB-PAGE HERO — simpler static hero for secondary pages (no frame canvas)
   ========================================================================== */

.subpage-hero {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 50px;
  background:
    radial-gradient(circle at 18% 20%, rgba(52,231,255,0.16), transparent 50%),
    radial-gradient(circle at 82% 30%, rgba(155,77,255,0.16), transparent 55%),
    var(--void);
}
.subpage-hero .section-title { color: #fff; }
.subpage-hero .section-sub { color: rgba(235,239,250,0.82); }

/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.pricing-card {
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 24px 60px -30px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured { border-color: rgba(52,231,255,0.4); }
.pricing-card .tier-name { font-family: var(--font-display); font-size: 26px; color: var(--text-hi); }
.pricing-card .tier-price { font-family: var(--font-display); font-size: 34px; color: var(--cyan); margin: 10px 0 2px; }
.pricing-card .tier-duration { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.pricing-card .tier-access { font-size: 13.5px; color: var(--text-lo); margin: 14px 0; }
.pricing-card ul { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pricing-card li { font-size: 13px; color: var(--text-lo); display: flex; gap: 8px; }
.pricing-card li::before { content: ''; width: 5px; height: 5px; background: var(--cyan); border-radius: 1px; transform: rotate(45deg); flex: none; margin-top: 6px; }

/* ==========================================================================
   SIGN IN
   ========================================================================== */

.signin-card {
  max-width: 420px;
  margin: 0 auto;
  background: rgba(16, 24, 40, 0.44);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 40px 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 30px 70px -30px rgba(0,0,0,0.6);
}
.signin-field { margin-bottom: 18px; }
.signin-field label { display: block; font-size: 12.5px; color: var(--text-lo); margin-bottom: 7px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.signin-field input {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hairline-strong);
  color: var(--text-hi); font-family: var(--font-body); font-size: 14.5px;
}
.signin-submit {
  width: 100%; padding: 14px; border-radius: 100px; border: none;
  background: linear-gradient(135deg, var(--cyan), #7fd8ff);
  color: #071019; font-weight: 700; font-size: 14.5px; cursor: pointer;
  margin-top: 6px;
}
.signin-foot { text-align: center; font-size: 13px; color: var(--text-lo); margin-top: 20px; }
.signin-foot a { color: var(--cyan); text-decoration: underline; }

/* ==========================================================================
   ABOUT — before / after registration split
   ========================================================================== */

.era-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}
.era-col .era-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px;
}
.era-item { margin-bottom: 22px; padding-left: 18px; border-left: 2px solid var(--hairline-strong); }
.era-item .year { font-weight: 700; color: var(--cyan); font-size: 13px; margin-bottom: 5px; }
.era-item h4 { font-family: var(--font-display); font-size: 21px; color: var(--text-hi); margin: 0 0 6px; }
.era-item p { font-size: 13.5px; color: var(--text-lo); line-height: 1.55; margin: 0; }

/* ==========================================================================
   COMMUNITY
   ========================================================================== */

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.community-card {
  background: rgba(16, 24, 40, 0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 26px 22px;
}
.community-card h4 { font-family: var(--font-display); font-size: 22px; color: var(--text-hi); margin: 0 0 8px; }
.community-card p { font-size: 13.5px; color: var(--text-lo); margin: 0; line-height: 1.55; }

@media (max-width: 700px) {
  .era-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LEGAL CONTENT (Privacy / Terms)
   ========================================================================== */

.legal-content {
  max-width: 760px;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  color: var(--text-lo);
  font-size: 15px;
  line-height: 1.7;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-hi);
  margin: 0 0 6px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-hi);
  margin: 34px 0 12px;
}
.legal-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-hi);
  margin: 22px 0 8px;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 0 0 16px; padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--cyan); text-decoration: underline; }
.legal-content strong { color: var(--text-hi); }
.legal-content hr { border: none; border-top: 1px solid var(--hairline-strong); margin: 28px 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 13.5px; }
.legal-content th, .legal-content td { border-bottom: 1px solid var(--hairline); padding: 10px 8px; text-align: left; }
.legal-content th { color: var(--text-hi); }
.legal-content code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.legal-placeholder-note {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #ffd580;
  margin-bottom: 28px;
}

@media (max-width: 560px) {
  .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-frame { display: none; }
}
