:root {
  --ground: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --secondary: #515154;
  --tertiary: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0a66e0;
  --accent-hover: #0858c4;
  --accent-ink: #ffffff;
  --kbd-bg: #ffffff;
  --kbd-line: rgba(0, 0, 0, 0.16);
  --bar: rgba(245, 245, 247, 0.78);
  --shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12)) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.16));
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(76, 151, 255, 0.22), rgba(76, 151, 255, 0) 70%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --surface: #161617;
    --ink: #f5f5f7;
    --secondary: #a1a1a6;
    --tertiary: #86868b;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #2f8cff;
    --accent-hover: #4d9dff;
    --accent-ink: #ffffff;
    --kbd-bg: #2c2c2e;
    --kbd-line: rgba(255, 255, 255, 0.14);
    --bar: rgba(0, 0, 0, 0.72);
    --shadow: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.28)) drop-shadow(0 24px 56px rgba(0, 0, 0, 0.7));
    --glow: radial-gradient(60% 50% at 50% 0%, rgba(47, 140, 255, 0.28), rgba(47, 140, 255, 0) 70%);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); }

code, kbd {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
}

code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--line);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  border: 1px solid var(--kbd-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--kbd-bg);
  text-align: center;
  line-height: 1.4;
}

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.bar nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.bar nav a {
  color: var(--secondary);
  font-size: 14px;
  text-decoration: none;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.98); }
.button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.button svg { width: 17px; height: 17px; }

.button.small {
  padding: 6px 14px;
  font-size: 14px;
}

/* Layout */

main > section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  padding-top: 88px !important;
  text-align: center;
  background: var(--glow) no-repeat top center / 100% 640px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 10px 24px rgba(10, 86, 216, 0.35));
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  margin-top: 24px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

.lede {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--secondary);
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.45;
  text-wrap: balance;
}

.cta { margin-top: 32px; }

.fine {
  margin: 12px 0 0;
  color: var(--tertiary);
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

/* Screenshots */

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--shadow);
}

.hero-shot { margin: 64px auto 0; }

/* Features */

.feature {
  padding-top: 160px !important;
}

.feature .copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 64px;
  align-items: start;
  margin-bottom: 48px;
}

.feature .eyebrow,
.feature h2 { grid-column: 1; }

.feature .copy > p:not(.eyebrow) {
  grid-column: 1;
  margin: 4px 0 0;
  color: var(--secondary);
  font-size: 19px;
}

.feature .points {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
}

.points li:last-child { border-bottom: 1px solid var(--line); }

.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.points b { color: var(--ink); font-weight: 600; }

/* Speed */

.speed {
  padding-top: 176px !important;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0 0;
}

.stats div {
  padding: 28px 16px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.stats dt {
  color: var(--tertiary);
  font-size: 14px;
  font-weight: 500;
}

.stats dd {
  margin: 6px 0 0;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stats small {
  margin-left: 4px;
  color: var(--tertiary);
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
}

.notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--tertiary);
  font-size: 15px;
}

/* Trust */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 160px !important;
}

.trust div { border-top: 1px solid var(--line); padding-top: 24px; }
.trust p { margin: 8px 0 0; color: var(--secondary); font-size: 16px; }
.trust code { font-size: 0.9em; }

/* Final */

.final {
  padding-top: 176px !important;
  padding-bottom: 128px !important;
  text-align: center;
}

.final img { width: 72px; height: 72px; }
.final h2 { margin: 20px 0 32px; }

footer {
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--tertiary);
  font-size: 13px;
  text-align: center;
}

footer p { margin: 0; }

/* Narrow */

@media (max-width: 860px) {
  .bar nav { display: none; }
  .bar .button { margin-left: auto; }
  .hero { padding-top: 56px !important; }
  .hero-shot { margin-top: 48px; }
  .feature { padding-top: 112px !important; }
  .feature .copy { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .feature .points { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .speed, .final { padding-top: 120px !important; }
  .trust { grid-template-columns: 1fr; gap: 0; padding-top: 112px !important; }
  .trust div { padding: 20px 0; }
}

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

/* Split features: copy beside a cropped shot */

.feature.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.feature.split.reverse { grid-template-columns: 7fr 5fr; }
.feature.split.reverse .copy { order: 2; }

.feature.split .copy {
  display: block;
  margin: 0;
}

.feature.split .copy > p:not(.eyebrow) { margin-top: 20px; }
.feature.split .points { margin-top: 28px; }

.shot.crop img {
  border-radius: 16px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.shot.sheet {
  max-width: 520px;
  justify-self: center;
}

@media (max-width: 860px) {
  .feature.split,
  .feature.split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature.split.reverse .copy { order: 0; }
}
