:root {
  color-scheme: dark;
  --bg: #070a0e;
  --frame: #0b0f14;
  --card: #121923;
  --surface: #182231;
  --line: #1f2a37;
  --line-strong: #3a4a5e;
  --fg: #e6edf5;
  --sec: #94a3b8;
  --muted: #7c8b9f;
  --primary: #f97316;
  --primary-hi: #fb923c;
  --success: #4ade80;
  --danger: #f87171;
  --radius-card: 24px;
  --radius-ctl: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(31, 42, 55, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 42, 55, 0.42) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.glow {
  position: fixed;
  z-index: 0;
  top: -240px;
  left: 50%;
  width: min(780px, 120vw);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(249, 115, 22, 0.17), rgba(249, 115, 22, 0.05) 46%, transparent 72%);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 40px;
}

.hero {
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #182231, #121923);
  color: var(--primary);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

h1 {
  margin: 26px 0 0;
  font-size: clamp(46px, 12vw, 68px);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.tick {
  color: var(--primary);
}

.tagline {
  margin: 12px 0 0;
  font-size: clamp(17px, 2.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.pitch {
  max-width: 40ch;
  margin: 16px 0 0;
  font-size: 15.5px;
  color: var(--sec);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sec);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--primary);
}

.card {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #121923, #0f1620);
  box-shadow:
    0 34px 64px -42px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--primary);
}

.card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--sec);
}

.unlock {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sec);
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctl);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: var(--muted);
}

.input:hover {
  border-color: #4a5b70;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.24);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-ctl);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}

.btn-outline:hover:not(:disabled) {
  border-color: #4a5b70;
  background: #151e2a;
}

.btn-outline:disabled {
  color: var(--muted);
  cursor: progress;
}

.btn-primary {
  background: var(--primary);
  color: var(--frame);
  box-shadow: 0 16px 34px -18px rgba(249, 115, 22, 0.7);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hi);
}

.btn-primary:disabled {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.message {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sec);
}

.message[data-tone="error"] {
  color: var(--danger);
}

.message[data-tone="success"] {
  color: var(--success);
}

.download {
  margin-top: 2px;
}

.apk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--sec);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.version {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1a2432;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
}

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.progress[hidden] {
  display: none;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.18s ease;
}

.progress[data-indeterminate="true"] .progress-fill {
  width: 38%;
  animation: sweep 1.3s ease-in-out infinite;
}

.progress-value {
  min-width: 40px;
  margin: 0;
  font-size: 11.5px;
  color: var(--sec);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@keyframes sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

.steps {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.steps[hidden] {
  display: none;
}

.steps h3 {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sec);
}

.steps h3:focus {
  outline: none;
}

.steps ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}

.step-text {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sec);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.foot p {
  margin: 0;
}

@media (min-width: 600px) {
  .page {
    padding: 56px 32px 48px;
  }

  .card {
    padding: 28px;
  }
}

@media (min-width: 960px) {
  .page {
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-content: center;
    align-items: center;
    gap: 28px 64px;
    padding: 64px 40px 40px;
  }

  .hero {
    max-width: 34rem;
  }

  .card {
    max-width: none;
    justify-self: stretch;
  }

  .foot {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
