  :root {
    --gold: #883CF0;
    --gold-bright: #873cf0c4;
    --red: #7b5cff;
    --teal: #af62c8;
    --dim: #191127;
    --card-bg: #23133a;
    --surface: #1f1232;
    --border: #3a1c63;
    --text: #e8eaf6;
    --muted: #d6d6d6;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  .cybersecurity-casino {
    background: var(--dim);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    cursor: none;
    height:100vh;
  }

  /* Custom cursor */
  #cursor {
    position: fixed;
    width: 10px; height: 10px;
    background: var(--gold-bright);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
  }
  #cursor-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transition: all 0.18s ease;
    transform: translate(-50%,-50%);
  }

  /* Grain overlay */
  .cybersecurity-casino::before {
    content: '';
    position: absolute;
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.35;
  }

  /* ─── NAV ─── */
  .cybersecurity-casino nav {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: linear-gradient(to bottom, #180f26, transparent);
    backdrop-filter: blur(4px);
  }
  .nav-logo {
    
    font-size: 1.6rem;
    
    color: var(--gold);
    text-decoration: none;
  }
  .nav-logo span { color: var(--teal); }
  .nav-links { display: flex; gap: 32px; list-style: none; }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.72rem;
    
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--gold-bright); }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 48px 80px;
    text-align: center;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% 110%, rgba(161, 76, 201, 0.08) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 80% 20%, rgba(245, 0, 237, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201, 57, 230, 0.04) 0%, transparent 60%);
  }

  /* Rotating card suits */
  .suit-bg {
    position: absolute;
    font-size: clamp(80px, 15vw, 180px);
    opacity: 0.03;
    user-select: none;
    animation: floatSuit 20s infinite linear;
  }
  .suit-bg:nth-child(1) { top: 10%; left: 5%; animation-duration: 25s; animation-delay: 0s; }
  .suit-bg:nth-child(2) { top: 60%; left: 85%; animation-duration: 30s; animation-delay: -8s; }
  .suit-bg:nth-child(3) { top: 30%; left: 50%; animation-duration: 20s; animation-delay: -5s; font-size: 240px; }
  .suit-bg:nth-child(4) { top: 75%; left: 15%; animation-duration: 22s; animation-delay: -12s; }

  @keyframes floatSuit {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
  }

  /* Scan line */
  .scanline {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0.4;
    animation: scan 6s linear infinite;
  }
  @keyframes scan {
    from { top: -2px; }
    to { top: 100%; }
  }

  .hero-eyebrow {
    
    font-size: 0.7rem;
    
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
  }

  .hero-title {
    
    font-size: clamp(3.5rem, 9vw, 8.5rem);
    font-weight: 900;
    line-height: 0.92;
    color: var(--gold);
    text-shadow: 0 0 80px #be52e50f;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.5s forwards;
    position: relative;

  }
  .hero-title .break { display: block; }
  .hero-title .accent { color: var(--text); font-style: italic; }

  .hero-sub {
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--muted);
    max-width: 560px;
    margin: 28px auto 48px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.7s forwards;
  }

  .hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.9s forwards;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .btn-primary {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 14px 36px;
    
    font-size: 0.75rem;
    
    text-transform: uppercase;
    cursor: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: background 0.2s, transform 0.2s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }

  .btn-ghost {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 14px 36px;
    
    font-size: 0.75rem;
    
    text-transform: uppercase;
    cursor: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
  }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

  /* Stats strip */
  .stats-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 48px;
    position: relative;
  }
  .stat-block {
    text-align: center;
    padding: 32px 48px;
    border: 1px solid var(--border);
    border-right: none;
    background: var(--card-bg);
    flex: 1;
    max-width: 220px;
    position: relative;
    overflow: hidden;
  }
  .stat-block:last-child { border-right: 1px solid var(--border); }
  .stat-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .stat-block:hover::before { opacity: 1; }
  .stat-num {
    
    font-size: 3rem;
    color: var(--gold);
    
    display: block;
  }
  .stat-label {
    font-size: 0.65rem;
    
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
  }

  /* ─── SECTION SCAFFOLDING ─── */
  .cybersecurity-casino section { padding: 100px 48px; position: relative; }

  .section-tag {
    font-size: 0.65rem;
    
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
    display: block;
  }

  .section-title {
    
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1.05;
    max-width: 700px;
  }

  .divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 24px 0;
  }

  /* ─── WHY PAM SECTION ─── */
  #why-pam { background: var(--surface); }

  .pam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 60px;
  }

  .pam-card {
    background: var(--card-bg);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    cursor: none;
  }
  .pam-card:hover { background: #1f1232; }
  .pam-card::after {
    content: attr(data-num);
    position: absolute;
    bottom: -10px; right: 10px;
    
    font-size: 7rem;
    color: rgba(172, 76, 201, 0.04);
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s;
  }
  .pam-card:hover::after { color: rgba(161, 76, 201, 0.08); }

  .pam-card-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
    display: block;
  }
  .pam-card h3 {
    
    font-size: 1.4rem;
    
    color: var(--gold);
    margin-bottom: 16px;
  }
  .pam-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pam-card ul li {
    font-size: 0.72rem;
    color: var(--muted);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
  }
  .pam-card ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold);
  }

  /* ─── THREATS REEL ─── */
  #threats { overflow: hidden; }

  .threats-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }

  .threats-track-wrap { overflow: hidden; margin-top: 56px; position: relative; }
  .threats-track-wrap::before,
  .threats-track-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    pointer-events: none;
  }
  .threats-track-wrap::before { left: 0; background: linear-gradient(to right, var(--dim), transparent); }
  .threats-track-wrap::after { right: 0; background: linear-gradient(to left, var(--dim), transparent); }

  .threats-track {
    display: flex;
    gap: 20px;
    animation: scroll 28s linear infinite;
    width: max-content;
  }
  .threats-track:hover { animation-play-state: paused; }

  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .threat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    width: 260px;
    flex-shrink: 0;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    cursor: none;
  }
  .threat-card:hover { border-color: var(--gold); transform: translateY(-4px); }
  .threat-card .threat-badge {
    display: inline-block;
    background: rgba(230,57,70,0.15);
    border: 1px solid rgba(230,57,70,0.3);
    color: var(--red);
    font-size: 0.6rem;
    
    text-transform: uppercase;
    padding: 3px 10px;
    margin-bottom: 14px;
  }
  .threat-card .threat-badge.teal {
    background: rgba(0,245,212,0.1);
    border-color: rgba(0,245,212,0.25);
    color: var(--teal);
  }
  .threat-card h4 {
    
    font-size: 1.2rem;
    
    color: var(--text);
    margin-bottom: 10px;
  }
  .threat-card p {
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.7;
  }
  .threat-level {
    margin-top: 16px;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
  }
  .threat-level-fill {
    height: 100%;
    border-radius: 2px;
  }

  /* ─── PHASES TIMELINE ─── */
  #phases { background: var(--surface); }

  .phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    margin-top: 60px;
  }

  @media (max-width: 900px) {
    .phases-grid { grid-template-columns: 1fr 1fr; }
    .pam-grid { grid-template-columns: 1fr 1fr; }
    .cybersecurity-casino nav { padding: 16px 24px; }
    .nav-links { display: none; }
    .cybersecurity-casino section { padding: 72px 24px; }
    .stats-strip { flex-wrap: wrap; padding: 0 24px; }
    .stat-block { min-width: 140px; }
    .table-wrap { overflow-x: auto; }
    #hero { padding: 100px 24px 60px; }
  }

  @media (max-width: 600px) {
    .phases-grid { grid-template-columns: 1fr; }
    .pam-grid { grid-template-columns: 1fr; }
  }

  .phase-card {
    background: var(--card-bg);
    padding: 40px 28px;
    position: relative;
    cursor: none;
    transition: background 0.3s;
  }
  .phase-card:hover { background: #1f1232; }

  .phase-num {
    
    font-size: 0.8rem;
    
    color: var(--teal);
    display: block;
    margin-bottom: 10px;
  }
  .phase-card h3 {
    
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
  }
  .phase-card p {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .phase-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .phase-tag {
    font-size: 0.6rem;
    
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.2s;
  }
  .phase-card:hover .phase-tag { border-color: #5e309d; color: var(--gold); }

  .table-wrap {
    margin-top: 60px;
    overflow-x: auto;
  }

  .cybersecurity-casino table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
  }

  .cybersecurity-casino thead tr {
    background: var(--gold);
    color: #000;
  }

  .cybersecurity-casino thead th {
    padding: 16px 20px;
    text-align: left;
    
    
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 500;
  }
  
  .cybersecurity-casino tbody tr {
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    transition: background 0.2s;
  }

  .cybersecurity-casino tbody tr:hover { background: var(--surface); }
  .cybersecurity-casino tbody td {
    padding: 18px 20px;
    color: var(--muted);
    line-height: 1.5;
  }

  .cybersecurity-casino tbody td:first-child { color: var(--text); font-weight: 500; }
  
  .product-badge {
    display: inline-block;
    background: #291a3e;
    border: 1px solid #3a1c63;
    color: var(--gold);
    font-size: 0.6rem;
    
    padding: 2px 8px;
    white-space: nowrap;
  }

  /* ─── SECURITY PILLARS ─── */
  #pillars { background: var(--surface); }

  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
  }

  .pillar-card {
    border: 1px solid var(--border);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    cursor: none;
    background: var(--card-bg);
    transition: border-color 0.3s;
  }
  .pillar-card:hover { border-color: var(--gold); }

  .pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }
  .pillar-card:hover::before { transform: scaleX(1); }

  .pillar-number {
    
    font-size: 4rem;
    color: rgba(157, 76, 201, 0.08);
    position: absolute;
    top: 10px; right: 20px;
    line-height: 1;
    transition: color 0.3s;
  }
  .pillar-card:hover .pillar-number { color: rgba(184, 76, 201, 0.15); }

  .pillar-icon { font-size: 1.8rem; margin-bottom: 14px; }

  .pillar-card h3 {
    
    font-size: 1.3rem;
    
    color: var(--gold);
    margin-bottom: 8px;
  }
  .pillar-function {
    font-size: 0.65rem;
    color: var(--teal);
    text-transform: uppercase;
    
    margin-bottom: 12px;
  }
  .pillar-card p {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.8;
  }

  .quiz-wrap {
    max-width: 700px;
    margin: 60px auto 0;
  }

  .quiz-card {
    border: 1px solid var(--border);
    background: var(--card-bg);
    padding: 48px 44px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  }

  .quiz-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
  }
  .quiz-dot {
    width: 28px;
    height: 3px;
    background: var(--border);
    transition: background 0.3s;
  }
  .quiz-dot.active { background: var(--gold); }
  .quiz-dot.done { background: var(--teal); }

  #quiz-question {
    
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1.4;
  }

  .quiz-options { display: flex; flex-direction: column; gap: 10px; }

  .quiz-option {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 14px 20px;
    
    font-size: 0.72rem;
    color: var(--muted);
    cursor: none;
    text-align: left;
    transition: all 0.2s;
    
    position: relative;
    overflow: hidden;
  }
  .quiz-option::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.2s;
  }
  .quiz-option:hover { border-color: var(--gold); color: var(--text); }
  .quiz-option:hover::before { transform: scaleY(1); }
  .quiz-option.correct { border-color: #77b255; color: #60c090; background: #77b25520; }
  .quiz-option.correct::before { background: #77b255; transform: scaleY(1); }
  .quiz-option.wrong { border-color: #dc143c; color: #ff7a90; background: #dc143c2b; }
  .quiz-option.wrong::before { background: #dc143c; transform: scaleY(1); }

  #quiz-feedback {
    margin-top: 18px;
    font-size: 0.72rem;
    line-height: 1.7;
    min-height: 40px;
    color: var(--muted);
    display: none;
  }
  .quiz-feedback-correct { color: #60c090 !important; }
  .quiz-feedback-wrong { color: #ff7a90 !important; }

  .quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
  }
  .quiz-score-label {
    font-size: 0.65rem;
    color: var(--muted);
    
    text-transform: uppercase;
  }
  .quiz-score-label span { color: var(--gold);  font-size: 1.2rem; }

  #quiz-result {
    display: none;
    text-align: center;
    padding: 20px 0;
  }
  #quiz-result .result-grade {
    
    font-size: 6rem;
    color: var(--gold);
    line-height: 1;
  }
  #quiz-result p { color: var(--muted); font-size: 0.78rem; margin-top: 12px; line-height: 1.8; }

  /* ─── ABOUT ─── */
  #about { background: var(--surface); }

  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  @media (max-width: 800px) {
    .about-inner { grid-template-columns: 1fr; gap: 48px; }
  }

  .about-terminal {
    background: #070710;
    border: 1px solid var(--border);
    
    font-size: 0.72rem;
    overflow: hidden;
  }
  .terminal-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
  .terminal-dot:nth-child(1) { background: #e63946; }
  .terminal-dot:nth-child(2) { background: var(--gold); }
  .terminal-dot:nth-child(3) { background: var(--teal); }
  .terminal-title { color: var(--muted); font-size: 0.65rem;  margin-left: 8px; }
  .terminal-body { padding: 20px 18px; }
  .terminal-line { margin-bottom: 6px; line-height: 1.6; }
  .t-prompt { color: var(--teal); }
  .t-cmd { color: var(--text); }
  .t-comment { color: var(--muted); }
  .t-out { color: var(--gold); padding-left: 14px; }
  .t-warn { color: var(--red); padding-left: 14px; }
  .t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--gold); animation: blink 1s step-end infinite; vertical-align: middle; }
  @keyframes blink { 50% { opacity: 0; } }

  .about-content h2 {
    
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .about-content p {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 2;
    margin-bottom: 16px;
  }
  .about-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
  .about-list li {
    font-size: 0.7rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
  }
  .about-list li::before { content: '◆'; color: var(--gold); font-size: 0.5rem; margin-top: 4px; flex-shrink: 0; }

  /* ─── FOOTER ─── */
  .cybersecurity-casino footer {
    border-top: 1px solid var(--border);
    padding: 48px 48px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer-logo {
    
    font-size: 1.3rem;
    
    color: var(--gold);
    opacity: 0.6;
  }
  .footer-copy {
    font-size: 0.62rem;
    color: var(--muted);
    
  }
  .footer-links { display: flex; gap: 24px; }
  .footer-links a { font-size: 0.65rem; color: var(--muted); text-decoration: none;  transition: color 0.2s; }
  .footer-links a:hover { color: var(--gold); }

  /* scroll reveal */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* ticker */
  .ticker-wrap {
    background: var(--gold);
    color: #000;
    overflow: hidden;
    padding: 10px 0;
    white-space: nowrap;
  }
  .ticker-inner {
    display: inline-block;
    animation: ticker 20s linear infinite;
    
    font-size: 0.68rem;
    
    text-transform: uppercase;
  }
  @keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }