/* SIM Dispatcher download page – dark, Blizzard/Battle.net inspired. */

:root {
  --bg: #0b0e14;
  --bg-band: #10141c;
  --surface: #151a24;
  --surface-hover: #1b2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7ecf5;
  --text-muted: #9aa6b8;
  --text-faint: #6c788b;
  --accent: #148eff;
  --accent-hover: #3aa1ff;
  --accent-deep: #0b62d6;
  --accent-glow: rgba(20, 142, 255, 0.45);
  --brand-navy: #0b375c;
  --stage: #ff8a1f;
  --stage-soft: rgba(255, 138, 31, 0.1);
  --stage-border: rgba(255, 138, 31, 0.35);
  --radius: 4px;
  --font-body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Open Sans', var(--font-body);
  --navbar-height: 80px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* The navbar is a shadow-DOM overlay that does not push the page down, so we keep its space free. */
  padding-top: var(--navbar-height);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

svg {
  width: 1em;
  height: 1em;
  flex: none;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 40px -8px var(--accent-glow);
}

.btn--primary:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 14px 48px -6px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--xl {
  padding: 18px 40px 18px 32px;
  min-width: 340px;
}

.btn__icon {
  font-size: 30px;
  display: flex;
}

.btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn__text strong {
  font-size: 1.3rem;
  line-height: 1.25;
}

.btn__text small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  opacity: 0.85;
}


.btn--md {
  padding: 12px 24px;
  font-size: 1rem;
  gap: 10px;
}

.btn--md svg {
  width: 18px;
  height: 18px;
}

button.btn {
  border: 0;
  cursor: pointer;
}

.btn--ghost,
button.btn--ghost {
  padding: 12px 22px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn--primary:disabled {
  cursor: not-allowed;
  background: #2a3242;
  color: rgba(231, 236, 245, 0.45);
  box-shadow: none;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(780px, calc(100vh - var(--navbar-height)));
  display: flex;
  align-items: center;
  padding: 72px 0 120px;
  text-align: center;
}

.hero__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(20, 142, 255, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.7) 0%, rgba(11, 14, 20, 0.86) 55%, var(--bg) 100%),
    url('/images/hero.jpg') center 30% / cover no-repeat;
  filter: saturate(0.8) blur(2px);
  transform: scale(1.06);
}

.hero__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(11, 14, 20, 0.85) 100%);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(420px, 80vw);
  height: auto;
  margin-bottom: 48px;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  margin: 12px 0 16px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.hero__lead {
  max-width: 640px;
  margin: 0 0 40px;
  font-size: 1.15rem;
  color: rgba(231, 236, 245, 0.85);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__other {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__other ul {
  display: contents;
  list-style: none;
}

.hero__other li:not([hidden]) ~ li:not([hidden])::before {
  content: '·';
  margin-right: 12px;
  color: var(--text-faint);
}

.hero__notice {
  max-width: 560px;
  margin: 0 0 24px;
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(11, 14, 20, 0.7);
  color: var(--text);
}

.hero__trouble {
  margin: 40px 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section--compact {
  padding: 48px 0 72px;
}

.section--band {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-top: 10px;
}

.section__head p {
  color: var(--text-muted);
  margin: 16px 0 0;
}

/* Platform cards */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.platform-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.platform-card__head h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.platform-card__logo {
  font-size: 34px;
  display: flex;
  color: #fff;
}

.platform-card__facts {
  display: flex;
  gap: 40px;
  margin: 24px 0 28px;
}

.platform-card__facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.platform-card__facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.platform-card__downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-card__req,
.platform-card__notice {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platform-card__req span {
  color: var(--text-faint);
}

.download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.download-row:hover {
  color: #fff;
  background: var(--surface-hover);
  border-color: var(--accent);
}

.download-row.is-recommended {
  border-color: rgba(20, 142, 255, 0.6);
  background: rgba(20, 142, 255, 0.08);
}

.download-row__label {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.download-row__label strong {
  font-family: var(--font-head);
  font-weight: 700;
}

.download-row__label small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.download-row__badge {
  display: none;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.is-recommended .download-row__badge {
  display: inline-block;
}

.download-row__size {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.download-row__icon {
  display: flex;
  font-size: 20px;
  color: var(--accent-hover);
}

/* Stage (early access) */

.section--stage {
  padding-top: 0;
}

.stage {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 138, 31, 0.07) 0%, var(--surface) 45%, var(--bg) 100%);
}

/* caution tape along the top edge */
.stage::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--stage) 0 10px, transparent 10px 20px);
  opacity: 0.8;
}

.stage__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.stage__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--stage);
  border-radius: 50%;
  color: var(--stage);
  font-size: 26px;
}

.stage__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stage);
}

.stage__head h2 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.stage__head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-muted);
}

.stage__warnings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.stage__warnings li {
  display: flex;
  gap: 12px;
}

.stage__warnings svg {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  color: var(--stage);
}

.stage__warnings a {
  color: var(--stage);
}

.stage__warnings a:hover {
  color: #fff;
}

.stage__details {
  margin-top: 32px;
}

.stage__details summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  color: #fff;
  font: 700 0.95rem var(--font-head);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s, border-color 0.2s;
}

.stage__details summary::-webkit-details-marker {
  display: none;
}

.stage__details summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--stage);
  border-bottom: 2px solid var(--stage);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.stage__details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.stage__details summary:hover {
  border-color: var(--stage);
  background: var(--stage-soft);
}

.stage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.stage__platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage__platform-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 4px;
}

.stage__platform-logo {
  display: flex;
  font-size: 22px;
  color: #fff;
}

.stage__platform-head h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.stage__version {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stage__unavailable {
  margin: 24px 0 0;
  color: var(--text-muted);
}

.download-row--stage:hover {
  border-color: var(--stage);
}

.download-row--stage.is-recommended {
  border-color: var(--stage-border);
  background: var(--stage-soft);
}

.download-row--stage .download-row__badge {
  background: var(--stage);
  color: #1a1206;
}

.download-row--stage .download-row__icon {
  color: var(--stage);
}

/* Steps */

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -24px 0 48px;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font: 700 0.95rem var(--font-head);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tabs__tab:hover {
  color: #fff;
}

.tabs__tab[aria-selected='true'] {
  color: #fff;
  border-color: var(--accent);
  background: rgba(20, 142, 255, 0.12);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font: 800 1.15rem var(--font-head);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.step p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
}

/* Links */

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 48px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.link-card:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--accent);
}

.link-card strong {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
}

.link-card span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.link-card svg {
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  color: var(--accent-hover);
  transition: transform 0.2s;
}

.link-card:hover svg {
  transform: translateX(3px);
}

/* Checksums */

.checksums {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.checksums summary {
  padding: 18px 24px;
  cursor: pointer;
  font: 700 0.95rem var(--font-head);
  color: var(--text-muted);
}

.checksums summary:hover {
  color: #fff;
}

.checksums > p {
  margin: 0;
  padding: 0 24px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checksums__scroll {
  overflow-x: auto;
  padding: 0 24px 24px;
}

.checksums table {
  border-collapse: collapse;
  font-size: 0.8rem;
}

.checksums th,
.checksums td {
  padding: 8px 16px 8px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.checksums th {
  font-weight: 600;
  white-space: nowrap;
}

.checksums td code {
  word-break: break-all;
  background: none;
  padding: 0;
  color: var(--text-muted);
}

/* EULA form (dialog and fallback page) */

.eula {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eula__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(20, 142, 255, 0.08);
}

.eula__selected span {
  flex-basis: 100%;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eula__selected strong {
  font-family: var(--font-head);
  color: #fff;
}

.eula__selected small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.eula__text {
  max-height: min(42vh, 380px);
  overflow-y: auto;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a0d13;
  color: var(--text-muted);
  font-size: 0.9rem;
  scrollbar-color: #2a3242 transparent;
}

.eula__text--full {
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1rem;
}

.eula__text h2,
.eula__text h3 {
  margin: 1.2em 0 0.5em;
  font-size: 1.1rem;
}

.eula__text--full h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.eula__text > :first-child {
  margin-top: 0;
}

.eula__accept {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-size: 0.95rem;
}

.eula__accept input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}

.eula__box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--border-strong);
  border-radius: 3px;
  color: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.eula__box svg {
  width: 16px;
  height: 16px;
}

.eula__accept:hover .eula__box {
  border-color: var(--accent);
}

.eula__accept input:checked + .eula__box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.eula__accept input:focus-visible + .eula__box {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.eula__notice {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  background: var(--stage-soft);
  color: #ffd9b3;
  font-size: 0.9rem;
}

.eula__notice svg {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  color: var(--stage);
}

.eula__error {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 99, 99, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 99, 99, 0.08);
  color: #ffb4b4;
  font-size: 0.9rem;
}

.eula__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

/* Modal */

.modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #161c28 0%, var(--surface) 30%, #10141c 100%);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(20, 142, 255, 0.08);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  /* the EULA box shrinks first; scrolling the dialog is only the fallback for very small screens */
  overflow-y: auto;
}

.modal__panel[data-eula-step='accept'] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.modal .eula {
  min-height: 0;
  flex: 1 1 auto;
}

.modal .eula__text {
  flex: 1 1 auto;
  min-height: 140px;
}

.modal::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.modal::backdrop {
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: modal-in 0.22s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.modal__panel {
  padding: 32px;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.modal__head h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.modal__head p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal__close {
  flex: none;
  display: inline-flex;
  margin: -6px -8px 0 auto;
  padding: 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.modal__panel--done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 32px 40px;
  text-align: center;
}

.modal__panel--done h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.modal__panel--done p {
  margin: 0;
  color: var(--text-muted);
}

.modal__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 0 30px var(--accent-glow);
}

/* Document pages (EULA, fallback acceptance) */

.doc {
  position: relative;
  overflow: hidden;
  padding: 56px 0 96px;
}

.doc__art {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background:
    linear-gradient(180deg, rgba(11, 14, 20, 0.8) 0%, var(--bg) 100%),
    url('/images/hero.jpg') center 30% / cover no-repeat;
  filter: saturate(0.8) blur(2px);
}

.doc__container {
  position: relative;
  max-width: 820px;
}

.doc__card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.doc__head {
  margin-bottom: 28px;
}

.doc__head h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
}

.doc__head p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.doc__back {
  margin: 40px 0 0;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  background: #07090d;
  padding: 48px 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}

.footer__brand img {
  display: block;
  height: 28px;
  width: auto;
  opacity: 0.8;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__links a {
  color: var(--text-muted);
}

.footer__links a:hover {
  color: #fff;
}

.footer__note {
  flex-basis: 100%;
  margin: 8px 0 0;
}

/* Responsive */

@media (max-width: 980px) {
  :root {
    --navbar-height: 64px;
  }
}

@media (max-width: 1000px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: 0;
    padding: 40px 0 72px;
  }

  .hero__logo {
    margin-bottom: 28px;
  }

  .btn--xl {
    min-width: 0;
    width: 100%;
    padding: 16px 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .platform-grid,
  .link-grid,
  .stage__grid,
  .stage__warnings {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    padding: 28px 20px;
  }

  .stage__head {
    flex-direction: column;
    gap: 14px;
  }

  .stage__details summary {
    display: flex;
    justify-content: space-between;
  }

  .platform-card {
    padding: 28px 20px;
  }

  .platform-card::before {
    left: 20px;
    right: 20px;
  }

  .tabs {
    margin-top: -16px;
  }

  .modal__panel,
  .doc__card {
    padding: 24px 20px;
  }

  .eula__actions {
    flex-direction: column-reverse;
  }

  .eula__actions .btn {
    justify-content: center;
  }

  .modal .eula {
    gap: 16px;
  }

  .modal .eula__text {
    min-height: 120px;
  }

  .eula__selected {
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
