:root {
  color-scheme: dark;
  --bg: #09131d;
  --panel: #0d1a26;
  --panel-2: #101f2d;
  --line: #304252;
  --muted: #9fb0c0;
  --text: #f3f7fb;
  --blue: #2d8cff;
  --blue-2: #1675e8;
  --good: #57d98a;
  --radius: 4px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(41, 104, 160, .16), transparent 42%),
    linear-gradient(180deg, #0a1621 0%, #08121b 100%);
  color: var(--text);
}
button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 24px auto;
  border: 1px solid var(--line);
  background: rgba(8, 20, 30, .82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .25);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.topbar {
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(48, 66, 82, .72);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.step-count { color: var(--muted); font-size: 13px; }

.progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding: 18px 38px 8px;
  gap: 0;
}
.progress-item {
  min-width: 0;
  position: relative;
  padding-top: 20px;
  text-align: center;
  color: #8093a5;
  font-size: 11px;
}
.progress-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.progress-item:first-child::before { display: none; }
.progress-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  border: 1px solid #64798c;
  border-radius: 50%;
  background: var(--bg);
}
.progress-item.active,
.progress-item.complete { color: #c8d7e5; }
.progress-item.active .progress-dot,
.progress-item.complete .progress-dot {
  background: var(--blue);
  border-color: var(--blue);
}
.progress-item.complete::before,
.progress-item.active::before { background: var(--blue); }

.stage {
  display: grid;
  place-items: center;
  padding: 34px 48px 24px;
}

.welcome {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: #83baf7;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  font-weight: 700;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.045em;
}
.lead {
  max-width: 650px;
  color: #bfd0df;
  font-size: 18px;
  line-height: 1.55;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 13px;
  color: #c3d0dc;
}
.feature-list li { display: flex; gap: 12px; align-items: center; }
.feature-list svg { width: 20px; height: 20px; color: #79b7ff; flex: 0 0 auto; }

.server-art {
  height: 350px;
  position: relative;
  display: grid;
  place-items: center;
}
.welcome-art {
  width: min(320px, 100%);
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.app-page {
  width: min(760px, 100%);
  text-align: center;
}
.app-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent, #75b8ff);
}
.app-icon svg { width: 48px; height: 48px; }
.app-page h2 {
  margin-bottom: 4px;
  font-size: 34px;
  letter-spacing: -.03em;
}
.app-subtitle { color: #aac0d4; font-size: 18px; margin-bottom: 20px; }
.app-description {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #c4d2de;
  line-height: 1.6;
  font-size: 17px;
}
.detail-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(16, 31, 45, .72);
  text-align: left;
}
.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  color: #c7d5e0;
}
.detail-list li { display: flex; gap: 12px; align-items: center; }
.detail-list svg { width: 19px; height: 19px; color: var(--accent, #75b8ff); flex: 0 0 auto; }

.account-page {
  width: min(560px, 100%);
}
.account-page h2 { margin-bottom: 6px; font-size: 34px; text-align: center; }
.account-page > p { text-align: center; color: var(--muted); }
.account-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(16, 31, 45, .78);
}
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 13px; font-weight: 650; color: #dce7f0; }
.field input {
  width: 100%;
  height: 44px;
  border: 1px solid #405366;
  border-radius: 2px;
  background: #0d1a26;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(45,140,255,.15); }
.form-message { min-height: 20px; color: #ff9b9b; font-size: 13px; margin: 0 0 12px; }
.account-submit { width: 100%; }
.account-note {
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 2px solid var(--blue);
  background: #0b1722;
  color: #aebfce;
  font-size: 13px;
  line-height: 1.5;
}

.success-page {
  width: min(610px, 100%);
  text-align: center;
}
.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(87, 217, 138, .55);
  background: rgba(87, 217, 138, .08);
  color: var(--good);
}
.success-icon svg { width: 38px; height: 38px; }
.success-eyebrow {
  margin-bottom: 8px;
  color: var(--good);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.success-page h2 {
  margin-bottom: 10px;
  font-size: 38px;
  letter-spacing: -.035em;
}
.success-lead {
  margin-bottom: 26px;
  color: #b8c9d8;
  font-size: 17px;
}
.success-lead strong { color: var(--text); }
.success-card {
  border: 1px solid var(--line);
  background: rgba(16, 31, 45, .78);
  text-align: left;
}
.success-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(48, 66, 82, .62);
}
.success-row-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #385069;
  background: #0b1722;
  color: #79b7ff;
}
.success-row-icon svg { width: 19px; height: 19px; }
.success-row strong,
.success-row span { display: block; }
.success-row strong { margin-bottom: 3px; color: #e8f0f7; font-size: 14px; }
.success-row div > span { color: #9fb0c0; font-size: 13px; line-height: 1.45; }
.success-link {
  width: calc(100% - 40px);
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.controls {
  min-height: 72px;
  padding: 14px 22px;
  border-top: 1px solid rgba(48, 66, 82, .72);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.controls .primary { justify-self: end; }
.button {
  min-width: 116px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #43586b;
  border-radius: var(--radius);
  color: var(--text);
  background: #162634;
}
.button.primary {
  background: linear-gradient(#3595ff, #1877e4);
  border-color: #4ca1ff;
}
.button:hover { filter: brightness(1.08); }
.button:disabled { cursor: default; opacity: .45; filter: none; }
.skip {
  border: 0;
  background: transparent;
  color: #86baf2;
  padding: 10px;
}
.skip:hover { text-decoration: underline; }
.hidden { visibility: hidden; pointer-events: none; }

@media (max-width: 760px) {
  .shell { width: 100%; margin: 0; min-height: 100dvh; border-left: 0; border-right: 0; }
  .progress { overflow-x: auto; grid-template-columns: repeat(8, 92px); padding-left: 22px; padding-right: 22px; }
  .stage { padding: 28px 22px 20px; }
  .welcome { grid-template-columns: 1fr; gap: 12px; }
  .server-art { display: none; }
  .controls { grid-template-columns: 1fr 1fr; }
  .skip { grid-column: 1 / -1; grid-row: 1; }
  .controls .secondary { grid-column: 1; grid-row: 2; justify-self: start; }
  .controls .primary { grid-column: 2; grid-row: 2; justify-self: end; }
  .account-card { padding: 20px; }
  .success-row { grid-template-columns: 38px 1fr; padding: 16px; }
  .success-link { width: calc(100% - 32px); margin: 16px; }
}
