  :root {
    --bg2: #0d1422;
    --bg3: #1f1232;
    --border: #3a1c63;
    --teal: #883CF0;
    --teal-dim: #3a1c63;
    --amber: #883CF0;
    --red: #dc143c;
    --green: #77b255;
    --purple: #8b5cf6;
    --text: #e2eaf5;
    --text-muted: #d6d6d6;
    --text-dim: #c8d6e5;
    --card: #23133a;
    --card2: #1f1232;
    --glow: 0 0 30px #be52e50f;
    --glow-amber: 0 0 30px #be52e50f;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  .nhi-training-guide {
    background: #191127;
    color: var(--text);
    position: relative;
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    height: 100vh;
    overflow-y: auto;
  }

  /* GRID BG */
  .nhi-training-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,212,200,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,200,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
  }

  /* SCANLINE */
  .nhi-training-guide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.04) 2px,
      rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
    z-index: 0;
  }

  .wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
  }

  /* PROGRESS BAR */
  .progress-bar-wrap {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #282035;
    z-index: 1;
  }
  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3a1c63, #684895);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 12px var(--teal);
  }

  /* NAV */
  .nhi-training-guide nav {
    position: sticky;
    top: 0px;
    left: 0;
    right: 0;
    background: #180f26;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1;
    padding: 0 28px;
  }
  .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    
    font-weight: 700;
    font-size: 14px;
    
    text-transform: uppercase;
    color: var(--teal);
  }
  .nav-brand .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }
  .nav-modules {
    display: flex;
    gap: 4px;
  }
  .nav-module-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
  }
  .nav-module-dot.active { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
  .nav-module-dot.complete { background: var(--green); box-shadow: 0 0 8px var(--green); }
  .nav-right {
    
    font-size: 11px;
    color: var(--text-muted);
  }

  /* SECTIONS */
  section {
    padding: 96px 0 60px;
  }

  /* HERO */
  .hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
  }
  .hero-eyebrow {
    
    font-size: 11px;
    
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--teal);
  }
  h1 {
    
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    
    margin-bottom: 24px;
  }
  h1 .accent { color: var(--teal); }
  h1 .accent2 { color: var(--amber); }
  .hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.7;
  }

  /* STAT HERO */
  .stat-hero {
    display: grid;
    grid-template-columns: auto 1px 1fr;
    gap: 40px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px 44px;
    margin: 48px 0 32px;
    position: relative;
    overflow: hidden;
  }
  .stat-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--teal), var(--green));
    border-radius: 14px 0 0 14px;
  }
  .stat-hero-inner {
    text-align: center;
    min-width: 180px;
  }
  .stat-hero-num {
    
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--teal);
    text-shadow: 0 0 60px #be52e50f;
  }
  .stat-hero-label {
    
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 8px;
    line-height: 1.4;
  }
  .stat-hero-divider {
    width: 1px;
    height: 100%;
    min-height: 120px;
    background: var(--border);
  }
  .stat-hero-context {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .stat-context-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .stat-context-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .stat-context-title {
    
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
  }
  .stat-context-body {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
  }
  @media (max-width: 680px) {
    .stat-hero { grid-template-columns: 1fr; padding: 28px 24px; }
    .stat-hero-divider { width: 100%; height: 1px; min-height: unset; }
  }

  /* MODULE TAGS */
  .module-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #291a3e;
    border: 1px solid #5e309d;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
  }

  /* SECTION HEADERS */
  h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
  }
  h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .section-intro {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.7;
  }

  /* IDENTITY TYPE GRID */
  .identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 32px 0;
  }
  .identity-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 18px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }
  .identity-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: #883cf050;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .identity-card:hover {
    border-color: #5e309d;
    background: #1f1232;
    transform: translateY(-2px);
    box-shadow: var(--glow);
  }
  .identity-card:hover::before { transform: scaleX(1); }
  .identity-card .icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
  }
  .identity-card .name {
    
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
  }
  .identity-card .desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
  }
  .identity-card .count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3a1c6350;
    border-radius: 10px;
    padding: 2px 8px;
    
    font-size: 10px;
    color: var(--teal);
  }

  /* PROBLEM ACCORDION */
  .problem-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 32px 0;
  }
  .problem-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
  }
  .problem-item.open {
    border-color: #282035;
    box-shadow: #be52e50f;
  }
  .problem-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
  }
  .problem-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .problem-icon.warn { background: rgba(137, 35, 245, 0.12); }
  .problem-icon.danger { background: rgba(255,77,106,0.12); }
  .problem-icon.info { background: rgba(139,92,246,0.12); }
  .problem-title-wrap { flex: 1; }
  .problem-title {
    
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
  }
  .problem-subtitle {
    font-size: 12px;
    color: var(--text-muted);
  }
  .problem-chevron {
    color: var(--text-muted);
    transition: transform 0.25s;
    font-size: 14px;
  }
  .problem-item.open .problem-chevron { transform: rotate(180deg); color: var(--amber); }
  .problem-body {
    display: none;
    padding: 0 24px 24px 80px;
  }
  .problem-item.open .problem-body { display: block; }
  .problem-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .stat-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1f1232;
    border: 1px solid #3a1c63;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0;
  }
  .stat-callout .num {
    
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--amber);
    white-space: nowrap;
  }
  .stat-callout .label {
    font-size: 13px;
    color: var(--text-muted);
  }

  /* RISK COMPARISON TABLE */
  .risk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 13px;
  }
  .risk-table th {
    
    font-size: 10px;
    
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  .risk-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #5e309d;
    vertical-align: top;
  }
  .risk-table tr:last-child td { border-bottom: none; }
  .risk-table .attr {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
  }
  .risk-table .human-col { color: var(--text-muted); }
  .risk-table .nhi-col { color: var(--red); }
  .risk-table .nhi-col.ok { color: var(--teal); }
  .risk-icon { margin-right: 5px; }
  .risk-table tr:hover td { background: #1f1232; }

  /* SOLUTION CARDS */
  .solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
  }
  @media (max-width: 680px) {
    .solution-grid { grid-template-columns: 1fr; }
    .identity-grid { grid-template-columns: 1fr 1fr; }
  }
  .solution-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
  }
  .solution-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), #684895);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .solution-card:hover {
    border-color: #3a1c63;
    transform: translateY(-3px);
    box-shadow: var(--glow);
  }
  .solution-card:hover::after { opacity: 1; }
  .solution-card.featured {
    background: linear-gradient(135deg, #3a1c63, #23133a);
    border-color: #5e309d;
    grid-column: span 2;
  }
  @media (max-width: 680px) {
    .solution-card.featured { grid-column: span 1; }
  }
  .solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #883cf0e0;
    border: 1px solid #3a1c63;
    border-radius: 4px;
    padding: 3px 10px;
    
    font-size: 9px;
    
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
  }
  .solution-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
  .solution-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
  .feature-list {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
  }
  .feature-list li::before {
    content: '→';
    color: var(--teal);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  /* LIFECYCLE DIAGRAM */
  .lifecycle {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 32px 0;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .lifecycle-step {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  .lifecycle-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 22px;
    color: var(--border);
    font-size: 16px;
    z-index: 1;
  }
  .lifecycle-node {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid var(--border);
    background: var(--bg3);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 1;
  }
  .lifecycle-node.has-problem { border-color: var(--red); background: rgba(255,77,106,0.08); }
  .lifecycle-node.has-solution { border-color: var(--teal); background: rgba(0,212,200,0.08); }
  .lifecycle-label {
    
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
  }
  .lifecycle-issue {
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
    padding: 0 4px;
    color: var(--red);
    
  }
  .lifecycle-fix {
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
    padding: 0 4px;
    color: var(--teal);
    
  }

  /* QUIZ */
  .quiz-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  .quiz-header {
    background: var(--bg3);
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .quiz-header h3 {
    margin: 0;
    
    font-size: 1.05rem;
  }
  .quiz-progress-text {
    
    font-size: 12px;
    color: var(--text-muted);
  }
  .quiz-body {
    padding: 32px 28px;
  }
  .quiz-question {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.5;
  }
  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
  }
  .quiz-option:hover:not(.selected):not(.disabled) {
    border-color: #3a1c63;
    background: #2a1647;
  }
  .quiz-option.selected.correct {
    border-color: #77b255;
    background: #77b25520;
    color: #60c090;
  }
  .quiz-option.selected.incorrect {
    border-color: #dc143c;
    background: #dc143c2b;
    color:#ff7a90;
  }
  .quiz-option.reveal-correct {
    border-color: #77b255;
    background: #77b25520;
    color: #60c090;
  }
  .quiz-option.disabled { cursor: default; opacity: 0.6; }
  .quiz-option-key {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
    color: var(--text-muted);
  }
  .quiz-feedback {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 13.5px;
    color: var(--text-muted);
    display: none;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .quiz-feedback.show { display: block; }
  .quiz-feedback .fb-title {
    
    font-weight: 700;
    margin-bottom: 5px;
  }
  .quiz-feedback.correct-fb { border-color: rgba(46,221,154,0.3); }
  .quiz-feedback.correct-fb .fb-title { color: var(--green); }
  .quiz-feedback.incorrect-fb { border-color: rgba(255,77,106,0.3); }
  .quiz-feedback.incorrect-fb .fb-title { color: var(--red); }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
  }
  .btn-primary {
    background: var(--teal);
    color: var(--bg);
  }
  .btn-primary:hover { background: #883cf0e0; transform: translateY(-1px); }
  .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
  }
  .btn-outline:hover { border-color: var(--teal); color: var(--teal); }
  .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
  .quiz-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }
  .quiz-dots {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }
  .quiz-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s;
  }
  .quiz-dot.active { background: var(--teal); }
  .quiz-dot.correct { background: var(--green); }
  .quiz-dot.incorrect { background: var(--red); }

  /* FINAL SCORE */
  .score-display {
    text-align: center;
    padding: 48px 28px;
    display: none;
  }
  .score-display.show { display: block; }
  .score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 40px #be52e50f;
  }
  .score-num {
    
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
  }
  .score-denom {
    
    font-size: 12px;
    color: var(--text-muted);
  }
  .score-msg {
    
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .score-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* COMPLETION BANNER */
  .completion-banner {
    background: linear-gradient(135deg, #23133a, #1f1232);
    border: 1px solid #3a1c63;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    margin: 32px 0 60px;
  }
  .completion-banner h2 { margin-bottom: 8px; }
  .completion-banner p { color: var(--text-muted); font-size: 15px; max-width: 480px; margin: 0 auto 24px; }
  .badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .earned-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #291a3e;
    border: 1px solid #1f1232;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
  }

  /* DIVIDER */
  .divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 48px 0;
  }

  /* KEY TAKEAWAYS */
  .takeaways {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin: 28px 0;
  }
  .takeaway {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    align-items: flex-start;
  }
  .takeaway-num {
    
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--teal);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
  }
  .takeaway p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
  .takeaway strong { color: var(--text); font-weight: 600; }

  /* ANIMATED ENTRANCE */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* SCROLLSPY HIGHLIGHT */
  .section-anchor {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
  }

  /* TOOLTIP */
  .tooltip-wrap {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dashed var(--teal);
    color: var(--teal);
  }
  .tooltip-wrap .tooltip-text {
    visibility: hidden;
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text);
    text-align: left;
    border-radius: 6px;
    padding: 10px 14px;
    position: absolute;
    z-index: 1;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .tooltip-wrap:hover .tooltip-text { visibility: visible; }

  /* RESPONSIVE */
  @media (max-width: 680px) {
    .nhi-training-guide nav { padding: 0 16px; }
    .wrapper { padding: 0 16px; }
    .identity-counter { grid-template-columns: 1fr; }
    .counter-vs { writing-mode: horizontal-tb; padding: 12px; }
    .counter-block.human { border-right: none; border-bottom: 1px solid var(--border); }
    .lifecycle { flex-direction: column; }
    .lifecycle-step:not(:last-child)::after { content: '↓'; right: auto; top: auto; bottom: -14px; left: 50%; }
  }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }