  :root {
    --bg:        #070B14;
    --surface:   #1f1232;
    --card:      #23133a;
    --border:    #3a1c63;
    --border2:   #5e309d;
    --text:      #e8f0ff;
    --muted:     #d6d6d6;
    --amber:     #883CF0;
    --amber-dim: #7A5000;
    --green:     #ad3ef2;
    --green-dim: #0D3A1F;
    --red:       #EF4444;
    --red-dim:   #3A0D0D;
    --yellow:    #b33ff3;
    --yellow-dim:#3A2D00;
    --blue:      #a855f7;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  .pam-compliance-trvaining-guide-1 {
    background: #191127;
    color: var(--text);
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    overflow-y: auto;
  }

  /* ── HERO ─────────────────────────────────────────────────────────── */
  .hero {
    position: relative;
    padding: 64px 40px 56px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 70% 40%, rgba(140, 0, 240, 0.07) 0%, transparent 60%),
      radial-gradient(ellipse 40% 80% at 10% 80%, rgba(209, 59, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(61, 30, 74, 0.35) 1px, transparent 1px),
      linear-gradient(90deg, rgba(67, 30, 74, 0.35) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
    pointer-events: none;
  }
  .hero-eyebrow {
    font-size: 11px;
    color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
  }
  .hero-eyebrow::before {
    content: '';
    display: inline-block; width: 24px; height: 1px;
    background: var(--amber);
  }
  .hero h1 {
    
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    max-width: 820px;
    margin-bottom: 20px;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--amber);
  }
  .hero p.lead {
    font-size: 16px;
    color: #8FA0B8;
    max-width: 680px;
    line-height: 1.7;
  }
  .hero-badges {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 28px;
  }
  .badge {
    
    font-size: 10.5px;
    font-weight: 600;
    
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid;
  }
  .badge-pci  { border-color: #7C3AED; color: #A78BFA; background: rgba(124,58,237,.1); }
  .badge-hipaa{ border-color: #059669; color: #34D399; background: rgba(5,150,105,.1); }
  .badge-soc2 { border-color: #b33ff3; color: #a955f7a1; background: #7c3aed38; }
  .badge-iso  { border-color: #D97706; color: #FBB848; background: rgba(217,119,6,.1); }

  /* ── NAV ──────────────────────────────────────────────────────────── */
  .main-nav {
    position: sticky; top: 0; z-index: 1;
    background: #180f26;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    display: flex; align-items: center; gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-btn {
    
    font-size: 11px;
    font-weight: 600;
    
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 16px 18px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
  }
  .nav-btn:hover { color: var(--text); }
  .nav-btn.active { color: var(--amber); border-bottom-color: var(--amber); }

  /* ── SECTIONS ─────────────────────────────────────────────────────── */
  .section { padding: 60px 40px; border-bottom: 1px solid var(--border); }
  .section-title {
    
    font-size: 22px; font-weight: 700;
    margin-bottom: 6px;
  }
  .section-sub {
    font-size: 14px; color: var(--muted);
    margin-bottom: 36px;
    max-width: 700px;
  }

  /* ── SOLUTION TIERS ───────────────────────────────────────────────── */
  .tiers-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
  }
  .tier-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
    position: relative;
    overflow: hidden;
  }
  .tier-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--tier-color, var(--border));
    transition: opacity .2s;
  }
  .tier-card:hover { border-color: var(--border2); transform: translateY(-2px); }
  .tier-card.selected { border-color: var(--tier-color, var(--amber)); }
  .tier-icon {
    font-size: 24px; margin-bottom: 10px; display: block;
  }
  .tier-name {
    
    font-size: 14px; font-weight: 700;
    margin-bottom: 4px;
  }
  .tier-example {
    
    font-size: 10px; color: var(--muted);
    
  }
  .tier-score-bar {
    margin-top: 14px;
    height: 4px; background: var(--border);
    border-radius: 2px; overflow: hidden;
  }
  .tier-score-fill {
    height: 100%; border-radius: 2px;
    background: var(--tier-color);
    transition: width .8s cubic-bezier(.4,0,.2,1);
  }
  .tier-score-label {
    
    font-size: 10px; color: var(--muted);
    margin-top: 5px;
    display: flex; justify-content: space-between;
  }

  /* ── COMPLIANCE MATRIX ────────────────────────────────────────────── */
  .matrix-tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .matrix-tab {
    
    font-size: 11px; font-weight: 600;
     text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
  }
  .matrix-tab:hover { color: var(--text); border-color: var(--border2); }
  .matrix-tab.active { background: var(--amber); color: #000; border-color: var(--amber); }

  .matrix-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  table.matrix {
    width: 100%; border-collapse: collapse;
    min-width: 780px;
  }
  .matrix thead th {
    background: #883cf050;
    padding: 14px 16px;
    
    font-size: 10.5px; font-weight: 600;
     text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .matrix thead th:first-child { min-width: 240px; }
  .matrix thead th:not(:first-child) { text-align: center; min-width: 130px; }
  .matrix tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    cursor: pointer;
  }
  .matrix tbody tr:last-child { border-bottom: none; }
  .matrix tbody tr:hover { background: #1f1232; }
  .matrix tbody td {
    padding: 14px 16px;
    font-size: 13px;
    vertical-align: middle;
  }
  .matrix tbody td:not(:first-child) { text-align: center; }
  .ctrl-id {
    
    font-size: 10px; font-weight: 600;
    color: var(--amber);
    background: #291a3e;
    border: 1px solid #3a1c63;
    padding: 2px 7px; border-radius: 3px;
    margin-right: 8px; white-space: nowrap;
  }
  .ctrl-name {
    font-weight: 400; color: var(--text);
  }
  .ctrl-desc {
    font-size: 11.5px; color: var(--muted);
    margin-top: 3px; display: block;
  }

  /* Status indicators */
  .status {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 14px;
    position: relative;
  }
  .status-full  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(34,197,94,.25); }
  .status-part  { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(234,179,8,.25); }
  .status-none  { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,.25); }
  .status-na    { background: var(--surface);    color: var(--muted);  border: 1px solid var(--border); }

  .status-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: #1f1232;
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 10px 14px;
    width: 220px;
    
    font-size: 12px; line-height: 1.5;
    color: var(--text);
    text-align: left;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    pointer-events: none;
  }
  .status-tooltip .tt-label {
    
    font-size: 9.5px; font-weight: 600;
     text-transform: uppercase;
    margin-bottom: 5px;
  }
  .status:hover .status-tooltip { display: block; }

  /* ── ROW DETAIL DRAWER ────────────────────────────────────────────── */
  .row-detail {
    background: rgba(240,165,0,.04);
    border-left: 3px solid var(--amber);
    padding: 18px 22px;
    font-size: 13px;
    line-height: 1.7;
    color: #8FA0B8;
    display: none;
  }
  .row-detail.open { display: table-row; }
  .row-detail td { padding: 14px 22px 18px; }
  .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
  }
  .detail-cell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
  }
  .detail-cell .dc-head {
    
    font-size: 9.5px; font-weight: 600;
     text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
  }
  .detail-cell .dc-status {
    font-size: 12px; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
  }
  .detail-cell .dc-note {
    font-size: 11.5px; color: var(--muted);
    margin-top: 4px; line-height: 1.5;
  }

  /* ── GAP ANALYSIS ─────────────────────────────────────────────────── */
  .gap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .gap-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    position: relative; overflow: hidden;
  }
  .gap-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--gc, var(--border));
  }
  .gap-card-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; margin-bottom: 16px;
  }
  .gap-solution-name {
    
    font-size: 15px; font-weight: 700;
  }
  .gap-solution-eg {
    
    font-size: 10px; color: var(--muted); margin-top: 2px;
  }
  .gap-overall-score {
    
    font-size: 22px; font-weight: 600;
    color: var(--gc, var(--text));
  }
  .gap-frameworks {
    display: flex; flex-direction: column; gap: 10px;
  }
  .gap-fw-row {
    display: flex; align-items: center; gap: 10px;
  }
  .gap-fw-name {
    
    font-size: 10px; font-weight: 600;
     text-transform: uppercase;
    width: 60px; flex-shrink: 0; color: var(--muted);
  }
  .gap-fw-bar {
    flex: 1; height: 6px; background: var(--border);
    border-radius: 3px; overflow: hidden;
  }
  .gap-fw-fill {
    height: 100%; border-radius: 3px;
    background: var(--gc, var(--border));
    transition: width .8s cubic-bezier(.4,0,.2,1) .3s;
  }
  .gap-fw-pct {
    
    font-size: 10px; width: 34px; text-align: right;
    color: var(--gc, var(--muted));
  }
  .gap-findings {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .gap-findings-title {
    
    font-size: 9.5px; font-weight: 600;
     text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px;
  }
  .gap-finding-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: #7A8FA5; line-height: 1.5;
    margin-bottom: 6px;
  }
  .gap-finding-item::before {
    content: '▸';
    color: var(--gc, var(--muted));
    flex-shrink: 0; margin-top: 1px;
  }

  /* ── AUDIT EVIDENCE SECTION ───────────────────────────────────────── */
  .evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .evidence-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    position: relative;
  }
  .evidence-card.pam-only {
    border-color: #5e309d;
    background: linear-gradient(135deg, #3a1c6350 0%, #23133a4b 100%);
  }
  .evidence-card.pam-only .ev-tag {
    
    font-size: 9px; font-weight: 600;
     text-transform: uppercase;
    color: var(--amber);
    background: #1f1232;
    border: 1px solid #3a1c63;
    padding: 2px 8px; border-radius: 3px;
    display: inline-block; margin-bottom: 12px;
  }
  .evidence-icon { font-size: 26px; margin-bottom: 12px; display: block; }
  .evidence-title {
    
    font-size: 14px; font-weight: 700;
    margin-bottom: 8px;
  }
  .evidence-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
  .evidence-matrix {
    margin-top: 12px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .ev-row {
    display: flex; align-items: center; gap: 8px;
     font-size: 10px;
  }
  .ev-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  }
  .ev-dot.yes  { background: var(--green); }
  .ev-dot.no   { background: var(--red); }
  .ev-dot.part { background: var(--yellow); }
  .ev-label { color: var(--muted); }
  .ev-val { margin-left: auto; }
  .ev-val.yes  { color: var(--green); }
  .ev-val.no   { color: var(--red); }
  .ev-val.part { color: var(--yellow); }

  /* ── VERDICT BANNER ───────────────────────────────────────────────── */
  .verdict {
    background: linear-gradient(135deg, #684895 0%, #23133a 50%, #1f1232 100%);
    border: 1px solid #3a1c63;
    border-radius: 14px;
    padding: 36px 40px;
    margin: 0;
    position: relative; overflow: hidden;
  }
  .verdict::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(172, 0, 240, 0.06) 0%, transparent 60%);
    pointer-events: none;
  }
  .verdict-headline {
    
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 800; line-height: 1.2;
    max-width: 700px; margin-bottom: 18px;
  }
  .verdict-headline strong { color: var(--amber); }
  .verdict-body {
    font-size: 14.5px; color: #e2e5ea;
    max-width: 720px; line-height: 1.75;
  }
  .verdict-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 28px;
  }
  .vc-item {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(178, 151, 193, 0.361);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px; line-height: 1.5;
  }
  .vc-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
  .vc-text { color: #d1d7df; }
  .vc-text strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 13px; }

  /* ── LEGEND ───────────────────────────────────────────────────────── */
  .legend {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    align-items: center;
  }
  .legend-label {
    
    font-size: 10px; font-weight: 600;
     text-transform: uppercase;
    color: var(--muted); margin-right: 4px;
  }
  .legend-item {
    display: flex; align-items: center; gap: 7px;
     font-size: 10.5px;
  }

  /* ── PROGRESS ANIMATION ───────────────────────────────────────────── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp .5s ease both; }
  .fade-up-1 { animation-delay: .1s; }
  .fade-up-2 { animation-delay: .2s; }
  .fade-up-3 { animation-delay: .3s; }
  .fade-up-4 { animation-delay: .4s; }

  @keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
  }
  .amber-shimmer {
    background: linear-gradient(90deg, var(--amber) 0%, #eb81e7 50%, var(--amber) 100%);
    background-size: 200% auto;
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
  }


  /* ── RESPONSIVE ───────────────────────────────────────────────────── */
  @media (max-width: 600px) {
    .hero, .section { padding: 40px 20px; }
    .main-nav { padding: 0 16px; }
    .verdict { padding: 24px 20px; }
  }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }