:root {
  --bg: #f7f3ec;
  --bg-tint: #efe9de;
  --surface: #fffdf9;
  --ink: #12203a;
  --text: #2b3445;
  --muted: #5d6677;
  --line: #ddd5c6;
  --accent: #b9601a;
  --accent-strong: #9a4d10;
  --on-accent: #fffdf9;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1626;
    --bg-tint: #131d31;
    --surface: #18233a;
    --ink: #f4efe6;
    --text: #d5dae4;
    --muted: #9aa4b6;
    --line: #2a3650;
    --accent: #eb9a45;
    --accent-strong: #f3ae63;
    --on-accent: #12203a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); max-width: 17ch; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 20;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

/* Header */
.site-header {
  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-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; }
.brand-m { fill: var(--bg); }
.brand-dot { fill: var(--accent); }
nav { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; font-weight: 500; }
nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
nav a:hover { color: var(--ink); }
nav .nav-cta {
  color: var(--ink); border: 1px solid var(--ink); padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
nav .nav-cta:hover { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { padding: clamp(72px, 12vw, 148px) 0 clamp(56px, 8vw, 96px); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text); max-width: 62ch; margin-top: 28px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: clamp(1rem, 2.4vw, 1.25rem); padding: 18px 34px; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 36px 28px 36px 0; }
.stats-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.stats strong {
  display: block; font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px;
}
.stats span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; display: block; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.06rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .num { font-family: var(--serif); font-size: 0.95rem; color: var(--accent); display: block; margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; color: var(--muted); line-height: 1.6; }

/* Results */
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.results li { padding: 28px 0; border-top: 1px solid var(--line); }
.results strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 8px; }
.results p { color: var(--muted); font-size: 0.98rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li::before { content: "0" counter(step); font-family: var(--serif); color: var(--accent); font-size: 0.95rem; display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.96rem; }

/* Founder */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 64px; align-items: start; }
.founder-mark {
  width: 200px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: var(--serif); font-size: 4rem; font-weight: 500; letter-spacing: -0.03em;
}
.founder h2 { margin-bottom: 22px; }
.founder p { max-width: 68ch; }
.founder p + p { margin-top: 16px; }
.tags { list-style: none; padding: 0; margin: 28px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.84rem; font-weight: 500; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); }
.founder .founder-meta { font-size: 0.92rem; color: var(--muted); margin-top: 0; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Contact */
.contact { text-align: center; }
.contact h2 { max-width: 18ch; margin: 0 auto; }
.contact .lede { margin: 22px auto 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.88rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div { padding: 28px 20px 28px 0; }
  .stats-grid > div + div { padding-left: 20px; }
  .stats-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder-mark { width: 112px; font-size: 2.3rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav a:not(.nav-cta) { display: none; }
  .cards, .results, .steps { grid-template-columns: 1fr; }
  .results { column-gap: 0; }
  .btn-lg { padding: 16px 22px; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
