:root {
  --surface: #f8f9fb;
  --surface-raised: #ffffff;
  --surface-muted: #eceef0;
  --text: #191c1e;
  --muted: #55585e;
  --primary: #051125;
  --primary-raised: #17243a;
  --line: #d7dadd;
  --accent: #d7e2ff;
  --shadow: 0 24px 70px rgba(5, 17, 37, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: 'Atkinson Hyperlegible', Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(215, 218, 221, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

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

.site-header nav, footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a, footer nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover, footer nav a:hover { color: var(--primary); }

.site-header .nav-cta {
  padding: 10px 18px;
  border-radius: 8px;
  color: white;
  background: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: #455776;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: clamp(2.65rem, 5.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 { color: var(--primary); font-size: 1.35rem; }

.lead {
  max-width: 660px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(5, 17, 37, 0.14); }
.button-primary { color: white; background: var(--primary); }
.button-primary:hover { background: var(--primary-raised); }
.button-secondary { color: var(--primary); background: transparent; }
.button-light { color: var(--primary); border-color: white; background: white; }

.trust-note { margin: 20px 0 0; color: var(--muted); font-size: 0.92rem; }

.phone-stage {
  display: grid;
  place-items: center;
  min-height: 610px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 70% 20%, rgba(215, 226, 255, 0.9), transparent 40%),
    linear-gradient(145deg, #fff, #e9edf3);
  overflow: hidden;
}

.phone {
  width: min(310px, 78%);
  padding: 9px;
  border: 8px solid #10141b;
  border-radius: 38px;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-speaker { width: 68px; height: 7px; margin: 3px auto 10px; border-radius: 9px; background: #10141b; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 10px 9px 18px; border-bottom: 1px solid var(--line); }
.app-bar img { border-radius: 7px; }
.app-screen { padding: 20px 12px 28px; }
.screen-label { margin-bottom: 8px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; }
.screen-score { margin-bottom: 10px; color: var(--primary); font-size: 2rem; font-weight: 700; }
.screen-score span { color: var(--muted); font-size: 0.95rem; font-weight: 400; }
.progress { height: 8px; margin-bottom: 28px; border-radius: 8px; background: var(--surface-muted); overflow: hidden; }
.progress span { display: block; width: 27%; height: 100%; background: #315f9f; }
.screen-card { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 15px 12px; border: 1px solid var(--line); border-radius: 8px; }
.screen-card strong, .screen-card small { display: block; }
.screen-card small { margin-top: 3px; color: var(--muted); line-height: 1.25; }
.screen-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 7px; color: white; background: var(--primary); font-weight: 700; }

.features { padding: 112px max(24px, calc((100vw - 1180px) / 2)); background: var(--surface-muted); }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading > p:last-child, .apps p { color: var(--muted); font-size: 1.1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid article { min-height: 260px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.feature-grid article p { color: var(--muted); }
.feature-number { display: inline-block; margin-bottom: 48px; color: #536889; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; }

.apps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: 80px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.apps .button { margin-top: 12px; }
.platforms { display: grid; gap: 14px; }
.platform { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.platform strong, .platform span { display: block; }
.platform strong { margin-bottom: 4px; color: var(--primary); font-size: 1.15rem; }
.platform span { color: var(--muted); }

.final-cta { padding: 90px max(24px, calc((100vw - 900px) / 2)); color: white; text-align: center; background: var(--primary); }
.final-cta h2 { color: white; }
.final-cta .eyebrow { color: #bbc7e2; }
.final-cta > p:not(.eyebrow) { margin-bottom: 30px; color: #dce3ef; font-size: 1.1rem; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 48px;
  align-items: center;
  padding: 50px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: white;
}

footer p { margin: 4px 0 0; color: var(--muted); }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; }

.legal-main { width: min(820px, calc(100% - 48px)); min-height: calc(100vh - 250px); margin: 0 auto; padding: 72px 0 96px; }
.legal-main h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.legal-main h2 { margin-top: 42px; font-size: 1.65rem; }
.legal-main p, .legal-main li { color: #3e4248; }
.legal-main a { color: #234f8c; }
.legal-meta { padding-bottom: 24px; border-bottom: 1px solid var(--line); }

@media (max-width: 820px) {
  .site-header nav > a:not(.nav-cta) { display: none; }
  .hero, .apps { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .phone-stage { min-height: 520px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 220px; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; gap: 14px 22px; }
}

@media (max-width: 520px) {
  .site-header { min-height: 64px; padding-inline: 16px; }
  .brand span { font-size: 1rem; }
  .site-header .nav-cta { padding: 9px 12px; font-size: 0.9rem; }
  .hero, .apps { width: min(100% - 32px, 1180px); }
  .hero-actions .button { width: 100%; }
  .phone-stage { min-height: 450px; border-radius: 24px; }
  .phone { width: 75%; }
  .features { padding-block: 72px; }
  .apps { gap: 44px; padding-block: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
