/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --ink: #0e0f12;
  --ink-2: #3a3d44;
  --muted: #6b7280;
  --line: #ececec;
  --accent: #0e0f12;
  --accent-soft: #1f2024;

  --radius: 12px;
  --radius-lg: 16px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue",
               Helvetica, Arial, sans-serif;

  --max-w: 1120px;
  --max-w-narrow: 720px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container.narrow { max-width: var(--max-w-narrow); }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--ink); margin: 0 0 var(--space-4); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; font-weight: 600; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.15; font-weight: 600; }
h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 var(--space-4); color: var(--ink-2); }
.lead {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.body { color: var(--ink-2); max-width: 64ch; }
.micro { font-size: 0.8125rem; color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}
.logo-mark {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--ink);
}
.logo-text { letter-spacing: -0.01em; }

.site-nav {
  display: none;
  gap: var(--space-6);
}
.site-nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }

@media (min-width: 768px) {
  .site-nav { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(var(--space-8), 8vw, var(--space-9));
  border-bottom: 1px solid var(--line);
}
.section-alt { background: var(--bg-alt); }
.section:last-of-type { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-9), 12vw, 160px);
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: var(--space-5); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  color: var(--muted);
  font-size: 0.875rem;
}
.hero-meta li {
  position: relative;
  padding-left: 18px;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
@media (min-width: 880px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards ---------- */
.card {
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: #d8d8d8;
  transform: translateY(-2px);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { margin: 0; font-size: 0.9375rem; }

/* ---------- Feature grid ---------- */
.feature {
  padding-block: var(--space-3);
}
.feature h3 {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--space-2);
}
.feature h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.feature p { margin: 0; font-size: 0.9375rem; }

/* ---------- Stats ---------- */
.stats { margin-top: var(--space-7); }
.stat {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.stat-num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.stat-num span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
.stat-label {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.bar {
  margin-top: var(--space-4);
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta { padding-block: clamp(var(--space-8), 10vw, 140px); }
.cta h2 { margin-bottom: var(--space-4); }
.cta .body { margin-inline: auto; margin-bottom: var(--space-6); }
.cta .micro { margin-top: var(--space-4); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
}
.footer-inner nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.footer-inner nav a:hover { color: var(--ink); }
.copyright { margin-top: var(--space-3); }

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Focus ---------- */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 999px;
}
