:root {
  --ink: #122033;
  --muted: #5b6b82;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #dbe3ef;
  --accent: #3b6cff;
  --accent-dark: #2548b8;
  --mint: #1f8a6d;
  --shadow: 0 18px 40px rgba(18, 32, 51, 0.08);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 8% -10%, #e4ecff 0%, transparent 55%),
    radial-gradient(900px 380px at 100% 0%, #e8f7f1 0%, transparent 50%),
    var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--accent-dark); }
a:hover { color: var(--mint); }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 251, 0.86);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.mark-glyph {
  width: 36px;
  height: 36px;
  display: block;
}

.mark-name {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.mark-name span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

nav a {
  margin-left: 18px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
}

nav a:hover { color: var(--accent-dark); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 64px 0 28px;
}

.kicker {
  color: var(--mint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 16px;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 650;
}

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

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

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  margin-right: 6px;
}

pre {
  margin: 0;
  overflow: auto;
  background: #122033;
  color: #e8eefc;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: "IBM Plex Mono", "Source Code Pro", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0 56px;
}

.card, .prose, .note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}

.card h2, .prose h1, .prose h2 { margin-top: 0; }
.card p:last-child, .prose p:last-child { margin-bottom: 0; }

code, .mono {
  font-family: "IBM Plex Mono", "Source Code Pro", "Courier New", monospace;
  font-size: 0.92em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
}

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

th { font-weight: 700; color: var(--accent-dark); }

.prose { margin: 36px 0 64px; }
.prose h1 { max-width: none; font-size: 2rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 0;
}

.metric {
  background: #f7f9fe;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.metric b {
  display: block;
  font-size: 1.25rem;
  margin-top: 4px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 860px) {
  .hero, .grid, .mast-inner, .foot-row, .metrics {
    display: block;
  }

  nav { margin-top: 12px; }
  nav a { margin: 0 16px 0 0; }
  .panel { margin-top: 8px; }
  .metric { margin-bottom: 10px; }
}
