:root {
  color-scheme: dark;
  --bg: #080a0d;
  --panel: #11161c;
  --panel-2: #18202a;
  --text: #f5f7f9;
  --muted: #a9b5c2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d53a35;
  --accent-2: #33c6a6;
  --shadow: rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(8, 10, 13, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header.solid {
  background: rgba(8, 10, 13, 0.92);
}

.brand {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px clamp(22px, 6vw, 80px) 72px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.88) 0%, rgba(4, 6, 8, 0.52) 42%, rgba(4, 6, 8, 0.16) 100%),
    rgba(0, 0, 0, 0.08);
}

.hero-copy {
  position: relative;
  max-width: 720px;
  text-shadow: 0 4px 26px var(--shadow);
}

.hero-copy p {
  margin: 0 0 12px;
  color: #d7dee7;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 650;
}

.hero-copy h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.page-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.page-heading {
  margin-bottom: 28px;
}

.eyebrow,
.app-type {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.downloads-list {
  display: grid;
  gap: 18px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px var(--shadow);
}

.download-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.download-card p:not(.app-type) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.download-controls {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 260px);
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-panel[hidden] {
  display: none;
}

.qr-panel img {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
}

.download-card .qr-panel p {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #f04b45;
  outline: none;
}

.button.secondary {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: #202b36;
  outline: none;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 100svh;
    padding: 104px 20px 52px;
  }

  .hero img {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 6, 8, 0.75) 0%, rgba(4, 6, 8, 0.42) 42%, rgba(4, 6, 8, 0.86) 100%),
      rgba(0, 0, 0, 0.12);
  }

  .hero-copy {
    align-self: end;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.6rem);
  }

  .page-shell {
    width: min(100% - 32px, 1100px);
    padding-top: 112px;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: stretch;
  }

  .download-controls {
    justify-items: stretch;
  }

  .button {
    flex: 1 1 150px;
  }
}
