:root {
  color-scheme: dark;
  --background: #0c101b;
  --surface: #141a29;
  --ink: #f1f4fb;
  --muted: #b1bbce;
  --blue: #9cbaff;
  --line: #2c354b;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font: 16px/1.55 var(--sans);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, main:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -10rem; z-index: 5; padding: .7rem 1rem; background: var(--surface); }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header-inner { min-height: 79px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; text-decoration: none; line-height: 1.2; }
.brand img { border-radius: 10px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: 24px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 44px 58px; }
.hero-copy { padding-block: 20px; }
.kicker { color: var(--blue); font: 750 .76rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 23px; }
.hero h1, .document h1 { font: 740 clamp(3.5rem, 6vw, 6rem)/1.02 var(--sans); letter-spacing: -.045em; }
.hero h1 span { color: var(--blue); }
.lede { max-width: 430px; margin-block: 30px 29px; color: var(--muted); font-size: 1.18rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 11px 19px; border-radius: 8px; background: var(--blue); color: #10192b; text-decoration: none; font-weight: 700; line-height: 1.25; text-align: center; }
.button:hover { background: #c3d5ff; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 18px 6px 16px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font: 600 18px/1 -apple-system, BlinkMacSystemFont, var(--sans);
  letter-spacing: -.02em;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 30px -8px #ffffff40;
}
.store-badge small { display: block; margin-bottom: 3px; color: #4d4d4d; font-size: 10px; font-weight: 500; letter-spacing: normal; }
.store-badge:hover { background: #edf2ff; }

.hero-art {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 528px;
  padding: 28px;
  border-radius: 20px;
  background-color: #15244b;
  background-image: linear-gradient(#a2bbff24 1px, transparent 1px), linear-gradient(90deg, #a2bbff24 1px, transparent 1px), radial-gradient(ellipse at 65% 20%, #2a478e, transparent 72%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.hero-art::before, .hero-art::after { content: ''; position: absolute; z-index: -1; aspect-ratio: 1; width: 82%; border: 1px solid #a2bbff60; border-radius: 50%; }
.hero-art::before { transform: translate(-30%, 37%); }
.hero-art::after { transform: translate(32%, -42%); }
.screen { background: #101625; border: 4px solid #171e2e; border-radius: 25px; overflow: hidden; box-shadow: 0 20px 25px #070c1980; outline: 1px solid #a2bbff65; }
.hero-screen { width: min(222px, 77%); transform: rotate(-8deg); border-radius: 29px; }

.features { padding-block: 36px 64px; border-top: 1px solid var(--line); }
.section-title { margin-bottom: 24px; }
.section-title, .download h2 { font: 730 clamp(1.9rem, 4vw, 3.2rem)/1.08 var(--sans); letter-spacing: -.035em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface); }
.feature-copy { flex: 1; padding: 23px; }
.feature h3 { line-height: 1.2; margin-bottom: 8px; font-size: 1.17rem; }
.feature p { font-size: .94rem; color: var(--muted); }
.feature-art, .formula { position: relative; overflow: hidden; height: 200px; }
.feature-art { display: grid; justify-items: center; align-items: start; padding-top: 22px; }
.feature-art .screen { width: min(188px, 78%); }
.topic-art { background: #1a294e; }
.progress-art { background: #172f31; }
.formula { color: var(--blue); background: #17233d; display: grid; place-items: center; }
.formula span { position: absolute; z-index: 1; top: 9px; left: 20px; font: 500 1.15rem var(--sans); }
.formula svg { width: min(240px, 90%); max-height: 162px; }

.download { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; background: #17233d; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 66px; }
.download h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.download p { margin-top: 8px; color: var(--muted); }
.download .store-badge { flex-shrink: 0; }

.document { max-width: 720px; margin-inline: auto; padding-block: 55px 78px; }
.document > header { padding-bottom: 25px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.document h1 { font-size: clamp(3.2rem, 8vw, 5.5rem); line-height: .98; }
.document .lede { max-width: none; margin-block: 17px 0; }
.updated { margin-top: 13px; color: var(--muted); font-size: .88rem; }
.document section + section { margin-top: 26px; }
.document h2 { font-size: 1.25rem; margin-bottom: 6px; }
.document p + p { margin-top: 10px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 20px; }
.footer-inner p { color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 27px; }
  .hero h1 { font-size: clamp(2.8rem, 6.75vw, 4.6rem); }
  .hero-art { min-height: 445px; }
  .hero-screen { width: min(182px, 77%); }
  .feature-copy { padding: 16px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; column-gap: 12px; row-gap: 2px; padding-block: 10px; min-height: 0; }
  .brand img { width: 34px; height: 34px; }
  .nav { column-gap: 15px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4.85rem); }
  .kicker { margin-bottom: 17px; }
  .lede { margin-block: 22px; font-size: 1.05rem; }
  .hero-art { min-height: 382px; padding: 22px; border-radius: 15px; }
  .hero-screen { width: min(150px, 72%); border-radius: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .features { padding-block: 27px 40px; }
  .feature-copy { padding: 19px; }
  .download { align-items: flex-start; flex-direction: column; padding: 23px; margin-bottom: 40px; }
  .document { padding-block: 39px 54px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}
