:root {
  color-scheme: dark;
  --bg: #141212;
  --text: #f5f5f4;
  --secondary: #d0cbc7;
  --muted: #b3ada8;
  --rule: rgba(255, 255, 255, 0.09);
  --accent: #fbbf24;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.download-page {
  width: min(100% - 112px, 1120px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.download-header { padding-block: 32px 24px; border-bottom: 1px solid var(--rule); }

.download-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download-logo img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

main { flex: 1; }

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  align-items: end;
  gap: 64px;
  padding-block: 76px 80px;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.download-intro {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--secondary);
  font-size: 19px;
  line-height: 1.6;
}

.download-options { padding-bottom: 4px; }

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

.store-link {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #000;
  transition: border-color 160ms ease;
}

.store-link:hover { border-color: var(--secondary); }

.store-badge {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  clip-path: inset(2px round 8px);
}

.download-web {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
}

.download-web a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.download-web a:hover { color: #fff; }

.download-details {
  border-top: 1px solid var(--rule);
}

.download-feature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}

.download-feature h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.download-feature p {
  max-width: 660px;
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.6;
}

.download-note {
  margin: 26px 0 56px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.download-note p { margin: 0; }
.download-note p + p { margin-top: 8px; }
.download-note strong { color: var(--text); font-weight: 600; }

.download-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px 30px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.download-footer p { margin: 0; }
.download-footer nav { display: flex; gap: 24px; }
.download-footer a { text-decoration: none; }
.download-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .download-page { width: min(100% - 64px, 680px); }
  .download-header { padding-top: 32px; }
  .download-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 46px 70px;
  }
  h1 { font-size: clamp(34px, 5.8vw, 44px); }
  .download-options { max-width: 440px; padding: 0; }
  .download-feature { grid-template-columns: 1fr; gap: 8px; padding-block: 24px 26px; }
  .download-feature h2 { font-size: 18px; }
  .download-feature p { font-size: 17px; line-height: 1.55; }
}

@media (max-width: 480px) {
  .download-page { width: calc(100% - 48px); }
  .download-logo img { width: 200px; }
  .download-hero { padding-top: 40px; }
  h1 { font-size: clamp(30px, 8vw, 36px); line-height: 1.12; }
  .download-intro { margin-top: 26px; font-size: 18px; line-height: 1.55; }
  .download-web { font-size: 15px; }
  .store-link { min-height: 54px; border-radius: 11px; }
  .download-footer { gap: 12px; font-size: 13px; }
  .download-footer nav { gap: 20px; }
}

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