:root {
  --bg: #0c0e12;
  --surface: #151922;
  --surface-2: #1c222e;
  --fg: #ede9df;
  --muted: #a39e92;
  --accent: #e59a3c;
  --accent-soft: rgba(229, 154, 60, 0.16);
  --alert: #e05344;
  --alert-bg: #7a1f18;
  --teal: #58b6a3;
  --border: rgba(237, 233, 223, 0.16);
  --font-display: "Oswald", Impact, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.viewport {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 2.2vh, 32px) clamp(18px, 4vw, 64px);
  overflow: hidden;
  background: var(--bg);
}

/* Atmospheric layers */
.bg-glow {
  position: fixed;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(229, 154, 60, 0.18) 0%,
    rgba(229, 154, 60, 0.05) 45%,
    rgba(12, 14, 18, 0) 72%
  );
  top: -260px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.bg-glow-2 {
  position: fixed;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(224, 83, 68, 0.14) 0%,
    rgba(12, 14, 18, 0) 70%
  );
  bottom: -260px;
  left: -180px;
  pointer-events: none;
  z-index: 0;
  animation: glowDrift 18s ease-in-out infinite alternate-reverse;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(237, 233, 223, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237, 233, 223, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.scan-sweep {
  position: fixed;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(229, 154, 60, 0) 0%,
    rgba(229, 154, 60, 0.05) 50%,
    rgba(229, 154, 60, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
  animation: sweepDown 8s linear infinite;
}

/* Corner reticle marks */
.corner-mark {
  position: fixed;
  width: 26px;
  height: 26px;
  border-color: rgba(229, 154, 60, 0.45);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.cm-tl { top: 14px; left: 16px; border-width: 2px 0 0 2px; }
.cm-tr { top: 14px; right: 16px; border-width: 2px 2px 0 0; }
.cm-bl { bottom: 14px; left: 16px; border-width: 0 0 2px 2px; }
.cm-br { bottom: 14px; right: 16px; border-width: 0 2px 2px 0; }

/* Top HUD bar */
.hud-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 14px;
}

.hud-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px;
  background: var(--alert-bg);
  border: 2px solid var(--alert);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.08em;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b5b;
  box-shadow: 0 0 10px #ff6b5b;
  animation: pulseDot 1.4s ease-in-out infinite;
}

.hud-channel {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
}

.eq-bar {
  width: 4px;
  height: 22px;
  background: var(--accent);
  transform-origin: bottom center;
  animation: eqPulse 1.1s ease-in-out infinite;
}

.eq-bar:nth-child(2) { animation-delay: 0.12s; }
.eq-bar:nth-child(3) { animation-delay: 0.28s; }
.eq-bar:nth-child(4) { animation-delay: 0.08s; }
.eq-bar:nth-child(5) { animation-delay: 0.36s; }
.eq-bar:nth-child(6) { animation-delay: 0.19s; }
.eq-bar:nth-child(7) { animation-delay: 0.44s; }
.eq-bar:nth-child(8) { animation-delay: 0.24s; }
.eq-bar:nth-child(9) { animation-delay: 0.05s; }
.eq-bar:nth-child(10) { animation-delay: 0.31s; }

.hud-timecode {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Main stage */
.stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(12px, 2.5vh, 36px) 0;
  max-width: 1320px;
  width: 100%;
  margin: auto;
}

.hero-copy {
  animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1vw, 0.92rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: clamp(8px, 1.4vh, 14px);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, min(6.6vw, 11.2vh), 5.8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--fg);
}

.headline-accent {
  color: var(--accent);
  text-shadow: 0 0 36px rgba(229, 154, 60, 0.24);
}

.rule-accent {
  width: clamp(96px, 12vw, 148px);
  height: 4px;
  background: var(--accent);
  margin: clamp(10px, 2vh, 20px) 0;
  transform-origin: left center;
  animation: ruleGrow 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subcopy {
  font-size: clamp(0.84rem, 1.25vw, 1.1rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: clamp(14px, 2.6vh, 26px);
}

/* Official links (YouTube + Instagram only) */
.channel-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(10px, 1.5vh, 15px) clamp(12px, 1.4vw, 18px);
  background: rgba(21, 25, 34, 0.92);
  border: 2px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  min-width: 0;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.cta-youtube {
  border-color: rgba(224, 83, 68, 0.65);
}

.cta-youtube:hover,
.cta-youtube:focus-visible {
  border-color: var(--alert);
  background: rgba(122, 31, 24, 0.34);
  box-shadow: 0 12px 30px rgba(224, 83, 68, 0.18);
}

.cta-youtube .cta-icon {
  color: #ff5b52;
}

.cta-instagram {
  border-color: rgba(229, 154, 60, 0.55);
}

.cta-instagram:hover,
.cta-instagram:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 12px 30px rgba(229, 154, 60, 0.16);
}

.cta-instagram .cta-icon {
  color: var(--accent);
}

.cta-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg);
}

.cta-handle {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* Right HUD animation panel */
.hud-visual {
  display: flex;
  justify-content: center;
  animation: fadeSlideUp 0.85s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hud-frame {
  width: 100%;
  max-width: min(440px, 56vh);
  background: rgba(21, 25, 34, 0.9);
  border: 2px solid rgba(229, 154, 60, 0.34);
  padding: clamp(10px, 1.8vh, 18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hud-frame-header,
.hud-frame-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hud-tag {
  color: var(--accent);
}

.hud-tag-teal,
.hud-status-ok {
  color: var(--teal);
}

.radar-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 12px 0;
  display: grid;
  place-items: center;
}

.radar-svg,
#wireframe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring-outer {
  transform-origin: 210px 210px;
  animation: spinCW 32s linear infinite;
}

.ring-mid {
  transform-origin: 210px 210px;
  animation: spinCCW 20s linear infinite;
}

.ring-inner {
  transform-origin: 210px 210px;
  animation: spinCW 14s linear infinite;
}

/* Bottom caption dock */
.caption-dock {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.caption-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 14, 18, 0.92);
  border: 2px solid rgba(229, 154, 60, 0.45);
  padding: 9px 20px;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-align: center;
}

.caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Keyframes */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes sweepDown {
  0% { transform: translateY(-160px); }
  100% { transform: translateY(110vh); }
}

@keyframes glowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-24px, 18px) scale(1.06); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ruleGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Responsive */
@media (max-width: 720px) {
  .channel-links {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

@media (max-width: 680px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 0;
  }

  .hud-frame {
    max-width: 320px;
  }

  .eq-bars {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow,
  .bg-glow-2,
  .scan-sweep,
  .rec-dot,
  .eq-bar,
  .ring-outer,
  .ring-mid,
  .ring-inner,
  .hero-copy,
  .hud-visual,
  .rule-accent {
    animation: none;
  }
}
