:root {
  --ink: #0b1f1a;
  --ink-soft: #16362d;
  --jade: #1fa67a;
  --jade-bright: #2dd4a0;
  --mist: #e8f2ee;
  --paper: #f4faf7;
  --muted: #5a736a;
  --line: rgba(11, 31, 26, 0.12);
  --max: 1100px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
}
a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; display: block; }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }
pre {
  background: var(--ink);
  color: var(--mist);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border-radius: 2px;
  line-height: 1.45;
}
code:not(pre code) {
  background: var(--mist);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 250, 247, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.nav-brand svg { height: 28px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-weight: 600; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--jade); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--mist); }
.btn-primary:hover { background: var(--jade); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--jade); color: var(--jade); }

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 212, 160, 0.22), transparent 55%),
    linear-gradient(165deg, #071612 0%, #0b1f1a 42%, #12352b 100%);
  color: var(--mist);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 242, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 242, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
  animation: drift 28s linear infinite;
  pointer-events: none;
}
@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.25rem 4.5rem;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
  animation: rise 0.9s ease both;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 38ch;
  color: rgba(232, 242, 238, 0.82);
  margin: 0 0 2rem;
  animation: rise 1s ease 0.08s both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.05s ease 0.16s both;
}
.hero .btn-primary { background: var(--jade-bright); color: var(--ink); }
.hero .btn-ghost { color: var(--mist); border-color: rgba(232, 242, 238, 0.28); }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.section .sub {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}
.split { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  .split-2 { grid-template-columns: 1fr 1fr; align-items: start; }
}
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--jade);
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--font-display);
  background: var(--mist);
  font-weight: 700;
}
tr:last-child td { border-bottom: 0; }

.prose { max-width: 68ch; }
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2.2rem 0 0.7rem;
}
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.cta-band {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--jade); }

.model-list { list-style: none; padding: 0; margin: 0; }
.model-list li {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  display: grid;
  gap: 0.35rem;
}
.model-list a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.model-list a:hover { color: var(--jade); }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jade);
}
