:root {
  --download-accent: #ffd700;
  --download-bg: #080808;
  --download-surface: #111;
  --download-text: #f5f5f5;
  --download-muted: #b8b8b8;
  --download-line: rgba(255, 255, 255, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--download-bg);
  color: var(--download-text);
  font-family: 'Prompt', sans-serif;
}

button,
a {
  font-family: inherit;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
}

.custom-nav {
  background: rgba(8, 8, 8, .96);
  box-shadow: none;
}

.custom-nav-cta,
.custom-nav-cta:hover {
  background: #fff;
  box-shadow: none;
}

.download-hero {
  position: relative;
  min-height: 520px;
  padding: 180px 24px 90px;
  background-color: #101010;
  background-image: url('/img/fa+ma.png');
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.download-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  content: '';
}

.download-hero-content {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.download-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.08;
}

.download-hero p {
  max-width: 700px;
  margin: 20px 0 30px;
  color: #e1e1e1;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-links a,
.primary-download,
.secondary-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.platform-links a {
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .55);
  color: #fff;
}

.platform-links a:hover,
.secondary-download:hover {
  border-color: var(--download-accent);
  color: var(--download-accent);
  transform: translateY(-2px);
}

.download-content {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px 50px;
  padding: 76px 0;
  border-top: 1px solid var(--download-line);
}

.platform-section:first-child {
  border-top: 0;
}

.platform-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.platform-icon {
  margin-top: 4px;
  color: var(--download-accent);
  font-size: 2.5rem;
}

.platform-heading h2,
.download-help h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.platform-heading p {
  margin: 8px 0 0;
  color: var(--download-muted);
  line-height: 1.7;
}

.primary-download {
  align-self: center;
  border: 1px solid var(--download-accent);
  background: var(--download-accent);
  color: #111;
}

.primary-download:hover {
  background: #ffe04a;
  transform: translateY(-2px);
}

.secondary-download {
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
}

.android-downloads {
  display: flex;
  align-self: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.install-guide {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid var(--download-line);
}

.install-guide h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.install-guide ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
  color: var(--download-muted);
  line-height: 1.8;
}

.install-guide li::marker {
  color: var(--download-accent);
  font-weight: 700;
}

.download-help {
  padding: 64px 0 84px;
  border-top: 1px solid var(--download-line);
}

.download-help p {
  max-width: 760px;
  margin: 16px 0;
  color: var(--download-muted);
  line-height: 1.8;
}

.download-help a {
  color: var(--download-accent);
  font-weight: 700;
}

.download-footer {
  padding: 24px;
  border-top: 1px solid var(--download-line);
  color: var(--download-muted);
  text-align: center;
}

.download-footer p {
  margin: 0;
}

a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .download-hero {
    min-height: 460px;
    padding-top: 145px;
  }

  .platform-section {
    grid-template-columns: 1fr;
  }

  .primary-download {
    justify-self: start;
  }

  .android-downloads {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .download-hero {
    min-height: 430px;
    padding: 130px 20px 68px;
  }

  .download-content {
    width: min(100% - 36px, 1100px);
  }

  .platform-section {
    gap: 28px;
    padding: 58px 0;
  }

  .platform-links,
  .android-downloads {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-links a,
  .primary-download,
  .secondary-download {
    width: 100%;
  }

  .platform-heading {
    gap: 12px;
  }

  .platform-icon {
    font-size: 2rem;
  }
}
