/* ============================================================
   GHOSTREACTS — neon phantom / streamer-native design system
   Palette: void #06030c · panel #0e0818 · ecto #00d9ff · hex #a02cff
   Type:    Anton (display) · Space Grotesk (body) · Space Mono (meta)
   ============================================================ */

:root {
  --void: #06030c;
  --panel: #0e0818;
  --panel-2: #130b21;
  --ink: #f4f2ff;
  --mist: #a89fc7;
  --ecto: #00d9ff;
  --hex: #a02cff;
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --r-lg: 22px;
  --r-md: 14px;
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --pad-x: clamp(18px, 5vw, 84px);
}

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(0, 217, 255, 0.10), transparent 60%),
    radial-gradient(52rem 40rem at 8% 18%, rgba(160, 44, 255, 0.13), transparent 60%),
    radial-gradient(60rem 48rem at 55% 105%, rgba(91, 44, 255, 0.12), transparent 60%),
    var(--void);
  overflow-x: hidden;
}

/* faint CRT scanlines — the channel lives on a screen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

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

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 20px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; }
h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin-top: 0; color: var(--mist); line-height: 1.65; }

.glow-cyan { color: var(--ecto); text-shadow: 0 0 34px rgba(0, 217, 255, 0.45); }
.glow-purple { color: var(--hex); text-shadow: 0 0 34px rgba(160, 44, 255, 0.5); }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ecto);
}

/* ---------- blinking rec dot ---------- */
.rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3355;
  box-shadow: 0 0 10px rgba(255, 51, 85, 0.9);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ============================================================
   HEADER + scroll scrubber
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: rgba(6, 3, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.35);
}
.brand-name {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ecto), var(--hex));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 160ms ease;
}
nav a:hover, nav a:focus-visible { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 217, 255, 0.4);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: inset 0 0 16px rgba(0, 217, 255, 0.08);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.nav-cta:hover {
  border-color: var(--ecto);
  box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.18), 0 0 24px rgba(0, 217, 255, 0.25);
}

/* video-scrubber scroll progress */
.scrubber {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}
.scrubber-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hex), var(--ecto));
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(56px, 8vw, 104px) var(--pad-x) clamp(48px, 6vw, 88px);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.03);
}

.lede { max-width: 56ch; font-size: 1.1rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-bright);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  border: none;
  background: linear-gradient(120deg, var(--hex), var(--ecto));
  box-shadow: 0 14px 40px rgba(160, 44, 255, 0.28), 0 14px 40px rgba(0, 217, 255, 0.18);
}
.button.primary:hover { box-shadow: 0 18px 52px rgba(160, 44, 255, 0.38), 0 18px 52px rgba(0, 217, 255, 0.26); }
.button.secondary { background: rgba(255, 255, 255, 0.045); }
.button.secondary:hover { border-color: rgba(255, 255, 255, 0.32); }
.button.big { min-height: 58px; padding: 0 30px; font-size: 1.05rem; }

.fact-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  max-width: 560px;
  overflow: hidden;
}
.fact-strip li {
  flex: 1 1 0;
  min-width: 150px;
  padding: 14px 18px;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.fact-strip li:first-child { border-left: none; }
.fact-strip strong { font-size: 0.98rem; letter-spacing: -0.01em; }
.fact-strip span { font-family: var(--mono); font-size: 0.72rem; color: var(--mist); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- hero stage: player + chat ---------- */
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 14px;
  align-items: stretch;
}

.player {
  margin: 0;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow), 0 0 70px rgba(0, 217, 255, 0.12), 0 0 90px rgba(160, 44, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(255, 51, 85, 0.16);
  border: 1px solid rgba(255, 51, 85, 0.45);
  border-radius: 6px;
  padding: 4px 9px;
}
.player-title {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-art { display: block; width: 100%; height: auto; }

.player-bottom { padding: 12px 14px 14px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid var(--line); }
.player-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.player-bar-fill {
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hex), var(--ecto));
  animation: playhead 24s linear infinite;
}
@keyframes playhead { from { width: 8%; } to { width: 96%; } }
.player-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mist);
  letter-spacing: 0.05em;
}

/* chat rail — the signature */
.chat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(14, 8, 24, 0.7);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.chat-head {
  margin: 0;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.chat-window {
  position: relative;
  flex: 1;
  min-height: 300px;
  overflow: hidden;
  /* fade top & bottom */
  mask-image: linear-gradient(to bottom, transparent 0, black 14%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 14%, black 88%, transparent 100%);
}
.chat-scroll {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 12px;
  animation: chatloop 26s linear infinite;
}
@keyframes chatloop { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.chat-scroll li {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(244, 242, 255, 0.85);
  overflow-wrap: break-word;
}
.chat-scroll time { display: block; font-size: 0.6rem; color: rgba(168, 159, 199, 0.55); }
.chat-scroll b { font-weight: 700; margin-right: 5px; }
.u1 { color: var(--ecto); }
.u2 { color: #ff7edb; }
.u3 { color: var(--hex); }
.u4 { color: #7dffa8; }
.u5 { color: #ffd166; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  gap: clamp(34px, 6vw, 80px);
  width: max-content;
  animation: marquee 26s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track span {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 242, 255, 0.9);
}
.tk-c { color: var(--ecto); text-shadow: 0 0 24px rgba(0, 217, 255, 0.4); }
.tk-p { color: var(--hex); text-shadow: 0 0 24px rgba(160, 44, 255, 0.45); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) var(--pad-x); }
.section-heading { max-width: 780px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-sub { font-size: 1.05rem; }

/* ---------- video cards ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.video-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.video-card.hot {
  background: linear-gradient(180deg, rgba(160, 44, 255, 0.16), rgba(0, 217, 255, 0.05)), var(--panel);
}

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 18% 22%, rgba(160, 44, 255, 0.5), transparent 46%),
    radial-gradient(circle at 82% 74%, rgba(0, 217, 255, 0.4), transparent 46%),
    linear-gradient(135deg, #0c0817, #171033);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.thumb-ghost {
  width: 34%;
  filter: drop-shadow(0 0 26px rgba(0, 217, 255, 0.45));
  transition: transform 220ms ease;
}
.video-card:hover .thumb-ghost { transform: scale(1.08) rotate(-3deg); }

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  padding: 4px 8px;
}
.duration.short { background: rgba(160, 44, 255, 0.85); }
.duration.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 51, 85, 0.85);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 180ms ease;
}
.video-card:hover .play-badge, .thumb:focus-visible .play-badge { opacity: 1; }

.video-meta { padding: 18px 20px 22px; }
.video-meta p { margin-bottom: 12px; font-size: 0.95rem; }
.upload-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ecto);
}

/* ---------- about split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: center;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 48px);
}
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.check-list li { color: var(--ink); font-weight: 500; }
.check-list li::before { content: "▸"; color: var(--ecto); margin-right: 11px; }

.banner-preview {
  margin: 0;
  border-radius: var(--r-lg);
  padding: 10px 10px 0;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(160, 44, 255, 0.28));
  box-shadow: var(--shadow);
}
.banner-preview img { display: block; width: 100%; border-radius: 14px; }
.banner-preview figcaption {
  padding: 10px 4px 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(6, 3, 12, 0.85);
  font-weight: 700;
}

/* ---------- brand board ---------- */
.brand-board {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.brand-board img { display: block; width: 100%; border-radius: 14px; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  margin: clamp(20px, 4vw, 48px) var(--pad-x) clamp(56px, 7vw, 90px);
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(30rem 20rem at 88% 0%, rgba(0, 217, 255, 0.18), transparent 60%),
    radial-gradient(30rem 20rem at 6% 100%, rgba(160, 44, 255, 0.2), transparent 60%),
    var(--panel-2);
  box-shadow: var(--shadow);
}
.cta-ghost {
  width: clamp(88px, 12vw, 150px);
  flex: none;
  filter: drop-shadow(0 0 34px rgba(0, 217, 255, 0.5));
  animation: floaty 6s ease-in-out infinite;
}
.cta-copy { flex: 1; }
.cta-copy p:last-child { margin-bottom: 0; max-width: 54ch; }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--pad-x) 34px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.92rem;
}
.site-footer p { margin: 0; color: var(--mist); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--mist); text-decoration: none; transition: color 150ms ease; }
.footer-links a:hover { color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- focus ---------- */
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--ecto);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { max-width: 640px; }
}

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

@media (max-width: 720px) {
  nav a:not(.nav-cta) { display: none; }
  .hero-stage { grid-template-columns: 1fr; }
  .chat { display: none; }              /* keep the hero tight on phones */
  .fact-strip { flex-direction: column; }
  .fact-strip li { border-left: none; border-top: 1px solid var(--line); }
  .fact-strip li:first-child { border-top: none; }
  .cta { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .player, .cta-ghost, .rec-dot, .player-bar-fill,
  .ticker-track, .chat-scroll { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button:hover, .video-card:hover { transform: none; }
}
