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

  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
  }
  .nav-logo span { color: var(--accent); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
  }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.77rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--accent); }

  /* GitHub Login Button */
  .btn-github {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--text);
    color: var(--bg);
    padding: .5rem 1.3rem;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .22s;
    white-space: nowrap;
  }
  .btn-github:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232,237,248,.18);
  }
  .btn-github svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
    z-index: 1;
    overflow: hidden;
  }

  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
  }
  .orb1 {
    width: 700px; height: 700px;
    background: rgba(79,142,247,.11);
    top: -150px; left: 50%;
    transform: translateX(-55%);
    animation: orbPulse1 9s ease-in-out infinite;
  }
  .orb2 {
    width: 450px; height: 450px;
    background: rgba(0,212,170,.08);
    bottom: -50px; right: -120px;
    animation: orbPulse2 11s ease-in-out infinite;
  }
  .orb3 {
    width: 320px; height: 320px;
    background: rgba(167,139,250,.07);
    bottom: 120px; left: -80px;
    animation: orbPulse2 13s ease-in-out infinite reverse;
  }

  @keyframes orbPulse1 {
    0%, 100% { opacity: .55; transform: translateX(-55%) scale(1); }
    50% { opacity: .9; transform: translateX(-55%) scale(1.06); }
  }
  @keyframes orbPulse2 {
    0%, 100% { opacity: .45; transform: scale(1); }
    50% { opacity: .8; transform: scale(1.09); }
  }

  /* Floating code particles */
  .hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .particle {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    color: rgba(79,142,247,.18);
    animation: floatUp linear infinite;
    white-space: nowrap;
  }

  @keyframes floatUp {
    from { transform: translateY(100vh) rotate(-5deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { transform: translateY(-20vh) rotate(5deg); opacity: 0; }
  }

  .hero-inner { position: relative; z-index: 2; max-width: 860px; }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(79,142,247,.08);
    border: 1px solid rgba(79,142,247,.22);
    color: var(--accent);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .35rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 2.2rem;
    animation: fadeUp .8s ease both;
  }
  .hero-tag-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent2);
    animation: blink 1.5s step-end infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  .hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7.5vw, 6.8rem);
    line-height: .95;
    letter-spacing: -.03em;
    animation: fadeUp .8s .1s ease both;
  }
  .hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero h1 .em2 {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent3), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-subtitle {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: var(--muted);
    max-width: 580px;
    margin: 1.75rem auto 0;
    animation: fadeUp .8s .2s ease both;
    line-height: 1.5;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeUp .8s .3s ease both;
  }

  .btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent);
    color: var(--bg);
    padding: .8rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: .88rem;
    letter-spacing: .04em;
    transition: all .22s;
    border: none; cursor: pointer;
  }
  .btn-primary:hover {
    background: #7ab0ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(79,142,247,.35);
  }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent;
    color: var(--text);
    padding: .8rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: .88rem;
    letter-spacing: .04em;
    border: 1px solid var(--border);
    transition: all .22s;
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

  /* ── TRIGGER PILL ── */
  .trigger-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 3.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .8rem 1.5rem;
    font-size: .8rem;
    color: var(--muted);
    animation: fadeUp .8s .45s ease both;
  }
  .trigger-pill code {
    color: var(--accent2);
    background: rgba(0,212,170,.08);
    padding: .1rem .45rem;
    border-radius: 4px;
    font-size: .82rem;
  }
  .trigger-pill-arrow { color: var(--accent); margin: 0 .25rem; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── SHARED ── */
  section { position: relative; z-index: 1; }
  .container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

  .section-label {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
  }

  h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -.02em;
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ── STATS STRIP ── */
  .stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .stat {
    padding: 1rem 2rem;
    border-right: 1px solid var(--border);
    text-align: center;
  }
  .stat:last-child { border-right: none; }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .stat-label { font-size: .7rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; margin-top: .3rem; }

  /* ── HOW IT WORKS ── */
  .how-section { padding: 9rem 0; }
  .how-header { text-align: center; margin-bottom: 5rem; }
  .how-header p { color: var(--muted); max-width: 520px; margin: 1rem auto 0; font-size: .88rem; }

  .pipeline {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin: 0 auto;
  }
  .pipeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 44px;
    bottom: 44px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3), var(--accent));
    opacity: .25;
  }

  .pipeline-step {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 12px;
    transition: background .25s;
    cursor: default;
  }
  .pipeline-step:hover { background: rgba(79,142,247,.04); }

  .step-icon {
    width: 64px; height: 64px; min-width: 64px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface2);
    position: relative;
    z-index: 1;
    transition: border-color .25s, box-shadow .25s;
  }
  .pipeline-step:hover .step-icon {
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(79,142,247,.22);
  }

  .step-content { padding-top: .5rem; }
  .step-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .35rem;
  }
  .step-desc { color: var(--muted); font-size: .82rem; line-height: 1.75; }
  .step-tag {
    display: inline-block;
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .15rem .55rem;
    border-radius: 4px;
    margin-top: .55rem;
  }
  .tag-blue { background: rgba(79,142,247,.1); color: var(--accent); }
  .tag-green { background: rgba(0,212,170,.1); color: var(--accent2); }
  .tag-purple { background: rgba(167,139,250,.1); color: var(--accent3); }

  /* ── TRIGGER DEMO ── */
  .trigger-section { padding: 9rem 0; text-align: center; }
  .trigger-section > .container > .reveal > p {
    color: var(--muted);
    max-width: 480px;
    margin: 1rem auto 0;
    font-size: .88rem;
  }

  .demo-wrap {
    max-width: 640px;
    margin: 4rem auto 0;
    text-align: left;
    animation: fadeUp .7s .2s ease both;
  }

  .gh-mock {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .gh-mock-header {
    background: var(--surface2);
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid var(--border);
    font-size: .77rem;
    color: var(--muted);
  }
  .gh-issue-dot { width: 10px; height: 10px; border-radius: 50%; background: #238636; flex-shrink: 0; }
  .issue-open-badge {
    margin-left: auto;
    color: #3fb950;
    font-size: .7rem;
    border: 1px solid rgba(63,185,80,.35);
    padding: .1rem .5rem;
    border-radius: 100px;
  }
  .gh-mock-body { padding: 1.5rem; }
  .comment-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
  .comment-row:last-child { margin-bottom: 0; }
  .c-avatar {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
  }
  .c-avatar.sylus-av {
    background: rgba(79,142,247,.08);
    border-color: rgba(79,142,247,.3);
  }
  .c-body { flex: 1; }
  .c-meta { font-size: .72rem; color: var(--muted); margin-bottom: .5rem; }
  .c-meta strong { color: var(--text); }
  .c-text { font-size: .8rem; color: var(--muted); line-height: 1.75; }
  .c-text code {
    background: rgba(79,142,247,.1);
    color: var(--accent);
    padding: .05rem .35rem;
    border-radius: 3px;
    font-size: .78rem;
  }
  .c-text .mention { color: var(--accent); }

  .sylus-status {
    margin-top: .75rem;
    padding: .65rem 1rem;
    background: rgba(79,142,247,.06);
    border: 1px solid rgba(79,142,247,.18);
    border-radius: 7px;
    font-size: .78rem;
    color: var(--muted);
  }
  .sylus-status strong { color: var(--accent); }

  .pr-merged-banner {
    margin-top: .75rem;
    padding: .6rem 1rem;
    background: rgba(0,212,170,.07);
    border: 1px solid rgba(0,212,170,.22);
    border-radius: 7px;
    font-size: .78rem;
    color: var(--accent2);
  }

  /* ── CAPABILITIES ── */
  .capabilities-section { padding: 9rem 0; }
  .capabilities-header { text-align: center; margin-bottom: 4rem; }
  .capabilities-header p { color: var(--muted); max-width: 520px; margin: 1rem auto 0; font-size: .88rem; }

  .cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  .cap-card {
    background: var(--surface);
    padding: 2rem;
    transition: background .22s;
    position: relative;
    overflow: hidden;
  }
  .cap-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    opacity: 0;
    transition: opacity .25s;
  }
  .cap-card:hover { background: var(--surface2); }
  .cap-card:hover::after { opacity: 1; }
  .cap-card.c-blue::after { background: linear-gradient(90deg, var(--accent), transparent); }
  .cap-card.c-green::after { background: linear-gradient(90deg, var(--accent2), transparent); }
  .cap-card.c-purple::after { background: linear-gradient(90deg, var(--accent3), transparent); }

  .cap-icon {
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
    display: block;
  }
  .cap-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
  }
  .cap-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; }

  /* ── TESTING ── */
  .testing-section { padding: 9rem 0; background: linear-gradient(to bottom, transparent, var(--surface) 20%, var(--surface) 80%, transparent); }
  .testing-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  .testing-text h2 { margin-bottom: 1.25rem; }
  .testing-text p { color: var(--muted); font-size: .86rem; line-height: 1.85; margin-bottom: 1.2rem; }

  .test-types {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1.5rem;
  }
  .test-type {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color .22s, box-shadow .22s;
  }
  .test-type:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(79,142,247,.1);
  }
  .tt-icon {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
  }
  .tt-info strong { display: block; font-size: .85rem; margin-bottom: .25rem; }
  .tt-info span { font-size: .77rem; color: var(--muted); line-height: 1.6; }

  .test-visual {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  .tv-bar {
    background: var(--surface2);
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--muted);
  }
  .tv-dot { width: 9px; height: 9px; border-radius: 50%; }
  .tv-title { margin-left: auto; }
  .tv-body { padding: 1.25rem 1.5rem; font-size: .78rem; }
  .tv-line { padding: .25rem 0; line-height: 1.7; }
  .tv-pass { color: var(--accent2); }
  .tv-run { color: var(--accent); }
  .tv-muted { color: var(--muted); }
  .tv-comment { color: #3d5478; }
  .tv-indent { padding-left: 1.25rem; }
  .tv-separator { border-top: 1px solid var(--border); margin: .75rem 0; }
  .tv-summary {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--muted);
    margin-top: .5rem;
  }
  .tv-summary span:first-child { color: var(--accent2); }

  /* ── MULTI-ROLE ── */
  .roles-section { padding: 9rem 0; }
  .roles-header { text-align: center; margin-bottom: 4rem; }
  .roles-header p { color: var(--muted); max-width: 520px; margin: 1rem auto 0; font-size: .88rem; }

  .roles-diagram {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
  }

  .role-center {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79,142,247,.15), rgba(0,212,170,.1));
    border: 2px solid rgba(79,142,247,.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
    font-size: 1.8rem;
    position: relative;
    box-shadow: 0 0 40px rgba(79,142,247,.15);
    animation: rotateGlow 5s ease-in-out infinite;
  }
  .role-center span {
    font-family: 'Syne', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: .2rem;
  }

  @keyframes rotateGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(79,142,247,.15); }
    50% { box-shadow: 0 0 60px rgba(79,142,247,.28), 0 0 80px rgba(0,212,170,.1); }
  }

  .roles-ring {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .role-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color .22s, transform .22s, box-shadow .22s;
    cursor: default;
  }
  .role-node:hover {
    border-color: var(--accent3);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(167,139,250,.12);
  }
  .role-node-icon { font-size: 1.5rem; margin-bottom: .75rem; }
  .role-node-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: .4rem;
  }
  .role-node-desc { font-size: .74rem; color: var(--muted); line-height: 1.6; }

  /* ── GITHUB PROTOCOL ── */
  .protocol-section { padding: 9rem 0; }
  .protocol-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  .protocol-text h2 { margin-bottom: 1.25rem; }
  .protocol-text p { color: var(--muted); font-size: .86rem; line-height: 1.85; margin-bottom: 1.2rem; }
  .check-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
  .check-list li {
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: .55rem;
  }
  .check-list li::before { content: '✦'; color: var(--accent2); margin-top: .15rem; flex-shrink: 0; }

  .protocol-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  .pv-bar {
    background: var(--surface2);
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--muted);
  }
  .pv-body { padding: 1.25rem 1.5rem; font-size: .78rem; }
  .pv-line { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid rgba(30,42,69,.5); }
  .pv-line:last-child { border-bottom: none; }
  .pv-status {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  }
  .s-done { background: var(--accent2); }
  .s-active { background: var(--accent); animation: blink 1s step-end infinite; }
  .s-wait { background: var(--border); }
  .pv-label { flex: 1; color: var(--muted); }
  .pv-label strong { color: var(--text); display: block; }
  .pv-badge {
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .15rem .5rem;
    border-radius: 3px;
  }
  .b-done { background: rgba(0,212,170,.1); color: var(--accent2); }
  .b-active { background: rgba(79,142,247,.1); color: var(--accent); }
  .b-wait { background: rgba(107,127,163,.08); color: var(--muted); }

  /* ── CTA ── */
  .cta-section {
    padding: 9rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,142,247,.12), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .cta-section h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
  }
  .cta-section p {
    color: var(--muted);
    font-size: .9rem;
    max-width: 440px;
    margin: 0 auto 2.5rem;
  }
  .cta-github-btn {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    background: var(--text);
    color: var(--bg);
    padding: .95rem 2.5rem;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    transition: all .22s;
    border: none;
    cursor: pointer;
  }
  .cta-github-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232,237,248,.2);
  }
  .cta-github-btn svg { width: 20px; height: 20px; }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
  }
  .footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: .04em;
    margin-bottom: .5rem;
  }
  .footer-logo span { color: var(--accent); }
  .footer-tagline { color: var(--muted); font-size: .78rem; margin-bottom: 2rem; }
  .footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
  .footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color .2s;
  }
  .footer-links a:hover { color: var(--accent); }
  .footer-copy { font-size: .7rem; color: #3d5478; }


  /* ── AUTH OVERLAY (loading + error) ── */
  .auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .auth-overlay.active { display: flex; }

  .auth-overlay-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
  }
  .orb-a {
    width: 500px; height: 500px;
    background: rgba(79, 142, 247, 0.1);
    top: -100px; left: 50%;
    transform: translateX(-50%);
    animation: orbPulse1 8s ease-in-out infinite;
  }
  .orb-b {
    width: 300px; height: 300px;
    background: rgba(0, 212, 170, 0.07);
    bottom: -60px; right: 10%;
    animation: orbPulse2 11s ease-in-out infinite;
  }
  .orb-err {
    background: rgba(247, 79, 100, 0.09) !important;
  }

  .auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3rem 3.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    animation: fadeUp 0.4s ease both;
  }
  .auth-card-err { border-color: rgba(247, 79, 100, 0.3); }

  .auth-spinner {
    width: 52px; height: 52px;
    margin-bottom: 0.75rem;
    animation: spinnerRotate 1s linear infinite;
  }
  .auth-spinner svg { width: 100%; height: 100%; }

  @keyframes spinnerRotate {
    to { transform: rotate(360deg); }
  }

  .auth-err-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(247, 79, 100, 0.1);
    border: 1px solid rgba(247, 79, 100, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #f74f64;
    margin-bottom: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
  }

  .auth-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.1rem;
  }
  .auth-logo span { color: var(--accent); }

  .auth-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin: 0;
  }
  .auth-sub {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0.15rem 0 0.5rem;
    max-width: 260px;
  }

  .auth-dots {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.75rem;
  }
  .auth-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.25;
    animation: dotPulse 1.4s ease-in-out infinite;
  }
  .auth-dots span:nth-child(2) { animation-delay: 0.22s; }
  .auth-dots span:nth-child(3) { animation-delay: 0.44s; }

  @keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
  }

  .auth-err-actions { margin-top: 1rem; }

  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3) { border-right: 1px solid var(--border); }
    .cap-grid { grid-template-columns: 1fr 1fr; }
    .testing-inner { grid-template-columns: 1fr; gap: 3rem; }
    .protocol-inner { grid-template-columns: 1fr; gap: 3rem; }
    .roles-ring { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .cap-grid { grid-template-columns: 1fr; }
    .roles-ring { grid-template-columns: 1fr 1fr; }
  }
  .footer-ai-disclosure { font-size: .68rem; color: #3d5478; margin-top: .6rem; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.5; }
  .nav-logo-img { height: 2rem; width: auto; display: block; }
  .footer-logo-img { height: 2.4rem; width: auto; display: block; margin: 0 auto .5rem; }
