:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #55627a;
  --line: #e1e7ef;
  --accent: #1d5bd8;
  --accent-hover: #1749b0;
  --accent-soft: #e8f0fe;
  --on-accent: #ffffff;
  --hero-from: #eef4ff;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #101a2c;
    --surface: #13203a;
    --text: #e8eef8;
    --muted: #9aa8bf;
    --line: #22314d;
    --accent: #5b8cff;
    --accent-hover: #7aa2ff;
    --accent-soft: #1a2a4a;
    --on-accent: #0b1220;
    --hero-from: #0f1d38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; justify-content: center; }

/* Nav */
.nav {
  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);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--muted); }
.btn-small { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--hero-from), var(--bg)); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.facts { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 1.4rem; }
.facts span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-bottom: 36px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 8px; } }
.build-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.build-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.build-list span { color: var(--muted); }

.tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 500; }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; }
.how-item { border-left: 3px solid var(--accent); padding-left: 16px; }
.how-item p { color: var(--muted); margin: 0; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.person {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.person h3 { margin-bottom: 2px; }
.person p { margin: 0 0 6px; }
.role { color: var(--accent); font-weight: 600; font-size: .92rem; }
.avatar {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
}

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta { background: linear-gradient(180deg, var(--bg), var(--hero-from)); }
.cta .section-lead { margin-inline: auto; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }

.prose { padding: 64px 0; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
