  :root {
    --bg: #0b0d11;
    --panel: #12151b;
    --border: #242a35;
    --text: #e7e9ee;
    --muted: #9aa3b2;
    --solana-purple: #9945ff;
    --solana-green: #14f195;
    --cf-orange: #f38020;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, Roboto, sans-serif;
    overflow-x: hidden;
  }
  .wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 24px 32px 56px; }
  .glow {
    position: absolute;
    top: -160px;
    right: -160px;
    width: 520px;
    height: 380px;
    background:
      radial-gradient(closest-side, rgba(153,69,255,0.14), transparent),
      radial-gradient(closest-side at 30% 70%, rgba(243,128,32,0.09), transparent);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
  }
  header {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    padding-bottom: 40px;
    font-size: 13px;
  }
  .mark { font-weight: 600; letter-spacing: -0.01em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .nav-link { color: var(--muted); text-decoration: none; font-size: 13px; }
  .nav-link:hover { color: var(--text); }
  .chain { display: flex; align-items: center; gap: 8px; color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
  .sep { color: var(--border); }
  .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
  .dot-solana { background: linear-gradient(135deg, var(--solana-purple), var(--solana-green)); }
  .dot-cf { background: var(--cf-orange); }
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 7px; color: var(--muted);
  }
  .icon-btn:hover { color: var(--text); background: var(--panel); }

  section { position: relative; z-index: 1; }

  .hero { padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
  .eyebrow {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); margin: 0 0 16px;
  }
  h1 {
    font-size: clamp(32px, 4.8vw, 52px);
    line-height: 1.1; letter-spacing: -0.02em;
    margin: 0 0 20px; max-width: 22ch; font-weight: 700;
  }
  .accent {
    background: linear-gradient(90deg, var(--solana-purple), var(--solana-green));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
  .sub { color: var(--muted); font-size: 15px; margin: 0; }
  .sub + .sub { margin-top: 14px; }

  .hero-facts { display: grid; gap: 0; border-left: 1px solid var(--border); padding-left: 24px; }
  .fact { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: none; }
  .fact-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
  .fact-v { font-size: 14px; }
  .fact-v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
  .fact-v a { color: var(--solana-green); text-decoration: none; }
  .fact-v a:hover { text-decoration: underline; }

  h2 {
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); font-weight: 600; margin: 0 0 24px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }

  .flow { margin-bottom: 48px; }
  .flow-track {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  }
  .flow-step { position: relative; padding: 22px 24px; }
  .flow-step:first-child { padding-left: 0; }
  .flow-step:last-child { padding-right: 0; }
  .flow-step-n {
    display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; color: var(--solana-green); margin-bottom: 10px;
  }
  .flow-step h3 { margin: 0 0 6px; font-size: 15px; }
  .flow-step p { margin: 0; font-size: 13px; color: var(--muted); }
  .flow-step-line { position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: var(--border); }

  .stack { margin-bottom: 40px; }
  .stack-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .srow { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .stack-rows .srow:nth-last-child(-n+2) { border-bottom: none; }
  .srow > span:first-child { color: var(--text); font-weight: 500; font-size: 13px; }
  .srow > span:last-child { color: var(--muted); font-size: 13px; }
  .srow a { color: var(--muted); }
  .srow a:hover { color: var(--text); }

  footer { font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; }
  footer p { opacity: 0.7; margin: 0; }
  .socials { display: flex; gap: 18px; margin-bottom: 14px; }
  .socials a { color: var(--muted); text-decoration: none; font-size: 12px; }
  .socials a:hover { color: var(--text); }

  @media (max-width: 760px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-facts { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
    .flow-track { grid-template-columns: 1fr 1fr; row-gap: 24px; }
    .flow-step:nth-child(3) { padding-left: 0; }
    .flow-step:nth-child(2), .flow-step:nth-child(4) { padding-left: 20px; }
    .flow-step:nth-child(2) .flow-step-line, .flow-step:nth-child(4) .flow-step-line { display: none; }
    .stack-rows { grid-template-columns: 1fr; }
    .stack-rows .srow:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .stack-rows .srow:last-child { border-bottom: none; }
    .srow { grid-template-columns: 1fr; gap: 4px; }
  }
  @media (max-width: 480px) {
    .flow-track { grid-template-columns: 1fr; }
    .flow-step { padding-left: 0 !important; }
    .flow-step-line { display: none; }
  }

/* ------------------------------------------------------------------ docs */

.docs-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
/* A little room below the last section so a click on the last one or two
   sidebar links can move the target up a bit, rather than the browser
   immediately hitting the bottom of the page with nowhere left to scroll. */
.docs { padding-bottom: 120px; }
.docs-nav { position: sticky; top: 24px; display: grid; gap: 4px; }
.docs-nav a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  padding: 6px 0; border-left: 2px solid transparent; padding-left: 12px;
}
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--text); border-left-color: var(--solana-green); }

.docs h2 {
  font-size: 20px; text-transform: none; letter-spacing: -0.01em; color: var(--text);
  font-family: inherit; font-weight: 600; margin: 40px 0 12px;
}
.docs h2:first-child { margin-top: 0; }
.docs h3 { font-size: 15px; margin: 24px 0 8px; }
.docs p { color: var(--muted); font-size: 14px; margin: 0 0 12px; max-width: 68ch; }
.docs ul, .docs ol { color: var(--muted); font-size: 14px; margin: 0 0 12px; padding-left: 20px; max-width: 68ch; }
.docs li { margin-bottom: 4px; }
.docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
}
.docs pre {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; margin: 0 0 16px;
}
.docs pre code { background: none; border: none; padding: 0; font-size: 12.5px; color: var(--text); }

.docs-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13px; }
.docs-table th, .docs-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.docs-table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.docs-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; white-space: nowrap; }

.docs-note {
  border: 1px solid var(--border); border-left: 2px solid var(--cf-orange);
  background: var(--panel); border-radius: 6px; padding: 12px 16px; margin: 0 0 16px;
  font-size: 13px; color: var(--muted); max-width: 68ch;
}

@media (max-width: 760px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .docs-nav a { padding-left: 0; border-left: none; }
}
