:root {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #121a2b;
  --text: #eef1f6;
  --muted: #9aa5b8;
  --line: #223049;
  --ink: #060b16;
  --on-ink: #eef1f6;
  --accent: #6c93ff;
  --accent-soft: #16233f;
  --ok: #4cc27a;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
nav.main { display: flex; gap: 22px; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover, nav.main a[aria-current] { color: var(--text); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
h1 {
  font-size: clamp(38px, 6.2vw, 68px); line-height: 1.05; letter-spacing: -0.035em;
  margin: 16px 0 22px; max-width: 16ch; font-weight: 800;
}
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--text); color: var(--bg); text-decoration: none; border: 1px solid var(--text);
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); margin-left: 8px; }
.btn:hover { opacity: .88; }

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.12; margin: 10px 0 16px; font-weight: 700; max-width: 22ch; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 6px;
}
section.alt .card { background: var(--bg); }
a.card { transition: transform .15s, border-color .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px -16px rgba(15,27,45,.35); }
.card .app-name { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.card .app-name span { color: var(--accent); }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card .more { font-weight: 600; font-size: 14.5px; color: var(--accent); margin-top: 10px; }
.principle .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }

.note {
  margin-top: 20px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 15.5px;
}
.note b { color: var(--text); }

/* Pills / stage tracker */
.pill {
  display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.stages li { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.stages li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 10px; }
.stages li.done { color: var(--text); }
.stages li.done::before { background: var(--accent); }
.stages li.now { color: var(--accent); }
.stages li.now::before { background: linear-gradient(90deg, var(--accent) 55%, var(--line) 55%); }

/* App pages */
.app-hero { padding: 80px 0 56px; }
.app-hero h1 { max-width: 20ch; font-size: clamp(34px, 5.4vw, 58px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
}
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.now::before { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.timeline p { color: var(--muted); font-size: 15.5px; margin: 0; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.back { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* CTA band + footer */
.cta { background: var(--ink); color: var(--on-ink); padding: 72px 0; }
.cta h2 { color: var(--on-ink); max-width: 20ch; }
.cta p { color: color-mix(in srgb, var(--on-ink) 70%, transparent); max-width: 52ch; }
.cta .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

footer.site { padding: 40px 0 48px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--text); }
.tag-f {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text);
}
.tag-f::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

@media (max-width: 820px) {
  .grid3, .two { grid-template-columns: 1fr; gap: 20px; }
  .two { gap: 32px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .hero { padding: 64px 0 48px; }
  section.block { padding: 60px 0; }
  nav.main { gap: 14px; font-size: 14px; }
  .btn.ghost { margin: 10px 0 0; }
}
@media (max-width: 460px) {
  nav.main a:nth-child(n+4) { display: none; }
}

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 980px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

.shots { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.shots figure { margin: 0; max-width: 280px; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); display: block; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); }
.shots figcaption { margin-top: 12px; text-align: center; font-size: 14.5px; color: var(--muted); }
.shots { align-items: flex-end; }
.shots figure.wide { max-width: 520px; flex: 1 1 340px; }
.shots figure.tall { max-width: 230px; }
