/* =============================================
   CLOUD ZERO — Style
   ============================================= */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --ink: #eaf2ff;
  --ink-dim: #8a93a8;
  --ink-faint: #3a4258;
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --grid: rgba(0, 240, 255, 0.06);
}

/* --- Reset --- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0 }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { min-height: 100vh; cursor: none }
a { color: inherit; text-decoration: none }
::selection { background: var(--magenta); color: #000 }

/* =============================================
   Ambient Grid + Scanlines + Vignette + Noise
   ============================================= */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(255, 43, 214, 0.08), transparent 60%),
    radial-gradient(1000px 700px at 20% 90%, rgba(0, 240, 255, 0.07), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 55;
  box-shadow: inset 0 0 220px 40px rgba(0, 0, 0, 0.85);
}

.noise {
  position: fixed; inset: -50%; pointer-events: none; z-index: 58; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  animation: nz 1.2s steps(6) infinite;
}

@keyframes nz {
  0%   { transform: translate(0, 0) }
  20%  { transform: translate(-4%, 3%) }
  40%  { transform: translate(2%, -2%) }
  60%  { transform: translate(-3%, 1%) }
  80%  { transform: translate(3%, 2%) }
  100% { transform: translate(0, 0) }
}

/* =============================================
   Custom Cursor
   ============================================= */
.cursor {
  position: fixed; left: 0; top: 0; width: 28px; height: 28px;
  border: 1px solid var(--cyan); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 100;
  transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  mix-blend-mode: screen;
}
.cursor::before, .cursor::after { content: ""; position: absolute; background: var(--cyan) }
.cursor::before { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%) }
.cursor::after  { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%) }

.cursor.hot { width: 64px; height: 64px; border-color: var(--magenta); background: rgba(255, 43, 214, 0.06) }
.cursor.hot::before, .cursor.hot::after { background: var(--magenta) }

.cursor-dot {
  position: fixed; left: 0; top: 0; width: 5px; height: 5px;
  background: var(--cyan); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 101;
  mix-blend-mode: screen;
}

@media (hover: none) {
  body { cursor: auto }
  .cursor, .cursor-dot { display: none }
}

/* =============================================
   Boot Overlay
   ============================================= */
.boot {
  position: fixed; inset: 0; background: #000; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; color: var(--cyan); font-size: 13px;
}
.boot.gone { opacity: 0; pointer-events: none; transition: opacity 0.35s ease }
.boot-inner { width: min(560px, 86vw) }
.boot-line  { white-space: pre; line-height: 1.7; color: #9af }
.boot-line .ok   { color: var(--cyan) }
.boot-line .warn { color: var(--magenta) }
.boot-bar {
  margin-top: 14px; height: 6px; background: #0d1424;
  border: 1px solid #1a2440; position: relative; overflow: hidden;
}
.boot-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 16px var(--cyan);
}
.boot-cap {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #5a6480; margin-top: 8px; letter-spacing: 0.12em;
}
.boot-cap span:first-child::before { content: "●"; color: var(--magenta); margin-right: 8px }

/* =============================================
   HUD Chrome
   ============================================= */
.hud {
  position: fixed; left: 0; right: 0; padding: 18px 28px;
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); z-index: 50; pointer-events: none;
}
.hud.top { top: 0 }
.hud.bot { bottom: 0 }
.hud .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  margin-right: 8px; animation: bl 1.4s infinite;
}
@keyframes bl { 50% { opacity: 0.3 } }
.hud .sep { margin: 0 14px; color: var(--ink-faint) }

.corner {
  position: fixed; width: 22px; height: 22px;
  border: 1px solid var(--cyan); z-index: 51;
  pointer-events: none; opacity: 0.5;
}
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0 }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0 }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0 }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0 }

/* =============================================
   Layout
   ============================================= */
main { position: relative; z-index: 5 }
section { position: relative; padding: 120px 6vw }

/* =============================================
   Hero
   ============================================= */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding: 96px 6vw 80px;
}

/* --- Mask portrait --- */
.hero-mask {
  position: relative; aspect-ratio: 3 / 4; width: 100%;
  max-width: 520px; justify-self: end; overflow: hidden;
  border: 1px solid #1c2542;
  box-shadow: 0 0 0 1px #000, 0 30px 80px -20px rgba(0, 240, 255, 0.25), 0 30px 80px -30px rgba(255, 43, 214, 0.3);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.hero-mask::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/hero.jpg") center / cover no-repeat;
  filter: contrast(1.05) saturate(1.15);
  transition: transform 0.6s ease;
}
.hero-mask:hover::before { transform: scale(1.04) }
.hero-mask::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(5, 6, 10, 0.85)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.hero-mask .tag {
  position: absolute; left: 14px; bottom: 14px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.22em; color: var(--cyan); text-transform: uppercase;
}
.hero-mask .tag b { color: var(--magenta); font-weight: 500 }
.hero-mask .ticks {
  position: absolute; right: 10px; top: 10px;
  display: flex; gap: 4px; flex-direction: column; align-items: flex-end;
}
.hero-mask .ticks i {
  display: block; width: 18px; height: 1px;
  background: var(--cyan); opacity: 0.6;
}
.hero-mask .ticks i:nth-child(2n) { width: 10px; background: var(--magenta) }

/* --- Hero text --- */
.hero-text { position: relative }
.meta-line {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); display: flex; align-items: center;
  gap: 14px; margin-bottom: 26px;
}
.meta-line::before {
  content: ""; width: 36px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

h1.logo {
  font-size: clamp(64px, 11.5vw, 184px); line-height: 0.86;
  letter-spacing: -0.04em; font-weight: 700;
  text-transform: uppercase; position: relative; display: inline-block;
}
h1.logo .row { display: block; position: relative }
h1.logo .row span { position: relative; display: inline-block }
h1.logo .row span.glitch {
  position: absolute; inset: 0; pointer-events: none; display: block;
}
h1.logo .glitch.c {
  color: var(--cyan); transform: translate(-2px, 0);
  mix-blend-mode: screen; clip-path: inset(0 0 55% 0);
}
h1.logo .glitch.m {
  color: var(--magenta); transform: translate(2px, 0);
  mix-blend-mode: screen; clip-path: inset(55% 0 0 0);
}
h1.logo:hover .glitch.c { animation: gx1 0.5s steps(6) infinite }
h1.logo:hover .glitch.m { animation: gx2 0.5s steps(6) infinite }

@keyframes gx1 {
  0%   { transform: translate(-2px, 0) }
  20%  { transform: translate(-6px, 1px); clip-path: inset(20% 0 60% 0) }
  40%  { transform: translate(-1px, -2px); clip-path: inset(70% 0 5% 0) }
  60%  { transform: translate(-4px, 2px); clip-path: inset(40% 0 30% 0) }
  100% { transform: translate(-2px, 0) }
}
@keyframes gx2 {
  0%   { transform: translate(2px, 0) }
  25%  { transform: translate(6px, -1px); clip-path: inset(60% 0 10% 0) }
  50%  { transform: translate(1px, 2px); clip-path: inset(10% 0 70% 0) }
  75%  { transform: translate(4px, -2px); clip-path: inset(30% 0 40% 0) }
  100% { transform: translate(2px, 0) }
}

.tagline {
  margin-top: 30px; max-width: 560px;
  font-size: 18px; line-height: 1.5; color: var(--ink); font-weight: 300;
}
.tagline em { font-style: normal; color: var(--cyan) }

/* --- Stats --- */
.stats {
  margin-top: 40px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: #11182a; border: 1px solid #11182a;
  max-width: 560px;
}
.stat { padding: 18px 20px; background: var(--bg-2) }
.stat .n {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat .n .u {
  font-size: 12px; color: var(--cyan);
  font-family: "JetBrains Mono", monospace; margin-left: 4px;
}
.stat .l {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.2em; color: var(--ink-dim);
  text-transform: uppercase; margin-top: 6px;
}

/* --- CTAs --- */
.cta-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap }
.btn {
  --c: var(--cyan);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); background: #0a1224; border: 1px solid var(--c);
  cursor: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn:hover {
  background: var(--c); color: #000;
  box-shadow: 0 0 30px -4px var(--c); transform: translateY(-1px);
}
.btn .arrow { transition: transform 0.2s }
.btn:hover .arrow { transform: translate(4px, -4px) }
.btn.alt { --c: var(--magenta) }

/* =============================================
   Player
   ============================================= */
.player-wrap {
  padding: 80px 6vw 60px;
  border-top: 1px solid #11182a; border-bottom: 1px solid #11182a;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02));
}
.player-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.player-head h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 600;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.player-head .right {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.22em; color: var(--ink-dim); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.player-head .right .live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--magenta); box-shadow: 0 0 12px var(--magenta);
  animation: bl 1.2s infinite;
}

.embed-frame {
  position: relative; border: 1px solid #1c2542; background: #0a0c14;
  box-shadow: 0 0 0 1px #000, 0 40px 80px -30px rgba(0, 240, 255, 0.2);
  padding: 14px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.embed-frame iframe {
  width: 100%; height: 380px; border: 0; display: block; border-radius: 12px;
}
.embed-meta {
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.2em; color: var(--ink-faint);
  text-transform: uppercase; margin-top: 10px; padding: 0 4px;
}

/* =============================================
   Socials
   ============================================= */
.about { padding: 80px 6vw 0 }
.about-text {
  font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7;
  color: var(--ink-dim); max-width: 720px;
}

.socials { padding: 100px 6vw }
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 36px;
}
.sec-head h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 600;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.sec-head .kicker {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase;
  margin-bottom: 8px; display: block;
}
.sec-head p {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-dim); text-transform: uppercase;
  max-width: 340px; text-align: right;
}

.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: #11182a; border: 1px solid #11182a;
}
.card {
  position: relative; padding: 28px; background: var(--bg-2);
  min-height: 200px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden; transition: background 0.25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 50%), var(--accent, rgba(0, 240, 255, 0.18)), transparent 60%);
}
.card:hover::before { opacity: 1 }
.card .top {
  display: flex; justify-content: space-between; align-items: start;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.22em; color: var(--ink-dim); text-transform: uppercase;
}
.card .top .num { color: var(--ink-faint) }
.card .name {
  font-size: 26px; font-weight: 600; letter-spacing: -0.01em;
  margin-top: auto; text-transform: uppercase; position: relative; z-index: 2;
}
.card .handle {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--cyan); margin-top: 6px; letter-spacing: 0.1em;
  position: relative; z-index: 2;
}
.card .arrow {
  position: absolute; right: 24px; top: 24px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #1c2542; color: var(--ink-dim);
  transition: all 0.25s; font-family: "JetBrains Mono", monospace;
}
.card:hover .arrow {
  border-color: var(--accent-solid, var(--cyan));
  color: var(--accent-solid, var(--cyan));
  transform: translate(2px, -2px);
}

.card.spotify { --accent: rgba(29, 185, 84, 0.22); --accent-solid: #1db954 }
.card.spotify .handle { color: #1db954 }
.card.ig { --accent: rgba(255, 43, 214, 0.2); --accent-solid: var(--magenta) }
.card.ig .handle { color: var(--magenta) }
.card.tt { --accent: rgba(0, 240, 255, 0.2); --accent-solid: var(--cyan) }
.card.yt { --accent: rgba(255, 90, 90, 0.2); --accent-solid: #ff5a5a }
.card.yt .handle { color: #ff5a5a }

/* =============================================
   Marquee
   ============================================= */
.marquee {
  overflow: hidden; border-top: 1px solid #11182a; border-bottom: 1px solid #11182a;
  padding: 18px 0; margin-top: 60px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: mq 38s linear infinite;
  font-family: "Space Grotesk", sans-serif; font-size: 42px;
  font-weight: 600; letter-spacing: -0.02em; text-transform: uppercase;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 48px;
  color: var(--ink-dim);
}
.marquee-track span::after { content: "◆"; color: var(--magenta); font-size: 18px }
.marquee-track .hl { color: var(--ink) }
@keyframes mq { to { transform: translateX(-50%) } }

/* =============================================
   Footer
   ============================================= */
footer {
  padding: 60px 6vw 80px; border-top: 1px solid #11182a;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.2em; color: var(--ink-faint); text-transform: uppercase;
}
.foot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: end;
}
.foot-grid .mid { text-align: center }
.foot-grid .right { text-align: right; color: var(--ink-dim) }

/* =============================================
   Reveal on Scroll
   ============================================= */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].in { opacity: 1; transform: none }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px }
  .hero-mask { justify-self: center; max-width: 400px }
  .grid { grid-template-columns: repeat(2, 1fr) }
  .sec-head p { text-align: left }
  .foot-grid { grid-template-columns: 1fr; text-align: left }
  .foot-grid .mid, .foot-grid .right { text-align: left }
  .hud .hide-sm { display: none }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr }
  .grid { grid-template-columns: 1fr }
}

/* =============================================
   Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .noise { animation: none }
  .marquee-track { animation: none }
  .hud .dot, .player-head .right .live { animation: none }
  h1.logo:hover .glitch.c,
  h1.logo:hover .glitch.m { animation: none }
  [data-reveal] { opacity: 1; transform: none; transition: none }
  .boot { display: none }
}
