  :root {
    --surface: #23133a;
    --surface2: #1f1232;
    --border: #3a1c63;
    --border-bright: #5e309d;
    --threat: #883CF0;
    --threat-dim: #1f1232;
    --threat-glow: rgba(255,71,87,0.3);
    --control: #ad3ef2;
    --control-dim: rgba(0,214,143,0.1);
    --control-glow: rgba(0,214,143,0.3);
    --accent: #9f3df1;
    --accent-dim: rgba(0,180,216,0.1);
    --accent-glow: rgba(0,180,216,0.25);
    --warn: #b33ff3;
    --warn-dim: rgba(255,165,2,0.12);
    --text: #e6e9ef;
    --text-dim: #d6d6d6;
    --text-bright: #e8f0ff;
    --mitre: #9b59ff;
    --mitre-dim: rgba(155,89,255,0.12);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  .delinea-threat-intel-guide {
    background: #191127;
    color: var(--text);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Scanline overlay */
  .delinea-threat-intel-guide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.08) 2px,
      rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  /* Grid background */
  .delinea-threat-intel-guide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(216, 0, 169, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(216, 0, 148, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  .page-wrap { position: relative; z-index: 1; overflow-y: auto; height: 100vh; }

  /* ── HEADER ── */
  .delinea-threat-intel-guide header {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #180f26 0%, transparent 100%);
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(20px);
  }

  .header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }

  .logo-icon {
    width: 36px; height: 36px;
    border: 1.5px solid var(--accent);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow: 0 0 12px #be52e50f;
  }

  .logo-icon svg { width: 20px; height: 20px; fill: var(--accent); }

  .logo-text {
    font-size: 11px;
    font-weight: 700;
    
    text-transform: uppercase;
    color: var(--accent);
  }

  .logo-sub {
    
    font-size: 9px;
    color: var(--text-dim);
    
    text-transform: uppercase;
    margin-top: 2px;
  }

  .progress-bar-wrap {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .progress-label {
    
    font-size: 10px;
    color: var(--text-dim);
    
    white-space: nowrap;
  }

  .progress-track {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--control));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
  }

  .progress-count {
    
    font-size: 10px;
    color: var(--accent);
    white-space: nowrap;
  }

  .module-badge {
    
    font-size: 9px;
    
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border-bright);
    border-radius: 3px;
    color: var(--text-dim);
    flex-shrink: 0;
  }

  /* ── HERO ── */
  .hero {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 40px 40px;
  }

  .hero-tag {
    
    font-size: 10px;
    
    text-transform: uppercase;
    color: var(--threat);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-tag::before {
    content: '';
    display: inline-block;
    width: 20px; height: 1px;
    background: var(--threat);
  }

  .hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-bright);
    max-width: 780px;
    margin-bottom: 20px;
  }

  .hero h1 .accent-word { color: var(--accent); }
  .hero h1 .threat-word { color: var(--threat); }

  .hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 36px;
  }

  .hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1;
  }

  .stat-num.threat-color { color: var(--threat); }
  .stat-num.control-color { color: var(--control); }
  .stat-num.accent-color { color: var(--accent); }

  .stat-label {
    
    font-size: 9px;
    
    text-transform: uppercase;
    color: var(--text-dim);
  }

  /* ── ATTACK CHAIN ── */
  .section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 60px;
  }

  .section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 11px;
    font-weight: 700;
    
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* Attack chain visualization */
  .attack-chain {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 48px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .chain-node {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
  }

  .chain-node-inner {
    width: 56px; height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    background: var(--surface);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  .chain-node-inner svg { width: 24px; height: 24px; transition: all 0.25s; }
  .chain-node-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.25s;
  }

  .chain-node.active .chain-node-inner,
  .chain-node:hover .chain-node-inner {
    border-color: var(--threat);
    box-shadow: 0 0 20px #be52e54f, inset 0 0 20px #be52e552;
    transform: translateY(-2px);
  }

  .chain-node-label {
    
    font-size: 8px;
    
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
    max-width: 64px;
    line-height: 1.3;
    transition: color 0.2s;
  }

  .chain-node.active .chain-node-label,
  .chain-node:hover .chain-node-label { color: var(--threat); }

  .chain-node-num {
    position: absolute;
    top: -6px; right: -6px;
    width: 16px; height: 16px;
    background: var(--threat);
    border-radius: 50%;
    
    font-size: 8px;
    font-weight: 500;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
  }

  .chain-node.active .chain-node-num,
  .chain-node:hover .chain-node-num { opacity: 1; }

  .chain-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-bottom: 22px;
  }

  .chain-arrow svg { width: 20px; height: 12px; color: var(--border-bright); }

  /* ── TECHNIQUE CARDS GRID ── */
  .techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2px;
  }

  .technique-card {
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
  }

  .technique-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--threat);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.25s ease;
  }

  .technique-card:hover::before,
  .technique-card.open::before { transform: scaleY(1); }

  .technique-card:hover,
  .technique-card.open {
    border-color: var(--border-bright);
    background: var(--surface2);
    box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 0 40px rgba(255,71,87,0.03);
  }

  .card-header {
    padding: 20px 22px 18px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .card-icon {
    width: 42px; height: 42px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--threat-dim);
    border: 1px solid #5e309d;
  }

  .card-icon svg { width: 20px; height: 20px; }

  .card-meta { flex: 1; min-width: 0; }

  .card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .card-subtitle {
    
    font-size: 10px;
    color: var(--text-dim);
    
  }

  .card-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .chip {
    
    font-size: 8.5px;
    
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
  }

  .chip-mitre {
    background: var(--mitre-dim);
    border: 1px solid rgba(155,89,255,0.25);
    color: var(--mitre);
  }

  .chip-severity {
    background: var(--threat-dim);
    border: 1px solid #3a1c63;
    color: var(--threat);
  }

  .chip-severity.med {
    background: var(--warn-dim);
    border-color: #3a1c63;
    color: var(--warn);
  }

  .card-toggle {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    transition: all 0.2s;
    margin-top: 2px;
  }

  .technique-card.open .card-toggle { border-color: var(--accent); color: var(--accent); }
  .card-toggle svg { width: 14px; height: 14px; transition: transform 0.3s; }
  .technique-card.open .card-toggle svg { transform: rotate(180deg); }

  /* Expandable body */
  .card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .technique-card.open .card-body { max-height: 800px; }

  .card-body-inner {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 0;
  }

  .body-section-title {
    
    font-size: 9px;
    
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
  }

  .attack-flow {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .flow-step-num {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 4px;
    background: var(--threat-dim);
    border: 1px solid #3a1c63;
    font-size: 8px;
    color: var(--threat);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
  }

  .flow-step-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
    flex: 1;
  }

  .code-block {
    background: #040810;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 14px;
    
    font-size: 11px;
    line-height: 1.7;
    color: var(--control);
    position: relative;
    overflow-x: auto;
  }

  .code-block .comment { color: var(--text-dim); }
  .code-block .cmd { color: var(--warn); }
  .code-block .arg { color: var(--accent); }

  .code-label {
    position: absolute;
    top: -8px; right: 10px;
    
    font-size: 8px;
    
    text-transform: uppercase;
    background: var(--threat);
    color: #fff;
    padding: 1px 6px;
    border-radius: 2px;
  }

  /* Delinea control box */
  .delinea-control {
    background: #1f1232;
    border: 1px solid #3a1c63;
    border-radius: 4px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
  }

  .delinea-control::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--control);
  }

  .delinea-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .delinea-logo-badge {
    
    font-size: 8px;
    font-weight: 500;
    
    text-transform: uppercase;
    background: var(--control);
    color: #000;
    padding: 2px 7px;
    border-radius: 2px;
  }

  .delinea-header-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--control);
  }

  .delinea-controls-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .delinea-control-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .control-check {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--control);
  }
  .control-check svg { width: 13px; height: 13px; }

  .control-detail {
    flex: 1;
  }

  .control-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 2px;
  }

  .control-desc {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-dim);
  }

  .control-product {
    
    font-size: 8.5px;
    
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 3px;
  }

  /* ── DETECTION MATRIX ── */
  .matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }

  .matrix-table th {
    
    font-size: 9px;
    
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    font-weight: 500;
  }

  .matrix-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    vertical-align: middle;
    transition: background 0.15s;
  }

  .matrix-table tr:hover td { background: var(--surface2); }

  .technique-name-cell {
    font-weight: 600;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .technique-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--threat);
    flex-shrink: 0;
  }

  .mitre-id {
    
    font-size: 9px;
    color: var(--mitre);
    background: var(--mitre-dim);
    border: 1px solid rgba(155,89,255,0.2);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
  }

  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    
    font-size: 9px;
    
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    white-space: nowrap;
  }

  .pill-prevent {
    background: #2a1647;
    border: 1px solid #5e309d;
    color: var(--control);
  }

  .pill-detect {
    background: #2a1647;
    border: 1px solid #5e309d;
    color: var(--accent);
  }

  .pill-both {
    background: linear-gradient(135deg, #3a1c6350, #3a1c637b);
    border: 1px solid #5e309d;
    color: var(--control);
  }

  .status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

  .delinea-products-cell {
    font-size: 11px;
    color: var(--text);
    line-height: 1.5;
  }

  .prod-tag {
    display: inline-block;
    
    font-size: 8.5px;
    
    padding: 1px 6px;
    border-radius: 2px;
    background: #5e309d;
    border: 1px solid #3a1c63;
    color: var(--text);
    margin: 1px 2px;
    white-space: nowrap;
  }

  /* ── KNOWLEDGE CHECK ── */
  .quiz-section { margin-top: 0; }

  .quiz-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 32px;
    margin-bottom: 2px;
    position: relative;
  }

  .quiz-num {
    
    font-size: 9px;
    
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
  }

  .quiz-q {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .quiz-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #1f1232;
  }

  .quiz-opt:hover:not(.selected):not(.correct):not(.wrong) {
    border-color: var(--border-bright);
    background: #2a1647;
  }

  .quiz-opt.correct {
    border-color: #77b255;
    background: #77b25520;
  }

  .quiz-opt.wrong {
    border-color: #dc143c;
    background: #dc143c2b;
  }

  .quiz-opt-radio {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border-bright);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }

  .quiz-opt.correct .quiz-opt-radio {
    border-color: #77b255;
    background: #77b25520;
  }
  .quiz-opt.wrong .quiz-opt-radio {
    border-color: #dc143c;
    background: #dc143c2b;
  }

  .quiz-opt-radio-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #000;
    opacity: 0;
    transition: opacity 0.15s;
  }

  .quiz-opt.correct .quiz-opt-radio-dot,
  .quiz-opt.wrong .quiz-opt-radio-dot { opacity: 1; }

  .quiz-opt-text {
    font-size: 13px;
    color: var(--text);
    flex: 1;
  }

  .quiz-opt.correct .quiz-opt-text { color: var(--control); font-weight: 600; }
  .quiz-opt.wrong .quiz-opt-text { color: var(--threat); }

  .quiz-explanation {
    margin-top: 14px;
    padding: 12px 14px;
    background: #23133a;
    border: 1px solid #3a1c63;
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text);
    display: none;
  }

  .quiz-explanation.show { display: block; }
  .quiz-explanation strong { color: var(--accent); }

  /* Score display */
  .score-display {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
  }

  .score-ring-wrap { position: relative; flex-shrink: 0; }

  .score-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .score-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--control);
    line-height: 1;
  }

  .score-total {
    
    font-size: 9px;
    color: var(--text-dim);
  }

  .score-info { flex: 1; }

  .score-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
  }

  .score-msg {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
  }

  .retry-btn {
    
    font-size: 10px;
    
    text-transform: uppercase;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 14px;
    display: inline-block;
  }

  .retry-btn:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 14px var(--accent-glow);
  }

  /* ── FOOTER ── */
  .delinea-threat-intel-guide footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 28px 40px;
  }

  .footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-text {
    
    font-size: 10px;
    color: var(--text-dim);
    
  }

  /* Utility */
  .flex-row { display: flex; align-items: center; gap: 10px; }
  .gap-sm { gap: 6px; }

  /* Tabs */
  .tab-bar {
    display: flex;
    gap: 2px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .tab-btn {
    
    font-size: 10px;
    
    text-transform: uppercase;
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    position: relative;
  }

  .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  .tab-btn:hover:not(.active) { color: var(--text); }

  .tab-pane { display: none; }
  .tab-pane.active { display: block; }

  /* Animations */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .technique-card {
    animation: fadeInUp 0.4s ease both;
  }

  .technique-card:nth-child(1) { animation-delay: 0.05s; }
  .technique-card:nth-child(2) { animation-delay: 0.1s; }
  .technique-card:nth-child(3) { animation-delay: 0.15s; }
  .technique-card:nth-child(4) { animation-delay: 0.2s; }
  .technique-card:nth-child(5) { animation-delay: 0.25s; }
  .technique-card:nth-child(6) { animation-delay: 0.3s; }
  .technique-card:nth-child(7) { animation-delay: 0.35s; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: #873cf015; }

  @media (max-width: 768px) {
    .header-inner{
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .delinea-threat-intel-guide header { padding: 0 20px; }
    .hero, .section { padding-left: 20px; padding-right: 20px; }
    .techniques-grid { grid-template-columns: 1fr; }
    .matrix-table { font-size: 11px; }
    .matrix-table th, .matrix-table td { padding: 8px 10px; }
    .score-display { flex-direction: column; }
  }