:root {
  color-scheme: dark;
  --bg: #080e1b;
  --panel: #101d2d;
  --line: #2b4154;
  --ink: #eef6ff;
  --soft: #b2c2d2;
  --cyan: #7ee1fa;
  --gold: #ffce77;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; inset: 12px auto auto 12px; transform: translateY(-150%); z-index: 5; padding: 12px; background: var(--bg); }
.skip:focus { transform: none; }
.muted { color: #8295a9; }
.top { background: #0a111e; border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 32px; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.brand img { border-radius: 10px; }
.brand-divider { color: var(--cyan); margin-inline: 3px; }
nav { display: flex; gap: clamp(18px, 4vw, 42px); }
nav a, .footer a { color: var(--soft); text-decoration: none; }
nav a:hover, .footer a:hover, .text-link:hover { color: var(--cyan); }
.top-download { white-space: nowrap; color: var(--gold); text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: clamp(54px, 8vw, 106px) 55px; }
main { background: radial-gradient(ellipse at 76% 10%, #142a42 0, transparent 49rem), var(--bg); }
.eyebrow, .display-header, .hero-display figcaption, .platform-status, .step {
  color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .76rem; font-weight: 650; letter-spacing: .10em;
}
.signal { display: inline-block; vertical-align: .06em; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #80f0d1; box-shadow: 0 0 13px #62dac4a0; }
h1 { margin: 18px 0 24px; font-size: clamp(3.9rem, 9vw, 8.2rem); line-height: .84; letter-spacing: -.083em; }
h1 em { font-style: normal; color: var(--gold); }
.lead { max-width: 34rem; color: var(--soft); font-size: clamp(1.02rem, 2vw, 1.23rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-block: 28px 17px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 700; }
.primary { background: var(--gold); color: #15110b; }
.primary:hover { background: #ffe2a8; }
.secondary { color: var(--ink); background: #0d1928; border-color: #43647d; }
.secondary:hover { background: #18334a; }
.hero-note, .platform small { color: var(--soft); font-size: .85rem; line-height: 1.55; }
.hero-display { min-width: 0; background: #101c2b; border: 1px solid #3c647d; border-radius: 16px; overflow: hidden; box-shadow: 0 28px 68px #02050ba0; }
.display-header, .hero-display figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 16px; }
.hero-display figcaption { color: var(--soft); border-top: 1px solid var(--line); }
.hero-display img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.readout div { padding: 19px 20px; display: grid; gap: 4px; }
.readout div + div { border-left: 1px solid var(--line); }
.readout strong { font-size: clamp(1.12rem, 3vw, 1.66rem); color: var(--gold); }
.readout span { color: var(--soft); font-size: .9rem; }

.section { padding-block: clamp(48px, 7vw, 90px) 0; }
h2 { margin: 9px 0 24px; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.05; letter-spacing: -.05em; }
h3 { margin: 12px 0 10px; font-size: 1.25rem; }
.steps, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps article, .gallery figure, .platform { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.steps article, .platform { padding: clamp(18px, 3vw, 28px); }
.steps p, .platform p, .section-copy, .privacy p { color: var(--soft); line-height: 1.65; }
.gallery figure { overflow: hidden; }
.gallery img { width: 100%; background: #101c2b; }
.gallery a { display: block; }
.gallery a:focus-visible { outline-offset: -5px; }
.gallery figcaption { display: grid; gap: 5px; padding: 13px 17px 16px; }
.gallery figcaption span { color: var(--soft); font-size: .85rem; }
.gameplay-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 20px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.gameplay-preview video { display: block; width: min(100%, 260px); height: auto; border-radius: 8px; background: #101c2b; }
.workshop-preview video { width: min(100%, 680px); }
.gameplay-preview figcaption { display: grid; gap: 7px; }
.gameplay-preview figcaption span { color: var(--soft); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform .platform-status { color: var(--cyan); }
.platform h3 { font-size: 1.55rem; }
.platform .button { width: fit-content; margin: 16px 0 12px; }
.text-link, .platform small { display: block; }
.text-link, .privacy a { color: var(--cyan); text-underline-offset: 3px; }
.section-copy { max-width: 46rem; margin-bottom: 16px; }
.privacy { max-width: 1180px; }
.privacy p { max-width: 52rem; margin-bottom: 12px; }
.privacy details { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; max-width: 52rem; }
.privacy summary { cursor: pointer; color: var(--cyan); }
.privacy details p { margin: 10px 0 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 55px; padding-block: 25px; font-size: .88rem; }
.biz-mark { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #4b798a; border-radius: 9px; color: var(--cyan); font-size: 1.35rem; font-weight: 800; }
.catalog-hero { padding-block: clamp(58px, 9vw, 102px) 47px; }
.catalog-hero h1 { font-size: clamp(3.35rem, 9vw, 7.6rem); }
.catalog-section { padding-top: 30px; border-top: 1px solid var(--line); }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-card { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.app-visual { display: block; }
.app-visual img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.app-body { display: grid; gap: 10px; padding: clamp(18px, 4vw, 30px); }
.app-body h3 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.app-body h3 a { text-decoration: none; }
.app-body > p:not(.eyebrow) { color: var(--soft); line-height: 1.55; }
.app-body .app-meta { font-size: .85rem; }
.app-body .button { justify-self: start; margin-top: 6px; }
.detail-image { margin-top: 21px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.detail-image img { width: 100%; }
.detail-image figcaption { padding: 13px 16px; color: var(--soft); }

@media (max-width: 860px) {
  .wrap { width: min(1180px, calc(100% - 36px)); }
  .hero { grid-template-columns: 1fr; }
  .hero-display { max-width: 640px; }
}
@media (max-width: 580px) {
  .top-inner { min-height: 62px; flex-wrap: wrap; column-gap: 10px; row-gap: 7px; padding-block: 10px; }
  .brand { font-size: .83rem; }
  .brand img { width: 31px; height: 31px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; font-size: .84rem; padding-block: 2px 4px; }
  .top-download { font-size: .85rem; }
  .steps, .gallery, .platforms, .catalog { grid-template-columns: 1fr; }
  .readout div { padding: 13px 8px; }
  .readout span { font-size: .76rem; }
  .display-header, .hero-display figcaption { font-size: .65rem; }
  .actions .button { flex: 1 0 max-content; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
