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

    /* Guarantee the `hidden` attribute always wins over any author rule that
       sets `display` on the same element (e.g. a class with `display:flex`
       used for layout when the element is shown). Without this, toggling
       `.hidden = true` on such an element silently does nothing. */
    [hidden] { display: none !important; }

    :root {
      --bg:          #0c0c0c;
      --bg-alt:      #101012;
      --bg-card:     #161616;
      --bg-code:     #0d1117;
      --border:      #252525;
      --border-hover:#3a3a3a;
      --text:        #f4f4f4;
      --muted:       #8a8a8a;
      --accent:      #a78bfa;
      --accent-dim:  #7c3aed22;
      --safe:        #34d399;
      --vuln:        #f87171;
      --warn:        #fbbf24;
      --nav-h:       64px;
      --radius:      10px;
      --radius-lg:   16px;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    #app-workspace { width: 100%; min-width: 0; }
    .landing-shell { width: 100%; }
    body.docs-view .footer-wrap { display: none; }

    /* ── Nav ─────────────────────────────────────────────── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--nav-h);
      background: rgba(12,12,12,0.88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      z-index: 100;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 1rem;
      letter-spacing: -0.02em;
      text-decoration: none;
      color: var(--text);
    }

    .nav-logo-icon {
      width: 30px; height: 30px;
      background: var(--accent);
      border-radius: 7px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    .nav-logo-icon svg { width: 16px; height: 16px; fill: #fff; }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.2s;
    }

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

    .nav-cta {
      background: var(--accent);
      color: #fff !important;
      padding: 0.45rem 1.1rem;
      border-radius: 6px;
      font-weight: 500;
    }

    .nav-cta:hover { background: #7c3aed !important; }

    /* ── Sections ────────────────────────────────────────── */
    section {
      max-width: 1120px;
      margin: 0 auto;
      padding: 6rem 2rem;
      scroll-margin-top: var(--nav-h);
    }

    section + section { padding-top: 0; }

    .section-label {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }

    .section-title {
      font-size: clamp(1.75rem, 3.5vw, 2.5rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      color: var(--text);
      margin-bottom: 1rem;
    }

    .section-sub {
      font-size: 1.05rem;
      color: var(--muted);
      max-width: 600px;
      margin-bottom: 3rem;
    }

    /* ── Hero ────────────────────────────────────────────── */
    #hero {
      padding-top: calc(var(--nav-h) + 5rem);
      padding-bottom: 5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    #hero::before {
      content: '';
      position: absolute;
      top: -200px; left: 50%;
      transform: translateX(-50%);
      width: 900px; height: 600px;
      background: radial-gradient(ellipse at center, #a78bfa18 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--accent-dim);
      border: 1px solid #a78bfa44;
      color: var(--accent);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      padding: 0.3rem 0.8rem;
      border-radius: 99px;
      margin-bottom: 1.75rem;
    }

    .hero-title {
      font-size: clamp(2.2rem, 5.5vw, 3.8rem);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.05;
      margin-bottom: 1.25rem;
      background: linear-gradient(135deg, #f4f4f4 30%, #a78bfa 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      font-size: 1.15rem;
      color: var(--muted);
      max-width: 580px;
      margin: 0 auto 2.5rem;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 3rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0.65rem 1.4rem;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
    }
    .btn-primary:hover { background: #7c3aed; transform: translateY(-1px); }

    .btn-ghost {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border-hover);
    }
    .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

    .hero-terminal {
      background: var(--bg-code);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem 2rem;
      text-align: left;
      max-width: 700px;
      margin: 0 auto;
      position: relative;
      font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
      font-size: 0.875rem;
    }

    .terminal-dots {
      display: flex;
      gap: 6px;
      margin-bottom: 1rem;
    }

    .terminal-dots span {
      width: 11px; height: 11px;
      border-radius: 50%;
    }

    .terminal-dots span:nth-child(1) { background: #ff5f57; }
    .terminal-dots span:nth-child(2) { background: #febc2e; }
    .terminal-dots span:nth-child(3) { background: #28c840; }

    .term-line { display: flex; gap: 0.5rem; margin-bottom: 0.3rem; }
    .term-prompt { color: #34d399; user-select: none; }
    .term-cmd    { color: #f4f4f4; }
    .term-flag   { color: #a78bfa; }
    .term-val    { color: #fbbf24; }
    .term-out    { color: #8a8a8a; padding-left: 1rem; }
    .term-vuln   { color: #f87171; font-weight: 600; }
    .term-safe   { color: #34d399; }
    .term-score  { color: #f87171; font-weight: 700; }

    /* ── Stats ───────────────────────────────────────────── */
    .stats-bar {
      display: flex;
      justify-content: center;
      gap: 3rem;
      flex-wrap: wrap;
      padding: 2.5rem 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin: 0 2rem;
    }

    .stat { text-align: center; }
    .stat-num {
      font-size: 2rem;
      font-weight: 800;
      color: var(--accent);
      letter-spacing: -0.04em;
      display: block;
    }
    .stat-label { font-size: 0.82rem; color: var(--muted); }

    /* ── How it works ────────────────────────────────────── */
    .steps {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0;
      position: relative;
    }

    .steps::before {
      content: '';
      position: absolute;
      top: 28px; left: 10%; right: 10%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    }

    .step {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 0 1rem;
      position: relative;
    }

    .step-num {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'JetBrains Mono', Consolas, monospace;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 1rem;
      position: relative;
      z-index: 1;
    }

    .step-title {
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 0.4rem;
      color: var(--text);
    }

    .step-desc {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.4;
    }

    /* ── Cards grid ──────────────────────────────────────── */
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

    .card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      transition: border-color 0.2s;
    }

    .card:hover { border-color: var(--border-hover); }

    .card-icon-box {
      width: 36px; height: 36px;
      border-radius: 8px;
      background: var(--accent-dim);
      border: 1px solid #a78bfa33;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 0.8rem;
    }

    .card-icon-box svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

    .card-title {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.4rem;
    }

    .card-desc {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.5;
    }

    /* ── OWASP grid ──────────────────────────────────────── */
    .owasp-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 1rem;
    }

    .owasp-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem;
      transition: border-color 0.2s, transform 0.2s;
    }

    .owasp-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    .owasp-badge {
      display: inline-block;
      background: var(--accent-dim);
      border: 1px solid #a78bfa33;
      color: var(--accent);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-family: 'JetBrains Mono', monospace;
      margin-bottom: 0.65rem;
    }

    .owasp-title {
      font-weight: 600;
      font-size: 0.85rem;
      margin-bottom: 0.35rem;
      color: var(--text);
    }

    .owasp-desc {
      font-size: 0.775rem;
      color: var(--muted);
      line-height: 1.45;
    }

    .owasp-payloads {
      margin-top: 0.6rem;
      font-size: 0.72rem;
      color: var(--safe);
      font-family: monospace;
    }

    /* ── Scenarios ───────────────────────────────────────── */
    .scenario-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: border-color 0.2s;
    }

    .scenario-card:hover { border-color: var(--border-hover); }

    .scenario-header {
      padding: 1.5rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .scenario-header > div:nth-child(2) {
      flex: 1 1 18rem;
      min-width: 0;
    }

    .scenario-letter {
      width: 38px; height: 38px;
      min-width: 38px;
      border-radius: 8px;
      background: var(--accent-dim);
      border: 1px solid #a78bfa33;
      color: var(--accent);
      font-weight: 800;
      font-size: 1rem;
      display: flex; align-items: center; justify-content: center;
    }

    .scenario-name {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.25rem;
    }

    .scenario-desc {
      font-size: 0.82rem;
      color: var(--muted);
    }

    .scenario-tag {
      margin-left: auto;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 0.2rem 0.55rem;
      border-radius: 4px;
      white-space: nowrap;
    }

    .tag-offline { background: #34d39922; color: var(--safe); border: 1px solid #34d39933; }
    .tag-api     { background: #fbbf2422; color: var(--warn); border: 1px solid #fbbf2433; }

    .scenario-body { padding: 1.25rem; }
    .scenario-split-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      align-items: start;
    }
    .scenario-split-grid > * { min-width: 0; }

    .scenario-switcher {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.3rem;
      margin-bottom: 1rem;
      border: 1px solid #2a2a2a;
      border-radius: 999px;
      background: #151515;
    }

    .scenario-switcher button {
      border: none;
      background: transparent;
      color: #9a9a9a;
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 650;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, box-shadow 0.2s;
      font-family: inherit;
    }

    .scenario-switcher button:hover {
      color: #f4f4f4;
      background: #232323;
    }

    .scenario-switcher button.active {
      background: #ececec;
      color: #111;
      box-shadow: inset 0 0 0 1px #ffffff;
    }

    .scenario-switcher button.active:hover {
      background: #f5f5f5;
      color: #111;
    }

    .scenario-panel { display: none; }
    .scenario-panel.active { display: block; }

    /* ── Code blocks ─────────────────────────────────────── */
    .code-block {
      background: var(--bg-code);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
      font-size: 0.82rem;
      line-height: 1.7;
      position: relative;
      overflow-x: auto;
    }
    .hero-terminal .term-line { flex-wrap: wrap; overflow-wrap: anywhere; }
    .term-prompt { color: #22d3ee; }
    .term-cmd { color: #e8e8e8; }
    .term-flag { color: #c084fc; }
    .term-val { color: #34d399; }
    .term-out { color: #8f8f8f; }

    .code-block pre { white-space: pre; }

    .copy-btn {
      position: absolute;
      top: 0.65rem; right: 0.65rem;
      background: #2a2a2a;
      border: 1px solid var(--border-hover);
      color: var(--muted);
      font-size: 0.72rem;
      padding: 0.25rem 0.55rem;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .copy-btn:hover { color: var(--text); background: #333; }
    .copy-btn.copied { color: var(--safe); border-color: var(--safe); }

    .kw   { color: #a78bfa; }
    .str  { color: #fbbf24; }
    .cmd  { color: #f4f4f4; }
    .cmt  { color: #8a8a8a; }
    .url  { color: #60a5fa; }

    /* ── CLI table ───────────────────────────────────────── */
    .cli-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.875rem;
    }

    .cli-table th {
      text-align: left;
      padding: 0.75rem 1rem;
      background: var(--bg-card);
      border-bottom: 1px solid var(--border);
      font-size: 0.75rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 600;
    }

    .cli-table td {
      padding: 0.85rem 1rem;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
      line-height: 1.5;
    }

    .cli-table tr:last-child td { border-bottom: none; }
    .cli-table tr:hover td { background: #ffffff04; }

    .flag-cell {
      font-family: 'JetBrains Mono', Consolas, monospace;
      font-size: 0.8rem;
      color: var(--accent);
      white-space: nowrap;
    }

    .req-yes { color: var(--safe); font-size: 0.78rem; font-weight: 600; }
    .req-no  { color: var(--muted); font-size: 0.78rem; }
    .default-cell { font-family: monospace; font-size: 0.8rem; color: var(--muted); }

    /* ── Output formats ──────────────────────────────────── */
    .format-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }

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

    .format-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

    .format-label {
      display: inline-block;
      font-family: 'JetBrains Mono', Consolas, monospace;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }

    .format-name {
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 0.3rem;
    }

    .format-flag {
      display: inline-block;
      font-family: monospace;
      font-size: 0.75rem;
      background: var(--accent-dim);
      color: var(--accent);
      padding: 0.15rem 0.4rem;
      border-radius: 3px;
      margin-bottom: 0.65rem;
    }

    .format-desc {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.5;
    }

    /* ── Security properties ─────────────────────────────── */
    .security-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
    }

    .sec-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
    }

    .sec-icon-box {
      width: 36px; height: 36px;
      border-radius: 8px;
      background: var(--accent-dim);
      border: 1px solid #a78bfa33;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 0.8rem;
    }

    .sec-icon-box svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

    .sec-title {
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 0.35rem;
    }

    .sec-desc {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.5;
    }

    /* ── Risk bar ────────────────────────────────────────── */
    .risk-bar {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem 2rem;
      margin-bottom: 3rem;
      flex-wrap: wrap;
    }

    .risk-bands { display: flex; gap: 0.75rem; flex-wrap: wrap; }

    .risk-band {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.82rem;
    }

    .risk-dot { width: 10px; height: 10px; border-radius: 50%; }

    /* ── Patterns ────────────────────────────────────────── */
    .patterns-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }

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

    .pattern-header {
      padding: 1rem 1.25rem;
      border-bottom: 1px solid var(--border);
    }

    .pattern-title { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.2rem; }
    .pattern-sub   { font-size: 0.78rem; color: var(--muted); }
    .pattern-code  { padding: 1.25rem; }

    /* ── Divider ─────────────────────────────────────────── */
    .divider { border: none; border-top: 1px solid var(--border); margin: 0 2rem; }

    /* ── Footer ──────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 3rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1120px;
      margin: 0 auto;
      flex-wrap: wrap;
      gap: 1.5rem;
    }

    .footer-left { display: flex; align-items: center; gap: 0.75rem; }

    .footer-stack { display: flex; gap: 0.5rem; flex-wrap: wrap; }

    .stack-pill {
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--muted);
      font-size: 0.72rem;
      padding: 0.2rem 0.55rem;
      border-radius: 4px;
      font-family: monospace;
    }

    .footer-copy { color: var(--muted); font-size: 0.8rem; }

    /* ── Responsive ──────────────────────────────────────── */
    /* ── Live scan form ─────────────────────────────────────────── */
    .scan-input, .scan-select {
      width: 100%;
      background: var(--bg-code);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.6rem 0.75rem;
      border-radius: 6px;
      font-size: 0.875rem;
      font-family: 'JetBrains Mono', Consolas, monospace;
      outline: none;
      transition: border-color 0.2s;
    }
    .scan-input:focus, .scan-select:focus { border-color: var(--accent); }
    .scan-select { appearance: none; cursor: pointer; }
    .scan-label {
      display: block;
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 0.35rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .hosted-scan {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
      gap: 1.1rem;
      align-items: stretch;
    }
    .scan-form-panel {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0;
      overflow: hidden;
    }
    .scan-panel-head {
      padding: 1.15rem 1.2rem 1rem;
      border-bottom: 1px solid var(--border);
    }
    .scan-panel-head code {
      background: var(--bg-code);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.1rem 0.35rem;
      font-size: 0.85em;
      color: var(--accent);
    }
    .scan-panel-title {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.25rem;
    }
    .scan-panel-sub {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.45;
    }
    .scan-form-grid {
      display: grid;
      gap: 1.15rem;
      padding: 1.2rem 1.2rem 1.3rem;
    }
    .scan-form-grid > * + * {
      padding-top: 1.15rem;
      border-top: 1px solid var(--border);
    }
    .scan-two-col {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.85rem;
    }
    .scan-field {
      min-width: 0;
    }
    .scan-primary-row {
      display: flex;
      align-items: flex-start;
      gap: 0.9rem;
      flex-wrap: wrap;
      margin-top: 0.35rem;
    }
    .scan-primary-row .btn {
      min-height: 46px;
      padding-inline: 1.2rem;
    }
    .scan-footnote {
      flex: 1 1 260px;
      color: var(--muted);
      font-size: 0.76rem;
      line-height: 1.45;
    }
    .scan-help {
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.45;
      margin-top: 0.35rem;
    }
    .scan-checkbox {
      display: flex;
      align-items: flex-start;
      gap: 0.65rem;
      background: var(--bg-code);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.8rem 0.9rem;
    }
    .scan-checkbox input {
      margin-top: 0.15rem;
      accent-color: var(--accent);
      flex-shrink: 0;
    }
    .scan-checkbox strong {
      display: block;
      font-size: 0.84rem;
      color: var(--text);
      font-weight: 600;
    }
    .scan-checkbox span {
      display: block;
      color: var(--muted);
      font-size: 0.76rem;
      line-height: 1.4;
      margin-top: 0.15rem;
    }
    .scan-output {
      min-height: 250px;
      height: 100%;
      overflow: auto;
      white-space: pre-wrap;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
    .scan-preview-panel {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    .scan-preview-head {
      padding: 1.15rem 1.2rem 1rem;
      border-bottom: 1px solid var(--border);
    }
    .scan-preview-title {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.25rem;
    }
    .scan-preview-sub {
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.45;
    }
    .scan-terminal-wrap {
      padding: 0.75rem;
      flex: 1;
      display: flex;
      min-height: 0;
    }
    .scan-report-panel {
      margin-top: 1rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem;
      display: none;
    }
    .scan-report-panel.active { display: block; }
    .scan-report-head {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 0.85rem;
    }
    .scan-report-title {
      font-size: 0.9rem;
      font-weight: 700;
    }
    .scan-report-links {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
    }
    .scan-link-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 36px;
      padding: 0.5rem 0.8rem;
      border-radius: 6px;
      border: 1px solid var(--border-hover);
      color: var(--text);
      text-decoration: none;
      font-size: 0.8rem;
      font-weight: 600;
      background: transparent;
      cursor: pointer;
    }
    .scan-link-btn:hover { border-color: var(--accent); color: var(--accent); }
    .scan-report-frame {
      width: 100%;
      min-height: 720px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: #fff;
    }
    .scan-error { color: var(--vuln); }
    .scan-done { color: var(--safe); }
    .term-status-dot {
      display: inline-block;
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--warn);
      margin-right: 5px;
      animation: pulse 1.2s infinite;
    }
    @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

    @media (max-width: 900px) {
      .steps { grid-template-columns: 1fr; }
      .steps::before { display: none; }
      .format-grid { grid-template-columns: repeat(2, 1fr); }
      .security-grid { grid-template-columns: repeat(2, 1fr); }
      .patterns-grid { grid-template-columns: 1fr; }
      .hosted-scan { grid-template-columns: 1fr; }
      .scenario-split-grid { grid-template-columns: 1fr; }
      .scan-two-col { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
      nav { padding: 0 1rem; }
      .nav-links { display: none; }
      section { padding: 4rem 1.25rem; }
      .grid-2 { grid-template-columns: 1fr; }
      .owasp-grid { grid-template-columns: repeat(2, 1fr); }
      .format-grid { grid-template-columns: 1fr; }
      .security-grid { grid-template-columns: 1fr; }
      .stats-bar { gap: 2rem; }
      footer { flex-direction: column; text-align: center; }
    }

    /* ── Visual rhythm: alternating section background ─────── */
    .section-alt {
      background: var(--bg-alt);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    /* ── Trust strip ─────────────────────────────────────────── */
    .trust-strip {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      padding: 1.5rem 2rem 0;
    }

    .trust-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--muted);
      font-size: 0.78rem;
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
    }

    a.trust-badge:hover { border-color: var(--accent); color: var(--text); }

    .trust-badge svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }

    /* ── Teaser cards (condensed sections that link out to Docs) ── */
    .teaser-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
    }

    .teaser-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      transition: border-color 0.2s, transform 0.2s;
    }

    .teaser-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

    .teaser-title { font-weight: 700; font-size: 0.95rem; }
    .teaser-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; flex: 1; }

    .teaser-link {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--accent);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .teaser-link:hover { color: #c4b5fd; }

    .section-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent);
      text-decoration: none;
      margin-top: 1.75rem;
    }

    .section-link:hover { color: #c4b5fd; }

    /* ── Condensed section heading (secondary weight, for teaser sections) ── */
    .section-title-sm {
      font-size: clamp(1.4rem, 2.2vw, 1.75rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.2;
      color: var(--text);
      margin-bottom: 0.6rem;
    }

    @media (max-width: 900px) {
      .teaser-grid { grid-template-columns: 1fr; }
    }

    /* ── Footer v2: link columns ─────────────────────────────── */
    .footer-wrap {
      border-top: 1px solid var(--border);
      padding: 3.5rem 2rem 2rem;
    }

    .footer-grid {
      max-width: 1120px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.4fr repeat(3, 1fr);
      gap: 2rem;
      padding-bottom: 2.5rem;
    }

    .footer-brand-desc {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.55;
      margin-top: 0.9rem;
      max-width: 280px;
    }

    .footer-col-title {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1rem;
    }

    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

    .footer-col a {
      color: var(--text);
      opacity: 0.75;
      text-decoration: none;
      font-size: 0.85rem;
      transition: opacity 0.2s, color 0.2s;
    }

    .footer-col a:hover { opacity: 1; color: var(--accent); }

    .footer-bottom {
      max-width: 1120px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.25rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
    }

    .footer-legal { display: flex; gap: 1.25rem; }
    .footer-legal a { color: var(--muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
    .footer-legal a:hover { color: var(--accent); }

    @media (max-width: 768px) {
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .footer-bottom { flex-direction: column; text-align: center; }
    }

    @media (max-width: 480px) {
      .footer-grid { grid-template-columns: 1fr; }
    }

    /* ══════════════════════════════════════════════════════════
       DOCS SITE LAYOUT
       ══════════════════════════════════════════════════════════ */

    .docs-topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--nav-h);
      background: rgba(12,12,12,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.5rem;
      z-index: 100;
      gap: 1.5rem;
    }

    .docs-topbar-left { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }

    .docs-topbar-divider {
      width: 1px; height: 22px;
      background: var(--border);
    }

    .docs-topbar-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

    .docs-search {
      flex: 1 1 auto;
      max-width: 360px;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.45rem 0.75rem;
    }

    .docs-search:focus-within {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-dim);
    }

    .docs-search svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; }

    .docs-search input {
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 0.85rem;
      width: 100%;
      font-family: inherit;
    }

    .docs-search input::placeholder { color: var(--muted); }

    .docs-topbar-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

    .docs-shell {
      display: grid;
      grid-template-columns: 250px minmax(0, 1fr);
      max-width: 1280px;
      margin: 0 auto;
      padding-top: var(--nav-h);
    }

    .docs-sidebar {
      position: sticky;
      top: var(--nav-h);
      align-self: start;
      height: calc(100vh - var(--nav-h));
      overflow-y: auto;
      padding: 2rem 1.25rem 2rem 1.5rem;
      border-right: 1px solid var(--border);
    }

    .docs-nav-group { margin-bottom: 1.75rem; }

    .docs-nav-group-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.65rem;
      padding-left: 0.6rem;
    }

    .docs-nav-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }

    .docs-nav-group a {
      display: block;
      padding: 0.42rem 0.6rem;
      border-radius: 6px;
      font-size: 0.85rem;
      color: var(--muted);
      text-decoration: none;
      border-left: 2px solid transparent;
      transition: color 0.15s, background 0.15s;
    }

    .docs-nav-group a:hover { color: var(--text); background: #ffffff06; }

    .docs-nav-group a.active {
      color: var(--text);
      background: var(--accent-dim);
      border-left-color: var(--accent);
      font-weight: 600;
    }

    .docs-content {
      min-width: 0;
      padding: 3rem 3rem 6rem;
      max-width: 800px;
    }

    .docs-eyebrow {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }

    .docs-h1 {
      font-size: clamp(1.75rem, 3vw, 2.15rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      margin-bottom: 0.75rem;
    }

    .docs-lede {
      font-size: 1.02rem;
      color: var(--muted);
      max-width: 640px;
      margin-bottom: 2.5rem;
      line-height: 1.6;
    }

    .docs-content h2 {
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: -0.015em;
      margin: 2.75rem 0 1rem;
      padding-top: 0.25rem;
      scroll-margin-top: calc(var(--nav-h) + 1.5rem);
    }

    .docs-content h2:first-of-type { margin-top: 0; }

    .docs-content h3 {
      font-size: 1.02rem;
      font-weight: 700;
      margin: 1.75rem 0 0.75rem;
      scroll-margin-top: calc(var(--nav-h) + 1.5rem);
    }

    .docs-content p {
      font-size: 0.92rem;
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 1.1rem;
      max-width: 680px;
    }

    .docs-content p code, .docs-content li code {
      background: var(--bg-code);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.1rem 0.35rem;
      font-size: 0.85em;
      color: var(--accent);
    }

    .docs-content ul, .docs-content ol {
      margin: 0 0 1.25rem 1.25rem;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.7;
    }

    .docs-content .code-block { margin-bottom: 1.25rem; }

    .docs-content a { color: var(--accent); }

    .docs-content.docs-content-embedded {
      width: 100%;
      max-width: 1160px;
      margin: 0 auto 32px;
      padding: 38px 24px 56px;
      border-bottom: 1px solid #202020;
    }

    .docs-loading {
      color: var(--muted);
      font-size: 0.92rem;
      padding: 0.5rem 0;
    }

    .docs-callout {
      display: flex;
      gap: 0.75rem;
      background: var(--accent-dim);
      border: 1px solid #a78bfa33;
      border-radius: var(--radius);
      padding: 1rem 1.15rem;
      margin-bottom: 1.5rem;
      font-size: 0.85rem;
      color: var(--text);
      line-height: 1.55;
    }

    .docs-callout svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 0.1rem; }

    .docs-home-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
      margin-top: 2rem;
    }

    .docs-home-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      text-decoration: none;
      display: block;
      transition: border-color 0.2s, transform 0.2s;
    }

    .docs-home-card:hover { border-color: var(--accent); transform: translateY(-2px); }

    .docs-home-card-title { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.4rem; }
    .docs-home-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

    .docs-mobile-toggle { display: none; }

    @media (max-width: 900px) {
      .docs-shell { grid-template-columns: 1fr; }
      .docs-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.25rem 1.5rem;
      }
      .docs-content { padding: 2rem 1.5rem 4rem; }
      .docs-home-grid { grid-template-columns: 1fr; }
      .docs-search { display: none; }
    }

    .btn:disabled,
    .btn[aria-busy="true"] {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none !important;
    }

    /* Respect reduced-motion preferences site-wide */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
      }
      html { scroll-behavior: auto; }
    }

    /* ── Platform-style application shell ────────────────────── */
    :root {
      --bg: #000000;
      --bg-alt: #090909;
      --bg-card: #1f1f1f;
      --bg-code: #171717;
      --border: #323232;
      --border-hover: #4a4a4a;
      --text: #f2f2f2;
      --muted: #a0a0a0;
      --accent: #f2f2f2;
      --accent-dim: #292929;
      --safe: #5cc8a1;
      --vuln: #ff6b6b;
      --warn: #f0b95b;
      --nav-h: 64px;
      --sidebar-w: 220px;
      --radius: 6px;
      --radius-lg: 8px;
    }

    body {
      min-height: 100vh;
      padding-left: var(--sidebar-w);
      padding-top: var(--nav-h);
      background: var(--bg);
      font-family: "SF Pro Text", "SF Pro Display", ui-sans-serif, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.5;
    }

    nav {
      inset: var(--nav-h) auto 0 0;
      width: var(--sidebar-w);
      height: calc(100vh - var(--nav-h));
      padding: 18px 12px;
      background: #050505;
      border: 0;
      border-right: 1px solid var(--border);
      backdrop-filter: none;
      align-items: stretch;
      justify-content: flex-start;
      flex-direction: column;
      gap: 14px;
    }

    .site-topbar {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 120;
      display: grid;
      grid-template-columns: var(--sidebar-w) 1fr auto;
      align-items: center;
      height: var(--nav-h);
      padding: 0 18px;
      border-bottom: 1px solid #242424;
      background: rgba(0, 0, 0, 0.94);
      backdrop-filter: blur(12px);
    }
    .topbar-brand { color: #fff; font-size: 0.95rem; font-weight: 650; text-decoration: none; }
    .nav-toggle { display: none; }
    .topbar-nav { display: flex; align-items: center; gap: 6px; }
    .topbar-nav a { padding: 7px 10px; border-radius: 6px; color: #aaa; font-size: 0.78rem; text-decoration: none; }
    .topbar-nav a:hover,
    .topbar-nav a.active { color: #fff; background: #292929; }
    .topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
    .topbar-search { min-width: 150px; padding: 8px 14px; border-radius: 999px; background: #242424; color: #aaa; font-size: 0.75rem; text-decoration: none; }
    .topbar-search:hover { background: #303030; color: #ddd; }
    .topbar-action,
    .topbar-action:visited { justify-self: end; padding: 8px 13px; border-radius: 999px; background: #f2f2f2; color: #111; font-size: 0.78rem; font-weight: 600; text-decoration: none; }
    .topbar-action:hover,
    .topbar-action:focus-visible { background: #dcdcdc; color: #111; }

    .nav-logo {
      display: none;
    }

    .nav-logo-icon {
      width: 30px;
      height: 30px;
      border-radius: 6px;
      background: #303030;
    }

    .nav-search {
      display: flex;
      min-height: 36px;
      align-items: center;
      gap: 8px;
      padding: 7px 9px;
      border: 1px solid #3d3d3d;
      border-radius: 7px;
      color: #aaa;
      font-size: 0.82rem;
      text-decoration: none;
    }
    .nav-search:hover { border-color: #555; color: #ddd; }
    .nav-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
    .nav-search span { flex: 1; }
    .nav-search kbd { padding: 1px 5px; border-radius: 4px; background: #303030; color: #888; font: inherit; font-size: 0.68rem; }

    .nav-links {
      display: flex;
      flex: 1;
      flex-direction: column;
      gap: 4px;
    }

    .nav-links a {
      display: flex;
      min-height: 34px;
      align-items: center;
      padding: 6px 10px;
      border-radius: 6px;
      color: #d5d5d5;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .nav-links a:hover { color: var(--text); background: #2f2f2f; }
    .nav-links a.active { color: var(--text); background: #303030; }
    .nav-section-title {
      margin: 14px 10px 5px;
      color: #a7a7a7;
      font-size: 0.7rem;
      font-weight: 600;
    }
    .nav-section-title:first-child { margin-top: 0; }
    .nav-submenu {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin: 3px 0 8px;
      padding-left: 12px;
      list-style: none;
      border-left: 1px solid #333;
    }
    .nav-submenu a {
      min-height: 30px;
      padding: 5px 9px;
      color: #8f8f8f;
      font-size: 0.75rem;
      font-weight: 400;
    }
    .nav-cta,
    .nav-cta:hover {
      justify-content: center;
      background: #303030 !important;
      color: #fff !important;
    }

    section {
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 56px 24px;
      scroll-margin-top: var(--nav-h);
    }

    section + section { padding-top: 56px; border-top: 0; }
    .section-alt { width: 100%; max-width: none; margin: 0; background: transparent; }
    .section-alt > section { margin-right: auto; margin-left: auto; }

    .section-label { display: none; }
    .docs-eyebrow {
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.08em;
    }

    .section-title {
      max-width: 720px;
      margin-bottom: 8px;
      color: var(--text);
      font-size: clamp(1.75rem, 3vw, 2.35rem);
      font-weight: 600;
      letter-spacing: -0.035em;
    }

    .section-sub { margin-bottom: 34px; color: var(--muted); font-size: 0.9rem; }

    #hero {
      display: block;
      min-height: 0;
      padding-top: 38px;
      padding-bottom: 22px;
      text-align: left;
      overflow: visible;
    }

    .page-title {
      margin-bottom: 26px;
      color: var(--text);
      font-size: 2rem;
      font-weight: 600;
      letter-spacing: -0.035em;
      line-height: 1.15;
    }

    .hero-quickstart {
      display: grid;
      grid-template-columns: minmax(320px, 0.72fr) minmax(500px, 1.28fr);
      align-items: stretch;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--bg-card);
    }

    .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px; }

    #hero::before { display: none; }
    .hero-badge {
      display: none;
      align-self: flex-start;
      margin-bottom: 16px;
      padding: 5px 9px;
      border-color: #444;
      border-radius: 5px;
      background: var(--accent-dim);
      color: #d7d7d7;
      font-size: 0.7rem;
      letter-spacing: 0.035em;
    }

    .hero-title {
      max-width: 520px;
      margin-bottom: 14px;
      background: none;
      color: var(--text);
      font-size: clamp(2rem, 3vw, 2.65rem);
      font-weight: 600;
      letter-spacing: -0.055em;
      line-height: 1.05;
      -webkit-text-fill-color: currentColor;
    }
    .hero-title span { display: block; }

    .hero-sub {
      max-width: 530px;
      margin: 0 0 28px;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .hero-actions { justify-content: flex-start; margin: 0; }
    .hero-terminal {
      width: 100%;
      min-width: 0;
      overflow-x: auto;
      border: 0;
      border-left: 1px solid var(--border);
      border-radius: 0;
      background: #181818;
      box-shadow: none;
    }

    .btn {
      min-height: 42px;
      padding: 9px 16px;
      border-radius: 6px;
      font-size: 0.875rem;
      font-weight: 500;
      transition: background-color 150ms, border-color 150ms, color 150ms;
    }

    .btn-primary { background: #f2f2f2; color: #171717; }
    .btn-primary:hover { background: #dcdcdc; transform: none; }
    .btn-ghost { border-color: var(--border-hover); color: var(--text); background: #2a2a2a; }
    .btn-ghost:hover { border-color: #707070; color: var(--text); background: #333; }

    .hero-terminal,
    .code-block {
      border-color: #353740;
      border-radius: 8px;
      box-shadow: none;
    }

    .stats-bar,
    .trust-strip {
      width: calc(100% - 48px);
      max-width: 1112px;
      margin: 0 auto;
      padding: 22px 24px;
      border-color: var(--border);
      background: var(--bg-card);
    }

    .stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 8px 8px 0 0; }
    .stat { padding: 0 24px; text-align: left; border-left: 1px solid var(--border); }
    .stat:first-child { border-left: 0; }
    .stat-num { color: var(--text); font-size: 1.45rem; font-weight: 600; }
    .trust-strip { justify-content: flex-start; gap: 10px 24px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; }
    .trust-badge { color: var(--muted); }

    .hosted-scan { gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-card); }
    .scan-form-panel,
    .scan-preview-panel { border: 0; border-radius: 0; box-shadow: none; }
    .scan-panel-head { padding: 28px 30px 10px; border-bottom: 0; }
    .scan-panel-title,
    .scan-preview-title { font-size: 1rem; font-weight: 600; }
    .scan-form-grid { gap: 18px; padding: 14px 30px 30px; }
    .scan-form-grid > * + * { padding-top: 0; border-top: 0; }
    .scan-preview-panel { border-left: 1px solid var(--border); background: #191919; }
    .scan-preview-head { padding: 28px 30px 18px; border-bottom: 0; }
    .scan-terminal-wrap { padding: 0 30px 30px; }
    .scan-output { min-height: 310px; border: 1px solid var(--border); border-radius: 8px; }
    .scan-input,
    .scan-select { min-height: 44px; border-color: #444; border-radius: 7px; background: #171717; color: var(--text); }
    .scan-input::placeholder { color: #777; }
    .scan-input:focus,
    .scan-select:focus { border-color: #ddd; box-shadow: 0 0 0 1px #ddd; }
    .scan-checkbox { min-height: 72px; border-color: #444; background: #171717; }
    .scan-primary-row { align-items: center; margin-top: 4px; }
    .scan-primary-row .btn { min-height: 42px; }

    .card,
    .owasp-card,
    .scenario-card,
    .format-card,
    .sec-card,
    .risk-bar,
    .pattern-card,
    .teaser-card,
    .docs-home-card {
      border-color: var(--border);
      border-radius: 8px;
      background: var(--bg-card);
      box-shadow: none;
    }

    .card:hover,
    .owasp-card:hover,
    .scenario-card:hover,
    .format-card:hover,
    .teaser-card:hover,
    .docs-home-card:hover { border-color: var(--border-hover); transform: none; }

    .card-icon-box,
    .sec-icon-box,
    .scenario-letter {
      border: 0;
      border-radius: 4px;
      background: transparent;
      color: var(--text);
      justify-content: flex-start;
    }

    .card-icon-box svg,
    .sec-icon-box svg { stroke: var(--text); }
    .owasp-badge,
    .format-flag { border-color: #444; background: #292929; color: #d7d7d7; }
    .step-num { border-radius: 6px; background: var(--bg-card); color: var(--text); }
    .steps::before { background: var(--border); }

    /* Dense documentation layouts for the lower half of the page. */
    #use-cases .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #use-cases .teaser-card:last-child { grid-column: 1 / -1; }
    #how-it-works .steps { grid-template-columns: 1fr; gap: 0; }
    #how-it-works .steps::before { display: none; }
    #how-it-works .step {
      display: grid;
      grid-template-columns: 48px minmax(150px, 190px) minmax(0, 1fr);
      align-items: center;
      gap: 18px;
      padding: 17px 0;
      border-bottom: 1px solid var(--border);
      text-align: left;
    }
    #how-it-works .step:first-child { border-top: 1px solid var(--border); }
    #how-it-works .step-num { width: 38px; height: 30px; margin: 0; }
    #how-it-works .step-title { margin: 0; }
    #how-it-works .step-desc { font-size: 0.82rem; line-height: 1.5; }
    #coverage .owasp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    #quickstart .code-block { max-width: none !important; }

    .code-block,
    .hero-terminal {
      background: #191919;
      color: #e8e8e8;
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    }
    .code-block .kw { color: #56b6ff; }
    .code-block .str { color: #34d399; }
    .code-block .cmd { color: #e8e8e8; }
    .code-block .cmt { color: #8a8a8a; }
    .code-block .url { color: #22d3ee; }
    .hero-terminal .term-prompt { color: #22d3ee; }
    .hero-terminal .term-cmd { color: #e8e8e8; }
    .hero-terminal .term-flag { color: #56b6ff; }
    .hero-terminal .term-val { color: #34d399; }
    .hero-terminal .term-out { color: #8f8f8f; }
    .copy-btn { background: #2b2b2b; border-color: #424242; color: #aaa; }

    .footer-wrap > * { max-width: 1112px; margin-right: auto; margin-left: auto; }

    .divider { max-width: 1112px; margin: 0 auto; border-color: #262626; }

    .footer-wrap { margin: 56px 0 0; padding: 0 24px; border-top: 1px solid #262626; background: #050505; }
    .footer-wrap .footer-bottom { max-width: 1112px; padding: 22px 0; }
    .footer-wrap a { color: #aaa; font-size: 0.78rem; text-decoration: none; }
    .footer-wrap a:hover { color: #fff; }
    a:visited:not(.btn):not(.nav-logo):not(.nav-cta):not(.topbar-action) { color: #c7c7c7; }

    /* Documentation already has the same two-pane application structure. */
    body:has(.docs-shell) { padding-left: 0; }
    body:has(.docs-shell) .site-topbar { grid-template-columns: 220px 1fr auto; }
    .docs-shell {
      grid-template-columns: 220px minmax(0, 1fr);
      width: 100%;
      max-width: none;
      margin: 0;
      padding-top: 0;
    }
    .docs-sidebar {
      top: var(--nav-h);
      height: calc(100vh - var(--nav-h));
      padding: 28px 12px;
      border-color: #262626;
      background: #050505;
    }
    .docs-nav-group { margin-bottom: 26px; }
    .docs-nav-group-title { padding-left: 10px; color: #a7a7a7; font-size: 0.7rem; text-transform: none; letter-spacing: 0; }
    .docs-nav-group a { padding: 7px 10px; border-left: 0; color: #aaa; font-size: 0.8rem; }
    .docs-nav-group a.active { background: #303030; color: var(--text); border-left: 0; }
    .docs-content {
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 38px 24px 80px;
      color: var(--text);
    }
    .docs-eyebrow { display: none; }
    .docs-callout { border-color: #3a3a3a; background: #1f1f1f; }
    .docs-home-card:hover { border-color: #555; transform: none; }

    footer { max-width: none; }

    @media (max-width: 1080px) {
      :root { --sidebar-w: 190px; }
      section { padding-right: 24px; padding-left: 24px; }
      .hero-quickstart { grid-template-columns: 1fr; }
      .hero-terminal { margin-top: 0; border-top: 1px solid var(--border); border-left: 0; }
      .stats-bar,
      .trust-strip { padding-right: 24px; padding-left: 24px; }
    }

    @media (max-width: 900px) {
      body:has(.docs-shell) .site-topbar { grid-template-columns: auto 1fr auto; }
      .docs-shell { grid-template-columns: 1fr; }
      .docs-sidebar { display: none; }
      .docs-content { padding: 32px 20px 64px; }
      body { padding-left: 0; }
      nav { display: none; }
      .topbar-nav { display: none; }

      /* Mobile menu toggle: hidden on desktop, shown here since this is
         where nav / .docs-sidebar start collapsing. */
      .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        background: transparent;
        border: 1px solid #333;
        border-radius: 6px;
        color: #fff;
        cursor: pointer;
      }
      .nav-toggle svg { width: 18px; height: 18px; }
      .site-topbar { grid-template-columns: auto 1fr auto; }

      /* Open state: whichever nav exists on this page (homepage's `nav`
         sidebar, or a docs page's `.docs-sidebar`) is rendered as a
         full-width dropdown panel below the topbar. */
      body.mobile-nav-open nav,
      body.mobile-nav-open .docs-sidebar {
        display: flex !important;
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        width: 100%;
        height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        z-index: 150;
        background: #050505;
        flex-direction: column;
        padding: 20px;
      }
    }

    @media (max-width: 768px) {
      :root { --nav-h: 64px; --sidebar-w: 0px; }
      html,
      body { width: 100%; max-width: 100%; overflow-x: hidden; }
      body { padding-left: 0; padding-top: var(--nav-h); }
      nav { display: none; }
      .site-topbar { grid-template-columns: auto 1fr auto; padding: 0 14px; }
      .topbar-brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
      .topbar-nav { display: none; }
      .topbar-search { display: none; }
      section,
      #hero { padding: 48px 20px; }
      #hero { width: 100%; min-width: 0; overflow: hidden; }
      #hero > * { min-width: 0; }
      .hero-quickstart { grid-template-columns: minmax(0, 1fr); }
      .hero-title { width: 100%; max-width: 100%; font-size: 2.3rem; overflow-wrap: anywhere; }
      .hero-terminal { max-width: 100%; overflow: hidden; font-size: 0.72rem; }
      .hero-terminal .term-line { min-width: 0; }
      #use-cases .teaser-grid,
      #coverage .owasp-grid { grid-template-columns: 1fr; }
      #use-cases .teaser-card:last-child { grid-column: auto; }
      #how-it-works .step { grid-template-columns: 42px 1fr; gap: 12px; }
      #how-it-works .step-desc { grid-column: 2; }
      .stats-bar { width: calc(100% - 40px); grid-template-columns: repeat(2, 1fr); margin: 0 20px; padding: 20px; row-gap: 24px; }
      .stat:nth-child(3) { border-left: 0; }
      .trust-strip { width: calc(100% - 40px); margin: 0 20px; padding: 20px; }
      .scan-preview-panel { border-top: 1px solid var(--border); border-left: 0; }
      body:has(.docs-shell) { padding-top: var(--nav-h); }
    }
