:root {
  --bg: #07050d;
  --panel: #100d1b;
  --panel-2: #141121;
  --line: rgba(181, 169, 211, .16);
  --line-bright: rgba(92, 229, 238, .38);
  --text: #f5f4fb;
  --muted: #aaa6b7;
  --cyan: #5ce5ee;
  --green: #58f0bd;
  --purple: #a878ff;
  --red: #ff4964;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(105, 94, 142, .04) 1px, transparent 1px) 0 0 / 100% 72px,
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--bg); background: var(--cyan); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--cyan);
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
}
.ambient-one { width: 520px; height: 520px; top: -220px; right: -120px; background: var(--purple); }
.ambient-two { width: 460px; height: 460px; bottom: 0; left: -260px; background: var(--cyan); }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.scrolled {
  background: rgba(7,5,13,.82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}
.brand b { color: var(--cyan); }
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 22px rgba(92,229,238,.24);
  font-size: 11px;
  letter-spacing: -.03em;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.primary-nav > a:not(.nav-play) { color: var(--muted); transition: color .2s; }
.primary-nav > a:not(.nav-play):hover { color: var(--text); }
.nav-play { padding: 9px 13px; color: var(--cyan); border: 1px solid var(--line-bright); background: rgba(92,229,238,.05); }
.nav-play:hover { background: rgba(92,229,238,.12); }
.nav-toggle { display: none; }

.hero {
  width: 100%;
  max-width: var(--max);
  min-height: 100svh;
  margin: 0 auto;
  padding: 96px 24px 42px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(38px, 5vw, 72px);
  position: relative;
}
.hero-copy { min-width: 0; position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow > span { width: 25px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hero h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(58px, 6.3vw, 88px);
  line-height: .82;
  letter-spacing: -.074em;
}
.hero h1 em, .display-heading em, .final-cta h2 em {
  display: block;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--purple);
  text-shadow: 0 0 28px rgba(168,120,255,.14);
}
.tagline {
  margin: 25px 0 17px;
  color: var(--cyan);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: .055em;
}
.hero-description { max-width: 540px; margin: 0; color: #bbb7c7; font-size: 14px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button {
  min-height: 47px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #07100f; background: var(--green); box-shadow: 0 0 30px rgba(88,240,189,.13); }
.button-primary:hover { box-shadow: 0 8px 36px rgba(88,240,189,.28); }
.button-secondary { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.025); }
.button-secondary:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.text-link { padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.text-link:hover { color: var(--cyan); border-color: var(--cyan); }
.scroll-cue { position: absolute; bottom: 19px; left: 24px; display: flex; align-items: center; gap: 13px; color: #686475; font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 35px; height: 1px; overflow: hidden; background: var(--line); }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--cyan); animation: scan 2.3s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 50%,100% { transform: translateX(100%); } }

.game-preview {
  position: relative;
  min-width: 0;
  width: 100%;
  align-self: center;
  border: 1px solid var(--line);
  background: #090711;
  box-shadow: 0 26px 72px rgba(0,0,0,.46), 0 0 55px rgba(168,120,255,.06);
}
.game-preview::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% -2% -6% 11%;
  border: 1px solid rgba(92,229,238,.14);
}
.preview-chrome, .preview-footer {
  min-height: 36px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777287;
  font: 700 8px/1 Consolas, monospace;
  letter-spacing: .1em;
}
.preview-chrome { border-bottom: 1px solid var(--line); }
.preview-footer { border-top: 1px solid var(--line); }
.preview-chrome span { display: flex; align-items: center; gap: 7px; }
.preview-chrome i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.preview-chrome b { color: var(--green); font-size: 7px; }
.preview-footer span:last-child { color: var(--red); }
.preview-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 290px;
  background:
    radial-gradient(circle at 8% 14%, rgba(186,166,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 18%, rgba(186,166,255,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 42%, rgba(186,166,255,.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 90% 61%, rgba(186,166,255,.5) 0 1px, transparent 1.5px),
    linear-gradient(rgba(92,229,238,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,229,238,.035) 1px, transparent 1px),
    linear-gradient(180deg, #0d0717, #070710);
  background-size: auto, auto, auto, auto, 54px 54px, 54px 54px, auto;
}
.preview-hud {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 19px;
  right: 19px;
  display: flex;
  justify-content: space-between;
  color: #d9d6e5;
  font: 800 9px/1 Consolas, monospace;
  letter-spacing: .08em;
}
.preview-hud span:last-child { color: var(--red); }
.preview-rule {
  position: absolute;
  top: 24%;
  width: 100%;
  color: rgba(92,229,238,.09);
  font-size: clamp(18px, 2.1vw, 31px);
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
}
.preview-platform { position: absolute; height: 8%; border-top: 3px solid #c8cee2; background: #444b63; box-shadow: 0 10px 0 rgba(45,50,69,.68); }
.platform-a { left: 0; bottom: 15%; width: 39%; }
.platform-b { left: 48%; bottom: 15%; width: 18%; }
.platform-c { right: 0; bottom: 15%; width: 25%; }
.preview-player {
  position: absolute;
  z-index: 3;
  left: 29%;
  bottom: 23%;
  width: 5.5%;
  aspect-ratio: .68;
  border: 3px solid var(--cyan);
  border-bottom: 0;
  background: #172637;
  box-shadow: 0 0 16px rgba(92,229,238,.17);
}
.preview-player::after { content: ""; position: absolute; left: -17%; right: -17%; bottom: -7px; height: 7px; border-left: 2px solid var(--red); border-right: 2px solid var(--red); transform: skewX(-17deg); }
.preview-player i { position: absolute; top: 34%; width: 14%; aspect-ratio: 1; background: white; }
.preview-player i:first-child { left: 24%; }
.preview-player i:last-child { right: 24%; }
.preview-spikes { position: absolute; z-index: 2; left: 51%; bottom: 23%; width: 14%; height: 9%; display: flex; align-items: end; }
.preview-spikes i { flex: 1; height: 100%; background: var(--red); clip-path: polygon(50% 0,100% 100%,0 100%); filter: drop-shadow(0 0 5px rgba(255,73,100,.35)); }
.preview-exit { position: absolute; right: 8%; bottom: 23%; width: 8.5%; height: 24%; border: 3px solid var(--green); background: rgba(88,240,189,.09); box-shadow: 0 0 18px rgba(88,240,189,.13); }
.preview-exit::before { content: ""; position: absolute; top: 47%; right: 16%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.preview-exit span { position: absolute; top: -22px; left: 50%; color: var(--green); font: 700 7px/1 Consolas, monospace; letter-spacing: .08em; transform: translateX(-50%); }
.preview-scanline { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 1px; opacity: .3; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: stage-scan 5s linear infinite; }
@keyframes stage-scan { from { transform: translateY(0); } to { transform: translateY(330px); } }

.strip { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { min-height: 122px; padding: 22px; display: flex; align-items: center; justify-content: center; gap: 15px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { color: var(--cyan); font-size: clamp(37px, 4vw, 53px); line-height: 1; letter-spacing: -.06em; }
.stat strong small { font-size: .34em; letter-spacing: 0; }
.stat span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.section { max-width: var(--max); margin: 0 auto; padding: 105px 24px; }
.section-kicker { margin-bottom: 24px; }
.section-kicker span { color: var(--cyan); font-family: Consolas, monospace; }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(42px, 7vw, 86px); align-items: end; }
.display-heading { margin: 0; font-size: clamp(43px, 5.6vw, 72px); line-height: .94; letter-spacing: -.052em; }
.about-copy { color: #bbb7c7; font-size: 15px; }
.about-copy p { margin: 0 0 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 58px; }
.feature-card { position: relative; min-width: 0; min-height: 270px; padding: 25px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(22,20,36,.86), rgba(10,8,17,.9)); transition: transform .25s, border-color .25s, background .25s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(168,120,255,.4); background: linear-gradient(145deg, rgba(27,24,43,.96), rgba(10,8,17,.95)); }
.feature-wide { grid-column: span 3; min-height: 225px; padding-right: 44%; }
.feature-index { position: absolute; top: 21px; left: 25px; color: #777287; font: 700 8px/1 Consolas, monospace; letter-spacing: .12em; }
.feature-card h3 { position: relative; margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.feature-card p { position: relative; margin: 0; color: var(--muted); font-size: 13px; }
.feature-icon { position: absolute; top: 45px; right: 24px; color: transparent; font-size: 94px; line-height: 1; font-weight: 900; -webkit-text-stroke: 1px rgba(168,120,255,.28); }
.input-icon { top: 71px; font-size: 42px; letter-spacing: -.12em; }
.danger-card .feature-icon { color: rgba(255,73,100,.08); -webkit-text-stroke-color: rgba(255,73,100,.35); }
.danger-card:hover { border-color: rgba(255,73,100,.4); }
.level-grid { position: absolute; top: 31px; right: 42px; display: grid; grid-template-columns: repeat(5, 32px); gap: 7px; transform: perspective(500px) rotateX(52deg) rotateZ(-15deg); }
.level-grid i { aspect-ratio: 1; border: 1px solid rgba(92,229,238,.28); background: rgba(92,229,238,.04); box-shadow: 7px 7px 0 rgba(168,120,255,.04); }
.level-grid i:nth-child(7), .level-grid i:nth-child(14), .level-grid i:nth-child(19) { border-color: rgba(255,73,100,.65); background: rgba(255,73,100,.12); }

.betrayal { max-width: none; padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(14,11,24,.55), transparent); }
.betrayal-heading { max-width: var(--max); margin: 0 auto 48px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.betrayal-heading > p { max-width: 400px; margin: 0 0 3px; color: var(--muted); font-size: 14px; }
.loop-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.loop-card { min-width: 0; min-height: 280px; padding: 23px; border-right: 1px solid var(--line); background: rgba(10,8,17,.52); }
.loop-card:last-child { border-right: 0; }
.loop-card > span { color: var(--cyan); font: 700 8px/1 Consolas, monospace; }
.loop-card h3 { margin: 26px 0 7px; font-size: 18px; }
.loop-card p { margin: 0; color: var(--muted); font-size: 12px; }
.loop-diagram { position: relative; height: 74px; margin-top: 24px; border-bottom: 4px solid #4b5065; }
.route-diagram i, .trigger-diagram i, .learn-diagram i { position: absolute; left: 10%; bottom: 4px; width: 15px; height: 25px; border: 2px solid var(--cyan); background: #162333; }
.route-diagram b, .trigger-diagram b, .learn-diagram b { position: absolute; right: 8%; bottom: 4px; width: 22px; height: 41px; border: 2px solid var(--green); background: rgba(88,240,189,.08); }
.route-diagram em, .trigger-diagram em, .learn-diagram em { position: absolute; left: 32%; right: 28%; bottom: 18px; height: 1px; background: var(--cyan); }
.route-diagram em::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); transform: rotate(45deg); }
.trigger-diagram em { bottom: 4px; height: 21px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 13px); clip-path: polygon(0 100%, 10% 0, 20% 100%, 30% 0, 40% 100%, 50% 0, 60% 100%, 70% 0, 80% 100%, 90% 0, 100% 100%); }
.learn-diagram em { left: 29%; right: auto; width: 42%; bottom: 15px; height: 26px; border: 1px dashed var(--purple); background: rgba(168,120,255,.08); }
.retry-diagram { display: grid; place-items: center; color: transparent; border: 1px solid rgba(168,120,255,.18); font-size: 62px; font-weight: 200; -webkit-text-stroke: 1px var(--purple); }

.play-system { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.system-panel { min-width: 0; padding: 30px; border: 1px solid var(--line); background: rgba(15,13,25,.65); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.panel-heading > div { display: flex; align-items: baseline; gap: 13px; }
.panel-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.panel-number { color: var(--purple); font: 700 9px/1 Consolas, monospace; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: var(--green); border: 1px solid rgba(88,240,189,.18); font: 700 7px/1 Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.status-pill.cyan { color: var(--cyan); }
.control-list > div, .tech-list li { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.control-list strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.keys { display: flex; align-items: center; gap: 5px; }
kbd { min-width: 30px; height: 28px; padding: 0 7px; display: inline-grid; place-items: center; color: #d9d6e5; border: 1px solid #3d394b; border-bottom-color: #5b566c; border-radius: 3px; background: #191623; box-shadow: inset 0 -2px rgba(255,255,255,.03); font: 700 8px/1 Consolas, monospace; }
.keys b { color: #5f5a6d; font: 400 7px/1 Consolas, monospace; text-transform: uppercase; }
.desktop-note { margin: 18px 0 0; color: #777181; font-size: 9px; }
.tech-list { margin: 0; padding: 0; list-style: none; }
.tech-list span { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.tech-list strong { font-size: 12px; text-align: right; }

.project-details { padding-top: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-block { min-width: 0; min-height: 160px; padding: 28px 23px; border-right: 1px solid var(--line); }
.detail-block:last-child { border-right: 0; }
.detail-block span { display: block; margin-bottom: 27px; color: var(--cyan); font: 700 8px/1 Consolas, monospace; letter-spacing: .13em; }
.detail-block strong { font-size: 16px; line-height: 1.35; }

.final-cta { position: relative; max-width: none; min-height: 530px; padding-left: 24px; padding-right: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(circle at center, rgba(168,120,255,.12), transparent 54%); text-align: center; }
.final-cta::before { content: ""; position: absolute; width: 430px; aspect-ratio: 1; border: 1px solid rgba(168,120,255,.12); transform: rotate(45deg); }
.final-cta > * { position: relative; }
.final-cta .eyebrow { margin-bottom: 23px; }
.final-cta h2 { margin: 0; font-size: clamp(55px, 7.5vw, 104px); line-height: .82; letter-spacing: -.065em; }
.final-cta > p:not(.eyebrow) { max-width: 500px; margin: 27px 0 23px; color: var(--muted); font-size: 14px; }
.button-large { min-height: 53px; padding: 0 27px; }
.final-cta small { display: block; margin-top: 17px; color: #777181; font-size: 9px; }
.final-cta small a { color: #aaa5b8; border-bottom: 1px solid var(--line); }
.cta-signal { position: absolute; top: 37px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.cta-signal span { width: 17px; height: 3px; background: var(--red); transform: skewX(-28deg); opacity: .45; box-shadow: 0 0 9px rgba(255,73,100,.4); }
.site-footer { max-width: var(--max); min-height: 112px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #777181; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer > div { display: flex; gap: 21px; }
.site-footer a:hover { color: var(--cyan); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease var(--delay,0ms), transform .7s ease var(--delay,0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 122px; padding-bottom: 80px; gap: 54px; }
  .hero-copy { max-width: 720px; }
  .game-preview { max-width: 760px; }
  .scroll-cue { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 27px; }
  .about-copy { max-width: 660px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-wide { grid-column: span 2; padding-right: 45%; }
  .feature-grid .feature-card:last-child { grid-column: span 2; min-height: 210px; }
  .loop-grid { grid-template-columns: 1fr 1fr; }
  .loop-card:nth-child(2) { border-right: 0; }
  .loop-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .play-system { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-block:nth-child(2) { border-right: 0; }
  .detail-block:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { height: 62px; padding: 0 18px; }
  .nav-toggle { width: 38px; height: 38px; padding: 9px; display: grid; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
  .nav-toggle > span:not(.sr-only) { display: block; height: 1px; background: var(--text); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] > span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 61px; left: 0; right: 0; padding: 17px; display: none; align-items: stretch; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); background: rgba(7,5,13,.98); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px 10px; }
  .nav-play { margin-top: 7px; text-align: center; }
  .hero { padding: 105px 18px 66px; gap: 46px; }
  .hero h1 { font-size: clamp(51px, 17vw, 78px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .text-link { align-self: center; }
  .preview-stage { min-height: 0; }
  .preview-footer span:last-child { display: none; }
  .strip { padding: 0 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 100px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .section { padding: 82px 18px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .feature-wide, .feature-grid .feature-card:last-child { grid-column: auto; min-height: 250px; padding-right: 25px; }
  .feature-wide > div:not(.level-grid) { max-width: 75%; }
  .level-grid { top: 27px; right: -55px; opacity: .36; }
  .betrayal-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-card { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .loop-card:nth-child(3) { border-bottom: 1px solid var(--line); }
  .loop-card:last-child { border-bottom: 0; }
  .system-panel { padding: 23px 19px; }
  .panel-heading { flex-direction: column; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-block { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-block:nth-child(3) { border-bottom: 1px solid var(--line); }
  .detail-block span { margin-bottom: 18px; }
  .final-cta { min-height: 500px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer > p { margin: 0; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 49px; }
  .tagline { font-size: 16px; }
  .preview-hud { font-size: 7px; }
  .stat { align-items: flex-start; flex-direction: column; gap: 7px; }
  .display-heading { font-size: 39px; }
  .keys { gap: 3px; }
  kbd { min-width: 26px; padding: 0 5px; }
  .tech-list strong { font-size: 10px; }
}

@media (max-height: 760px) and (min-width: 1021px) {
  .hero { padding-top: 84px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(58px, 5.7vw, 78px); }
  .tagline { margin-top: 20px; }
  .hero-actions { margin-top: 22px; }
  .preview-stage { min-height: 265px; }
}

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