:root {
  --red: #df2028;
  --red-dark: #b91620;
  --ink: #171717;
  --muted: #66656b;
  --line: #ece7e1;
  --paper: #fffaf4;
  --white: #ffffff;
  --teal: #0f6f70;
  --blue: #2e79bd;
  --gold: #c78b2a;
  --shadow: 0 24px 80px rgba(30, 25, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(236, 231, 225, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.store-buttons {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img,
.download-logo {
  border-radius: 8px;
}

.nav-links {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--red);
  border-radius: 8px;
  padding: 10px 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 96px);
  min-height: calc(100vh - 77px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 5vw, 80px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223, 32, 40, 0.08), rgba(15, 111, 112, 0.08)),
    var(--paper);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 6vw, 5.5rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
}

.hero-actions,
.store-buttons {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(223, 32, 40, 0.22);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-showcase {
  position: relative;
  min-height: 640px;
}

.phone {
  margin: 0;
  overflow: hidden;
  background: #111;
  border: 10px solid #151515;
  border-radius: 36px;
  box-shadow: var(--shadow);
  aspect-ratio: 1080 / 2176;
}

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

.phone-main {
  width: min(62vw, 340px);
  margin-left: auto;
}

.phone-overlap {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: min(48vw, 250px);
  transform: rotate(-4deg);
}

.feature-band,
.places,
.screens,
.download-cta {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 80px);
}

.feature-band {
  background: var(--white);
}

.section-heading {
  max-width: 800px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

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

.features article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(30, 25, 20, 0.06);
}

.features p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.features article:nth-child(2) .feature-icon {
  background: var(--blue);
}

.features article:nth-child(3) .feature-icon {
  background: var(--gold);
}

.features article:nth-child(4) .feature-icon {
  background: var(--red);
}

.places {
  background: var(--paper);
}

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

.category-grid div {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(199, 139, 42, 0.22);
  font-weight: 900;
}

.screen-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 28px;
  scroll-snap-type: x mandatory;
}

.screen-gallery .phone {
  scroll-snap-align: start;
  border-width: 8px;
  border-radius: 32px;
  box-shadow: 0 18px 50px rgba(30, 25, 20, 0.14);
}

.download-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: var(--white);
}

.download-cta p:not(.eyebrow) {
  max-width: 580px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 80px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

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

.footer-links a:hover {
  color: var(--red);
}

.policy-page {
  background: var(--white);
}

.policy-hero {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 80px);
  background:
    linear-gradient(135deg, rgba(223, 32, 40, 0.08), rgba(15, 111, 112, 0.08)),
    var(--paper);
}

.policy-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
}

.policy-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.policy-hero span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.policy-content {
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0;
}

.policy-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  color: var(--muted);
  font-size: 1.04rem;
}

.policy-content a {
  color: var(--red);
  font-weight: 800;
}

.download-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(223, 32, 40, 0.09), rgba(46, 121, 189, 0.08)),
    var(--paper);
}

.download-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.download-panel {
  width: min(100%, 560px);
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06;
}

.download-panel p:not(.eyebrow) {
  color: var(--muted);
}

.download-logo {
  margin: 0 auto 20px;
}

.store-buttons {
  justify-content: center;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 800;
}

.back-link:hover {
  color: var(--red);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-showcase {
    min-height: 560px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .phone-main {
    width: min(68vw, 320px);
  }

  .phone-overlap {
    width: min(48vw, 230px);
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions .button,
  .store-buttons .button {
    width: 100%;
  }

  .hero-showcase {
    min-height: 500px;
  }

  .phone {
    border-width: 7px;
    border-radius: 28px;
  }

  .phone-main {
    width: min(76vw, 280px);
  }

  .phone-overlap {
    width: min(54vw, 200px);
  }

  .features,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .features article {
    min-height: 0;
  }

  .download-cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-cta .button {
    width: 100%;
  }
}
