:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --ink: #f4f4f5;
  --muted: #9a9aa2;
  --dim: #55555c;
  --line: rgba(255, 255, 255, 0.08);
  --pill-bg: #f4f4f5;
  --pill-ink: #0a0a0b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topbar .mid { display: flex; gap: 26px; justify-content: center; }

.topbar .mid a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar .mid a:hover { color: var(--ink); }

.topbar .right { display: flex; justify-content: flex-end; }

.pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.pill:hover { opacity: 0.85; }

.ghost {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ghost:hover { border-bottom-color: var(--dim); }

.ghost span { color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px clamp(20px, 6vw, 80px) 40px;
}

.ascii {
  color: var(--dim);
  font-size: clamp(8px, 1.1vw, 12px);
  line-height: 1.25;
  margin: 0 0 34px;
  user-select: none;
  overflow-x: hidden;
  max-width: 100%;
}

h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero .sub {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17.5px);
  margin: 0 0 32px;
}

.actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* ---------- stats ---------- */
.stats {
  display: flex;
  gap: clamp(28px, 6vw, 80px);
  justify-content: center;
  padding: 28px clamp(20px, 6vw, 80px) 72px;
  flex-wrap: wrap;
}

.stat {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  min-width: 150px;
}

.stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat span { color: var(--muted); font-size: 13.5px; }

/* ---------- sections ---------- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 48px);
}

.hairline-top { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.muted { color: var(--muted); max-width: 720px; margin: 0 0 44px; font-size: 16px; }

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cols article {
  padding: 30px 28px 34px 0;
  border-right: 1px solid var(--line);
  margin-right: 28px;
}

.cols article:last-child { border-right: none; margin-right: 0; }

.cols h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.cols p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }

.tag {
  color: var(--dim) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px !important;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 30px clamp(20px, 5vw, 56px) 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.footer a { color: var(--muted); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .topbar { grid-template-columns: auto 1fr; }
  .topbar .mid { display: none; }
  .cols, .cols.two { grid-template-columns: 1fr; }
  .cols article { border-right: none; margin-right: 0; border-bottom: 1px solid var(--line); }
  .cols article:last-child { border-bottom: none; }
}
