:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f3f3f1;
  --text: #16181d;
  --muted: #5d6270;
  --line: #e6e6e3;
  --accent: #2f5bff;
  --accent-soft: rgba(47, 91, 255, 0.08);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f13;
    --surface: #14171d;
    --surface-2: #1a1e25;
    --text: #eef0f4;
    --muted: #9aa1ae;
    --line: #262a33;
    --accent: #7c9bff;
    --accent-soft: rgba(124, 155, 255, 0.1);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 112px 0 96px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 15ch;
}
.hero h1 span { color: var(--muted); }
.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 36px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--muted); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { border-color: var(--text); }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.section-head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 32px;
  counter-reset: p;
}
.principle { counter-increment: p; }
.principle::before {
  content: "0" counter(p);
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.principle h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: 15.5px; margin: 0; }

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.contact-box h2 { margin-bottom: 8px; }
.contact-box p { color: var(--muted); margin: 0; max-width: 48ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.legal .meta { color: var(--muted); font-size: 15px; margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 22px; letter-spacing: -0.015em; margin: 44px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .toc {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 8px;
  font-size: 15px;
}
.legal .toc strong { display: block; margin-bottom: 8px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { margin-bottom: 4px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound h1 { font-size: 72px; letter-spacing: -0.04em; margin: 0; }
.notfound p { color: var(--muted); margin: 8px 0 28px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 18px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 72px 0 64px; }
  section { padding: 64px 0; }
  .contact-box { padding: 36px 24px; }
  .legal .toc ol { columns: 1; }
}
