@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --panel: #fafafa;
  --panel-strong: #f3f3f3;
  --line: #d9d9d9;
  --ink: #111111;
  --muted: #555555;
  --accent: #111111;
  --accent-deep: #444444;
  --accent-cool: #666666;
  --shadow: none;
  --radius: 8px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }

.shell {
  width: min(var(--content), calc(100vw - 2rem));
  margin: 0 auto;
}

.topbar {
  position: static;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #111111;
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.72rem;
  border-radius: 999px;
  border: 1px solid #111111;
}

.brand-mark::after { inset: 1.08rem 0.6rem; }

.brand-copy strong,
.brand-copy span { display: block; }

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.nav a,
.pill-link {
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.93rem;
  transition: 180ms ease;
}

.nav a.active,
.nav a:hover,
.pill-link:hover {
  transform: none;
  color: var(--ink);
  border-color: var(--line);
  background: var(--bg-soft);
}

.hero,
.page-hero { padding: 3rem 0 1.5rem; }
.section { padding: 1.6rem 0 4rem; }

.hero-grid,
.split-grid,
.two-up,
.feature-grid,
.card-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.hero-copy { grid-column: span 7; }
.hero-aside { grid-column: span 5; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }

.eyebrow,
.card-label,
.tiny-title,
th {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); max-width: 14ch; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); max-width: 18ch; }
h3 { font-size: 1.15rem; }

p,
li { color: var(--muted); font-size: 1rem; }

.lede { max-width: 60ch; font-size: 1.02rem; }

.hero-actions,
.badge-row,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.7rem 0.95rem;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: 180ms ease;
}

.button.primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
}

.button:hover { transform: none; background: var(--bg-soft); color: var(--ink); }
.button.primary:hover { background: #2a2a2a; color: #ffffff; }

.panel,
.metric,
.feature,
.timeline,
.example-card,
.code-card,
.callout,
.quote-card,
.table-wrap {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.feature,
.example-card,
.code-card,
.callout,
.quote-card,
.timeline,
.metric { padding: 1.35rem; }

.hero-panel {
  background: var(--panel);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 0.35rem;
}

.section-header { margin-bottom: 1.5rem; max-width: 72ch; }

.clean-list,
.inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  margin: 0.7rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.clean-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
  position: absolute;
  left: 0;
  top: 0.6rem;
}

.tag,
.inline-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
}

.inline-list li {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
  background: #f6f6f6;
  color: #111111;
  border-radius: 4px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid var(--line);
}

code,
pre,
.mono { font-family: "IBM Plex Mono", monospace; }

.table-wrap { overflow-x: auto; background: #ffffff; }

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.timeline-item + .timeline-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 2rem 0 3.4rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.subtle { color: var(--muted); }
.hero-note {
  padding: 1rem 1.1rem;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.quote-card {
  background: var(--panel);
}

.muted-link {
  color: #222222;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@media (max-width: 960px) {
  .hero-copy,
  .hero-aside,
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-12 { grid-column: span 12; }

  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .shell { width: min(var(--content), calc(100vw - 1.2rem)); }
  .stats { grid-template-columns: 1fr; }
  .nav a,
  .pill-link,
  .button { width: 100%; }
}
