:root {
  --paper: #f6f5f1;
  --surface: #ffffff;
  --ink: #1b1c1a;
  --muted: #5a5e5a;
  --line: #e0ded6;
  --accent: #4f46e5;
  --accent-deep: #3730a3;
  --accent-soft: #ede9fe;
  --code-bg: #14151d;
  --code-fg: #e8e6f0;
  --code-dim: #8a8fa8;
  --code-tag: #c3c0d4;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--ink);
  background: rgba(27, 28, 26, 0.05);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  color: var(--accent);
  font-size: 15px;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 600;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 30ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-quiet {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- demo ---------- */

.vault-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.demo-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 28, 26, 0.04), 0 8px 24px -18px rgba(27, 28, 26, 0.25);
}

.demo-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.demo-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 500;
}

.demo-server .demo-tag {
  color: #0f766e;
  background: #ccfbf1;
}

.demo-code {
  margin: 0;
  padding: 18px 20px;
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  border-radius: 0 0 12px 12px;
}

.tok-kw { color: #c4b5fd; }
.tok-str { color: #86efac; }
.tok-num { color: #fbbf24; }
.tok-cm, .tok-com { color: var(--code-dim); font-style: italic; }

/* ---------- sections ---------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-lede {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.card-mark {
  font-size: 22px;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 12px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 62ch;
}

/* ---------- sdk ---------- */

.sdk-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.sdk-copy h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}

.sdk-copy p {
  color: var(--muted);
  margin: 0 0 18px;
}

.checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 15px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.sdk-code {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sdk-code .demo-label {
  border-bottom: 1px solid var(--line);
}

.get-access-code {
  margin-top: 48px;
}

/* ---------- cta band ---------- */

.cta-band {
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 28px;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- footer ---------- */

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-foot a:hover {
  color: var(--ink);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero,
  .sdk-split {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}
