:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface2: #1a1a28;
    --surface3: #22223a;
    --border: #2a2a45;
    --green: #00ff41;
    --green-dim: #00cc34;
    --blue: #00aaff;
    --blue-dim: #0088cc;
    --amber: #ffb000;
    --red: #ff3355;
    --purple: #aa55ff;
    --text: #e8e8f0;
    --text-dim: #8888a0;
    --text-muted: #555570;
    --radius: 12px;
    --font-sans: system-ui,-apple-system,sans-serif;
    --font-mono: "SF Mono","Fira Code",Consolas,monospace;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body {
    width: 100%; height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    overflow: hidden;
    user-select: none;
  }
  .viewport {
    width: 100vw; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  /* Scanline overlay */
  body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,65,0.015) 2px, rgba(0,255,65,0.015) 4px);
    pointer-events: none; z-index: 100;
  }

  .deck { position: relative; width: 1920px; height: 1080px; }
  .slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 80px 120px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s ease;
  }
  .slide.active { opacity: 1; pointer-events: auto; }

  /* Nav */
  .nav {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 20px;
    z-index: 50; font-family: var(--font-mono);
    background: rgba(10,10,15,0.8); backdrop-filter: blur(12px);
    padding: 12px 28px; border-radius: 40px;
    border: 1px solid var(--border);
  }
  .nav button {
    background: none; border: none; color: var(--text-dim);
    font-size: 20px; cursor: pointer; padding: 6px 14px;
    border-radius: 8px; transition: all 0.2s;
    font-family: var(--font-mono);
  }
  .nav button:hover { color: var(--green); background: var(--surface2); }
  .nav .counter { color: var(--text-muted); font-size: 14px; min-width: 60px; text-align: center; }
  .nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface3); transition: 0.3s; }
  .nav .dot.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
  .nav .dots { display: flex; gap: 6px; align-items: center; }

  /* Progress bar */
  .progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--green), var(--blue));
    z-index: 60; transition: width 0.4s ease;
  }

  /* Slide backgrounds */
  .slide-bg {
    position: absolute; inset: 0; overflow: hidden; z-index: -1;
  }
  .slide-bg .grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(0,255,65,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,255,65,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
  }

  /* Content */
  .content { position: relative; z-index: 1; width: 100%; max-width: 1600px; }
  h1 {
    font-size: 80px; font-weight: 900; line-height: 1.1;
    letter-spacing: -2px; margin-bottom: 24px;
  }
  h1 .accent { color: var(--green); }
  h1 .blue { color: var(--blue); }
  h1 .amber { color: var(--amber); }
  h1 .red { color: var(--red); }
  h2 {
    font-size: 48px; font-weight: 700; margin-bottom: 20px;
    letter-spacing: -1px;
  }
  h2 .accent { color: var(--green); }
  h2 .blue { color: var(--blue); }
  h2 .amber { color: var(--amber); }
  h2 .red { color: var(--red); }
  h2 .purple { color: var(--purple); }

  h3 .accent { color: var(--green); }
  h3 .blue { color: var(--blue); }
  h3 .amber { color: var(--amber); }
  h3 .red { color: var(--red); }
  h3 .green { color: var(--green); }
  h3 .purple { color: var(--purple); }

  h4 .accent { color: var(--green); }
  h4 .blue { color: var(--blue); }
  h4 .amber { color: var(--amber); }
  h4 .red { color: var(--red); }

  p.subtitle {
    font-size: 24px; color: var(--text-dim); line-height: 1.6;
    max-width: 900px; font-weight: 300;
  }
  p.body {
    font-size: 22px; color: var(--text); line-height: 1.7;
    max-width: 1000px; font-weight: 400;
  }
  .meta {
    font-family: var(--font-mono); font-size: 14px;
    color: var(--text-muted); margin-top: 40px;
  }

  /* Tags */
  .tag {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
    letter-spacing: 0.5px; margin-bottom: 20px;
  }
  .tag-green { background: rgba(0,255,65,0.1); color: var(--green); border: 1px solid rgba(0,255,65,0.2); }
  .tag-blue { background: rgba(0,170,255,0.1); color: var(--blue); border: 1px solid rgba(0,170,255,0.2); }
  .tag-amber { background: rgba(255,176,0,0.1); color: var(--amber); border: 1px solid rgba(255,176,0,0.2); }
  .tag-red { background: rgba(255,51,85,0.1); color: var(--red); border: 1px solid rgba(255,51,85,0.2); }
  .tag-purple { background: rgba(170,85,255,0.1); color: var(--purple); border: 1px solid rgba(170,85,255,0.2); }

  /* Cards grid */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; }
  .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; width: 100%; }
  .grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; width: 100%; }
  .card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px;
    transition: all 0.3s;
  }
  .card:hover { border-color: rgba(0,255,65,0.3); transform: translateY(-2px); }
  .card h3 {
    font-size: 22px; font-weight: 600; margin-bottom: 10px;
  }
  .card p { font-size: 16px; color: var(--text-dim); line-height: 1.6; }
  .card .icon { font-size: 36px; margin-bottom: 16px; display: block; }

  /* Stat callout */
  .stat-row { display: flex; gap: 40px; align-items: center; width: 100%; }
  .stat-big { text-align: center; flex: 1; }
  .stat-big .num {
    font-family: var(--font-mono); font-size: 80px; font-weight: 700;
    line-height: 1; margin-bottom: 8px;
  }
  .stat-big .num.green { color: var(--green); }
  .stat-big .num.red { color: var(--red); }
  .stat-big .num.blue { color: var(--blue); }
  .stat-big .num.amber { color: var(--amber); }
  .stat-big .label { font-size: 18px; color: var(--text-dim); }

  /* Comparison */
  .compare { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 20px; align-items: center; width: 100%; }
  .compare-box {
    background: var(--surface); border-radius: var(--radius); padding: 40px;
    text-align: center; border: 1px solid var(--border);
  }
  .compare-box.bad { border-color: rgba(255,51,85,0.3); background: rgba(255,51,85,0.05); }
  .compare-box.good { border-color: rgba(0,255,65,0.3); background: rgba(0,255,65,0.05); }
  .compare-box h3 { font-size: 24px; margin-bottom: 12px; }
  .compare-box p { font-size: 18px; color: var(--text-dim); }
  .compare-vs { font-size: 28px; font-weight: 800; color: var(--text-muted); font-family: var(--font-mono); }

  /* Shield animation slide */
  .shield-wrap { position: relative; width: 260px; height: 260px; margin-bottom: 30px; }
  .shield {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 100px;
  }
  .shield.pulse {
    animation: pulse 2s ease-in-out infinite;
  }
  .shield.glow-green { box-shadow: 0 0 60px rgba(0,255,65,0.3); }
  .shield.glow-red { box-shadow: 0 0 60px rgba(255,51,85,0.3); }
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  /* Badge/source cite */
  .source {
    font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
    margin-top: 16px; display: block;
  }

  /* Footer on final slide */
  .final-cta {
    display: flex; gap: 20px; margin-top: 40px;
  }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 40px;
    font-family: var(--font-mono); font-size: 16px; font-weight: 600;
    text-decoration: none; transition: all 0.3s; cursor: default;
  }
  .btn-green { background: var(--green); color: var(--bg); }
  .btn-green:hover { box-shadow: 0 0 30px rgba(0,255,65,0.3); }
  .btn-outline { border: 1px solid var(--border); color: var(--text); }
  .btn-outline:hover { border-color: var(--text-dim); }

  /* Timeline */
  .timeline { display: flex; flex-direction: column; gap: 16px; width: 100%; }
  .timeline-item {
    display: flex; gap: 20px; align-items: flex-start;
  }
  .timeline-dot {
    width: 14px; height: 14px; border-radius: 50%;
    margin-top: 6px; flex-shrink: 0;
  }
  .timeline-line {
    width: 2px; flex: 1; margin-left: 6px; min-height: 20px;
  }
  .timeline-content h4 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
  .timeline-content p { font-size: 16px; color: var(--text-dim); line-height: 1.5; }

  /* Type badges for factors */
  .factor-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; width: 100%; }
  .factor-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px; text-align: center;
    transition: all 0.3s;
  }
  .factor-card:hover { transform: translateY(-4px); }
  .factor-icon { font-size: 48px; margin-bottom: 16px; }
  .factor-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
  .factor-card p { font-size: 15px; color: var(--text-dim); line-height: 1.5; }
  .factor-card .factor-tag {
    display: inline-block; padding: 4px 12px; border-radius: 12px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 600;
    margin-top: 12px;
  }

  /* Glitch text effect */
  .glitch { position: relative; }
  .glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; inset: 0;
    opacity: 0.7;
  }
  .glitch::before {
    color: var(--blue); z-index: -1;
    animation: glitch1 3s infinite linear alternate-reverse;
  }
  .glitch::after {
    color: var(--red); z-index: -1;
    animation: glitch2 2.5s infinite linear alternate-reverse;
  }
  @keyframes glitch1 {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -1px); }
    60% { transform: translate(-1px, 3px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
  }
  @keyframes glitch2 {
    0% { transform: translate(0); }
    15% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, 1px); }
    45% { transform: translate(1px, 2px); }
    60% { transform: translate(-3px, -1px); }
    80% { transform: translate(2px, 1px); }
    100% { transform: translate(0); }
  }

  /* MFA flow animation */
  .mfa-flow { display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; padding: 20px 0; }
  .mfa-step { text-align: center; position: relative; }
  .mfa-step .circle {
    width: 90px; height: 90px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; margin: 0 auto 12px;
    border: 2px solid var(--border); background: var(--surface);
    transition: all 0.3s;
  }
  .mfa-step .circle.pass { border-color: var(--green); background: rgba(0,255,65,0.08); }
  .mfa-step .circle.block { border-color: var(--red); background: rgba(255,51,85,0.08); }
  .mfa-step .label { font-size: 14px; color: var(--text-dim); font-family: var(--font-mono); }
  .mfa-arrow { font-size: 28px; color: var(--text-muted); font-family: var(--font-mono); }

  /* Checklist */
  .checklist { list-style: none; width: 100%; }
  .checklist li {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    font-size: 20px; display: flex; align-items: center; gap: 16px;
  }
  .checklist li::before { content: '⬡'; color: var(--green); font-size: 20px; }
  .checklist li.done::before { content: '⬢'; color: var(--green); }
