:root {
  color-scheme: dark;
  --bg: #0f141f;
  --panel: #171f2e;
  --panel-2: #1d2737;
  --text: #eef5f2;
  --muted: #a6b5b2;
  --line: #314055;
  --accent: #46d6a7;
  --accent-strong: #28b88a;
  --danger: #ff7b88;
  --hot: #ff1744;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(70, 214, 167, 0.12), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(72, 110, 255, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
}

main {
  width: min(960px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.access-shell {
  width: min(720px, 100%);
  background: rgba(23, 31, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px);
}

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.progress span {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: #344054;
}

.progress span.active {
  background: var(--accent);
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #101522;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 580px;
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.status {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.status[data-tone="success"] {
  color: var(--accent);
  border-color: rgba(70, 214, 167, 0.45);
}

.status[data-tone="error"] {
  color: var(--danger);
  border-color: rgba(255, 123, 136, 0.4);
}

form {
  margin-top: 18px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--accent);
  color: #101522;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button span {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.1em;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.download-actions {
  margin-top: 22px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-link {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 30px;
  background: var(--text);
  color: #101522;
  text-decoration: none;
  font-weight: 750;
  border: 2px solid var(--hot);
  box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.16), 0 14px 28px rgba(255, 23, 68, 0.16);
}

.download-link::before,
.download-link::after {
  content: "";
  position: absolute;
  top: 0;
  width: 14px;
  height: 100%;
  background: var(--hot);
}

.download-link::before {
  left: 0;
}

.download-link::after {
  right: 0;
}

.download-link:hover {
  box-shadow: 0 0 0 4px rgba(255, 23, 68, 0.26), 0 18px 34px rgba(255, 23, 68, 0.22);
}

.download-link.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 0 18px;
}

.download-link.secondary::before,
.download-link.secondary::after {
  display: none;
}

.install-card {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(70, 214, 167, 0.36);
  background: rgba(70, 214, 167, 0.08);
  border-radius: 8px;
}

.install-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.install-card a {
  margin-top: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--text);
  color: #101522;
  text-decoration: none;
  font-weight: 750;
}

.install-card a + a {
  margin-left: 10px;
}

.install-card a.disabled {
  pointer-events: auto;
  opacity: 0.42;
  cursor: not-allowed;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

@media (max-width: 620px) {
  main {
    width: min(100% - 20px, 960px);
    padding: 10px 0;
  }

  .access-shell {
    padding: 22px;
  }

  .download-actions {
    display: grid;
  }

  button,
  .download-link,
  .install-card a {
    width: 100%;
  }

  .install-card a + a {
    margin-left: 0;
  }
}
