/* DaReaper92 — the public page. "Neon reaper": void black, crimson → violet, a cold cyan accent. */
:root {
  --void: #050507;
  --panel: #0d0b13;
  --line: rgba(255, 255, 255, .08);
  --ink: #f2eefb;
  --muted: #918ba3;
  --crimson: #ff2442;
  --violet: #b13cff;
  --cyan: #39e6ff;
  --grad: linear-gradient(100deg, var(--crimson), var(--violet) 60%, var(--cyan));
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: min(1180px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--crimson); color: #fff; }

/* ---------- atmosphere ---------- */
.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before { /* aurora */
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 80vh;
  background:
    radial-gradient(40% 50% at 70% 40%, rgba(177, 60, 255, .22), transparent 70%),
    radial-gradient(35% 45% at 30% 30%, rgba(255, 36, 66, .18), transparent 70%);
  filter: blur(10px);
}
.grid-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10vh;
  height: 55vh;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  background:
    repeating-linear-gradient(90deg, rgba(177, 60, 255, .22) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(0deg, rgba(255, 36, 66, .2) 0 1px, transparent 1px 70px);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 6s linear infinite;
}
@keyframes floor { to { background-position: 0 70px, 0 70px; } }
.fog { position: absolute; inset: auto 0 0; height: 40vh; background: linear-gradient(to top, var(--void), transparent); }
.scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 14px max(20px, (100% - 1180px) / 2);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 5, 7, .78); backdrop-filter: blur(12px); border-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.05rem/1 var(--display); letter-spacing: .12em; }
.nav-brand b { font-style: italic; font-weight: 600; margin-left: .03em; background: linear-gradient(90deg, #ff3a55, #c03cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 36, 66, .5)); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font: 600 .82rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font: 700 .86rem/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -10px rgba(255, 36, 66, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(177, 60, 255, .8); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .18); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--crimson); background: rgba(255, 36, 66, .08); }
.nav-login { padding: 10px 16px; font-size: .76rem; }

/* ---------- hero ---------- */
main, .footer { position: relative; z-index: 1; }
.hero {
  width: var(--wrap);
  margin: 0 auto;
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding: 20px 0 60px;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--muted); font: 600 .8rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 0 rgba(255, 36, 66, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 36, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 36, 66, 0); } }

.wordmark { margin: 0; display: flex; font: 700 clamp(2.7rem, 7.4vw, 6.6rem)/.95 var(--display); letter-spacing: -.015em; white-space: nowrap; }
/* One continuous piece of lettering: white that warms through the last letters into a crimson → violet "92",
   which sits on the same baseline at the same size, leaning forward in italic. */
.wm {
  position: relative;
  padding-right: .06em;
  background: linear-gradient(90deg, #fff 0%, #f4f0fb 56%, #ffd3da 70%, #ff3a55 80%, #c03cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 36, 66, .22));
}
.wm em { font-style: italic; font-weight: 600; margin-left: .02em; letter-spacing: -.02em; }
/* glitch slices */
.wm::before, .wm::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}
.wm::before { background-image: linear-gradient(var(--crimson), var(--crimson)); animation: glitch-a 6s infinite steps(1); }
.wm::after { background-image: linear-gradient(var(--cyan), var(--cyan)); animation: glitch-b 6s infinite steps(1); }
@keyframes glitch-a { 0%, 91%, 100% { opacity: 0; } 92% { opacity: .9; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); } 94% { opacity: .9; transform: translate(3px, -2px); clip-path: inset(60% 0 8% 0); } 96% { opacity: 0; } }
@keyframes glitch-b { 0%, 92%, 100% { opacity: 0; } 93% { opacity: .8; transform: translate(4px, 0); clip-path: inset(40% 0 30% 0); } 95% { opacity: .8; transform: translate(-3px, 2px); clip-path: inset(5% 0 70% 0); } 97% { opacity: 0; } }
.lede { max-width: 30em; margin: 26px 0 32px; color: #c7c1d6; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; justify-self: center; width: min(112%, 600px); margin: 0 -6% 0 0; }
/* ---------- the reaper: layered so each motion is independent ----------
   .hero-art  entrance (rises out of the dark)
   .rig       leans toward the cursor (JS sets --lx/--ly), flinches when tapped
   .float     slow bob
   .breathe   idle breathing (scales from the feet)
   .fx-glint  light sweeping along the scythe blade (masked to the art, clipped to the blade)
   .fx-eyes   red glow in the eye sockets: always faint, brighter when you're near (--near), flares now and then */
.hero-art { --near: 0; animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.9); filter: blur(8px) brightness(.3); } to { opacity: 1; transform: none; filter: none; } }
.art-glow {
  position: absolute;
  inset: 15% 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 36, 66, .35), rgba(177, 60, 255, .15) 50%, transparent 70%);
  filter: blur(30px);
  opacity: calc(.75 + var(--near) * .5);
  transition: opacity .4s;
}
.rig {
  position: relative;
  z-index: 1;
  transform: translate(calc(var(--lx, 0) * 14px), calc(var(--ly, 0) * 6px)) rotate(calc(var(--lx, 0) * 4deg));
  transform-origin: 50% 95%;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rig.flinch { animation: flinch .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes flinch { 0% { scale: 1; } 25% { scale: .94 1.06; translate: 0 -10px; } 55% { scale: 1.04 .96; translate: 0 0; } 100% { scale: 1; } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.breathe { position: relative; transform-origin: 50% 92%; animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.012, 1.022); } }
.reaper { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.fx { position: absolute; inset: 0; pointer-events: none; }
/* When the WebGL puppet runs, it draws everything (eye glow + glint included) */
.reaper-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.breathe.gl .reaper { visibility: hidden; }
.breathe.gl .fx { display: none; }
/* The animated loop (preferred): it moves on its own, so the breathing/glint/eye overlays step aside */
.reaper-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.breathe.vid { animation: none; }
.breathe.vid .reaper, .breathe.vid .fx, .breathe.vid .reaper-gl { visibility: hidden; }
.rig.flinch .reaper-vid { animation: vidflare .6s ease-out; }
@keyframes vidflare { 25% { filter: drop-shadow(0 0 18px rgba(255, 36, 66, .85)) brightness(1.15); } }

.fx-glint {
  -webkit-mask: url("../img/reaper.webp") center / 100% 100% no-repeat;
  mask: url("../img/reaper.webp") center / 100% 100% no-repeat;
  clip-path: polygon(24% 7%, 41% 1%, 58% 1.5%, 73% 5%, 85% 15%, 90% 31%, 85.5% 28%, 77% 18.5%, 65.5% 12%, 52.5% 10%, 40% 10.5%, 29% 13.5%, 23% 14%);
  background: linear-gradient(100deg, transparent 39%, rgba(255, 255, 255, .55) 46%, #fff 50%, rgba(180, 220, 255, .6) 54%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 160% 0;
  mix-blend-mode: screen;
  animation: glint 5.5s 1.6s ease-in-out infinite;
}
@keyframes glint { 0% { background-position: 160% 0; } 30%, 100% { background-position: -60% 0; } }

.fx-eyes {
  background:
    radial-gradient(circle at 43.4% 43.2%, rgba(255, 60, 80, .95) 0, rgba(255, 36, 66, .55) 2.2%, rgba(255, 36, 66, 0) 5.6%),
    radial-gradient(circle at 57.2% 44.6%, rgba(255, 60, 80, .95) 0, rgba(255, 36, 66, .55) 2.2%, rgba(255, 36, 66, 0) 5.6%);
  mix-blend-mode: screen;
  opacity: calc(.28 + var(--near) * .55);
  transition: opacity .35s;
}
.fx-eyes::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(6px) brightness(1.4);
  opacity: 0;
  animation: eyeflare 7s 1.2s infinite;
}
@keyframes eyeflare { 0%, 78%, 100% { opacity: 0; } 80% { opacity: 1; } 83% { opacity: .2; } 86% { opacity: 1; } 92% { opacity: 0; } }
.rig.flinch .fx-eyes::after { animation: eyeflare-now .6s; }
@keyframes eyeflare-now { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- sections ---------- */
.section { width: var(--wrap); margin: 0 auto; padding: 90px 0 30px; }
.section-head { margin-bottom: 34px; }
.kicker { margin: 0 0 8px; color: var(--crimson); font: 700 .78rem/1 var(--display); letter-spacing: .34em; text-transform: uppercase; }
.section h2 { margin: 0; font: 700 clamp(2rem, 4.6vw, 3.1rem)/1.05 var(--display); letter-spacing: .01em; }
.muted { color: var(--muted); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* stream */
.stream-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.stream-screen { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: #08070c; overflow: hidden; }
.stream-noise {
  position: absolute;
  inset: -50%;
  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='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .12;
  animation: noise .4s steps(3) infinite;
}
@keyframes noise { 33% { transform: translate(-6%, 4%); } 66% { transform: translate(5%, -6%); } }
.stream-screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, transparent, rgba(0, 0, 0, .75)); }
.stream-label { position: relative; z-index: 1; text-align: center; padding: 20px; }
.stream-label p { margin: 14px 0 6px; font: 700 clamp(1.6rem, 4vw, 2.6rem)/1 var(--display); letter-spacing: .06em; }
.stream-label small { display: block; color: var(--muted); }
.stream-go { margin-top: 18px; }
.badge-off i { background: #ff2442 !important; box-shadow: 0 0 8px #ff2442; }
.badge-off { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; font: 700 .72rem/1 var(--display); letter-spacing: .24em; color: var(--muted); }
.badge-off i { width: 8px; height: 8px; border-radius: 50%; background: #55505f; }
.stream-side { padding: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.stream-side h3 { margin: 0; font: 700 1.1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }

/* platform buttons (stream side + socials grid) */
.platforms { display: grid; gap: 10px; }
.plat {
  --c: #888;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.plat svg { flex: none; width: 22px; height: 22px; fill: var(--c); }
.plat strong { font: 700 .95rem/1.2 var(--display); letter-spacing: .04em; }
.plat small { display: block; color: var(--muted); font-size: .76rem; }
.plat .go { margin-left: auto; color: var(--muted); font: 700 .7rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
a.plat:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transform: translateY(-2px); }
a.plat:hover .go { color: var(--ink); }
.plat.soon { opacity: .55; }
.plat.main { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); box-shadow: 0 0 22px -10px var(--c); }
.plat.main small { color: var(--c); }

/* socials */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.socials .plat { padding: 18px; }

/* footer */
.footer {
  width: var(--wrap);
  margin: 80px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .82rem;
}
.footer a { color: var(--muted); text-decoration: none; letter-spacing: .1em; }
.footer a:hover { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 10px; gap: 10px; }
  .hero-art { order: -1; width: min(92vw, 440px); margin: -10px auto -24px; }
  .eyebrow, .hero-cta, .wordmark { justify-content: center; }
  .wordmark { font-size: clamp(2.4rem, 11.5vw, 5.2rem); }
  .lede { margin-inline: auto; }
  .stream-card { grid-template-columns: 1fr; }
  .stream-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav { gap: 12px; padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-login { margin-left: auto; }
  .section { padding-top: 70px; }
  .socials { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
