:root {
  color-scheme: dark;
  --background: #07080a;
  --surface: rgba(20, 21, 24, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7f5;
  --muted: #a0a3aa;
  --gold: #f3a91d;
  --gold-light: #ffc950;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(243, 169, 29, 0.16), transparent 38rem),
    linear-gradient(180deg, #101115 0%, var(--background) 72%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.download-card {
  position: relative;
  overflow: hidden;
  padding: 42px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(27, 28, 32, 0.96), var(--surface));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.glow {
  position: absolute;
  inset: -180px 10% auto;
  height: 260px;
  border-radius: 50%;
  background: rgba(243, 169, 29, 0.19);
  filter: blur(50px);
  pointer-events: none;
}

.release-notice {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 0 0 28px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 201, 80, 0.3);
  border-radius: 16px;
  color: #e9e9e6;
  background: rgba(243, 169, 29, 0.1);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.release-notice strong {
  color: var(--gold-light);
  font-size: 14px;
}

.app-icon {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 27px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46), 0 0 34px rgba(243, 169, 29, 0.12);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.description {
  max-width: 440px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.version-row {
  display: inline-flex;
  gap: 9px;
  margin-top: 20px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c8cad0;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 650;
}

.version-row span + span::before { content: "•"; margin-right: 9px; color: #666a73; }

.download-actions {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.download-button {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-button:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.065); }
.download-button:focus-visible { outline: 3px solid rgba(255, 201, 80, 0.55); outline-offset: 3px; }

.download-button.direct {
  min-height: 82px;
  border-color: transparent;
  color: #171109;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 15px 34px rgba(243, 169, 29, 0.2);
}

.download-button strong { display: block; font-size: 16px; line-height: 1.25; }
.download-button small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.download-button.direct small { color: rgba(23, 17, 9, 0.68); }

.button-mark {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 20px;
  font-weight: 850;
}

.direct .button-mark { border-color: rgba(23, 17, 9, 0.1); background: rgba(23, 17, 9, 0.09); }

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: #979aa2;
  text-align: left;
}

.install-note span { color: var(--gold-light); font-weight: 850; }
.install-note p { margin: 0; font-size: 12px; line-height: 1.55; }
.unavailable { padding: 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.download-frame { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

footer { padding: 22px 10px 0; color: #696c73; font-size: 11px; text-align: center; }

@media (max-width: 480px) {
  .page-shell { padding-inline: 12px; }
  .download-card { padding: 34px 18px 24px; border-radius: 24px; }
  .app-icon { width: 96px; height: 96px; border-radius: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-button { transition: none; }
}
