:root {
  --bg: #f4f5f8;
  --surface: #fcfcfd;
  --surface-strong: #ffffff;
  --periwinkle: #e7eaf4;
  --ink: #202434;
  --ink-secondary: #51586d;
  --ink-tertiary: #747c94;
  --line: rgba(32, 36, 52, 0.11);
  --accent: #454a51;
  --shadow: 0 24px 70px rgba(32, 36, 52, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(231, 234, 244, 0.95), transparent 31rem),
    radial-gradient(circle at 94% 32%, rgba(231, 234, 244, 0.72), transparent 26rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(32, 36, 52, 0.35);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header { padding: 24px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 720; letter-spacing: -0.02em; }
.brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 8px 22px rgba(32, 36, 52, 0.16); }
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--ink-secondary); font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); align-items: center; gap: clamp(44px, 7vw, 96px); padding: clamp(66px, 9vw, 118px) 0 92px; }
.eyebrow { margin: 0 0 18px; color: var(--ink-secondary); font-size: 13px; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; letter-spacing: -0.045em; line-height: 1.03; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(50px, 7vw, 82px); font-weight: 760; }
.hero-copy { max-width: 690px; margin: 0 0 30px; color: var(--ink-secondary); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.app-store-link { display: inline-block; border-radius: 12px; }
.app-store-link img { width: 178px; height: auto; }
.cta-note { color: var(--ink-tertiary); font-size: 14px; }

.hero-preview { position: relative; min-height: 510px; display: grid; place-items: center; }
.hero-preview::before { content: ""; position: absolute; width: 410px; height: 410px; border-radius: 50%; background: var(--periwinkle); filter: blur(1px); }
.report-card { position: relative; width: min(100%, 430px); padding: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius-lg); background: rgba(252, 252, 253, 0.88); box-shadow: var(--shadow); backdrop-filter: blur(18px); transform: rotate(2deg); }
.report-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.6), transparent 44%); }
.report-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.report-kicker { margin: 0 0 4px; color: var(--ink-tertiary); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.report-title { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.score-orb { flex: 0 0 auto; width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(32,36,52,.1); border-radius: 50%; background: var(--periwinkle); font-size: 24px; font-weight: 790; letter-spacing: -.05em; }
.metric-stack { position: relative; z-index: 1; display: grid; gap: 12px; }
.metric-row { padding: 16px 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.72); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; font-size: 14px; font-weight: 680; }
.metric-label span:last-child { color: var(--ink-tertiary); font-size: 12px; font-weight: 650; }
.metric-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e6e8ee; }
.metric-track span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(252,252,253,.72); }
.stat { padding: 27px 30px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; margin-bottom: 4px; font-size: 27px; letter-spacing: -.04em; }
.stat span { color: var(--ink-secondary); font-size: 14px; }

.section { padding: 28px 0 112px; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 17px; font-size: clamp(38px, 5vw, 57px); }
.section-heading p { margin: 0; color: var(--ink-secondary); font-size: 19px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card { min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(252,252,253,.82); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 44px; border-radius: 14px; color: var(--ink); background: var(--periwinkle); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-bottom: 10px; font-size: 25px; }
.feature-card p { margin: 0; color: var(--ink-secondary); }

.privacy-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; padding: clamp(34px, 6vw, 64px); border-radius: var(--radius-lg); color: var(--surface); background: var(--ink); }
.privacy-panel::after { content: ""; position: absolute; right: -90px; bottom: -180px; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.privacy-panel h2 { margin-bottom: 16px; font-size: clamp(36px, 5vw, 55px); }
.privacy-panel p { max-width: 680px; margin: 0; color: rgba(252,252,253,.75); font-size: 18px; }
.text-link { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 19px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; color: var(--surface); text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.text-link:hover { background: rgba(255,255,255,.08); }

.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--ink-secondary); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.legal-main { padding: 62px 0 110px; }
.legal-hero { max-width: 850px; margin-bottom: 46px; }
.legal-hero h1 { margin-bottom: 20px; font-size: clamp(48px, 7vw, 76px); }
.legal-hero > p { max-width: 730px; margin: 0 0 16px; color: var(--ink-secondary); font-size: 20px; }
.updated { color: var(--ink-tertiary) !important; font-size: 14px !important; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0 50px; }
.summary-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(252,252,253,.84); }
.summary-card strong { display: block; margin-bottom: 6px; font-size: 16px; }
.summary-card span { color: var(--ink-secondary); font-size: 14px; line-height: 1.5; }
.legal-content { max-width: 850px; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(252,252,253,.88); box-shadow: 0 18px 50px rgba(32,36,52,.06); }
.legal-content section + section { margin-top: 42px; padding-top: 42px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 15px; font-size: 28px; letter-spacing: -.035em; }
.legal-content p { margin: 0 0 15px; color: var(--ink-secondary); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { margin: 12px 0 0; padding-left: 21px; color: var(--ink-secondary); }
.legal-content li + li { margin-top: 8px; }
.legal-content a { text-underline-offset: 3px; }
.legal-note { padding: 18px 20px; border-radius: 16px; background: var(--periwinkle); color: var(--ink) !important; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-preview { min-height: 470px; }
  .stats, .summary-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .privacy-panel { grid-template-columns: 1fr; }
  .text-link { justify-self: start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header { padding-top: 16px; }
  .brand span { font-size: 15px; }
  .brand img { width: 40px; height: 40px; border-radius: 11px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { gap: 24px; padding: 45px 0 68px; }
  h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero-preview { min-height: 420px; }
  .hero-preview::before { width: 315px; height: 315px; }
  .report-card { padding: 20px; border-radius: 25px; }
  .score-orb { width: 66px; height: 66px; font-size: 21px; }
  .stats { margin-bottom: 78px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 205px; }
  .feature-icon { margin-bottom: 34px; }
  .section { padding-bottom: 82px; }
  .privacy-panel { padding: 30px 24px; border-radius: 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .legal-main { padding-top: 44px; }
  .legal-content { padding: 25px 21px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
