:root {
  --bg: #fbfbf9;
  --fg: #16181d;
  --muted: #5d6470;
  --line: #e4e4df;
  --card: #ffffff;
  --accent: #b8860b;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max: 1040px;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --fg: #eceae4;
    --muted: #9aa0aa;
    --line: #23262d;
    --card: #15181e;
    --accent: #e0b43c;
    --accent-ink: #14120c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; }

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

section { padding: 72px 24px; border-top: 1px solid var(--line); }
section.hero, section.pillars { border-top: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 750; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 1em; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: 1.2em; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
nav { display: flex; gap: 24px; font-size: .95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 64px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.btn {
  display: inline-block; padding: .75em 1.35em; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { color: var(--accent-ink); filter: brightness(1.06); }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.pillars { padding-top: 8px; }
.pillars p { color: var(--muted); font-size: .96rem; }

.cards { margin: 1.6em 0 1.4em; }
.card {
  display: flex; flex-direction: column; gap: 4px; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--fg); }
.card strong { font-size: 1.1rem; }
.card span { color: var(--muted); font-size: .9rem; }

/* Z23 */
.feature h2 { max-width: 34rem; }
.checks { list-style: none; padding: 0; margin: 2em 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; }
.checks li { padding-left: 22px; position: relative; color: var(--muted); font-size: .96rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.checks strong { color: var(--fg); font-weight: 600; }
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; overflow-x: auto; margin: 0 0 1.2em; line-height: 1.7;
}
pre code { background: none; border: 0; padding: 0; font-size: .9rem; }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 1.6em 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.specs div:nth-child(4n) { border-right: 0; }
.specs div:nth-last-child(-n+4) { border-bottom: 0; }
.specs dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 600; }

/* Resource links */
.links div { display: flex; flex-direction: column; gap: 8px; }
.links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.links a:hover { color: var(--accent); }

/* Footer */
.foot { display: flex; align-items: center; gap: 10px; padding: 36px 24px 48px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot img { opacity: .7; }

@media (max-width: 820px) {
  .grid.three, .grid.four, .checks { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(4n) { border-right: 1px solid var(--line); }
  .specs div:nth-child(2n) { border-right: 0; }
  .specs div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .specs div:nth-last-child(-n+2) { border-bottom: 0; }
  section { padding: 56px 24px; }
  .hero { padding-top: 56px; }
  nav { gap: 16px; font-size: .88rem; }
}

@media (max-width: 520px) {
  nav a:nth-child(n+3) { display: none; }
  .grid.four { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
