:root {
  --ink: #f4f4ff;
  --muted: #a6acc9;
  --night: #090b16;
  --panel: rgba(18, 21, 42, 0.88);
  --line: rgba(146, 157, 218, 0.22);
  --cyan: #73f7ff;
  --violet: #a38cff;
  --gold: #ffe28a;
  --green: #8affb5;
  --danger: #ff8da6;
  --display: "Press Start 2P", monospace;
  --body: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(102, 62, 186, 0.26), transparent 28rem),
    radial-gradient(circle at 12% 32%, rgba(26, 124, 153, 0.15), transparent 26rem),
    var(--night);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a { color: inherit; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 20; padding: .75rem 1rem; background: var(--cyan); color: #050611; }
.skip-link:focus { top: 1rem; }

.sky { position: absolute; inset: 0 0 auto 0; height: 48rem; overflow: hidden; pointer-events: none; }
.planet { position: absolute; width: 30rem; height: 30rem; border-radius: 50%; right: -9rem; top: 5rem; background: radial-gradient(circle at 36% 32%, #d1c8ff, #6352ad 32%, #211c48 67%, #0c0e1b 70%); box-shadow: 0 0 7rem rgba(127, 94, 255, .28); opacity: .58; }
.orbit { position: absolute; width: 47rem; height: 12rem; right: -15rem; top: 14rem; border: 1px solid rgba(115, 247, 255, .38); border-radius: 50%; transform: rotate(-14deg); }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; position: relative; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); z-index: 5; }
.brand { font-family: var(--display); font-size: .9rem; text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--cyan); }
.site-header nav { display: flex; align-items: center; gap: 1.45rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 700; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--cyan); }
.site-header .nav-play { color: #070914; background: var(--cyan); padding: .62rem .9rem; }

.hero { min-height: 650px; padding: 7rem 0 5rem; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: center; gap: 5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--cyan); font-family: var(--display); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 6px; height: 6px; margin-right: .65rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1.3; letter-spacing: -.045em; }
h1 { font-size: clamp(2.45rem, 5.2vw, 4.65rem); }
h1 em { color: var(--gold); font-style: normal; text-shadow: 4px 4px 0 rgba(94, 64, 21, .38); }
.lede { max-width: 640px; margin: 1.8rem 0 2rem; color: #c9cde4; font-size: 1.12rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.button, .download-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .78rem 1.1rem; border: 1px solid var(--line); font-family: var(--display); font-size: .64rem; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover, .button:focus-visible, .download-button:not(.disabled):hover, .download-button:not(.disabled):focus-visible { transform: translateY(-2px); }
.button.primary { background: var(--cyan); border-color: var(--cyan); color: #060713; box-shadow: 5px 5px 0 rgba(58, 116, 123, .4); }
.button.secondary { background: rgba(9, 11, 22, .52); color: var(--ink); }
.hero-note { color: var(--muted); font-size: .82rem; margin: 1rem 0 0; }

.hero-frame { border: 1px solid rgba(148, 157, 221, .42); background: #0a0d1b; box-shadow: 18px 22px 0 rgba(4, 5, 12, .46), 0 30px 80px rgba(0,0,0,.38); transform: perspective(900px) rotateY(-3deg) rotateX(1deg); }
.window-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #f06c89; }
.window-bar span:nth-child(2) { background: #f2cb69; }
.window-bar span:nth-child(3) { background: #74e7a3; }
.window-bar b { margin-left: auto; font-family: var(--display); font-size: .45rem; font-weight: 400; }
.hero-frame img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; opacity: .88; }
.signal { padding: .7rem 1rem; color: var(--green); font-family: var(--display); font-size: .5rem; }
.signal span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: .55rem; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(13, 16, 32, .78); }
.trust-strip div { padding: 1.25rem 1.6rem; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { display: block; color: var(--gold); font-family: var(--display); font-size: .56rem; margin-bottom: .35rem; }
.trust-strip span { color: var(--muted); font-size: .83rem; }

.platform-section { padding: 8rem 0 6rem; scroll-margin-top: 2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.4rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
.release-status { max-width: 330px; display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .88rem; }
.status-light { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(255, 226, 138, .58); }
.release-status.ready .status-light { background: var(--green); box-shadow: 0 0 12px var(--green); }
.release-status.pending .status-light { background: var(--danger); box-shadow: 0 0 12px rgba(255, 141, 166, .5); }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.platform-card { min-width: 0; padding: 1.6rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(26, 29, 56, .95), rgba(12, 14, 29, .95)); position: relative; overflow: hidden; }
.platform-card::after { content: ""; position: absolute; width: 9rem; height: 9rem; right: -5rem; top: -5rem; border-radius: 50%; background: var(--violet); filter: blur(45px); opacity: .12; }
.platform-card.recommended { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(115,247,255,.14), 0 18px 60px rgba(31, 140, 149, .12); }
.platform-card.recommended::before { content: "YOUR SYSTEM"; position: absolute; top: 0; right: 0; padding: .35rem .5rem; background: var(--cyan); color: #060713; font-family: var(--display); font-size: .42rem; }
.platform-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1.3rem; border: 1px solid rgba(115,247,255,.4); color: var(--cyan); font-family: var(--display); font-size: 1.35rem; background: rgba(115,247,255,.06); }
.platform-icon.windows { color: var(--violet); border-color: rgba(163,140,255,.4); }
.platform-icon.linux { color: var(--gold); border-color: rgba(255,226,138,.4); }
.platform-kicker { margin: 0; color: var(--muted); font-family: var(--display); font-size: .46rem; text-transform: uppercase; }
.platform-card h3 { margin-top: .35rem; font-family: var(--display); font-size: 1.15rem; }
.platform-copy { min-height: 5rem; color: var(--muted); font-size: .88rem; }
.platform-card dl { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.1rem 0 1.2rem; padding: .65rem 0; }
.platform-card dl div { display: flex; justify-content: space-between; gap: .8rem; padding: .23rem 0; }
.platform-card dt { color: var(--muted); font-size: .74rem; }
.platform-card dd { margin: 0; max-width: 65%; overflow: hidden; text-overflow: ellipsis; color: #e8e9f8; font-family: monospace; font-size: .72rem; white-space: nowrap; }
.download-button { width: 100%; color: #061013; background: var(--green); border-color: var(--green); }
.download-button.disabled { color: #868da9; background: rgba(100, 106, 139, .1); border-color: rgba(125, 132, 170, .22); cursor: not-allowed; }
.card-state { min-height: 2.5em; margin: .65rem 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.release-fineprint { max-width: 880px; margin: 1.4rem auto 0; color: #7f86a5; font-size: .76rem; text-align: center; }

.update-section { padding: 6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: .85fr 1.15fr; gap: 6rem; }
.update-intro > p:last-child { color: var(--muted); margin-top: 1.5rem; }
.update-flow { list-style: none; padding: 0; margin: 0; }
.update-flow li { display: grid; grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.update-flow li:first-child { border-top: 1px solid var(--line); }
.update-flow li > span { color: var(--cyan); font-family: var(--display); font-size: .62rem; }
.update-flow strong { font-family: var(--display); font-size: .68rem; }
.update-flow p { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }
.browser-cta { margin: 2rem 0 6rem; padding: 2.5rem; border: 1px solid rgba(115,247,255,.36); background: linear-gradient(105deg, rgba(24,55,67,.72), rgba(22,20,49,.8)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.browser-cta p:last-child { margin-bottom: 0; color: var(--muted); }

footer { min-height: 130px; padding: 2rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 2rem; color: var(--muted); font-size: .8rem; }
footer p { margin-right: auto; }
footer div { display: flex; gap: 1rem; }

@media (max-width: 900px) {
  .site-header nav a:not(.nav-play) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 5rem; }
  .hero-frame { width: min(680px, 100%); transform: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-copy { min-height: 0; }
  .update-section { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 68px; }
  .site-header .brand { font-size: .72rem; }
  .hero { min-height: auto; padding: 4rem 0; }
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .platform-section { padding: 5rem 0 4rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .browser-cta { align-items: stretch; flex-direction: column; padding: 1.5rem; }
  footer { align-items: flex-start; flex-direction: column; gap: .7rem; }
  footer p { margin: 0; }
}

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