    :root {
      --bg:           #05070d;
      --bg-card:      #0c1220;
      --bg-card-2:    #121a2e;
      --border:       #1c2744;
      --border-light: #2a3a62;
      --accent:       #4f8ef7;
      --accent-2:     #7c3aed;
      --accent-dim:   #2d5cbf;
      --accent-glow:  rgba(79,142,247,0.18);
      --green:        #22d3a0;
      --green-dim:    #0e7a5a;
      --orange:       #f59e0b;
      --red:          #ef4444;
      --text-primary: #f2f5fc;
      --text-secondary: #9aafd4;
      --text-muted:   #5a7198;
      --code-bg:      #070b16;
      --radius:       12px;
      --radius-lg:    20px;
      --nav-h:        72px;
      --sidebar-width: 264px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text-primary);
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
    }

    #graph-bg {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(ellipse 48% 42% at 26% 36%, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.12) 70%, transparent 100%),
        linear-gradient(180deg, rgba(5,7,13,0.18) 0%, rgba(5,7,13,0.08) 40%, rgba(5,7,13,0.35) 100%);
    }

    nav, main, footer { position: relative; z-index: 1; }

    /* ─── LAYOUT ─────────────────────────────────────── */
    .container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

    section { padding: 112px 0; }

    /* ─── NAV ─────────────────────────────────────────── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(5, 7, 13, 0.72);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      min-height: var(--nav-h);
      height: var(--nav-h);
      gap: 20px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      flex-shrink: 0;
    }

    .logo img { display: block; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      margin-left: auto;
    }

    .nav-item { position: relative; }

    .nav-links > li > a,
    .nav-drop-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
      padding: 8px 12px;
      border-radius: 8px;
      transition: color 0.2s, background 0.2s;
    }

    .nav-links > li > a:hover,
    .nav-drop-toggle:hover,
    .nav-item.open > .nav-drop-toggle,
    .nav-item:hover > .nav-drop-toggle {
      color: var(--text-primary);
      background: rgba(255,255,255,0.04);
    }

    .nav-caret {
      width: 10px;
      height: 10px;
      opacity: 0.7;
    }

    .nav-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      min-width: 280px;
      background: #0d1424;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 10px;
      box-shadow: 0 24px 64px rgba(0,0,0,0.45);
      opacity: 0;
      visibility: hidden;
      transform: translateY(6px);
      transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
      z-index: 50;
    }

    .nav-dropdown.wide {
      min-width: 520px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
    }

    .nav-item:hover > .nav-dropdown,
    .nav-item:focus-within > .nav-dropdown,
    .nav-item.open > .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .nav-dropdown a {
      display: block;
      text-decoration: none;
      padding: 10px 12px;
      border-radius: 10px;
      color: var(--text-primary);
    }

    .nav-dropdown a:hover { background: rgba(79,142,247,0.08); }

    .dd-title {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .dd-desc {
      display: block;
      margin-top: 2px;
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-left: 12px;
      flex-shrink: 0;
    }

    .nav-github {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      padding: 6px 8px;
      border-radius: 8px;
      transition: color 0.2s;
    }

    .nav-github:hover { color: var(--text-primary); }

    .nav-cta {
      background: linear-gradient(135deg, #4f8ef7, #7c3aed) !important;
      color: #fff !important;
      padding: 8px 18px !important;
      border-radius: 10px !important;
      font-weight: 600 !important;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
    }

    .nav-cta:hover {
      filter: brightness(1.08);
      transform: none;
    }

    .nav-toggle {
      display: none;
      margin-left: auto;
      width: 42px;
      height: 42px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-primary);
      cursor: pointer;
      align-items: center;
      justify-content: center;
    }

    /* ─── HERO ────────────────────────────────────────── */
    .hero {
      padding: 88px 0 72px;
      position: relative;
      overflow: hidden;
      min-height: calc(100vh - var(--nav-h));
      display: flex;
      align-items: center;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -180px;
      left: -80px;
      width: 720px;
      height: 720px;
      background: radial-gradient(ellipse, rgba(79,142,247,0.18) 0%, transparent 68%);
      pointer-events: none;
    }

    .hero::after {
      content: '';
      position: absolute;
      top: 10%;
      right: -140px;
      width: 520px;
      height: 520px;
      background: radial-gradient(ellipse, rgba(124,58,237,0.16) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
      gap: 56px;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(79,142,247,0.1);
      border: 1px solid rgba(79,142,247,0.3);
      border-radius: 100px;
      padding: 6px 16px;
      font-size: 13px;
      font-weight: 500;
      color: var(--accent);
      margin-bottom: 28px;
    }

    .hero-badge .dot {
      width: 7px;
      height: 7px;
      background: var(--green);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(0.85); }
    }

    .hero h1 {
      font-size: clamp(40px, 5vw, 64px);
      font-weight: 800;
      line-height: 1.08;
      letter-spacing: -0.04em;
      color: var(--text-primary);
      max-width: 640px;
      margin-bottom: 22px;
    }

    .hero h1 .highlight {
      background: linear-gradient(135deg, var(--accent), #a78bfa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      font-size: clamp(16px, 1.6vw, 19px);
      color: var(--text-secondary);
      max-width: 540px;
      line-height: 1.65;
      margin-bottom: 36px;
    }

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

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #4f8ef7 0%, #7c3aed 100%);
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      font-size: 15px;
      padding: 14px 26px;
      border-radius: 12px;
      transition: all 0.2s;
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 28px rgba(79,142,247,0.28);
    }

    .btn-primary:hover {
      filter: brightness(1.08);
      transform: translateY(-1px);
      box-shadow: 0 12px 32px rgba(79,142,247,0.38);
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      color: var(--text-primary);
      text-decoration: none;
      font-weight: 500;
      font-size: 15px;
      padding: 14px 26px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.18);
      transition: all 0.2s;
    }

    .btn-secondary:hover {
      border-color: rgba(255,255,255,0.35);
      background: rgba(255,255,255,0.04);
    }

    .hero-visual {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .bench-card {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 20px;
      align-items: center;
      background: rgba(12, 18, 32, 0.78);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 22px 24px;
      backdrop-filter: blur(10px);
    }

    .bench-stat {
      font-size: 40px;
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1;
      color: var(--text-primary);
    }

    .bench-stat .unit {
      font-size: 20px;
      font-weight: 700;
      color: var(--accent);
      margin-left: 2px;
    }

    .bench-stat p {
      margin-top: 8px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      line-height: 1.4;
    }

    .bench-chart-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .bench-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      align-items: center;
      margin-bottom: 8px;
      font-size: 11px;
      color: var(--text-muted);
    }

    .bench-row:last-child { margin-bottom: 0; }

    .bench-bar-track {
      height: 8px;
      background: rgba(255,255,255,0.06);
      border-radius: 99px;
      overflow: hidden;
      grid-column: 1 / -1;
      order: 3;
      margin-top: -4px;
      margin-bottom: 6px;
    }

    .bench-bar {
      height: 100%;
      border-radius: 99px;
      background: linear-gradient(90deg, #4f8ef7, #7c3aed);
    }

    .bench-bar.alt { background: linear-gradient(90deg, #334e86, #4a3a8a); }
    .bench-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--green);
      font-weight: 600;
    }

    /* ─── STATS BAR (fallback / inner sections) ───────── */
    .stats-bar {
      margin-top: 0;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .stat-item {
      background: var(--bg-card);
      padding: 32px 28px;
      text-align: center;
    }

    .stat-value {
      font-size: 36px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.03em;
      line-height: 1;
    }

    .stat-value .unit {
      font-size: 20px;
      font-weight: 600;
      color: var(--accent);
    }

    .stat-label {
      margin-top: 8px;
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 500;
    }

    /* ─── SECTION HEADER ──────────────────────────────── */
    .section-label {
      display: inline-block;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .section-title {
      font-size: clamp(32px, 4vw, 52px);
      font-weight: 800;
      letter-spacing: -0.035em;
      line-height: 1.12;
      color: var(--text-primary);
      margin-bottom: 16px;
    }

    .feature-ctas {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 40px;
    }

    .section-sub {
      font-size: 18px;
      color: var(--text-secondary);
      max-width: 560px;
      line-height: 1.6;
    }

    .section-header { margin-bottom: 56px; }
    .section-header.centered { text-align: center; }
    .section-header.centered .section-sub { margin: 0 auto; }

    /* ─── DIFFERENTIATORS ─────────────────────────────── */
    .diff-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }

    .diff-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s, transform 0.2s;
    }

    .diff-card:hover {
      border-color: var(--border-light);
      transform: translateY(-4px);
    }

    .diff-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), #7c3aed);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .diff-card:hover::before { opacity: 1; }

    .diff-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      font-size: 22px;
    }

    .diff-icon.blue  { background: rgba(79,142,247,0.12); }
    .diff-icon.green { background: rgba(34,211,160,0.12); }
    .diff-icon.purple { background: rgba(167,139,250,0.12); }
    .diff-icon.orange { background: rgba(245,158,11,0.12); }
    .diff-icon.red   { background: rgba(239,68,68,0.12); }
    .diff-icon.teal  { background: rgba(20,184,166,0.12); }

    .diff-card h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 10px;
      letter-spacing: -0.01em;
    }

    .diff-card p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    .diff-card .perf-tag {
      display: inline-block;
      margin-top: 16px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      font-weight: 500;
      color: var(--green);
      background: rgba(34,211,160,0.08);
      border: 1px solid rgba(34,211,160,0.2);
      padding: 4px 10px;
      border-radius: 6px;
    }

    /* ─── HOW IT WORKS ────────────────────────────────── */
    .how-it-works { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

    .flow-diagram {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .flow-step {
      padding: 40px 32px;
      position: relative;
    }

    .flow-step:not(:last-child) { border-right: 1px solid var(--border); }

    .flow-step-num {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .flow-step-icon {
      font-size: 28px;
      margin-bottom: 16px;
    }

    .flow-step h3 {
      font-size: 19px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 12px;
      letter-spacing: -0.01em;
    }

    .flow-step p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    .flow-queries {
      margin-top: 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .flow-query {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text-secondary);
    }

    .flow-query .q-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }

    .flow-step.step-1 { background: linear-gradient(135deg, rgba(79,142,247,0.05), transparent); }
    .flow-step.step-2 { background: linear-gradient(135deg, rgba(167,139,250,0.05), transparent); }
    .flow-step.step-3 { background: linear-gradient(135deg, rgba(34,211,160,0.05), transparent); }

    /* ─── PERFORMANCE ─────────────────────────────────── */
    .perf-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .perf-table-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .perf-table-header {
      padding: 20px 28px;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
      font-weight: 600;
      color: var(--text-secondary);
      letter-spacing: 0.02em;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    tbody tr {
      border-bottom: 1px solid var(--border);
      transition: background 0.15s;
    }

    tbody tr:last-child { border-bottom: none; }
    tbody tr:hover { background: rgba(255,255,255,0.02); }

    td {
      padding: 14px 28px;
      font-size: 14px;
    }

    td:first-child {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--text-secondary);
    }

    td:last-child {
      text-align: right;
      font-weight: 600;
      color: var(--green);
      font-family: 'JetBrains Mono', monospace;
    }

    td .note {
      font-size: 11px;
      color: var(--text-muted);
      font-family: 'Inter', sans-serif;
      font-weight: 400;
      display: block;
      margin-top: 2px;
    }

    .throughput-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
    }

    .throughput-metric {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .throughput-bar-wrap {
      flex: 1;
    }

    .throughput-label {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .throughput-label .val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--green);
      font-weight: 600;
    }

    .throughput-bar {
      height: 8px;
      background: var(--bg-card-2);
      border-radius: 4px;
      overflow: hidden;
    }

    .throughput-bar-fill {
      height: 100%;
      border-radius: 4px;
      background: linear-gradient(90deg, var(--accent), var(--green));
    }

    /* ─── ARCHITECTURE ────────────────────────────────── */
    .arch-section { background: var(--bg); }

    .arch-grid {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 56px;
      align-items: center;
    }

    .arch-list {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .arch-item {
      display: flex;
      gap: 16px;
    }

    .arch-item-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(79,142,247,0.1);
      border: 1px solid rgba(79,142,247,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }

    .arch-item-body h4 {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .arch-item-body p {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .arch-diagram {
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.7;
      color: var(--text-secondary);
      overflow: auto;
    }

    .arch-diagram .layer-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
      display: block;
    }

    .arch-layer {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 12px 16px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: border-color 0.2s;
    }

    .arch-layer:hover { border-color: var(--border-light); }

    .arch-layer.api     { border-color: rgba(79,142,247,0.4); }
    .arch-layer.engine  { border-color: rgba(167,139,250,0.4); }
    .arch-layer.storage { border-color: rgba(34,211,160,0.4); }
    .arch-layer.persist { border-color: rgba(245,158,11,0.4); }

    .layer-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .dot-blue   { background: var(--accent); }
    .dot-purple { background: #a78bfa; }
    .dot-green  { background: var(--green); }
    .dot-orange { background: var(--orange); }

    .arch-layer-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .arch-layer-desc {
      font-size: 12px;
      color: var(--text-muted);
      margin-left: auto;
    }

    .arch-connector {
      text-align: center;
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    /* ─── USE CASES ───────────────────────────────────── */
    .use-cases { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

    .uc-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .uc-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      transition: border-color 0.3s, transform 0.2s;
    }

    .uc-card:hover {
      border-color: var(--border-light);
      transform: translateY(-3px);
    }

    .uc-tag {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      background: rgba(79,142,247,0.08);
      border: 1px solid rgba(79,142,247,0.2);
      padding: 4px 10px;
      border-radius: 6px;
      margin-bottom: 16px;
    }

    .uc-card h3 {
      font-size: 19px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 12px;
      letter-spacing: -0.01em;
    }

    .uc-card p {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    .uc-signals {
      margin-top: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .signal-tag {
      font-size: 12px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text-muted);
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 3px 10px;
      border-radius: 5px;
    }

    /* ─── CODE SNIPPET ────────────────────────────────── */
    .code-section { background: var(--bg); }

    .code-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 56px;
      align-items: start;
    }

    .code-tabs {
      display: flex;
      gap: 4px;
      margin-bottom: 0;
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-bottom: none;
      border-radius: 10px 10px 0 0;
      padding: 10px 10px 0;
      align-items: flex-end;
    }

    .code-copy-btn {
      margin-left: auto;
      margin-bottom: 6px;
      padding: 4px 12px;
      font-size: 11px;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 500;
      color: var(--text-muted);
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 6px;
      cursor: pointer;
      transition: color 0.15s, border-color 0.15s, background 0.15s;
      white-space: nowrap;
      user-select: none;
    }
    .code-copy-btn:hover {
      color: var(--text-primary);
      border-color: var(--accent);
      background: rgba(99,102,241,0.08);
    }
    .code-copy-btn.copied {
      color: #34d399;
      border-color: #34d399;
    }

    .code-tab {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      padding: 8px 16px;
      border-radius: 6px 6px 0 0;
      cursor: pointer;
      transition: all 0.2s;
    }

    .code-tab.active {
      background: var(--bg-card);
      color: var(--text-primary);
      border: 1px solid var(--border);
      border-bottom: 1px solid var(--bg-card);
    }

    .code-block {
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: 0 0 10px 10px;
      padding: 24px 28px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.8;
      overflow-x: auto;
    }

    .code-block .kw  { color: #a78bfa; }
    .code-block .fn  { color: #60a5fa; }
    .code-block .str { color: #34d399; }
    .code-block .num { color: #fb923c; }
    .code-block .cmt { color: #4a6490; font-style: italic; }
    .code-block .ty  { color: #f472b6; }

    /* ─── QUICK START ─────────────────────────────────── */
    .quickstart-section {
      background: var(--bg);
      padding: 100px 0;
    }
    .qs-steps {
      display: flex;
      flex-direction: column;
      gap: 48px;
      margin-top: 64px;
    }
    .qs-step {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }
    .qs-step-header {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      padding: 28px 32px 0;
    }
    .qs-step-num {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(79,142,247,0.12);
      border: 1px solid rgba(79,142,247,0.25);
      color: var(--accent);
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .qs-step-header h3 {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0 0 6px;
    }
    .qs-step-header p {
      font-size: 14px;
      color: var(--text-secondary);
      margin: 0;
    }
    .qs-step-header p code {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--accent);
    }
    .qs-step .code-tabs {
      margin: 20px 32px 0;
      border-bottom: none;
    }
    .qs-step .code-block {
      margin: 0 32px 32px;
      border-radius: 10px;
      white-space: pre;
    }
    .qs-step .code-block .yk { color: #60a5fa; }
    .qs-step .code-block .yv { color: #34d399; }
    .qs-step .code-block .ya { color: #f472b6; }
    .qs-fin {
      margin-top: 40px;
      background: linear-gradient(135deg, rgba(79,142,247,0.08) 0%, rgba(124,58,237,0.08) 100%);
      border: 1px solid rgba(79,142,247,0.2);
      border-radius: var(--radius-lg);
      padding: 32px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }
    .qs-fin-text h4 {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0 0 4px;
    }
    .qs-fin-text p {
      font-size: 14px;
      color: var(--text-secondary);
      margin: 0;
    }
    .qs-url {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 18px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      color: var(--green);
      text-decoration: none;
      white-space: nowrap;
    }
    .qs-url:hover { border-color: var(--accent); color: var(--accent); }

    /* ─── INTEGRATION ─────────────────────────────────── */
    .integration-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 48px;
    }

    .int-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
      text-align: center;
      transition: border-color 0.3s, transform 0.2s;
    }

    .int-card:hover {
      border-color: var(--border-light);
      transform: translateY(-3px);
    }

    .int-card-icon {
      font-size: 32px;
      margin-bottom: 12px;
    }

    .int-card h4 {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 6px;
    }

    .int-card p {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.55;
    }

    /* ─── CTA ─────────────────────────────────────────── */
    .cta-section {
      padding: 96px 0 120px;
      background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(79,142,247,0.12), transparent 60%);
      border-top: 1px solid var(--border);
    }

    .cta-card {
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-lg);
      padding: 64px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .cta-card::before {
      content: '';
      position: absolute;
      top: -100px;
      left: 50%;
      transform: translateX(-50%);
      width: 600px;
      height: 300px;
      background: radial-gradient(ellipse, rgba(79,142,247,0.12) 0%, transparent 70%);
      pointer-events: none;
    }

    .cta-card h2 {
      font-size: clamp(28px, 3.5vw, 42px);
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.02em;
      margin-bottom: 16px;
    }

    .cta-card p {
      font-size: 18px;
      color: var(--text-secondary);
      max-width: 500px;
      margin: 0 auto 40px;
      line-height: 1.6;
    }

    .cta-actions {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    /* ─── FOOTER ──────────────────────────────────────── */
    footer {
      background: var(--bg);
      border-top: 1px solid var(--border);
      padding: 64px 0 36px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr repeat(4, 1fr);
      gap: 40px 32px;
    }

    .footer-brand p {
      margin-top: 16px;
      font-size: 13px;
      color: var(--text-muted);
      max-width: 260px;
      line-height: 1.6;
    }

    .footer-socials {
      display: flex;
      gap: 10px;
      margin-top: 20px;
    }

    .footer-socials a {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
    }

    .footer-socials a:hover { border-color: var(--border-light); color: var(--text-primary); }

    .footer-col h3 {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 16px;
    }

    .footer-col ul { list-style: none; }
    .footer-col li + li { margin-top: 10px; }

    .footer-col a {
      font-size: 13px;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-col a:hover { color: var(--text-secondary); }

    .footer-bottom {
      margin-top: 48px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    .footer-copy {
      font-size: 13px;
      color: var(--text-muted);
    }

    .footer-links {
      display: flex;
      gap: 24px;
    }

    .footer-links a {
      font-size: 13px;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-links a:hover { color: var(--text-secondary); }

    /* ─── CONTAGION VISUAL ────────────────────────────── */
    .contagion-visual {
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
    }

    .node-graph {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: auto auto auto;
      gap: 16px;
      place-items: center;
    }

    .graph-node {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.03em;
      border: 2px solid;
      transition: all 0.3s;
      cursor: default;
      position: relative;
    }

    .graph-node .node-icon { font-size: 20px; margin-bottom: 2px; }
    .graph-node .node-name { font-size: 9px; color: inherit; opacity: 0.8; }

    .gn-card   { background: rgba(79,142,247,0.1); border-color: rgba(79,142,247,0.5); color: var(--accent); }
    .gn-merch  { background: rgba(34,211,160,0.1); border-color: rgba(34,211,160,0.5); color: var(--green); }
    .gn-ip     { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.5); color: #a78bfa; }
    .gn-bank   { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.5); color: var(--orange); }
    .gn-fraud  { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.7); color: var(--red); animation: glow-red 1.5s infinite; }
    .gn-contaminated { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.3); color: #f87171; }

    @keyframes glow-red {
      0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
      50% { box-shadow: 0 0 16px 4px rgba(239,68,68,0.3); }
    }

    .graph-edge-label {
      font-size: 11px;
      color: var(--text-muted);
      text-align: center;
    }

    .contagion-legend {
      margin-top: 20px;
      display: flex;
      gap: 20px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* ─── RESPONSIVE ──────────────────────────────────── */
    @media (max-width: 1100px) {
      .diff-grid { grid-template-columns: repeat(2, 1fr); }
      .hero-grid { grid-template-columns: 1fr; gap: 40px; }
      .hero { min-height: 0; padding: 64px 0 48px; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 900px) {
      .diff-grid { grid-template-columns: repeat(2, 1fr); }
      .flow-diagram { grid-template-columns: 1fr; }
      .flow-step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
      .perf-grid { grid-template-columns: 1fr; }
      .arch-grid { grid-template-columns: 1fr; }
      .uc-grid { grid-template-columns: repeat(2, 1fr); }
      .code-grid { grid-template-columns: 1fr; }
      .integration-cards { grid-template-columns: repeat(2, 1fr); }
      .stats-bar { grid-template-columns: repeat(2, 1fr); }
      .nav-toggle { display: inline-flex; }
      .nav-links, .nav-actions { display: none; }
      nav.menu-open {
        background: rgba(5,7,13,0.97);
      }
      nav.menu-open .nav-inner {
        flex-wrap: wrap;
        height: auto;
        align-items: center;
        padding-bottom: 16px;
      }
      nav.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        order: 3;
        width: 100%;
        background: rgba(5,7,13,0.97);
        border-top: 1px solid var(--border);
        padding: 12px 0 8px;
        gap: 4px;
        margin-left: 0;
      }
      nav.menu-open .nav-actions {
        display: flex;
        order: 4;
        width: 100%;
        margin: 0 0 16px;
        padding-bottom: 8px;
      }
      .nav-dropdown, .nav-dropdown.wide {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 0;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0 0 0 8px;
        grid-template-columns: 1fr;
      }
      .nav-item.open > .nav-dropdown { display: grid; }
      .bench-card { grid-template-columns: 1fr; }
    }

    @media (max-width: 600px) {
      .diff-grid { grid-template-columns: 1fr; }
      .uc-grid { grid-template-columns: 1fr; }
      .stats-bar { grid-template-columns: 1fr; }
      .integration-cards { grid-template-columns: 1fr; }
      .cta-card { padding: 40px 24px; }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    }

    /* ─── INNER PAGES ─────────────────────────────────── */
    body.inner-page { overflow-x: hidden; }
    .skip-link {
      position: absolute;
      left: 16px;
      top: -48px;
      z-index: 200;
      background: var(--accent);
      color: #fff;
      padding: 8px 14px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
    }
    .skip-link:focus { top: 12px; }

    .breadcrumb {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 28px;
    }
    .breadcrumb a { color: var(--text-secondary); text-decoration: none; }
    .breadcrumb a:hover { color: var(--text-primary); }
    .breadcrumb .sep { opacity: 0.5; }

    .page-hero { padding: 72px 0 24px; }
    .page-hero .section-label { margin-bottom: 14px; }
    .page-hero h1 {
      font-size: clamp(32px, 5vw, 52px);
      font-weight: 800;
      letter-spacing: -0.035em;
      line-height: 1.12;
      margin-bottom: 18px;
    }
    .page-hero h1 .highlight {
      background: linear-gradient(135deg, var(--accent), #a78bfa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .page-lede {
      font-size: 18px;
      color: var(--text-secondary);
      max-width: 760px;
      line-height: 1.65;
    }

    .prose {
      padding: 24px 0 96px;
      max-width: none;
    }
    .prose.wide { max-width: none; }
    .prose > .container {
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }
    .prose h2 {
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin: 56px 0 16px;
      scroll-margin-top: 96px;
    }
    .prose h3 {
      font-size: 20px;
      font-weight: 650;
      margin: 36px 0 12px;
      scroll-margin-top: 96px;
    }
    .prose h4 {
      font-size: 15px;
      font-weight: 650;
      margin: 24px 0 8px;
      color: var(--text-primary);
    }
    .prose p, .prose li {
      color: var(--text-secondary);
      font-size: 16px;
      line-height: 1.7;
    }
    .prose p { margin-bottom: 16px; }
    .prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
    .prose li { margin-bottom: 8px; }
    .prose strong { color: var(--text-primary); font-weight: 600; }
    .prose a { color: var(--accent); text-decoration: none; }
    .prose a:hover { text-decoration: underline; }
    .prose code {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 13px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 1px 6px;
      color: var(--accent);
    }
    .prose pre, .ascii-diagram {
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 22px;
      overflow-x: auto;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 13px;
      line-height: 1.65;
      color: var(--text-secondary);
      margin: 20px 0 28px;
      white-space: pre;
    }
    .prose pre code { background: none; border: none; padding: 0; color: inherit; }

    .toc-box {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin: 28px 0 8px;
    }
    .toc-box h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
    .toc-box ol { margin: 0; padding-left: 20px; }
    .toc-box a { color: var(--text-secondary); text-decoration: none; }
    .toc-box a:hover { color: var(--accent); }

    .docs-table, .compare-table {
      width: 100%;
      border-collapse: collapse;
      margin: 24px 0 32px;
      font-size: 14.5px;
    }
    .docs-table th, .compare-table th {
      text-align: left;
      padding: 10px 14px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border);
      background: var(--bg-card-2);
    }
    .docs-table td, .compare-table td {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      color: var(--text-secondary);
      vertical-align: top;
    }
    .compare-table td:first-child, .docs-table td:first-child { color: var(--text-primary); font-weight: 550; }

    .callout {
      border-radius: var(--radius);
      padding: 16px 20px;
      margin: 24px 0;
      font-size: 14.5px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      background: rgba(79,142,247,0.07);
      border: 1px solid rgba(79,142,247,0.25);
      color: var(--text-secondary);
    }
    .callout.warn { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); }
    .callout strong { color: var(--text-primary); }

    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
      margin: 28px 0 8px;
    }
    .related-card {
      display: block;
      text-decoration: none;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 18px 18px 16px;
      transition: border-color 0.2s, transform 0.2s;
    }
    .related-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); text-decoration: none; }
    .related-card .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
    .related-card h3 { font-size: 16px; color: var(--text-primary); margin-bottom: 6px; }
    .related-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }

    .faq-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 32px; }
    .faq-item {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0;
    }
    .faq-item summary {
      cursor: pointer;
      list-style: none;
      padding: 16px 18px;
      font-weight: 600;
      color: var(--text-primary);
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item[open] summary { border-bottom: 1px solid var(--border); }
    .faq-item .faq-a { padding: 14px 18px 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
    .faq-item .faq-a p:last-child { margin-bottom: 0; }

    .pager {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-top: 56px;
      padding-top: 28px;
      border-top: 1px solid var(--border);
    }
    .pager a { color: var(--accent); text-decoration: none; font-weight: 600; }
    .pager .dir { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }

    .cta-band {
      margin: 48px 0 0;
      padding: 32px;
      border-radius: var(--radius-lg);
      background: linear-gradient(135deg, rgba(79,142,247,0.12), rgba(124,58,237,0.1));
      border: 1px solid var(--border);
    }
    .cta-band h2 { margin: 0 0 10px; font-size: 24px; }
    .cta-band p { color: var(--text-secondary); margin-bottom: 18px; }
    .feature-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

    .uc-card { text-decoration: none; color: inherit; display: block; }
    a.uc-card:hover { border-color: var(--accent-dim); }

    .docs-mini-nav { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
    body.docs-page .prose { max-width: none; padding-top: 0; }

    @media (max-width: 900px) {
      .page-hero { padding-top: 48px; }
      .prose h2 { font-size: 24px; }
    }
