:root {
  --ink: #111216;
  --muted: #6f727b;
  --faint: #a6a8af;
  --line: #e8e8ec;
  --surface: #ffffff;
  --wash: #f6f6f8;
  --tint: #900014;
  --tint-dark: #75000f;
  --tint-soft: #f3e8eb;
  --blue: #007aff;
  --shadow: 0 24px 80px rgba(17, 18, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fbfbfc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

main {
  max-width: 1280px;
  margin: 0 auto;
}

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

img {
  max-width: 100%;
}

.back-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 251, 252, 0.86);
  border-bottom: 1px solid rgba(232, 232, 236, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 800;
}

nav a:hover {
  color: var(--ink);
}

.download-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 178px;
  min-height: 58px;
  padding: 10px 20px 12px;
  color: #fff;
  background: #050507;
  border: 1px solid #050507;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.download-button span {
  font-size: 0.76rem;
  font-weight: 800;
}

.download-button strong {
  font-size: 1.42rem;
  line-height: 1;
}

.download-button-small {
  min-width: auto;
  min-height: auto;
  padding: 11px 16px;
  font-weight: 900;
  box-shadow: none;
}

.download-button-small::first-line {
  font-size: 1rem;
}

.hero {
  min-height: clamp(760px, calc(100vh - 71px), 920px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--tint);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 9.8ch;
  margin-bottom: 22px;
  font-size: clamp(4rem, 8.3vw, 7.6rem);
  line-height: 0.9;
}

.lede {
  max-width: 650px;
  color: #4f525a;
  font-size: clamp(1.18rem, 2vw, 1.46rem);
  line-height: 1.55;
}

.hero-actions,
.stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.text-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  color: var(--tint);
  background: var(--tint-soft);
  border-radius: 8px;
  font-weight: 950;
}

.stats-row {
  margin-top: 26px;
  color: var(--muted);
  font-weight: 850;
}

.stats-row span {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: 5% -12% 10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 28%, rgba(144, 0, 20, 0.16), rgba(0, 122, 255, 0.06) 42%, rgba(255, 255, 255, 0) 68%);
}

.phone-frame {
  width: min(410px, 100%);
  padding: 12px;
  background: #0c0c0f;
  border-radius: 44px;
  box-shadow: var(--shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid article {
  padding: clamp(28px, 4vw, 46px);
  background: var(--surface);
}

.feature-label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--tint-soft);
  color: var(--tint);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(144, 0, 20, 0.15);
}

.feature-grid h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  line-height: 1;
}

.feature-grid p,
.section-heading p,
.screen-card p,
.download-section p {
  color: #5d6068;
  font-size: 1.06rem;
  line-height: 1.65;
}

.screens-section {
  padding: clamp(76px, 9vw, 122px) clamp(20px, 5vw, 72px);
  background: var(--wash);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-heading h2,
.download-section h2 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.96;
}

.screen-cards {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.screen-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.screen-card h3 {
  margin: 22px 0 8px;
  font-size: 1.5rem;
}

.screenshot-frame {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  background: var(--surface);
  border: 10px solid #111216;
  border-radius: 38px;
  box-shadow: 0 22px 60px rgba(17, 18, 22, 0.13);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.screens-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.screens-cta p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 950;
  line-height: 1.12;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: 0 clamp(20px, 5vw, 72px) clamp(20px, 5vw, 72px);
  padding: clamp(34px, 6vw, 70px);
  color: #fff;
  background: var(--tint);
  border-radius: 8px;
}

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

.download-section .eyebrow,
.download-section p {
  color: rgba(255, 255, 255, 0.78);
}

.download-button.light {
  color: #050507;
  background: #fff;
  border-color: #fff;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px) 42px;
  color: var(--muted);
  font-weight: 850;
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--tint);
}

.footer-credit {
  font-size: 0.88rem;
  color: var(--faint);
}

@media (max-width: 1040px) {
  .hero,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-device {
    justify-content: flex-start;
  }

  .phone-frame {
    width: min(420px, 92vw);
  }

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

  .screen-card {
    min-height: auto;
  }

  nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span {
    max-width: 188px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .download-button-small {
    display: none;
  }

  .hero {
    padding: 42px 18px 56px;
  }

  h1 {
    max-width: 8ch;
    font-size: 3.45rem;
  }

  .lede {
    max-width: 30ch;
  }

  .download-button,
  .text-link {
    flex: 1 1 100%;
    max-width: 330px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .phone-frame {
    width: min(330px, 100%);
    border-radius: 36px;
  }

  .phone-frame img {
    border-radius: 27px;
  }

  .feature-grid,
  .download-section {
    margin-right: 18px;
    margin-left: 18px;
  }

  .screens-section {
    padding-right: 18px;
    padding-left: 18px;
    overflow: hidden;
  }

  .screen-cards {
    display: block;
  }

  .screen-card + .screen-card {
    margin-top: 34px;
  }

  .screen-card {
    width: 100%;
    padding: 0;
  }

  .screenshot-frame {
    width: min(300px, 100%);
    margin: 0;
    border-width: 8px;
    border-radius: 32px;
  }

  .screenshot-frame img {
    border-radius: 24px;
  }

  .screen-card h3,
  .screen-card p {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .screens-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .download-section {
    padding: 28px;
  }

  .section-heading h2,
  .download-section h2 {
    max-width: 9.6ch;
    font-size: 2.45rem;
  }

  .feature-grid h2,
  .screen-card h3 {
    max-width: 10ch;
    font-size: 1.9rem;
    line-height: 1.05;
  }

  .feature-grid p,
  .section-heading p,
  .screen-card p,
  .download-section p {
    max-width: 29ch;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
