  :root {
    --void: #191127;
    --abyss: #180f26;
    --deep: #23133a;
    --surface: #1f1232;
    --panel: #2a1647;
    --edge: #5e309d;
    --wire: #3a1c63;
    --pulse: #883CF0;
    --glow: #7b5cff;
    --threat: #b29dce;
    --warn: #af62c8;
    --safe: #a35cff;
    --text: #c8e0f0;
    --muted: #d6d6d6;
    --bright: #e8f4ff;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--void);
    color: var(--text);
    overflow-x: hidden;
    cursor: crosshair;
  }

  /* NOISE TEXTURE OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
  }

  /* CANVAS BACKGROUND */
  #bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
  }

  .page-wrap { position: relative; z-index: 1; }

  /* SCANLINE EFFECT */
  .scanlines {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(0,0,0,0.08) 3px,
      rgba(0,0,0,0.08) 4px
    );
  }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: linear-gradient(to bottom, rgba(6, 2, 8, 0.95), transparent);
    border-bottom: 1px solid #3a1c63;
  }

  .logo {
    font-family: 'Syne Mono', monospace;
    font-size: 1.1rem;
    color: var(--pulse);
    letter-spacing: 0.3em;
    text-shadow: 0 0 20px rgba(128, 0, 255, 0.5);
  }

  .logo span { color: var(--glow); }

  nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
  }

  nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
    font-family: 'Syne Mono', monospace;
  }

  nav a:hover {
    color: var(--pulse);
    text-shadow: 0 0 12px rgba(140, 0, 255, 0.7);
  }

  /* ===== HERO ===== */
  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(183, 0, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(140, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 20s linear infinite;
  }

  @keyframes gridDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
  }

  .hero-tag {
    font-family: 'Syne Mono', monospace;
    font-size: 0.7rem;
    color: var(--glow);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease both;
  }

  .hero-tag::before {
    content: '▶ ';
    animation: blink 1.5s step-end infinite;
  }

  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
  @keyframes fadeUp {
    from { opacity:0; transform: translateY(30px); }
    to { opacity:1; transform: translateY(0); }
  }

  .hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    animation: fadeUp 1s 0.2s ease both;
  }

  .hero-title .line1 { color: var(--bright); }
  .hero-title .line2 {
    color: transparent;
    -webkit-text-stroke: 1px rgba(144, 0, 255, 0.4);
    position: relative;
  }
  .hero-title .line3 {
    color: var(--pulse);
    text-shadow: 0 0 60px rgba(119, 0, 255, 0.4);
  }

  .hero-sub {
    max-width: 520px;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 2rem 0 3rem;
    animation: fadeUp 1s 0.4s ease both;
    border-left: 2px solid var(--wire);
    padding-left: 1.5rem;
  }

  .hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeUp 1s 0.6s ease both;
  }

  .stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .stat-num {
    font-family: 'Syne Mono', monospace;
    font-size: 2.2rem;
    color: var(--threat);
    text-shadow: 0 0 20px rgba(193, 60, 255, 0.5);
    font-weight: 700;
  }

  .stat-num.green { color: var(--safe); text-shadow: 0 0 20px rgba(166, 0, 255, 0.5); }
  .stat-num.amber { color: var(--warn); text-shadow: 0 0 20px rgba(157, 0, 255, 0.5); }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: 'Syne Mono', monospace;
  }

  .scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeUp 1s 1s ease both;
  }

  .scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--pulse), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }

  @keyframes scrollPulse {
    0%,100% { opacity:0.3; transform: scaleY(1); }
    50% { opacity:1; transform: scaleY(1.2); }
  }

  /* ===== SECTION BASE ===== */
  section {
    padding: 7rem 3rem;
    position: relative;
  }

  .section-label {
    font-family: 'Syne Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--pulse);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
  }

  .section-label.visible { opacity:1; transform:translateY(0); }

  h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--bright);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.1s ease;
  }

  h2.visible { opacity:1; transform:translateY(0); }

  /* ===== THREAT MAP ===== */
  #threat-map {
    background: linear-gradient(to bottom, var(--void), var(--abyss));
  }

  .threat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
  }

  .threat-visual {
    position: relative;
    height: 420px;
  }

  #threat-canvas {
    width: 100%;
    height: 100%;
    border: 1px solid var(--edge);
    border-radius: 4px;
    background: var(--abyss);
  }

  .threat-list { display: flex; flex-direction: column; gap: 1rem; }

  .threat-item {
    background: var(--panel);
    border: 1px solid var(--edge);
    border-left: 3px solid var(--threat);
    padding: 1.2rem 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateX(20px);
  }

  .threat-item.visible { opacity:1; transform:translateX(0); }
  .threat-item.amber-border { border-left-color: var(--warn); }
  .threat-item.green-border { border-left-color: var(--safe); }

  .threat-item:hover {
    background: var(--surface);
    border-color: var(--wire);
    transform: translateX(-4px);
    box-shadow: 4px 0 20px rgba(157, 0, 255, 0.1);
  }

  .threat-item h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--bright);
    margin-bottom: 0.4rem;
  }

  .threat-item p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

  .threat-badge {
    display: inline-block;
    font-family: 'Syne Mono', monospace;
    font-size: 0.6rem;
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
  }

  .badge-critical { background: #cb56f90a; color: var(--threat); border: 1px solid #5e309d; }
  .badge-high { background: #cb56f90a; color: var(--warn); border: 1px solid #5e309d; }
  .badge-medium { background: #cb56f90a; color: var(--safe); border: 1px solid #5e309d; }

  /* ===== PAM ARCHITECTURE ===== */
  #pam-arch {
    background: var(--abyss);
    overflow: hidden;
  }

  .arch-intro {
    max-width: 600px;
    color: var(--muted);
    line-height: 1.8;
    margin-top: 1.5rem;
    font-size: 0.95rem;
  }

  .arch-diagram {
    margin-top: 4rem;
    position: relative;
  }

  .arch-layers {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .arch-layer {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: stretch;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s ease;
  }

  .arch-layer.visible { opacity:1; transform:translateX(0); }

  .layer-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
    font-family: 'Syne Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    border-right: 2px solid var(--edge);
    min-height: 80px;
  }

  .layer-content {
    display: flex;
    gap: 1rem;
    padding: 1rem 0 1rem 2rem;
    flex-wrap: wrap;
  }

  .layer-card {
    background: var(--panel);
    border: 1px solid var(--edge);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }

  .layer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(157, 0, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
  }

  .layer-card:hover { border-color: var(--pulse); transform: translateY(-3px); box-shadow: 0 8px 30px #be52e50f; }
  .layer-card:hover::before { opacity:1; }

  .layer-card .card-icon { font-size: 1.2rem; margin-bottom: 0.3rem; }
  .layer-card .card-name { font-size: 0.75rem; font-weight: 600; color: var(--bright); letter-spacing: 0.05em; }
  .layer-card .card-desc { font-size: 0.65rem; color: var(--muted); margin-top: 0.2rem; max-width: 140px; line-height: 1.4; }

  .layer-pam .layer-label { color: var(--pulse); }
  .layer-pam .layer-card { border-color: #3a1c63; }
  .layer-iam .layer-label { color: var(--glow); }
  .layer-threat .layer-label { color: var(--warn); }
  .layer-zero .layer-label { color: var(--safe); }

  /* ===== INSIDER THREATS ===== */
  #insider {
    background: linear-gradient(to bottom, var(--abyss), var(--deep));
  }

  .insider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .insider-card {
    background: var(--panel);
    border: 1px solid var(--edge);
    padding: 1.8rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
  }

  .insider-card.visible { opacity:1; transform:translateY(0); }

  .insider-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--threat);
    transition: width 0.4s ease;
  }

  .insider-card:hover { border-color: var(--edge); box-shadow: 0 0 30px rgba(216, 60, 255, 0.1); }
  .insider-card:hover::after { width: 100%; }

  .insider-num {
    font-family: 'Syne Mono', monospace;
    font-size: 2.5rem;
    color: #cb56f90a;
    position: absolute;
    top: 1rem; right: 1.2rem;
    font-weight: 700;
    line-height: 1;
  }

  .insider-card h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bright);
    margin-bottom: 0.6rem;
    margin-top: 0.5rem;
  }

  .insider-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }

  /* ===== ZERO TRUST ===== */
  #zero-trust {
    background: var(--deep);
  }

  .zt-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 3rem;
    align-items: center;
  }

  .zt-visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .zt-rings {
    position: relative;
    width: 300px;
    height: 300px;
  }

  .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateRing linear infinite;
  }

  .ring-1 { inset: 0; border-color: rgba(153, 0, 255, 0.3); animation-duration: 30s; }
  .ring-2 { inset: 30px; border-color: rgba(174, 0, 255, 0.25); animation-duration: 20s; animation-direction: reverse; }
  .ring-3 { inset: 60px; border-color: rgba(217, 0, 255, 0.2); animation-duration: 15s; }
  .ring-4 { inset: 90px; border-color: rgba(213, 60, 255, 0.2); animation-duration: 10s; animation-direction: reverse; }

  @keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .ring-dot {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    top: -4px; left: calc(50% - 4px);
  }

  .ring-1 .ring-dot { background: var(--safe); box-shadow: 0 0 12px var(--safe); }
  .ring-2 .ring-dot { background: var(--pulse); box-shadow: 0 0 12px var(--pulse); }
  .ring-3 .ring-dot { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
  .ring-4 .ring-dot { background: var(--threat); box-shadow: 0 0 12px var(--threat); }

  .ring-center {
    position: absolute;
    inset: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(136, 0, 255, 0.1), rgba(153, 0, 255, 0.03));
    border: 2px solid var(--pulse);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 0.2rem;
  }

  .ring-center-label {
    font-family: 'Syne Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--pulse);
    text-transform: uppercase;
  }

  .ring-center-value {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--bright);
    line-height: 1.1;
    text-align: center;
    padding: 0 0.5rem;
  }

  .zt-principles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .zt-principle {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease;
  }

  .zt-principle.visible { opacity:1; transform:translateX(0); }

  .zt-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: var(--panel);
    border: 1px solid var(--edge);
  }

  .zt-principle h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bright);
    margin-bottom: 0.3rem;
  }

  .zt-principle p { font-size: 0.77rem; color: var(--muted); line-height: 1.6; }

  /* ===== INTERACTIVE QUIZ ===== */
  #quiz-section {
    background: linear-gradient(to bottom, var(--deep), var(--void));
  }

  .quiz-wrap {
    max-width: 700px;
    margin: 3rem auto 0;
  }

  .quiz-card {
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
  }

  .quiz-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--threat), var(--pulse), var(--glow));
  }

  .quiz-progress {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .q-dot {
    flex: 1;
    height: 3px;
    background: var(--edge);
    border-radius: 2px;
    transition: background 0.4s;
  }

  .q-dot.done { background: var(--pulse); }
  .q-dot.active { background: var(--glow); animation: pulseDot 1s ease infinite; }

  @keyframes pulseDot {
    0%,100% { opacity:1; } 50% { opacity:0.4; }
  }

  .quiz-q {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bright);
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .quiz-q span {
    font-family: 'Syne Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
  }

  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .quiz-opt {
    background: var(--surface);
    border: 1px solid var(--edge);
    padding: 0.9rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: var(--text);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Space Grotesk', sans-serif;
  }

  .quiz-opt:hover { border-color: var(--pulse); background: #1f1232; }
  .quiz-opt.correct { border-color: #77b255; background: #77b25520; color: #60c090; }
  .quiz-opt.wrong { border-color: #dc143c; background: #dc143c2b; color: #ff7a90; }

  .opt-letter {
    font-family: 'Syne Mono', monospace;
    font-size: 0.7rem;
    width: 22px; height: 22px;
    border: 1px solid var(--edge);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--muted);
  }

  .quiz-feedback {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.6;
    display: none;
  }

  .quiz-feedback.show { display: block; }
  .quiz-feedback.correct { background: #77b25520; border: 1px solid #77b255; color: #60c090; }
  .quiz-feedback.wrong { background: #dc143c2b; border: 1px solid #dc143c; color: #ff7a90; }

  .quiz-next {
    margin-top: 1.5rem;
    background: transparent;
    border: 1px solid var(--pulse);
    color: var(--pulse);
    padding: 0.7rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Syne Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.25s;
    display: none;
  }

  .quiz-next:hover { background: var(--pulse); color: var(--void); }
  .quiz-next.show { display: inline-block; }

  .quiz-score {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
  }

  .quiz-score.show { display: block; }

  .score-num {
    font-family: 'Syne Mono', monospace;
    font-size: 5rem;
    color: var(--pulse);
    text-shadow: 0 0 40px rgba(157, 0, 255, 0.5);
    line-height: 1;
  }

  .score-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0.5rem 0 2rem;
    letter-spacing: 0.1em;
    font-family: 'Syne Mono', monospace;
  }

  .score-msg {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 2rem;
  }

  .btn-restart {
    background: transparent;
    border: 1px solid var(--glow);
    color: var(--glow);
    padding: 0.7rem 2.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Syne Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.25s;
  }

  .btn-restart:hover { background: var(--glow); color: var(--void); }

  /* ===== FOOTER ===== */
  footer {
    background: var(--void);
    border-top: 1px solid var(--edge);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .footer-logo { font-family: 'Syne Mono', monospace; color: var(--pulse); font-size: 1rem; letter-spacing: 0.3em; }
  .footer-copy { font-size: 0.7rem; color: var(--muted); text-align: center; font-family: 'Syne Mono', monospace; }

  .footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
  }

  .footer-links a {
    font-size: 0.7rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Syne Mono', monospace;
    transition: color 0.3s;
  }

  .footer-links a:hover { color: var(--pulse); }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    nav ul { display: none; }
    #hero { padding: 7rem 1.5rem 3rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    section { padding: 4rem 1.5rem; }
    .threat-grid, .zt-layout { grid-template-columns: 1fr; }
    footer { grid-template-columns: 1fr; text-align: center; }
    .footer-links { justify-content: center; }
  }

  /* GLOW PULSE ANIMATION FOR ELEMENTS */
  @keyframes glowPulse {
    0%,100% { box-shadow: 0 0 10px rgba(157, 0, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.5); }
  }