@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

@font-face {
  font-family: 'OilvareBase-Regular';
  src: url('../assets/OilvareBase-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0b14;
  --surface: #16131f;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f2f8;
  --muted: #a49fb5;
  --red: #dc2626;
  --red-light: #ef4444;
  --focus: #a5b4fc;
}

* {
  box-sizing: border-box;
}

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

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

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.download-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(18px, 4vh, 36px) 18px 16px;
}

.download-card {
  width: min(100%, 680px);
  margin: auto;
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
}

.download-logo {
  display: inline-block;
  margin-bottom: clamp(22px, 4vh, 34px);
}

.download-logo img {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

h1 {
  margin: 0;
  font-family: 'OilvareBase-Regular', Georgia, serif;
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 span:first-child {
  color: var(--text);
}

h1 span:last-child {
  color: var(--red-light);
  margin-top: 6px;
}

.download-intro {
  max-width: 510px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: clamp(15px, 2.6vw, 18px);
  line-height: 1.5;
}

.download-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-link {
  display: block;
  line-height: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.store-badge {
  display: block;
  width: min(190px, 42vw);
  max-height: 58px;
  height: auto;
}

.download-free {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: #817b8d;
  font-size: 13px;
}

footer a {
  color: #9f99ab;
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .download-page {
    padding: 12px;
  }

  .download-card {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .download-logo {
    margin-bottom: 20px;
  }

  .download-logo img { width: min(100%, 250px); }
  h1 { font-size: clamp(29px, 9vw, 38px); }
  .download-intro { margin: 16px 0 20px; }
  .download-actions { gap: 8px; }
  .store-badge { width: min(164px, 41vw); }
  .download-free { margin-top: 12px; }
  footer { margin-top: 10px; }
}

@media (max-height: 680px) {
  .download-page { padding-top: 10px; padding-bottom: 10px; }
  .download-card { padding-top: 20px; padding-bottom: 20px; }
  .download-logo { margin-bottom: 16px; }
  .download-intro { margin-top: 14px; margin-bottom: 16px; }
}

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