:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --surface: #ffffff;
  --text: #121a24;
  --text-muted: #5a6776;
  --border: #dde3ea;
  --accent: #1f5fd1;
  --accent-text: #ffffff;
  --accent-soft: #e8effc;
  --mark: #121a24;
  --mark-text: #ffffff;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d131b;
    --bg-soft: #121a24;
    --surface: #16202c;
    --text: #e6ecf2;
    --text-muted: #9aa8b7;
    --border: #2a3644;
    --accent: #6c9ef8;
    --accent-text: #0d131b;
    --accent-soft: #1b2a44;
    --mark: #e6ecf2;
    --mark-text: #0d131b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -.025em; max-width: 18ch; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; scroll-margin-top: 60px; }
section + section { border-top: 1px solid var(--border); }
section.small { padding: 40px 0; font-size: .95rem; color: var(--text-muted); }
section.small h2 { font-size: 1.1rem; color: var(--text); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; color: var(--text); text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--mark); color: var(--mark-text); font-size: .95rem; }
.topnav { display: flex; gap: 20px; margin-left: auto; }
.topnav a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: var(--text); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); padding: 88px 0 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none; border: 1px solid var(--accent); }
.button.ghost { background: transparent; color: var(--accent); }
.button:hover { filter: brightness(1.08); }

/* Products */
.product { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.product > div { flex: 1 1 420px; max-width: 70ch; }
.product h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product h3 a { color: var(--text); text-decoration: none; }
.product p:last-child { margin-bottom: 0; }
.tag { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }

.section-lead { margin-bottom: 32px; }

/* About */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.point p { color: var(--text-muted); margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: .875rem; color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--text-muted); }

/* Not found */
.notfound { min-height: 60vh; display: grid; align-content: center; }

@media (max-width: 560px) {
  .topnav { gap: 14px; }
  .topnav a { font-size: .9rem; }
  .topnav .wide-only { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
  .product { padding: 20px; }
}
