:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #151a23;
  --muted: #667085;
  --line: #e4e7ec;
  --red: #bb1f2e;
  --red-dark: #8f1824;
  --teal: #0f766e;
  --shadow: 0 18px 55px rgba(16, 24, 40, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.site-nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 13px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.site-nav .nav-download {
  background: var(--red);
  color: #fff;
}

.site-nav .nav-download:hover,
.site-nav .nav-download:focus-visible {
  background: var(--red-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  overflow: hidden;
  padding: 124px clamp(20px, 7vw, 96px) 80px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #fff1f2 100%);
}

.hero-media {
  position: absolute;
  inset: 82px 0 0 auto;
  width: min(54vw, 760px);
  opacity: 0.08;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(58px, 10vw, 118px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy,
.section-heading p,
.why-section p,
.app-copy p,
.contact-section p,
.test-card p,
.phone-preview p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.hero-copy {
  max-width: 660px;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  padding: 13px 18px;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-dark);
  outline: none;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--red);
  outline: none;
}

.download-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  position: relative;
  z-index: 1;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 18px;
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  font-size: 22px;
  margin-bottom: 6px;
}

.hero-card span {
  color: var(--muted);
  line-height: 1.5;
}

.section,
.why-section,
.app-section {
  padding: 92px clamp(20px, 7vw, 96px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

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

.test-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.test-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.test-card.highlight {
  background: #fff1f2;
  border-color: #fecdd3;
}

.why-section {
  background: #111827;
  color: #fff;
}

.why-section .section-heading p,
.why-section .benefit span {
  color: #cbd5e1;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.benefit {
  display: grid;
  gap: 8px;
  background: #172033;
  padding: 24px;
}

.benefit strong {
  font-size: 20px;
}

.benefit span {
  line-height: 1.55;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
}

.app-copy {
  max-width: 740px;
}

.phone-preview {
  border: 1px solid #d0d5dd;
  border-radius: 32px;
  background: #111827;
  color: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 72px;
  height: 6px;
  margin: 2px auto 18px;
  border-radius: 999px;
  background: #4b5563;
}

.phone-preview img {
  width: 128px;
  height: 128px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 24px;
}

.phone-preview strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.phone-preview p {
  color: #cbd5e1;
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.contact-panel div {
  display: grid;
  gap: 5px;
  background: var(--surface);
  padding: 18px;
}

.contact-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel a,
.contact-panel strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.sticky-download {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: none;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 900;
  padding: 13px 16px;
  box-shadow: 0 14px 40px rgba(187, 31, 46, 0.32);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 26px clamp(20px, 7vw, 96px);
}

.site-footer a {
  color: var(--red);
  font-weight: 900;
}

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

  .hero-card,
  .phone-preview {
    max-width: 380px;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .sticky-download {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

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

  .hero {
    min-height: auto;
    padding: 104px 16px 56px;
  }

  h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .hero-actions,
  .hero-actions .button,
  .app-section .button {
    width: 100%;
  }

  .section,
  .why-section,
  .app-section {
    padding: 64px 16px;
  }

  .test-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 16px;
    padding-bottom: 84px;
  }
}
