:root {
  --red: #a8192a;
  --red-deep: #7f1021;
  --orange: #ffaf5f;
  --orange-dark: #f28a2e;
  --ink: #19151a;
  --muted: #6a6268;
  --paper: #fffaf4;
  --white: #ffffff;
  --line: rgba(25, 21, 26, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--red-deep) 0, var(--red) 96px, var(--paper) 96px, var(--paper) 100%);
}

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

.site-header {
  width: calc(100% - 32px);
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 20px;
  line-height: 1;
}

.brand img,
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 750;
}

.header-download {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

main {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  padding: clamp(56px, 8vh, 92px) 0 72px;
}

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

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

.hero h1,
.section-heading h2,
.download-section h2,
.feature-grid h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--red);
  font-size: clamp(48px, 7.6vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-heading h2,
.download-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-grid h3 {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-btn {
  min-height: 68px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc078, var(--orange-dark));
  color: var(--white);
  box-shadow: 0 18px 34px rgba(242, 138, 46, 0.3);
}

.download-btn.large {
  min-width: min(100%, 330px);
  justify-content: center;
}

.download-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 23px;
  line-height: 1;
}

.download-btn strong,
.download-btn small {
  display: block;
  line-height: 1.1;
}

.download-btn strong {
  font-size: 18px;
}

.download-btn small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.plain-link {
  color: var(--red);
  font-weight: 850;
  border-bottom: 2px solid rgba(168, 25, 42, 0.24);
}

.stats {
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.stats dt {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.device-stage {
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-shell {
  width: min(390px, 86vw);
  aspect-ratio: 390 / 844;
  padding: 10px;
  border-radius: 38px;
  background: #171115;
  box-shadow: 0 36px 58px rgba(62, 28, 33, 0.3);
}

.phone-shell img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
}

.feature-band,
.download-section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 660px;
}

.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-grid span {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.feature-grid p,
.download-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.download-section div {
  max-width: 690px;
}

.footer {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 0 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  color: var(--red);
}

.policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

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

.footer p {
  margin: 0;
  text-align: right;
}

.policy-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--red-deep) 0, var(--red) 220px, var(--paper) 220px, var(--paper) 100%);
}

.policy-hero {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 0 30px;
  color: var(--white);
}

.policy-hero .brand {
  margin-bottom: 34px;
}

.policy-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.policy-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
  font-size: 16px;
}

.policy-content {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 0 68px;
}

.policy-content section {
  width: 100%;
  max-width: 100%;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(62, 28, 33, 0.08);
}

.policy-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.66;
  overflow-wrap: break-word;
}

.policy-content h2 {
  margin: 30px 0 10px;
  color: var(--red);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  body:not(.policy-page) {
    background: linear-gradient(180deg, var(--red-deep) 0, var(--red) 86px, var(--paper) 86px, var(--paper) 100%);
  }

  .site-header {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 44px 0 60px;
  }

  .hero-copy {
    max-width: none;
  }

  .device-stage {
    min-height: auto;
  }

  .phone-shell {
    width: min(360px, 92vw);
  }

  .feature-grid,
  .download-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .download-section {
    align-items: start;
  }

  .footer,
  .footer p {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .policy-hero {
    padding-top: 18px;
  }

  .policy-page {
    background: linear-gradient(180deg, var(--red-deep) 0, var(--red) 188px, var(--paper) 188px, var(--paper) 100%);
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .footer {
    width: calc(100% - 24px);
    max-width: 366px;
    margin-left: 12px;
    margin-right: 0;
  }

  .brand span {
    font-size: 18px;
  }

  .header-download {
    display: none;
  }

  .hero h1 {
    font-size: 45px;
  }

  .policy-page {
    background: linear-gradient(180deg, var(--red-deep) 0, var(--red) 178px, var(--paper) 178px, var(--paper) 100%);
  }

  .policy-hero {
    width: calc(100% - 24px) !important;
    max-width: 366px;
    margin-left: 12px;
    margin-right: 0;
    padding-bottom: 20px;
  }

  .policy-hero .brand {
    margin-bottom: 24px;
  }

  .policy-hero h1 {
    font-size: 34px;
  }

  .policy-content {
    width: calc(100% - 24px) !important;
    max-width: 366px;
    margin-left: 12px;
    margin-right: 0;
    padding-top: 22px;
  }

  .policy-content section {
    width: auto !important;
    max-width: 100%;
    padding: 24px;
  }

  .policy-content p,
  .policy-content h2 {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

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

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .plain-link {
    width: 100%;
    text-align: center;
  }

  .feature-band,
  .download-section {
    padding: 54px 0;
  }
}
