:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0d1530;
  --muted: #5a6382;
  --line: #e2e5ef;
  --blue: #0f3383;
  --blue-soft: #e7ecf8;
  --accent: #ff6b29;
  --accent-ink: #c94a12;
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b18;
    --surface: #10172b;
    --text: #eef1fa;
    --muted: #98a1bd;
    --line: #1f2842;
    --blue: #3d6ae0;
    --blue-soft: #14204a;
    --accent: #ff8542;
    --accent-ink: #ff8542;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav .links { display: flex; gap: 22px; font-size: 15px; }
nav .links a { text-decoration: none; color: var(--muted); }
nav .links a:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 88px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 20px; color: var(--muted); max-width: 33ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn svg { width: 20px; height: 20px; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Phone mockup */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage::before {
  content: ""; position: absolute; inset: 8% -4% 4%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 40%, transparent), transparent);
  filter: blur(30px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: 300px; border-radius: 48px; padding: 12px;
  background: #0b0d12; box-shadow: 0 30px 80px -20px rgba(10, 20, 60, 0.45), inset 0 0 0 2px #2a2f3a;
}
.screen { background: #000; color: #fff; border-radius: 38px; padding: 46px 16px 92px; min-height: 580px; font-size: 13px; position: relative; overflow: hidden; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0b0d12; border-radius: 20px; }
.screen h3 { font-size: 24px; margin: 0 0 2px; letter-spacing: -0.02em; }
.screen .sub { color: #8b90a0; margin-bottom: 14px; }
.ex { background: #16181f; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.ex-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.ex-head span { color: #ff8542; font-size: 12px; font-weight: 600; }
.set { display: grid; grid-template-columns: 22px 1fr 1fr 1fr 24px; gap: 6px; align-items: center; padding: 5px 0; color: #c7cad4; }
.set.head { color: #6b7080; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.set .chk { width: 22px; height: 22px; border-radius: 7px; background: #262a35; display: grid; place-items: center; }
.set.done .chk { background: #ff8542; color: #000; font-weight: 800; font-size: 12px; }
.set.done { color: #fff; }
.pr { display: inline-block; background: #3a2a10; color: #ffc65a; padding: 0 6px; border-radius: 6px; font-size: 11px; margin-left: 4px; }
.rest { position: absolute; left: 16px; right: 16px; bottom: 18px; background: #1d2a55; border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.rest b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rest .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 62%; background: #ff8542; border-radius: 3px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.band { background: var(--blue); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.78); font-size: 18px; margin: 0; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band li { display: flex; gap: 12px; align-items: flex-start; }
.band li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split .card { padding: 32px; }
.split .card h3 { font-size: 22px; margin-bottom: 10px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer nav { padding: 0; gap: 20px; display: flex; }

/* Prose pages */
.prose { max-width: 700px; padding: 40px 0 80px; }
.prose h1 { font-size: 44px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 56px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 36px 24px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  nav .links a.hide-sm { display: none; }
  .lede { font-size: 18px; }
}
