  :root {
    --bg: #0a0c10;
    --surface: #23133a;
    --surface2: #1f1232;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #a78bfa;
    --accent3: #7209b7;
    --warn: #f65bf6;
    --text: #e8ecf0;
    --text-muted: #e8f0ff;
    --text-dim: #dee3e8;
    --green: #b33ff3;
    --blue: #b33ff3;
    --orange: #883CF0;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  .scim-training-guide {
    background: #191127;
    color: var(--text);
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    height: 100vh;
  }

  /* GRID BACKGROUND */
  .scim-training-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,212,170,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,170,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* NAV */
  .scim-training-guide nav {
    position: sticky;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: #180f26;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 1;
    gap: 2rem;
  }

  .nav-logo {
    
    font-weight: 800;
    font-size: 16px;
    color: var(--accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-logo::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .nav-tabs {
    display: flex;
    gap: 0;
    margin-left: auto;
  }

  .nav-tab {
    padding: 6px 16px;
    
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
  }

  .nav-tab:hover { color: var(--text); border-color: var(--border); }
  .nav-tab.active { color: var(--accent); border-color: var(--accent); background: #23133a; }

  /* HERO */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #23133a;
    border: 1px solid #3a1c63;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 2rem;
    width: fit-content;
  }

  .hero-badge span {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.0;
    max-width: 900px;
    margin-bottom: 1.5rem;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--accent);
  }

  .hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 3rem;
    font-weight: 300;
  }

  .hero-stats {
    display: flex;
    gap: 3rem;
  }

  .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .stat-num {
    
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
  }

  .stat-label {
    
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .hero-bg-glow {
    position: absolute;
    top: 20%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(194, 0, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-diagram {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 330px;
    opacity: 0.7;
  }

  /* SECTIONS */
  .scim-training-guide section {
    position: relative;
    display: none;
    padding: 100px 4rem 4rem;
    min-height: 100vh;
    animation: fadeIn 0.4s ease;
  }

  .scim-training-guide section.active { display: block; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .section-label {
    
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .section-label::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
  }

  h2 {
    
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  h3 {
    
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  .lead {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 3rem;
    font-weight: 300;
  }

  /* CARDS */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5px;
    background: #3a1c633e;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
  }

  .card {
    background: var(--surface);
    padding: 2rem;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
  }

  .card:hover { background: var(--surface2); }

  .card-icon {
    font-size: 28px;
    margin-bottom: 1rem;
    display: block;
  }

  .card-tag {
    
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
  }

  .card p {
    color: var(--text-muted);
    font-size: 14px;
  }

  /* FLOW DIAGRAM */
  .flow-diagram {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    overflow-x: auto;
  }

  .flow-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
    min-width: 700px;
  }

  .flow-node {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
    position: relative;
  }

  .flow-node.highlight {
    border-color: var(--accent);
    background: #1f1232;
  }

  .flow-node.blue {
    border-color: var(--blue);
    background: #2a1647;
  }

  .flow-node.orange {
    border-color: var(--orange);
    background: rgba(218, 53, 255, 0.06);
  }

  .flow-node-title {
    
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
  }

  .flow-node-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
  }

  .flow-arrow {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
    position: relative;
    min-width: 40px;
  }

  .flow-arrow::after {
    content: '▶';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 10px;
  }

  .flow-label {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    
    font-size: 9px;
    color: var(--accent);
    white-space: nowrap;
    text-transform: uppercase;
  }

  /* METHODS TABS */
  .methods-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
    background: var(--surface);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid var(--border);
    width: fit-content;
  }

  .method-tab {
    padding: 8px 20px;
    
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    border: 1px solid transparent;
  }

  .method-tab:hover { color: var(--text); }

  .method-tab.active {
    background: var(--surface2);
    color: var(--accent);
    border-color: var(--accent);
  }

  .method-panel { display: none; }
  .method-panel.active { display: block; animation: fadeIn 0.3s ease; }

  /* CODE BLOCK */
  .code-block {
    background: #0f0818;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }

  .code-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #883cf050;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }

  .code-dots {
    display: flex;
    gap: 6px;
  }

  .code-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
  }

  .code-dot:nth-child(1) { background: #ff5f56; }
  .code-dot:nth-child(2) { background: #ffbd2e; }
  .code-dot:nth-child(3) { background: #27c93f; }

  .code-title {
    
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
  }

  .copy-btn {
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    
    font-size: 10px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .copy-btn:hover { color: var(--accent); border-color: var(--accent); }

  pre {
    padding: 1.5rem;
    
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    color: #c9d1d9;
  }

  .kw { color: #ff79c6; }
  .str { color: #f1fa8c; }
  .prop { color: #8be9fd; }
  .val { color: #bd93f9; }
  .comment { color: #6272a4; font-style: italic; }
  .num { color: #ffb86c; }
  .method-text { color: #50fa7b; }

  /* STEPS */
  .steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
  }

  .step-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
  }

  .step-item:last-child { border-bottom: none; }
  .step-item:hover { background: var(--surface2); }
  .step-item.open { background: var(--surface2); }

  .step-num {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border);
    
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dim);
    padding-top: 1.75rem;
    transition: color 0.2s;
  }

  .step-item.open .step-num,
  .step-item:hover .step-num { color: var(--accent); }

  .step-content {
    padding: 1.5rem;
  }

  .step-title {
    
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .step-title .chevron {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s;
  }

  .step-item.open .chevron { transform: rotate(180deg); }

  .step-detail {
    display: none;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .step-item.open .step-detail { display: block; }

  .step-detail ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
  }

  .step-detail li { margin-bottom: 0.4rem; }

  /* BENEFITS */
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.2s;
  }

  .benefit-card:hover { border-color: var(--accent); transform: translateY(-2px); }

  .benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    opacity: 0;
    transition: opacity 0.3s;
  }

  .benefit-card:hover::before { opacity: 1; }

  .benefit-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 1rem;
  }

  .benefit-icon.g { background: rgba(0,212,170,0.12); }
  .benefit-icon.b { background: rgba(0,132,255,0.12); }
  .benefit-icon.o { background: rgba(255,107,53,0.12); }
  .benefit-icon.y { background: rgba(240,180,41,0.12); }

  .benefit-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
  .benefit-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

  /* USE CASES */
  .usecase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
  }

  .usecase-item {
    background: var(--surface);
    padding: 2rem;
    transition: background 0.2s;
    cursor: pointer;
  }

  .usecase-item:hover { background: var(--surface2); }

  .usecase-tag {
    
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  .usecase-item h3 { margin-bottom: 0.5rem; font-size: 1rem; }
  .usecase-item p { font-size: 13px; color: var(--text-muted); }

  /* QUIZ */
  .quiz-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 700px;
  }

  .quiz-question {
    
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
  }

  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .quiz-option {
    padding: 1rem 1.25rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .quiz-option:hover { border-color: var(--accent); }
  .quiz-option.correct { border-color: #77b255; background: #77b25520; color: #60c090; }
  .quiz-option.wrong { border-color: #dc143c; background: #dc143c2b; color: #ff7a90; }

  .quiz-opt-letter {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--border);
    display: flex; align-items: center; justify-content: center;
    
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
  }

  .quiz-feedback {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 1rem;
  }

  .quiz-feedback.show { display: block; }
  .quiz-feedback.correct { background: #77b25520; border: 1px solid #77b255; color: #60c090; }
  .quiz-feedback.wrong { background: #dc143c2b; border: 1px solid #dc143c; color: #ff7a90; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
  }

  .btn-primary {
    background: var(--accent);
    color: #000;
  }

  .btn-primary:hover { background: #883cf0e0; }

  .btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
  }

  .btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

  .progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    border-radius: 2px;
    transition: width 0.4s ease;
  }

  /* GLOSSARY TABLE */
  .glossary-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
  }

  .glossary-table th {
    background: var(--surface2);
    padding: 12px 16px;
    text-align: left;
    
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
  }

  .glossary-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: top;
  }

  .glossary-table tr:last-child td { border-bottom: none; }
  .glossary-table tr:hover td { background: var(--surface2); }

  .glossary-table td:first-child {
    
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
  }

  .glossary-table td:nth-child(2) {
    color: var(--text-muted);
  }

  /* TOOLTIP */
  .tooltip-wrap { position: relative; display: inline-block; }

  .tooltip-wrap .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    transition: opacity 0.2s;
    
    font-weight: 400;
  }

  .tooltip-wrap:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  /* Chip */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    
    font-size: 11px;
    font-weight: 500;
  }

  .chip.green { background: #291a3e; color: var(--green); }
  .chip.blue { background: #291a3e; color: var(--blue); }
  .chip.orange { background: #291a3e; color: var(--orange); }

  /* DELINEA SPECIFIC */
  .delinea-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .delinea-box h3 { color: var(--accent); margin-bottom: 0.75rem; }
  .delinea-box p { color: var(--text-muted); font-size: 14px; }

  /* SCROLL PROGRESS */
  .scroll-progress {
    position: sticky;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 1;
  }

  .scroll-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    width: 0%;
    transition: width 0.1s;
  }

  /* FOOTER */
  .scim-training-guide footer {
    position: relative;
    z-index: 1;
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .scim-training-guide footer .footer-left {
    
    font-size: 11px;
    color: var(--text-muted);
  }

  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  @media (max-width: 768px) {
    .hero { padding: 0; }
    .hero-diagram { display: none; }
    .scim-training-guide section { padding: 80px 1.5rem 2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .scim-training-guide nav { padding: 0 1rem; }
    .nav-tabs { display: none; }
    .usecase-grid { grid-template-columns: 1fr; }
    .scim-training-guide footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 5px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }