/* SPLITTER landing page. Palette sampled from the game's key art and screenshots. */
:root {
  --bg: #04141a;
  --bg-2: #061e25;
  --panel: rgba(7, 38, 46, .78);
  --line: #0f4a55;
  --line-2: #17707a;
  --teal: #2fe0b8;
  --teal-dim: #1c9c88;
  --cyan: #7fe9e0;
  --cream: #ece7d6;
  --lime: #d8f26a;
  --lime-dark: #1b2a12;
  --orange: #f08a4b;
  --yellow: #f4c84f;
  --text: #cfe6e2;
  --muted: #86aeaa;
  --pixel: "Silkscreen", "Courier New", monospace;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; position: relative; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--lime-dark); padding: 10px 14px; font-family: var(--pixel); }
.skip:focus { left: 8px; }

/* ---------- space backdrop ---------- */
.space { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(47, 224, 184, .10), transparent 62%),
    radial-gradient(900px 600px at 8% 88%, rgba(143, 124, 240, .08), transparent 60%),
    linear-gradient(180deg, #04141a 0%, #051a20 55%, #04141a 100%);
}
.stars { position: absolute; inset: -20% 0; image-rendering: pixelated; }
.stars-a { background: url(assets/stars-a.svg) 0 0 / 420px 420px; animation: drift 120s linear infinite; }
.stars-b { background: url(assets/stars-b.svg) 0 0 / 640px 640px; opacity: .8; animation: drift 200s linear infinite reverse; }
.grid { position: absolute; inset: 0;
  background:
    linear-gradient(rgba(47, 224, 184, .045) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(47, 224, 184, .045) 1px, transparent 1px) 0 0 / 56px 100%;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
}
@keyframes drift { to { background-position: 420px 840px; } }

/* CRT scanlines + vignette over everything */
.crt { position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .20) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 8, 12, .55) 100%);
}

/* ---------- HUD bar ---------- */
.hud { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px;
  padding: 9px max(20px, calc((100% - var(--wrap)) / 2));
  background: rgba(4, 20, 26, .9); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
  font: 400 13px/1 var(--pixel); letter-spacing: .04em;
}
.hud a { text-decoration: none; }
.hud-brand { color: var(--cream); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.hud-dot { width: 10px; height: 10px; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hud-nav { display: flex; gap: 20px; margin-left: 10px; }
.hud-nav a { color: var(--muted); padding: 8px 0; border-bottom: 2px solid transparent; }
.hud-nav a:hover { color: var(--teal); border-color: var(--teal); }
.hud-charge { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--yellow); }
.charge-bar { width: 150px; height: 8px; display: block;
  background: repeating-linear-gradient(90deg, rgba(244, 200, 79, .22) 0 4px, transparent 4px 6px); }
.charge-bar i { display: block; height: 100%; width: 100%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 4px, transparent 4px 6px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  font: 700 15px/1.2 var(--pixel); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  padding: 16px 22px; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s steps(2), box-shadow .12s steps(2), background .15s;
}
.btn-play { background: var(--lime); color: var(--lime-dark); border-color: #eefaa8;
  box-shadow: 0 5px 0 #7d9330, 0 0 28px rgba(216, 242, 106, .28);
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }
.btn-play:hover { transform: translateY(2px); box-shadow: 0 3px 0 #7d9330, 0 0 38px rgba(216, 242, 106, .45); }
.btn-play:active { transform: translateY(5px); box-shadow: 0 0 0 #7d9330; }
.btn-ghost { background: rgba(7, 38, 46, .7); color: var(--cyan); border-color: var(--line-2); box-shadow: 0 5px 0 #0a3038; }
.btn-ghost:hover { border-color: var(--teal); color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 #0a3038, 0 0 22px rgba(47, 224, 184, .25); }
.btn-small { padding: 9px 13px; font-size: 12px; box-shadow: 0 3px 0 #7d9330; }
.btn-small.btn-ghost { box-shadow: 0 3px 0 #0a3038; }

/* ---------- HUD tag: TARGET > NAME ---------- */
.tag { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 400 14px/1.2 var(--pixel); letter-spacing: .06em; color: var(--cyan);
  padding: 9px 14px; border: 2px solid var(--cyan); background: rgba(4, 20, 26, .85);
  box-shadow: inset 0 0 0 2px rgba(4, 20, 26, .9), inset 0 0 0 3px rgba(127, 233, 224, .25);
  text-shadow: 0 0 10px rgba(127, 233, 224, .5);
}
.tag b { color: var(--teal); font-weight: 400; }
.tag-h { font-size: clamp(16px, 2.3vw, 24px); padding: 12px 18px; margin-bottom: 44px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 92px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-shapes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.shape { transform-box: fill-box; transform-origin: center; animation: float 14s ease-in-out infinite; }
.s2, .s5, .s8 { animation-duration: 18s; animation-direction: reverse; }
.s3, .s6 { animation-duration: 22s; animation-delay: -6s; }
.s4, .s7 { animation-duration: 16s; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(10px, -16px) rotate(8deg); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-copy .tag { margin-bottom: 26px; font-size: 13px; }

.logo-split { position: relative; aspect-ratio: 1150 / 218; width: min(100%, 560px); }
.logo-split .half { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated;
  filter: drop-shadow(0 0 22px rgba(47, 224, 184, .22)); }
.logo-split .top { clip-path: polygon(0 0, 100% 0, 100% 36%, 0 66%); animation: cut-top 7s cubic-bezier(.2, .8, .2, 1) 1.1s infinite; }
.logo-split .bottom { clip-path: polygon(0 66%, 100% 36%, 100% 100%, 0 100%); animation: cut-bottom 7s cubic-bezier(.2, .8, .2, 1) 1.1s infinite; }
.blade { position: absolute; left: -6%; top: 66%; width: 112%; height: 3px; background: #fff; transform-origin: left center;
  transform: rotate(-9.6deg) scaleX(0); box-shadow: 0 0 12px #fff, 0 0 26px var(--teal);
  animation: blade 7s cubic-bezier(.3, .9, .3, 1) 1.1s infinite; }
@keyframes blade { 0% { transform: rotate(-9.6deg) scaleX(0); opacity: 1; } 5% { transform: rotate(-9.6deg) scaleX(1); opacity: 1; } 12%, 100% { transform: rotate(-9.6deg) scaleX(1); opacity: 0; } }
@keyframes cut-top { 0%, 4% { transform: none; } 9% { transform: translate(-5px, -3px); } 22%, 100% { transform: none; } }
@keyframes cut-bottom { 0%, 4% { transform: none; } 9% { transform: translate(5px, 3px); } 22%, 100% { transform: none; } }

.pitch { margin: 26px 0 30px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: #e3f2ef; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.readout { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font: 400 12px/1.3 var(--pixel); letter-spacing: .05em; }
.readout li { display: flex; flex-direction: column; gap: 5px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.readout span { color: var(--muted); }
.readout b { color: var(--cream); font-weight: 400; font-size: 14px; }
.readout .live { color: var(--lime); }
.readout .live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- screen frame (video / image panels) ---------- */
.screen { position: relative; border: 2px solid var(--line-2); background: #020d11; padding: 6px;
  box-shadow: 0 0 0 1px #020d11, 0 24px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(47, 224, 184, .10); }
.screen video, .screen img { width: 100%; background: #020d11; }
.screen-bar { display: flex; justify-content: space-between; gap: 12px; padding: 5px 6px 10px;
  font: 400 11px/1 var(--pixel); letter-spacing: .08em; color: var(--muted); }
.screen-bar span:first-child { color: var(--cyan); display: flex; align-items: center; gap: 7px; }
.rec { width: 8px; height: 8px; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: blink 1.4s steps(2) infinite; }
.corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--teal); pointer-events: none; }
.corner.tl { left: -7px; top: -7px; border-right: 0; border-bottom: 0; }
.corner.tr { right: -7px; top: -7px; border-left: 0; border-bottom: 0; }
.corner.bl { left: -7px; bottom: -7px; border-right: 0; border-top: 0; }
.corner.br { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }
.hero-screen { transform: rotate(.6deg); }

/* ---------- slice divider ---------- */
.slice-line { position: relative; height: 70px; overflow: hidden; }
.slice-line span { position: absolute; left: -5%; top: 50%; width: 110%; height: 2px; background: linear-gradient(90deg, transparent, #fff 18%, #fff 82%, transparent);
  transform: rotate(-2deg); box-shadow: 0 0 12px rgba(255, 255, 255, .7), 0 0 30px rgba(47, 224, 184, .6); opacity: .8; }
.slice-line.rev span { transform: rotate(2deg); }
.slice-line span::after { content: ""; position: absolute; right: 12%; top: -7px; width: 14px; height: 14px; background: var(--orange); transform: rotate(45deg); box-shadow: 0 0 14px var(--orange); }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 6vw, 84px) 0; }
.section.tight { padding-top: 10px; }
.section h3 { font: 700 clamp(20px, 2.4vw, 28px)/1.2 var(--pixel); color: var(--cream); letter-spacing: .01em; margin-bottom: 14px; }
.num { font: 400 13px/1 var(--pixel); color: var(--orange); letter-spacing: .1em; margin-bottom: 12px; }

.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 4.5vw, 64px); align-items: center; margin-bottom: clamp(48px, 6vw, 84px); }
.feature.flip .screen { order: 2; }
.feature-copy p:last-child { color: var(--text); max-width: 32em; }

.demo-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 40px;
  padding: clamp(22px, 3vw, 34px); border: 2px solid var(--line-2); background: var(--panel);
  background-image: repeating-linear-gradient(0deg, rgba(47, 224, 184, .04) 0 1px, transparent 1px 4px); }
.demo-head h3 { margin: 0; }
.stats { display: flex; justify-content: space-around; gap: 18px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.stats dt { font: 400 11px/1.2 var(--pixel); letter-spacing: .1em; color: var(--muted); }
.stats dd { font: 700 clamp(40px, 5vw, 62px)/1 var(--pixel); color: var(--teal); text-shadow: 0 0 22px rgba(47, 224, 184, .5); }

/* ---------- gallery ---------- */
.teaser { max-width: 940px; margin: 0 auto 40px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shots a { position: relative; display: block; border: 2px solid var(--line); background: #020d11; padding: 5px; text-decoration: none;
  transition: border-color .15s, transform .15s; }
.shots a:hover { border-color: var(--teal); transform: translateY(-3px); }
.shots img { width: 100%; }
.shots span { position: absolute; left: 12px; bottom: 12px; font: 400 11px/1 var(--pixel); letter-spacing: .08em; color: var(--cyan);
  background: rgba(4, 20, 26, .88); border: 1px solid var(--line-2); padding: 6px 8px; }

/* ---------- release timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-bottom: 44px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 25px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 16px); }
.timeline li { position: relative; padding-top: 74px; }
.node { position: absolute; top: 0; left: 0; width: 52px; height: 52px; background: var(--bg-2); border: 3px solid var(--line-2); }
.node.hex { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--line-2); border: 0; }
.node.hex::after, .node.oct::after { content: ""; position: absolute; inset: 3px; background: var(--bg-2); clip-path: inherit; }
.node.oct { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: var(--line-2); border: 0; }
.done .node { border-color: var(--lime); background: rgba(216, 242, 106, .16); box-shadow: 0 0 26px rgba(216, 242, 106, .45); }
.done .node::before { content: ""; position: absolute; inset: 13px; background: var(--lime); }
.when { font: 400 13px/1 var(--pixel); letter-spacing: .1em; color: var(--yellow); margin-bottom: 10px; }
.done .when { color: var(--lime); }
.timeline h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 8px; }
.timeline p:last-child { color: var(--muted); }

/* ---------- creators ---------- */
.creators { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.creators .tag-h { margin-bottom: 30px; }
.lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--cream); margin-bottom: 16px; }
.creators .cta { margin-top: 28px; }
.creators .btn-ghost { text-transform: none; font-size: 13px; overflow-wrap: anywhere; }
.target-card { border: 2px solid var(--line-2); background: #05222a; padding: 18px 18px 22px; text-align: center;
  background-image: radial-gradient(circle at 50% 40%, rgba(47, 224, 184, .16), transparent 62%), url(assets/stars-a.svg); }
.target-card svg { width: min(100%, 320px); margin: 0 auto 6px; }
.target-card .tag { font-size: 13px; }

/* ---------- call-outs ---------- */
.callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.callout { border: 2px dashed var(--line-2); background: var(--panel); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; scroll-margin-top: 90px; }
.callout h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 6px; }
.callout p:not(.num) { color: var(--text); margin-bottom: 16px; }
.callout .btn { margin-top: auto; font-size: 13px; }

/* ---------- footer ---------- */
.footer { border-top: 2px solid var(--line); margin-top: 40px; padding: 46px 0 60px; text-align: center; color: var(--muted); background: rgba(2, 13, 17, .6); }
.footer img { width: 220px; margin: 0 auto 18px; image-rendering: pixelated; opacity: .92; }
.footer p { margin-bottom: 8px; }
.footer a { overflow-wrap: anywhere; }
.fine { font-size: 13px; opacity: .7; margin-top: 16px; }

/* ---------- screenshot viewer ---------- */
.viewer { border: 2px solid var(--teal); background: #020d11; padding: 8px; max-width: min(96vw, 1400px); color: var(--text); }
.viewer::backdrop { background: rgba(1, 8, 11, .88); }
.viewer img { width: 100%; }
.viewer form { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .hud-charge { display: none; }
  .hud .btn { margin-left: auto; }
  .hero-grid, .feature, .creators { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .screen { order: 0; }
  .hero-screen { transform: none; }
  .demo-strip { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-card { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .hud { gap: 12px; padding-inline: 16px; }
  .hud-nav { display: none; }
  .tag { font-size: 12px; gap: 8px; padding: 8px 10px; }
  .tag-h { font-size: 15px; margin-bottom: 30px; }
  .btn { width: 100%; padding: 15px 16px; font-size: 14px; }
  .hud .btn { width: auto; }
  .viewer .btn { width: auto; }
  .readout { gap: 14px 18px; }
  .corner { width: 14px; height: 14px; }
  .corner.tl, .corner.bl { left: -5px; } .corner.tr, .corner.br { right: -5px; }
  .shots, .callouts { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .timeline::before { left: 25px; right: auto; top: 10px; bottom: 40px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-2) 0 10px, transparent 10px 16px); }
  .timeline li { padding: 2px 0 0 76px; min-height: 56px; }
  .stats { gap: 8px; flex-wrap: nowrap; width: 100%; justify-content: space-between; }
  .stats dt { font-size: 9px; letter-spacing: .05em; }
  .stats dd { font-size: 40px; }
  .slice-line { height: 46px; }
  .crt { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .blade { display: none; }
}
