/* ============================================================
   MadStream v4 — Global Stylesheet
   Cinematic dark CTV publisher · Pure HTML/CSS/JS · No build
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:            #07080e;
  --bg-surface:    #0d0f1c;
  --bg-elevated:   #12152a;
  --brand-cyan:    #00D4FF;
  --brand-purple:  #7C3AED;
  --brand-indigo:  #4F46E5;
  --brand-gradient: linear-gradient(90deg, #00D4FF 0%, #4F46E5 50%, #7C3AED 100%);
  --accent-red:    #EF4444;
  --white:         #ffffff;
  --w80:           rgba(255,255,255,0.80);
  --w60:           rgba(255,255,255,0.60);
  --w40:           rgba(255,255,255,0.40);
  --w25:           rgba(255,255,255,0.25);
  --w12:           rgba(255,255,255,0.12);
  --w06:           rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.10);
  --radius-sm:     1rem;
  --radius:        1.5rem;
  --radius-lg:     2rem;
  --radius-xl:     2.5rem;
  --radius-2xl:    3rem;
  --font-heading:  'Sora', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --nav-h:         72px;
  --section-pad:   clamp(80px, 10vw, 140px);
  --container:     1280px;
  --gutter:        clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Noise Overlay ────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  opacity: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--nav-h);
  border-radius: var(--radius-xl);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  gap: 1rem;
}
.site-nav.scrolled .nav-inner {
  background: rgba(18,21,42,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 57px;
  width: auto;
  mix-blend-mode: screen;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--w80);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--white);
  background: var(--w06);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: var(--brand-cyan);
}
.nav-cta {
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.3s ease;
}
.btn:hover { transform: scale(1.03); }
.btn-bg {
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  z-index: 0;
  border-radius: inherit;
}
.btn:hover .btn-bg { transform: translateX(0); }
.btn > :not(.btn-bg) { position: relative; z-index: 1; }

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  padding: 0.875rem 2rem;
  box-shadow: 0 4px 24px rgba(0,212,255,0.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0,212,255,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--w80);
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(0,212,255,0.3);
}
.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}
.btn-cta-nav {
  background: var(--brand-gradient);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(0,212,255,0.2);
}

/* ── Hamburger ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Drawer ────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(7,8,14,0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}
.nav-drawer a {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--w80);
  transition: color 0.2s ease;
}
.nav-drawer a:hover { color: var(--brand-cyan); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%, rgba(0,212,255,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(124,58,237,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(79,70,229,0.08) 0%, transparent 70%),
    var(--bg);
  animation: heroGlow 14s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0%   { background-position: 15% 50%, 85% 20%, 50% 90%; }
  100% { background-position: 25% 40%, 75% 30%, 60% 80%; }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  opacity: 0;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line-inner { display: inline-block; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--w60);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: var(--w06);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  max-width: 680px;
  margin: 0 auto;
}
.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0.75rem 1rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--brand-cyan);
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--w60);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  display: block;
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--w40);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.scroll-chevron {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--w40);
  border-bottom: 2px solid var(--w40);
  transform: rotate(45deg);
}

/* ── Platform Carousel ────────────────────────────────────── */
.platform-band {
  padding: 3rem 0;
  position: relative;
}
.platform-track-wrap {
  border-radius: var(--radius-2xl);
  border: 4px solid transparent;
  background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
              var(--brand-gradient) border-box;
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.platform-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .platform-track { animation-play-state: paused; }
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  min-height: 52px;
  background: var(--w06);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--w80);
  transition: color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.platform-badge:hover { color: var(--white); border-color: var(--w25); }
.platform-badge svg { display: block; }
.platform-logo { display: block; width: auto; object-fit: contain; }
.platform-logo-sm { display: inline-block; height: 18px; width: auto; object-fit: contain; vertical-align: middle; }

/* ── Section Common ───────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--w60);
  max-width: 540px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ── Three Cards ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  min-height: 380px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 12px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.05);
}
.card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w40);
}
.card-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--w60);
}

/* ── Card 1: Shuffler ─────────────────────────────────────── */
.shuffler-stack {
  position: relative;
  height: 140px;
  margin-top: 0.5rem;
}
.shuffler-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.4s ease;
  will-change: transform, opacity;
}
.shuffler-card .s-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.shuffler-card .s-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brand-cyan);
  font-weight: 600;
}
.shuffler-card .s-stat {
  font-size: 0.78rem;
  color: var(--w40);
  margin-top: 0.1rem;
}

/* ── Card 2: Typewriter ───────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #EF4444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.typewriter-feed {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #00FF88;
  background: rgba(0,255,136,0.04);
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  min-height: 110px;
  position: relative;
  line-height: 1.6;
  overflow: hidden;
  flex-grow: 1;
}
.typewriter-feed::after {
  content: '|';
  color: #00FF88;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Card 3: Scheduler ────────────────────────────────────── */
.scheduler-wrap {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  position: relative;
}
.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.cal-day-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--w40);
  text-align: center;
  padding: 2px 0;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--w40);
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.cal-cell.active {
  background: rgba(0,212,255,0.15);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}
.cal-confirm {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--w60);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: default;
}
.cursor-svg {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.scheduler-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--w40);
  text-align: center;
  line-height: 1.8;
}

/* ── Manifesto ────────────────────────────────────────────── */
.manifesto {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: var(--bg);
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: -20%;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 20px
  );
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.1s linear;
}
.manifesto-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.manifesto-small {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--w60);
  margin-bottom: 2rem;
}
.manifesto-big {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.manifesto-big em {
  color: var(--brand-cyan);
  font-style: italic;
}
.reveal-word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.25em;
  vertical-align: bottom;
}
.reveal-word span {
  display: inline-block;
}

/* ── Feature Grid ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.feat-cell {
  background: var(--bg-surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transition: background 0.3s ease;
}
.feat-cell:hover {
  background: var(--bg-elevated);
}
.feat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--w06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--brand-cyan);
  flex-shrink: 0;
}
.feat-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}
.feat-desc {
  font-size: 0.875rem;
  color: var(--w60);
  line-height: 1.6;
}

/* ── CTA Strip ────────────────────────────────────────────── */
.cta-strip {
  padding: var(--section-pad) 0;
}
.cta-inner {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg-surface);
  isolation: isolate;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 4s linear infinite;
  background-size: 200% 200%;
}
@keyframes rotateBorder {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.cta-inner .glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}
.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  opacity: 0;
}
.cta-sub {
  font-size: 1.1rem;
  color: var(--w60);
  max-width: 480px;
  margin: 0 auto 2rem;
  opacity: 0;
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-img {
  height: 36px;
  width: auto;
  mix-blend-mode: screen;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--w60);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w80);
  margin-bottom: 1.25rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--w60);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--w60);
  font-family: var(--font-mono);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--w60);
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--w80); }

/* ── Gradient Text ────────────────────────────────────────── */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Inner Page Hero ──────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 2rem);
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(0,212,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 80% 20%, rgba(124,58,237,0.12) 0%, transparent 70%),
    var(--bg);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 0%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 1rem;
  opacity: 0;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  opacity: 0;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: var(--w60);
  max-width: 560px;
  opacity: 0;
}

/* ── Channel Cards ────────────────────────────────────────── */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.channel-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
}
.channel-card:hover {
  box-shadow: 0 0 40px rgba(0,212,255,0.08), 0 12px 48px rgba(0,0,0,0.5);
  border-color: rgba(0,212,255,0.2);
}
.channel-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--w25);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.channel-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.channel-desc {
  font-size: 0.875rem;
  color: var(--w60);
  line-height: 1.65;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding: 3rem 0;
  overflow-x: auto;
}
.timeline-track {
  display: flex;
  gap: 0;
  position: relative;
  min-width: 700px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brand-gradient);
  opacity: 0.3;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  opacity: 0;
}
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-cyan);
  border: 3px solid var(--bg);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
}
.timeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.timeline-step-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timeline-step-desc {
  font-size: 0.8rem;
  color: var(--w60);
  line-height: 1.55;
}

/* ── Process Cards ────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.process-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  position: relative;
  opacity: 0;
}
.process-num {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--w06);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
.process-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(79,70,229,0.12));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.process-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-cyan);
}
.process-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.process-desc {
  font-size: 0.875rem;
  color: var(--w60);
  line-height: 1.65;
}

/* ── Stats Section ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.stat-block {
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  text-align: center;
  opacity: 0;
}
.stat-block-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-block-label {
  font-size: 0.875rem;
  color: var(--w60);
  font-weight: 500;
}

/* ── Form Styles ──────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--w60);
  letter-spacing: 0.04em;
}
.form-input,
.form-textarea,
.form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--w25);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-select {
  appearance: none;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-elevated);
}

/* ── Contact Info ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--w06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--brand-cyan);
}
.contact-item-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--w40);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.contact-item-val {
  font-size: 0.95rem;
  color: var(--w80);
}
.contact-form-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
}

/* ── About Team ───────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  opacity: 0;
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(79,70,229,0.1));
  border: 1px solid rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.value-icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand-cyan);
}
.value-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.value-desc {
  font-size: 0.875rem;
  color: var(--w60);
  line-height: 1.65;
}

/* ── Creators Form ────────────────────────────────────────── */
.creators-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Utility ──────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.w-full { width: 100%; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-cta-nav { display: none; }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat-item + .stat-item::before { display: none; }
  .stat-item { border-top: 1px solid var(--border); }
  .stat-item:first-child { border-top: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .channel-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { padding: 2.5rem 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 1.75rem; }
  .creators-form { padding: 2rem 1.5rem; }
}
@media (max-width: 375px) {
  :root { --gutter: 1rem; }
  .hero h1 { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Scroll Progress Bar ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--brand-gradient);
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ── Tag Pills ────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: var(--w06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--w60);
  letter-spacing: 0.06em;
}
.tag.cyan {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.2);
  color: var(--brand-cyan);
}
.tag.purple {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
  color: var(--brand-purple);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--section-pad) 0;
}

/* ── Legal Prose ──────────────────────────────────────────── */
.legal-prose { max-width: 800px; margin: 0 auto; padding: 3rem 0 6rem; }
.legal-prose h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--white); margin: 2.5rem 0 0.75rem; }
.legal-prose p, .legal-prose li { font-family: var(--font-body); font-size: 1rem; line-height: 1.85; color: var(--w80); }
.legal-prose ul { padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.legal-prose li { margin-bottom: 0.5rem; }
.legal-prose a { color: var(--brand-cyan); text-decoration: underline; }
.legal-date { color: var(--w60); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── Channels Grid (Our Channels page) ────────────────────── */
.channels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .channels-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .channels-grid { grid-template-columns: 1fr; } }

.channel-card-oo {
  background: var(--bg-elevated);
  border-radius: var(--radius-2xl);
  border-top: 2px solid transparent;
  border-image: var(--brand-gradient) 1;
  border-image-slice: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}
.channel-card-oo.visible { opacity: 1; transform: translateY(0); }
.channel-card-oo:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124,58,237,0.25); }
.channel-card-oo .channel-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--white); }
.channel-card-oo .channel-genre { font-family: var(--font-body); font-size: 0.875rem; color: var(--w60); font-style: italic; }
.platform-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--w06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--w80);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.platform-link:hover { background: var(--w12); color: var(--white); border-color: var(--brand-cyan); }

/* ── O&O Channels Grid v2 ─────────────────────────────── */
.channels-oo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .channels-oo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .channels-oo-grid { grid-template-columns: 1fr; } }

.ch-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}
.ch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.3);
}

.ch-header {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ch-color1, #00D4FF), var(--ch-color2, #7C3AED));
  overflow: hidden;
}
.ch-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.ch-emoji {
  font-size: 3.5rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.ch-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  display: block;
  padding: 20px 24px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}

.ch-header-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(to top, rgba(7, 8, 14, 0.92) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 2;
}

.ch-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.ch-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--w80);
  white-space: nowrap;
  text-transform: uppercase;
}

.ch-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ch-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--w60);
  margin: 0;
}

.ch-platforms {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ch-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  background: var(--w06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ch-platform-btn:hover {
  background: var(--w12);
  border-color: var(--brand-cyan);
  transform: scale(1.05);
}
.ch-platform-btn img {
  height: 14px;
  width: auto;
  object-fit: contain;
  display: block;
}
.ch-platform-btn svg {
  display: block;
  opacity: 0.8;
}
.ch-platform-btn:hover svg,
.ch-platform-btn:hover img { opacity: 1; }

/* ── Phase D additions ───────────────────────────────────── */

/* "Soon" pill for platforms not yet live (Samsung TV Plus, LG Channels) */
.soon-pill {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--brand-cyan, #00D4FF);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* Make sure containers that host .soon-pill are positioned */
.platform-badge,
.channel-card,
.ch-card {
  position: relative;
}

/* CTV-channels platform card logo (replaces emoji) */
.platform-card-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
}

/* Footer socials icon row */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--w60, #999);
  transition: all 0.2s ease;
}
.footer-socials a:hover {
  color: var(--brand-cyan, #00D4FF);
  border-color: var(--brand-cyan, #00D4FF);
  transform: translateY(-1px);
}
