:root {
  --bg-hue: 226; --bg-sat: 60%;
  --bg: hsl(var(--bg-hue), var(--bg-sat), 5%);
  --panel: hsl(var(--bg-hue), 40%, 12%);
  --panel2: hsl(var(--bg-hue), 35%, 15%);
  --text: hsl(0, 0%, 98%);
  --muted: hsl(215, 25%, 65%);
  --line: hsla(215, 30%, 30%, 0.6);
  --cyan: hsl(188, 86%, 53%);
  --blue: hsl(200, 95%, 60%);
  --violet: hsl(258, 90%, 66%);
  --green: hsl(150, 75%, 55%);
  --yellow: hsl(45, 93%, 47%);
  --red: hsl(348, 83%, 65%);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(circle at 15% 0%, hsla(210, 80%, 25%, 0.4) 0, var(--bg) 40%),
              radial-gradient(circle at 85% 15%, hsla(270, 70%, 30%, 0.3) 0, transparent 35%),
              var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Outfit', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6; overflow-x: hidden;
}
body.light {
  --bg: hsl(220, 30%, 96%);
  --panel: hsl(0, 0%, 100%);
  --panel2: hsl(220, 20%, 92%);
  --text: hsl(220, 50%, 10%);
  --muted: hsl(215, 15%, 45%);
  --line: hsla(215, 20%, 80%, 0.8);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(15, 23, 42, 0.03);
  background: radial-gradient(circle at 20% 0%, hsla(210, 80%, 85%, 0.6) 0, var(--bg) 45%), var(--bg);
}
a { color: inherit; text-decoration: none; }
.page-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--green)); z-index: 100; transition: width 0.3s; }
.hero-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.5; mix-blend-mode: screen; }
.glass { background: hsla(220, 30%, 10%, 0.65); border: 1px solid hsla(0, 0%, 100%, 0.1); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
body.light .glass { background: hsla(0, 0%, 100%, 0.7); border: 1px solid hsla(0, 0%, 0%, 0.05); }

.site-header { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100vw - 32px)); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px 0 20px; border: 1px solid hsla(0, 0%, 100%, 0.1); border-radius: 24px; background: hsla(220, 40%, 8%, 0.75); backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); z-index: 50; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.site-header.scrolled { height: 64px; top: 12px; background: hsla(220, 40%, 8%, 0.85); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
body.light .site-header { background: hsla(0, 0%, 100%, 0.8); box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: 1px solid hsla(0,0%,0%,0.08); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: grid; place-items: center; color: #000; font-weight: 900; font-size: 24px; box-shadow: 0 4px 15px hsla(188, 86%, 53%, 0.4); transition: transform 0.2s; }
.brand-mark:hover { transform: scale(1.05) rotate(-2deg); }
.brand b { display: block; font-size: 19px; letter-spacing: -0.05em; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 700; transition: all 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--cyan); background: hsla(188, 86%, 53%, 0.12); transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn, .icon-btn { border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 14px; padding: 11px 16px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,0.1), transparent); opacity: 0; transition: opacity 0.2s; }
.btn:hover::before { opacity: 1; }
.btn:hover, .icon-btn:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 6px 20px hsla(188, 86%, 53%, 0.2); }
.btn.primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #020617; border: 0; font-weight: 900; box-shadow: 0 4px 20px hsla(188, 86%, 53%, 0.4); }
.btn.secondary { background: linear-gradient(135deg, hsla(258, 90%, 66%, 0.2), hsla(188, 86%, 53%, 0.15)); border: 1px solid hsla(188, 86%, 53%, 0.3); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.large { padding: 14px 22px; border-radius: 16px; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--text); font-size: 26px; }

.section { padding: 120px max(24px, calc((100vw - 1180px)/2)); }
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 160px; }
.eyebrow { display: inline-flex; color: var(--cyan); font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; font-size: 13px; border: 1px solid hsla(188, 86%, 53%, 0.3); background: hsla(188, 86%, 53%, 0.1); padding: 8px 14px; border-radius: 999px; animation: fadeUp 0.6s ease; }
.hero h1 { font-size: clamp(48px, 7vw, 86px); line-height: 1.05; margin: 24px 0; letter-spacing: -0.06em; max-width: 920px; text-wrap: balance; animation: fadeUp 0.8s ease; }
.hero-lead { font-size: 21px; color: var(--muted); max-width: 820px; animation: fadeUp 1s ease; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; animation: fadeUp 1.2s ease; }
.trust-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 32px; color: var(--muted); font-weight: 800; animation: fadeUp 1.4s ease; }
.trust-row i { width: 30px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.hero-panel { border-radius: 32px; padding: 28px; animation: scaleIn 1s cubic-bezier(0.2, 0.8, 0.2, 1); background: linear-gradient(180deg, hsla(220, 40%, 15%, 0.8), hsla(220, 40%, 10%, 0.8)); border: 1px solid hsla(220, 30%, 30%, 0.5); position: relative; }
.hero-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, hsla(188, 86%, 53%, 0.1), transparent); pointer-events: none; }
.panel-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.panel-top small { margin-left: auto; color: var(--muted); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); animation: pulse 2s infinite; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric-grid div { border: 1px solid var(--line); background: hsla(220, 30%, 15%, 0.6); border-radius: 20px; padding: 20px; transition: transform 0.2s; }
.metric-grid div:hover { transform: translateY(-3px); border-color: var(--cyan); }
.metric-grid b { font-size: 40px; display: block; letter-spacing: -0.06em; line-height: 1; }
.metric-grid span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 850; margin-top: 8px; display: block; }
.mini-terminal { margin-top: 20px; border: 1px solid var(--line); background: #030712; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.terminal-head { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; background: hsla(220, 30%, 15%, 0.8); }
.terminal-head i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 5px var(--red); }
.terminal-head i:nth-child(2) { background: var(--yellow); box-shadow: 0 0 5px var(--yellow); }
.terminal-head i:nth-child(3) { background: var(--green); box-shadow: 0 0 5px var(--green); }
.mini-terminal pre { min-height: 240px; margin: 0; padding: 18px; color: #bae6fd; font: 13px/1.6 'JetBrains Mono', ui-monospace, monospace; white-space: pre-wrap; }

.section-head { max-width: 880px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.1; margin: 16px 0; letter-spacing: -0.05em; }
.section-head p { color: var(--muted); font-size: 20px; line-height: 1.6; }
.alt { background: linear-gradient(180deg, hsla(220, 40%, 10%, 0.5), hsla(220, 40%, 5%, 0.2)); border-block: 1px solid hsla(0,0%,100%,0.05); }
.architecture-map { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: center; }
.arch-node { min-height: 140px; border: 1px solid var(--line); background: linear-gradient(145deg, hsla(220, 40%, 15%, 0.9), hsla(220, 40%, 10%, 0.9)); border-radius: 24px; padding: 22px; font-weight: 900; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; }
.arch-node:hover { transform: translateY(-5px); border-color: var(--cyan); box-shadow: 0 15px 40px hsla(188, 86%, 53%, 0.2); }
.arch-node small { display: block; color: var(--muted); font-weight: 600; margin-top: 10px; font-size: 13px; }
.arch-arrow { text-align: center; color: var(--cyan); font-size: 32px; animation: pulseOp 2s infinite; }
.feature-grid, .resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .resource-card, .flow-step, .stack-board div { border: 1px solid var(--line); background: linear-gradient(180deg, hsla(220, 40%, 15%, 0.95), hsla(220, 40%, 10%, 0.95)); border-radius: 24px; padding: 24px; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.feature-card:hover, .resource-card:hover, .flow-step:hover, .stack-board div:hover { transform: translateY(-6px); border-color: hsla(188, 86%, 53%, 0.5); box-shadow: 0 15px 40px hsla(188, 86%, 53%, 0.15); }
body.light .feature-card, body.light .resource-card, body.light .flow-step, body.light .stack-board div, body.light .arch-node { background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.feature-card span { color: var(--cyan); font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; display: inline-block; margin-bottom: 8px; }
.feature-card h3, .resource-card b, .flow-step h3, .stack-board h3 { margin: 8px 0 12px; color: var(--text); font-size: 22px; letter-spacing: -0.02em; }
.feature-card p, .resource-card span, .flow-step p, .stack-board p { color: var(--muted); line-height: 1.6; }
.flow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.flow-step b { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: grid; place-items: center; color: #020617; font-size: 18px; margin-bottom: 12px; }
.stack-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card { display: block; }
.resource-card b { display: block; font-size: 20px; }
.site-footer { padding: 40px max(24px, calc((100vw - 1180px)/2)); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer b { display: block; color: var(--text); font-size: 16px; }
.site-footer a { color: var(--cyan); font-weight: 800; transition: color 0.2s; }
.site-footer a:hover { color: var(--blue); }
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--delay, 0ms); }
.reveal.show { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(1.2); opacity: 0.8; } }
@keyframes pulseOp { 50% { opacity: 0.4; } }

@media(max-width: 1100px) { .site-nav { display: none; } .mobile-menu { display: block; } .header-actions { display: none; } .site-header.open { height: auto; display: grid; padding: 18px; border-radius: 28px; } .site-header.open .site-nav { display: flex; flex-direction: column; width: 100%; gap: 8px; grid-column: 1/-1; margin-top: 12px; } .site-header.open .header-actions { display: flex; width: 100%; justify-content: flex-start; gap: 8px; grid-column: 1/-1; margin-top: 12px; } .hero { grid-template-columns: 1fr; gap: 30px; } .architecture-map, .feature-grid, .flow-grid, .stack-board, .resource-grid { grid-template-columns: 1fr 1fr; } .arch-arrow { display: none; } }
@media(max-width: 720px) { .section { padding: 80px 20px; } .hero { padding-top: 140px; } .architecture-map, .feature-grid, .flow-grid, .stack-board, .resource-grid, .metric-grid { grid-template-columns: 1fr; } .hero-actions .btn { width: 100%; } .site-footer { display: grid; gap: 12px; text-align: center; justify-content: center; } .brand small { display: none; } .hero h1 { font-size: 40px; } .trust-row { justify-content: center; gap: 8px 12px; } .trust-row i { display: none; } }

/* Project structure section */
.structure-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; margin-bottom: 20px; }
.implementation-map { margin-bottom: 20px; }
.structure-card { border: 1px solid var(--line); background: linear-gradient(180deg, hsla(220, 40%, 15%, 0.95), hsla(220, 40%, 10%, 0.95)); border-radius: 24px; padding: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: transform 0.3s; }
.structure-card:hover { transform: translateY(-4px); border-color: hsla(258, 90%, 66%, 0.4); }
body.light .structure-card { background: #ffffff; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.card-head h3 { margin: 0; font-size: 20px; }
.card-head span { color: var(--violet); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.file-tree { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; color: #e2e8f0; overflow-x: auto; white-space: nowrap; }
.file-tree details { margin: 8px 0 8px 20px; }
.file-tree > details { margin-left: 0; }
.file-tree summary { cursor: pointer; color: var(--cyan); font-weight: 800; list-style: none; padding: 4px 0; }
.file-tree summary::before { content: '▸'; display: inline-block; margin-right: 8px; transition: transform 0.2s; color: var(--muted); }
.file-tree details[open] > summary::before { transform: rotate(90deg); color: var(--cyan); }
.file-tree p { margin: 8px 0 10px 26px; color: var(--muted); line-height: 1.6; }
.tree-file { color: var(--text) !important; font-weight: 500; }
.route-list { display: grid; gap: 12px; }
.route-list a { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: hsla(220, 40%, 10%, 0.5); font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--cyan); font-weight: 800; transition: all 0.2s; }
.route-list a:hover { background: hsla(188, 86%, 53%, 0.1); transform: translateX(4px); }
.route-list small { display: block; margin-top: 6px; color: var(--muted); font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 13px; }
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 14px; text-align: left; vertical-align: top; font-size: 14px; }
.info-table th:last-child, .info-table td:last-child { border-right: none; }
.info-table tr:last-child td { border-bottom: none; }
.info-table th { background: hsla(188, 86%, 53%, 0.15); color: var(--cyan); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.info-table td:nth-child(2) { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--muted); font-size: 13px; }
.clean-list { margin: 0; padding-left: 20px; color: var(--muted); }
.clean-list li { margin: 10px 0; }
.clean-list b { color: var(--cyan); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.code-block { margin: 0; background: #030712; color: #e2e8f0; border: 1px solid var(--line); border-radius: 18px; padding: 20px; overflow: auto; font: 14px/1.6 'JetBrains Mono', ui-monospace, monospace; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
body.light .code-block { background: #0f172a; color: #e2e8f0; }
@media(max-width: 980px) { .structure-grid { grid-template-columns: 1fr; } .info-table { min-width: 760px; } .implementation-map { overflow: auto; } }

/* Dynamic Doc Viewer Styles */
.doc-viewer-grid { display: grid; grid-template-columns: 280px 1fr; gap: 30px; margin-top: 40px; }
.doc-sidebar { display: flex; flex-direction: column; gap: 10px; }
.doc-link { padding: 12px 18px; border-radius: 14px; background: hsla(220, 40%, 15%, 0.8); color: var(--muted); cursor: pointer; border: 1px solid var(--line); font-weight: 600; transition: all 0.2s; }
.doc-link:hover, .doc-link.active { background: hsla(188, 86%, 53%, 0.15); color: var(--cyan); border-color: hsla(188, 86%, 53%, 0.4); transform: translateX(5px); }
.doc-content { background: hsla(220, 40%, 10%, 0.7); border: 1px solid var(--line); border-radius: 20px; padding: 40px; min-height: 500px; box-shadow: inset 0 0 30px rgba(0,0,0,0.3); }
.doc-content h1 { font-size: 36px; color: var(--cyan); margin-top: 0; }
.doc-content h2 { font-size: 26px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-top: 30px; }
.doc-content pre { background: #030712; padding: 20px; border-radius: 16px; overflow-x: auto; border: 1px solid hsla(0,0%,100%,0.1); }
.doc-content code { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #bae6fd; font-size: 14px; }
.doc-content a { color: var(--cyan); text-decoration: underline; }
.doc-content blockquote { border-left: 4px solid var(--violet); margin: 0; padding: 10px 20px; background: hsla(258, 90%, 66%, 0.1); border-radius: 0 12px 12px 0; }
@media(max-width: 900px) {
  .doc-viewer-grid { grid-template-columns: 1fr; }
  .doc-content { padding: 20px; }
  .doc-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .doc-sidebar::-webkit-scrollbar {
    display: none;
  }
  .doc-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Light Theme Additions */
body.light .alt {
  background: hsl(220, 20%, 94%);
  border-color: var(--line);
}

body.light .doc-link {
  background: #ffffff;
  color: var(--muted);
  border-color: var(--line);
}
body.light .doc-link:hover, body.light .doc-link.active {
  background: hsla(188, 86%, 53%, 0.08);
  color: hsl(188, 90%, 35%);
  border-color: hsla(188, 86%, 53%, 0.4);
}

body.light .doc-content {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.02);
}
body.light .doc-content h1, body.light .doc-content h2, body.light .doc-content h3 {
  color: var(--text);
}
body.light .doc-content code {
  color: hsl(200, 95%, 30%);
  background: hsl(220, 20%, 94%);
}
body.light .doc-content pre {
  background: hsl(220, 20%, 94%);
  border-color: var(--line);
}
body.light .doc-content blockquote {
  background: hsl(258, 90%, 96%);
  border-left-color: var(--violet);
}

body.light .file-tree {
  color: var(--soft);
}
body.light .file-tree summary {
  color: hsl(200, 90%, 35%);
}
body.light .file-tree p {
  color: var(--muted);
}
body.light .tree-file {
  color: var(--text) !important;
}

body.light .route-list a {
  background: hsl(220, 20%, 94%);
  color: hsl(200, 90%, 35%);
  border-color: var(--line);
}
body.light .route-list a:hover {
  background: hsla(188, 86%, 53%, 0.08);
}
body.light .route-list small {
  color: var(--muted);
}

/* ==========================================
   INTERACTIVE SHOWCASE & SIMULATOR STYLES
   ========================================== */
.showcase-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  min-height: 520px;
  border: 1px solid var(--line);
}
.showcase-tabs {
  background: hsla(226, 40%, 8%, 0.5);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  gap: 8px;
}
body.light .showcase-tabs {
  background: hsl(220, 20%, 94%);
}
.showcase-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.showcase-tab .icon {
  font-size: 18px;
  color: var(--muted);
  transition: color 0.2s;
}
.showcase-tab:hover {
  color: var(--text);
  background: hsla(0, 0%, 100%, 0.04);
}
body.light .showcase-tab:hover {
  background: hsla(0, 0%, 0%, 0.03);
}
.showcase-tab.active {
  background: hsla(188, 86%, 53%, 0.12);
  color: var(--cyan);
  border-color: hsla(188, 86%, 53%, 0.25);
  box-shadow: 0 4px 12px hsla(188, 86%, 53%, 0.05);
}
.showcase-tab.active .icon {
  color: var(--cyan);
}
body.light .showcase-tab.active {
  background: hsla(188, 86%, 53%, 0.08);
  color: hsl(188, 90%, 35%);
  border-color: hsla(188, 86%, 53%, 0.2);
}
body.light .showcase-tab.active .icon {
  color: hsl(188, 90%, 35%);
}

.showcase-panels {
  padding: 32px;
  background: hsla(226, 40%, 6%, 0.2);
}
body.light .showcase-panels {
  background: #ffffff;
}
.showcase-panel {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.showcase-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.panel-left h3 {
  margin-top: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.panel-left p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 24px;
}

/* Ingestion trigger buttons */
.trigger-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-btn {
  background: hsla(226, 30%, 12%, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 18px;
  text-align: left;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.light .showcase-btn {
  background: hsl(220, 20%, 94%);
}
.showcase-btn:hover {
  transform: translateX(4px);
  border-color: var(--cyan);
  background: hsla(188, 86%, 53%, 0.08);
}
body.light .showcase-btn:hover {
  background: hsla(188, 86%, 53%, 0.05);
}
.showcase-btn span {
  font-size: 18px;
}

/* Terminals */
.terminal-container {
  border: 1px solid var(--line);
  background: #030712;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal-bar {
  background: hsla(226, 35%, 12%, 0.8);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
body.light .terminal-bar {
  background: hsl(220, 20%, 92%);
}
.terminal-bar i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  margin-left: 4px;
  opacity: 0.5;
}
.terminal-body {
  margin: 0;
  padding: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
  min-height: 260px;
}

/* Incident Command Mock Card */
.mock-incident-card {
  border: 1px solid var(--line);
  background: hsla(226, 30%, 12%, 0.5);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
body.light .mock-incident-card {
  background: hsl(220, 20%, 96%);
}
.mic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.badge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge.high {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge.risk-score {
  background: rgba(167, 139, 250, 0.15);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.mock-incident-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}
.mock-incident-card .summary {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.correlation-logic {
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
body.light .correlation-logic {
  background: rgba(0, 0, 0, 0.02);
}
.logic-line {
  font-size: 13px;
  margin-bottom: 8px;
}
.logic-line:last-child {
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}
.logic-line code {
  background: rgba(188, 86, 53, 0.15);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.evidence-timeline {
  border-left: 2px solid var(--line);
  padding-left: 16px;
  margin-left: 8px;
}
.timeline-point {
  position: relative;
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}
.timeline-point:last-child {
  margin-bottom: 0;
}
.timeline-point .dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.timeline-point .dot.camera { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.timeline-point .dot.sensor { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

/* RAG chunk grid */
.rag-search-box {
  margin-bottom: 16px;
}
.rag-search-box input {
  width: 100%;
  background: hsla(226, 30%, 12%, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
body.light .rag-search-box input {
  background: #ffffff;
}
.rag-search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.15);
}
.rag-citations {
  background: hsla(0, 0%, 100%, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
body.light .rag-citations {
  background: rgba(0,0,0,0.02);
}
.citation-item {
  font-size: 13px;
  line-height: 1.5;
}
.chunk-map-legend {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}
.showcase-chunk-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.chunk-block {
  aspect-ratio: 1;
  background: hsla(226, 30%, 15%, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
body.light .chunk-block {
  background: hsl(220, 20%, 92%);
}
.chunk-block:hover {
  transform: scale(1.1);
}
.chunk-block.highlighted {
  border-color: var(--cyan);
  box-shadow: 0 0 10px hsla(188, 86%, 53%, 0.4);
}
.chunk-block.matched-0 { background: hsl(188, 80%, 35%); }
.chunk-block.matched-1 { background: hsl(188, 80%, 45%); }
.chunk-block.matched-2 { background: hsl(188, 80%, 55%); }
.chunk-block.matched-3 { background: hsl(188, 80%, 65%); }

/* Agent workflow pipeline */
.agent-graph-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.agent-graph-node {
  border: 1px solid var(--line);
  background: hsla(226, 30%, 12%, 0.6);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.light .agent-graph-node {
  background: hsl(220, 20%, 94%);
}
.agent-graph-node b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.agent-graph-node span {
  font-size: 11px;
  color: var(--muted);
}
.agent-graph-node.active {
  border-color: var(--cyan);
  background: hsla(188, 86%, 53%, 0.15);
  transform: scale(1.03);
  box-shadow: 0 4px 15px hsla(188, 86%, 53%, 0.15);
}
body.light .agent-graph-node.active {
  background: hsla(188, 86%, 53%, 0.1);
  border-color: hsl(188, 90%, 35%);
}
.agent-graph-node.done {
  border-color: var(--green);
  background: hsla(150, 75%, 55%, 0.1);
}
body.light .agent-graph-node.done {
  background: hsla(150, 75%, 55%, 0.08);
  border-color: hsl(150, 70%, 35%);
}

/* Knowledge Graph */
.graph-svg-container {
  border: 1px solid var(--line);
  background: #050a15;
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
body.light .graph-svg-container {
  background: hsl(220, 20%, 96%);
}
#simGraphSvg {
  width: 100%;
  height: 100%;
  user-select: none;
}
.graph-node-circle {
  transition: all 0.25s ease;
  cursor: pointer;
}
.graph-node-circle:hover, .graph-node-circle.active {
  stroke-width: 3px;
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
}
.graph-node-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  fill: var(--text);
  pointer-events: none;
  text-anchor: middle;
}
.graph-edge-line {
  stroke: var(--line);
  stroke-width: 1.5px;
  transition: stroke 0.2s;
}
.graph-edge-line.active {
  stroke: var(--cyan);
  stroke-width: 2.5px;
}
.graph-hover-info {
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  font-size: 13px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
  color: var(--muted);
}
body.light .graph-hover-info {
  background: rgba(0,0,0,0.02);
}

/* Security & Audit RBAC Matrix */
.role-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.role-pill {
  background: hsla(226, 30%, 12%, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  padding: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
body.light .role-pill {
  background: hsl(220, 20%, 94%);
}
.role-pill:hover {
  color: var(--text);
}
.role-pill.active {
  background: hsla(258, 90%, 66%, 0.15);
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: 0 4px 12px hsla(258, 90%, 66%, 0.15);
}
body.light .role-pill.active {
  background: hsla(258, 90%, 66%, 0.1);
  border-color: hsl(258, 80%, 45%);
  color: hsl(258, 80%, 45%);
}
.permissions-card {
  border: 1px solid var(--line);
  background: hsla(226, 30%, 12%, 0.5);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}
body.light .permissions-card {
  background: hsl(220, 20%, 96%);
}
.permissions-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
}
body.light .permissions-card h4 {
  color: hsl(188, 90%, 30%);
}
.permission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.permission-list li {
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.permission-list li.allowed {
  color: var(--text);
}
.permission-list li.denied {
  color: var(--muted);
  opacity: 0.5;
}
.audit-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.audit-ln {
  color: #a78bfa;
}
body.light .audit-ln {
  color: hsl(258, 85%, 40%);
}

/* Responsive adjustments for showcase */
@media(max-width: 900px) {
  .showcase-container {
    grid-template-columns: 1fr;
  }
  .showcase-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    padding: 12px;
  }
  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }
  .showcase-tab {
    flex: 0 0 auto;
  }
  .panel-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
