:root {
  color-scheme: dark;
  --background: #0b0f17;
  --surface: #121722;
  --surface-strong: #181e2b;
  --line: #252e3e;
  --text: #dbe5f1;
  --muted: #8d99aa;
  --accent: #177ac3;
  --accent-strong: #0f5f9e;
  --danger: #ff9d9d;
  --shadow: 0 22px 60px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at top right, #151e2d 0, var(--background) 36rem);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, sans-serif;
}

a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; border-bottom: 1px solid rgba(37, 46, 62, .7); }
.brand { color: var(--text); font-size: 1.05rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--accent); font-weight: 500; }
nav { display: flex; gap: 24px; color: var(--muted); font-size: .88rem; }
nav a, .site-footer a { text-decoration: none; }
nav a:hover, .site-footer a:hover { color: var(--text); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 20px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: .98; letter-spacing: -.075em; }
h2 { margin-bottom: 10px; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { margin-bottom: 7px; font-size: 1rem; }
.muted, .hero-lede, .fine-print, .section-note, figcaption { color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); align-items: center; gap: clamp(42px, 7vw, 100px); min-height: 640px; padding: 76px 0 84px; }
.hero-lede { max-width: 560px; margin-bottom: 30px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: .82rem; }
.hero-meta strong { color: var(--text); font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 750; padding: 10px 17px; text-decoration: none; }
.button.primary { background: var(--accent); color: #f1f7ff; box-shadow: 0 8px 20px rgba(23, 122, 195, .18); }
.button.primary:hover { background: #248bd7; }
.button.secondary { border: 1px solid var(--line); background: var(--surface-strong); color: var(--text); }
.button.secondary:hover { border-color: var(--accent); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.preview-card { margin: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.preview-toolbar { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.window-dots { display: inline-flex; gap: 4px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.window-dots i:first-child { background: #e27f7f; }
.window-dots i:nth-child(2) { background: #d9b36b; }
.window-dots i:nth-child(3) { background: var(--accent); }
.preview-status { margin-left: auto; color: var(--accent); font-size: .62rem; letter-spacing: .1em; }
.game-preview { position: relative; aspect-ratio: 652 / 391; overflow: hidden; background: #0d121b; }
.client-preview-image { display: block; width: 100%; height: 100%; object-fit: cover; }
figcaption { padding: 11px 14px 14px; font-size: .76rem; }
.access-section, .releases-section, .access-notes { padding: 80px 0; border-top: 1px solid rgba(37, 46, 62, .8); }
.section-heading { margin-bottom: 24px; }
.section-heading > p:last-child { max-width: 620px; margin-bottom: 0; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading-row .eyebrow { margin-bottom: 9px; }
.section-note { padding-bottom: 4px; font-size: .78rem; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.access-card { padding: 24px; }
.access-form { display: grid; gap: 9px; }
label { color: var(--muted); font-size: .86rem; }
input { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; background: var(--surface-strong); color: var(--text); font: inherit; padding: 12px 13px; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 122, 195, .18); }
.access-form-row { display: flex; gap: 10px; }
.access-form-row input { min-width: 0; }
.form-message { margin: 13px 0 0; font-size: .88rem; }
.error { color: var(--danger); }
.account-section { padding: 76px 0 80px; }
.account-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.account-header h2 { margin-bottom: 5px; }
.account-header p { margin-bottom: 0; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.account-stat { display: grid; gap: 6px; padding: 18px 20px; box-shadow: none; }
.account-stat span { color: var(--muted); font-size: .78rem; }
.account-stat strong { font-size: 1.13rem; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px; }
.download-card p { margin-bottom: 0; }
.release-changelog { max-width: 700px; margin-top: 12px !important; color: var(--text); font-size: .88rem; white-space: pre-line; }
.release-list { display: grid; gap: 10px; }
.release-row { display: grid; grid-template-columns: minmax(110px, .2fr) minmax(0, 1fr) auto; align-items: start; gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.release-row:first-child { border-top: 0; }
.release-version { color: var(--accent); font-size: .95rem; font-weight: 800; }
.release-title { margin-bottom: 4px; font-weight: 700; }
.release-changelog-list { margin: 0; color: var(--muted); white-space: pre-line; }
.release-meta { color: var(--muted); font-size: .76rem; text-align: right; white-space: nowrap; }
.release-active { display: inline-flex; margin-top: 7px; padding: 3px 7px; border: 1px solid rgba(23, 122, 195, .36); border-radius: 5px; color: var(--accent); font-size: .63rem; letter-spacing: .08em; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding-top: 17px; border-top: 1px solid var(--line); }
.step > span { display: block; margin-bottom: 20px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.step p { margin-bottom: 0; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; padding: 22px 0 35px; color: #6e8096; font-size: .78rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .preview-card { max-width: 620px; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 4px; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 28px, 600px); }
  .site-nav { min-height: 70px; }
  nav { gap: 12px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.7rem); }
  .access-form-row, .account-header, .download-card { align-items: stretch; flex-direction: column; }
  .account-grid, .step-grid { grid-template-columns: 1fr; }
  .release-row { grid-template-columns: 1fr; gap: 8px; }
  .release-meta { text-align: left; }
  .site-footer { flex-direction: column; gap: 5px; }
}
