:root {
  color-scheme: light;
  --ink: #17211d;
  --ink-2: #2a3a33;
  --muted: #65736a;
  --line: #dce5dc;
  --paper: #f7faf7;
  --white: #fff;
  --orange: #ff6a18;
  --green: #15985a;
  --blue: #1976ad;
  --dark: #080d0c;
  --shadow: 0 18px 46px rgba(23, 33, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbf8 0, #fff8ef 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.download-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(1120px, calc(100% - 28px));
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #fff;
  background: rgba(7, 10, 12, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.download-nav,
.header-actions,
.store-row,
.download-badges {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 920;
}

.brand img {
  width: 34px;
  height: 27px;
  object-fit: contain;
}

.download-nav {
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 820;
}

.download-nav a {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 999px;
}

.download-nav a:hover,
.download-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
}

.language-switch .is-active {
  color: var(--ink);
  background: #fff;
}

.mini-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff8b35);
  font-size: 13px;
  font-weight: 900;
}

.mini-store-play {
  background: linear-gradient(135deg, #101827, #334155);
}

.download-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.download-hero > img,
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.download-hero > img {
  object-fit: cover;
  object-position: center 56%;
}

.hero-layer {
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.78), rgba(5, 8, 9, 0.36) 52%, rgba(5, 8, 9, 0.08)),
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(260px, 360px);
  gap: 56px;
  align-items: end;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 76px;
}

.download-copy {
  max-width: 660px;
}

.eyebrow {
  color: #ffb26f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin-top: 10px;
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: 0.99;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.56;
}

.store-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-button {
  display: grid;
  min-width: 176px;
  min-height: 56px;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff8b35);
  box-shadow: 0 18px 40px rgba(255, 106, 24, 0.28);
  line-height: 1;
}

.store-button span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.store-button strong {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 950;
}

.store-button-play {
  background: linear-gradient(135deg, #111827, #334155);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 900;
}

.download-badges {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.download-badges span {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 850;
}

.phone-stack {
  position: relative;
  min-height: 500px;
}

.phone {
  position: absolute;
  overflow: hidden;
  aspect-ratio: 393 / 852;
  border: 8px solid #f8fafc;
  border-radius: 42px;
  background: #f1f5f9;
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 20px;
  border-radius: 999px;
  background: #0c1016;
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-front {
  right: 0;
  bottom: 0;
  width: 270px;
  transform: rotate(2deg);
}

.phone-back {
  right: 148px;
  bottom: 48px;
  width: 210px;
  opacity: 0.9;
  transform: rotate(-5deg);
}

.content-section,
.install-panel {
  width: min(1120px, calc(100% - 32px));
  margin: 84px auto 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-card {
  display: grid;
  gap: 9px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.07);
}

.feature-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
}

.feature-card strong {
  font-size: 16px;
  line-height: 1.22;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.48;
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  border: 1px solid rgba(220, 229, 220, 0.94);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 251, 244, 0.88)),
    radial-gradient(circle at 100% 0, rgba(255, 106, 24, 0.12), transparent 36%);
  box-shadow: var(--shadow);
}

.install-panel h2 {
  margin-top: 8px;
}

.install-steps {
  display: grid;
  gap: 10px;
}

.install-steps article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(220, 229, 220, 0.9);
  border-radius: 8px;
  background: #fff;
}

.install-steps b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
}

.install-steps strong {
  display: block;
  font-size: 15px;
}

.install-steps span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.download-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
  margin-top: 84px;
  padding: 24px max(24px, calc((100vw - 1120px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: #07090c;
  font-size: 13px;
  font-weight: 760;
}

.download-footer img {
  width: 132px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 980px) {
  .download-header {
    grid-template-columns: 1fr auto;
  }

  .download-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero-inner,
  .install-panel {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 390px;
  }

  .phone-front {
    right: 16%;
    width: 230px;
  }

  .phone-back {
    right: calc(16% + 132px);
    width: 180px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .download-header {
    top: 8px;
    width: calc(100% - 20px);
    gap: 8px;
    border-radius: 16px;
  }

  .download-nav {
    display: none;
  }

  .mini-store {
    display: none;
  }

  .language-switch {
    min-height: 34px;
    font-size: 11px;
  }

  .download-hero {
    min-height: 690px;
  }

  .hero-inner {
    width: calc(100% - 24px);
    padding: 118px 0 44px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 15.5px;
  }

  .store-button,
  .secondary-link {
    width: 100%;
  }

  .phone-stack {
    display: none;
  }

  .content-section,
  .install-panel {
    width: calc(100% - 24px);
    margin-top: 58px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .install-panel {
    padding: 22px;
  }

  .download-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 58px;
  }
}
