:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d636f;
  --line: #e7e4dc;
  --accent: #d9622b;
  --accent-soft: #fbe9df;
  --radius: 18px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #181b21;
    --text: #eef0f3;
    --muted: #9aa1ad;
    --line: #2a2e36;
    --accent: #f08a54;
    --accent-soft: #2b1d16;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.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; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
nav.links { display: flex; gap: 26px; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--text); }
@media (max-width: 640px) { nav.links a:not(.keep) { display: none; } }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -.025em; max-width: 16ch; }
.hero p.lead { margin-top: 22px; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--surface);
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn:hover { transform: translateY(-1px); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 26px 22px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 88px 0 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.02em; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 62ch; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .apps { grid-template-columns: 1fr; } }
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
.app-top { display: flex; gap: 16px; align-items: center; }
.app-top img { width: 64px; height: 64px; border-radius: 15px; border: 1px solid var(--line); }
.app h3 { font-size: 19px; line-height: 1.3; }
.app .cat { font-size: 14px; color: var(--muted); }
.app p { color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.app .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.app .more:hover { text-decoration: underline; }

/* Principles */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.card h3 { font-size: 18px; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* About + contact */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose p strong { color: var(--text); }
dl.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
dl.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
dl.facts div:last-child { border-bottom: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { text-align: right; font-weight: 500; }

.contact {
  margin-top: 88px; background: var(--text); color: var(--bg); border-radius: 24px; padding: 56px 40px; text-align: center;
}
.contact h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; }
.contact p { opacity: .75; margin: 12px auto 26px; max-width: 52ch; }
.contact a.mail { font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: var(--bg); }

footer.site { padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* Legal page */
.legal { padding: 64px 0 40px; max-width: 760px; }
.legal h1 { font-size: 38px; letter-spacing: -.02em; }
.legal .updated { color: var(--muted); margin: 8px 0 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
