  :root {
    --ink: #1f172f;
    --paper: #191127;
    --accent: #883CF0;
    --accent2: #7c3aed;
    --mid: #fdfbf7;
    --light: #180f26;
    --card: #23133a;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Syne', sans-serif;
    --serif: 'Fraunces', serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: #fff;
    font-family: var(--sans);
    overflow-x: hidden;
  }

  /* ── 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: #180f26;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #3a1c63;
  }
  .logo {
    font-family: var(--mono); font-size: .78rem; letter-spacing: .15em;
    text-transform: uppercase; color: var(--accent);
  }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
    text-decoration: none; color: var(--mid);
    text-transform: uppercase; transition: color .2s;
  }
  .nav-links a:hover { color: #883CF0; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 7rem 3rem 4rem;
    position: relative; overflow: hidden;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    max-width: 1200px; margin: 0 auto; width: 100%;
    align-items: center;
  }
  .hero-eyebrow {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
  }
  .hero-title {
    font-family: var(--serif); font-size: clamp(3rem,6vw,5.5rem);
    font-weight: 300; line-height: 1.05; margin-bottom: 1.5rem;
  }
  .hero-title em { font-style: italic; color: var(--accent); }
  .hero-sub {
    font-size: .95rem; line-height: 1.8; color: #e4e0e0; max-width: 38ch;
  }
  .hero-stat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  }
  .stat-card {
    background: var(--ink); color: #fff;;
    padding: 2rem 1.5rem; border-radius: 4px;
    position: relative; overflow: hidden;
    transition: transform .3s; cursor: default;
  }
  .stat-card:hover { transform: translateY(-4px); }
  .stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 100%; background: var(--accent);
  }
  .stat-num {
    font-family: var(--serif); font-size: 3rem; font-weight: 300;
    color: var(--accent); line-height: 1;
  }
  .stat-label {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
    text-transform: uppercase; color: #fff; margin-top: .5rem; line-height: 1.5;
  }

  /* ── BG DECO ── */
  .bg-circle {
    position: absolute; border-radius: 50%; pointer-events: none;
    opacity: .04; background: var(--accent);
  }

  /* ── SECTION SHELL ── */
  section { padding: 6rem 3rem; }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-label {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .25em;
    text-transform: uppercase; color: var(--accent); margin-bottom: .75rem;
    display: flex; align-items: center; gap: .75rem;
  }
  .section-label::after { content: ''; flex: 1; height: 1px; background: var(--accent); }
  h2 {
    font-family: var(--serif); font-size: clamp(2rem,4vw,3.5rem);
    font-weight: 300; margin-bottom: 3rem; line-height: 1.1;
    color:#fff;
  }
  h2 em { font-style: italic; color: var(--accent2); }

  /* ── WHAT IS CIEM ── */
  #what { background: var(--ink); color: #fff; }
  #what .section-label { color: var(--accent); }
  #what h2 em { color: #d1d9df; }
  .what-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start;
  }
  .what-body p {
    font-size: 1.05rem; line-height: 1.9; color: #f1f0ec; margin-bottom: 1.5rem;
  }
  .what-body strong { color: #fff; font-weight: 600; }
  .pronunciation {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--mono); font-size: .8rem;
    background: rgba(255,255,255,.07); padding: .4rem .9rem;
    border-radius: 100px; color: #af62c8; margin-bottom: 2rem;
  }
  .accordion { border-top: 1px solid #3a1c63; }
  .acc-item { border-bottom: 1px solid #3a1c63; }
  .acc-trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 0; background: none; border: none; color: #fff;;
    font-family: var(--sans); font-size: .95rem; font-weight: 600;
    cursor: pointer; text-align: left;
  }
  .acc-icon {
    width: 28px; height: 28px; border: 1px solid #3a1c63; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0; transition: transform .3s, background .3s;
  }
  .acc-trigger.open .acc-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
  .acc-body {
    overflow: hidden; max-height: 0; transition: max-height .4s ease;
  }
  .acc-body p {
    font-size: .9rem; line-height: 1.8; color: #f0f0f0;
    padding-bottom: 1.2rem;
  }

  /* ── HOW IT WORKS ── */
  #how { background: var(--paper); }
  .pipeline {
    display: flex; gap: 0; overflow-x: auto;
    padding-bottom: 1rem;
  }
  .pipe-step {
    flex: 1; min-width: 200px; padding: 2.5rem 2rem;
    background: var(--card); border: 1px solid #3a1c63;
    position: relative; transition: all .3s; cursor: pointer;
    border-right: none;
  }
  .pipe-step:last-child { border-right: 1px solid #3a1c63; }
  .pipe-step:hover, .pipe-step.active {
    background: #1f1232; color: #fff;; z-index: 1;
    transform: scaleY(1.04); transform-origin: top;
  }
  .pipe-step:hover .pipe-num, .pipe-step.active .pipe-num { color: var(--accent); }
  .pipe-step:hover .pipe-desc, .pipe-step.active .pipe-desc { color: #f8f7f6; }
  .pipe-num {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .2em;
    color: var(--mid); margin-bottom: 1rem; transition: color .3s;
  }
  .pipe-icon { font-size: 2rem; margin-bottom: 1rem; }
  .pipe-title { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; }
  .pipe-desc { font-size: .82rem; line-height: 1.7; color: #f0ebeb; transition: color .3s; }
  .pipe-detail {
    display: none; padding: 2rem; background: var(--ink); color: #f1eee9;
    border: 1px solid #5e309d; border-top: none;
    font-size: .88rem; line-height: 1.8;
  }
  .pipe-detail.visible { display: block; }

  /* ── PRINCIPLES ── */
  #principles { background: #180f26; }
  .principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .principle-card {
    padding: 2.5rem 2rem; background: var(--card);
    border: 1px solid #3a1c63; border-radius: 2px;
    position: relative; overflow: hidden; transition: all .3s;
  }
  .principle-card:hover { border-color: var(--accent); }
  .principle-card::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 3px; background: var(--accent);
    transition: width .4s;
  }
  .principle-card:hover::after { width: 100%; }
  .p-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
  .p-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
  .p-body { font-size: .86rem; line-height: 1.75; color: #f7f5f5; }

  /* ── THREATS ── */
  #threats { background: var(--ink); color: #fff;; }
  #threats .section-label { color: var(--accent); }
  #threats h2 em { color: #af62c8; }
  .threats-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
  .threat-list { display: flex; flex-direction: column; gap: .75rem; }
  .threat-btn {
    width: 100%; text-align: left; padding: 1rem 1.25rem;
    background: #23133a; border: 1px solid #3a1c63;
    border-radius: 3px; color: #c8c0b0; font-family: var(--sans); font-size: .9rem;
    cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: .75rem;
  }
  .threat-btn:hover, .threat-btn.active {
    background: #1f1232; border-color: var(--accent); color: #fff;;
  }
  .threat-dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2);
    flex-shrink: 0; transition: background .2s;
  }
  .threat-btn.active .threat-dot { background: var(--accent); }
  .threat-display {
    background: #1f1232; border: 1px solid #3a1c63;
    padding: 2.5rem; border-radius: 4px; min-height: 320px;
  }
  .threat-content { display: none; }
  .threat-content.active { display: block; }
  .tc-tag {
    font-family: var(--mono); font-size: .68rem; letter-spacing: .15em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
  }
  .tc-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 300; margin-bottom: 1.25rem; }
  .tc-body { font-size: .9rem; line-height: 1.85; color: #eae7e1; }
  .tc-impact {
    margin-top: 1.5rem; padding: 1rem;
    background: #cb56f90a; border-left: 3px solid #3a1c63;
    font-size: .82rem; color: #e9e1de;
  }

  /* ── VS TABLE ── */
  #compare { background: var(--paper); }
  .compare-table {
    width: 100%; border-collapse: collapse; font-size: .88rem;
  }
  .compare-table th {
    padding: 1rem 1.5rem; text-align: left; font-family: var(--mono);
    font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
    background: #883cf050; color: var(--light); border: 1px solid #3a1c63;
  }
  .compare-table th:first-child { color: #fff;; }
  .compare-table td {
    padding: 1rem 1.5rem; border: 1px solid #3a1c63;
    background: #23133a; vertical-align: top; line-height: 1.6;
  }
  .compare-table tr:hover td { background: #1f1232; }
  .compare-table td:first-child { font-weight: 700; font-size: .82rem; color: var(--mid); font-family: var(--mono); }
  .badge {
    display: inline-block; padding: .2rem .6rem; border-radius: 100px;
    font-family: var(--mono); font-size: .65rem; letter-spacing: .1em;
    text-transform: uppercase; font-weight: 500;
  }
  .badge-ciem { background: #dfd9df; color: var(--accent2); }
  .badge-iam  { background: #dfd9df; color: var(--accent); }
  .badge-cspm { background: #dfd9df; color: #3a9060; }

  /* ── QUIZ ── */
  #quiz { background: #19112749; }
  .quiz-shell {
    max-width: 700px; margin: 0 auto;
    background: #23133a; border: 1px solid #3a1c63; padding: 3rem;
  }
  .quiz-q {
    font-family: var(--serif); font-size: 1.4rem; font-weight: 300;
    line-height: 1.4; margin-bottom: 2rem;
  }
  .quiz-options { display: flex; flex-direction: column; gap: .75rem; }
  .quiz-opt {
    padding: 1rem 1.25rem; border: 1px solid #3a1c63;
    background: #1f1232; border-radius: 3px; text-align: left;
    font-family: var(--sans); font-size: .9rem; cursor: pointer; color:#fff;
    transition: all .2s; display: flex; align-items: center; gap: .75rem;
  }
  .quiz-opt:hover { border-color: var(--accent2); background: #2a1647; }
  .quiz-opt.correct { border-color: #77b255; background: #77b25520; color: #60c090; }
  .quiz-opt.wrong   { border-color: #dc143c; background: #dc143c2b; color: #ff7a90; }
  .opt-letter {
    width: 28px; height: 28px; border: 1px solid #3a1c63; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: .72rem; flex-shrink: 0;
    font-weight: 500;
  }
  .quiz-feedback {
    margin-top: 1.5rem; padding: 1.25rem; border-radius: 3px;
    font-size: .9rem; line-height: 1.7; display: none;
  }
  .quiz-feedback.show { display: block; }
  .quiz-feedback.correct { background: #77b25520; border-left: 3px solid #77b255; color: #60c090; }
  .quiz-feedback.wrong   { background: #dc143c2b; border-left: 3px solid #dc143c; color: #ff7a90; }
  .quiz-next {
    margin-top: 1.5rem; padding: .75rem 2rem; background: #2a1647;
    color: #fff;; border: none; font-family: var(--mono); font-size: .78rem;
    letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
    transition: background .2s; display: none;
  }
  .quiz-next:hover { background: var(--accent); }
  .quiz-progress {
    display: flex; gap: .4rem; margin-bottom: 2rem;
  }
  .qp-dot {
    height: 3px; flex: 1; background: var(--light); border-radius: 2px;
    transition: background .4s;
  }
  .qp-dot.done { background: var(--accent); }
  .qp-dot.current { background: var(--accent2); }
  .quiz-score {
    text-align: center; padding: 3rem 0;
  }
  .score-num {
    font-family: var(--serif); font-size: 6rem; font-weight: 300; color: var(--accent);
  }
  .score-label { font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mid); }
  .quiz-restart {
    margin-top: 1.5rem; padding: .75rem 2rem; background: #2a1647;
    color: #fff;; border: none; font-family: var(--mono); font-size: .78rem;
    letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
    transition: background .2s;
  }
  .quiz-restart:hover { background: var(--accent); }

  /* ── FOOTER ── */
  footer {
    background: var(--ink); color: #e9e7e5;
    padding: 3rem; text-align: center;
    font-family: var(--mono); font-size: .75rem; line-height: 2;
  }
  footer span { color: var(--accent); }

  /* ── SCROLL REVEAL ── */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: .1s; }
  .reveal-d2 { transition-delay: .2s; }
  .reveal-d3 { transition-delay: .3s; }
  .reveal-d4 { transition-delay: .4s; }

  @media (max-width: 900px) {
    .hero-grid, .what-grid, .threats-layout, .compare-table { display: block; }
    .principles-grid { grid-template-columns: 1fr; }
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 4rem 1.5rem; }
    #hero { padding: 6rem 1.5rem 3rem; }
    .hero-stat-grid { grid-template-columns: 1fr 1fr; }
    .what-grid > *:first-child { margin-bottom: 2rem; }
    .threat-list { margin-bottom: 2rem; }
  }