*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --border: rgba(255,255,255,0.07);
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent-glow: rgba(124,58,237,0.3);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --cyan: #06b6d4;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent2); }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.logo-cat { font-size: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-gh {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text) !important;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.nav-gh:hover { border-color: var(--accent2); background: rgba(124,58,237,0.1); }

/* HERO */
.hero {
  position: relative;
  padding: 160px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-sub code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent2);
  background: rgba(124,58,237,0.15);
  padding: 1px 6px;
  border-radius: 4px;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 64px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn.sm { padding: 8px 18px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-outline:hover {
  border-color: var(--accent2);
  color: var(--text);
  background: rgba(124,58,237,0.08);
}

/* TERMINAL */
.terminal-wrap {
  padding-bottom: 80px;
}
.terminal {
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  text-align: left;
}
.terminal-bar {
  background: #161622;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}
.t-line { display: flex; gap: 8px; flex-wrap: wrap; }
.t-prompt { color: var(--accent2); flex-shrink: 0; }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-muted); padding-left: 4px; }
.t-info { color: var(--cyan); padding-left: 4px; }
.t-success { color: var(--green); padding-left: 4px; }
.t-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent2);
}
@keyframes blink { 50% { opacity: 0; } }

/* SECTIONS COMMON */
section { padding: 100px 0; }
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* FEATURES */
.features { background: var(--bg2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-3px);
}
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.feature-card code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent2);
  background: rgba(124,58,237,0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

/* INSTALL */
.install { background: var(--bg); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 8px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.step-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-body p { font-size: 15px; color: var(--text-dim); margin-bottom: 16px; }
.step-body p strong { color: var(--text); }
.step-body p code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  background: rgba(124,58,237,0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

/* CODE BLOCK */
.code-block {
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.code-block pre {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
}
.code-block.large pre { font-size: 14px; }
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #161622;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.copy-btn {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent2);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(124,58,237,0.3); }
.c-comment { color: #4a5568; }

/* BUILD */
.build { background: var(--bg2); }
.build-sub { color: var(--text-dim); margin-top: -32px; margin-bottom: 32px; font-size: 16px; }

/* STACK */
.stack { background: var(--bg); }
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.stack-item:hover { border-color: var(--accent2); color: var(--text); }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.footer-inner { text-align: center; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}
.footer-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 14px;
}
.footer-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent2); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-copy a { color: var(--text-dim); transition: color 0.2s; }
.footer-copy a:hover { color: var(--accent2); }

/* DEMO — themed to match the real app (blue accent, left rail) */
.demo {
  background: var(--bg);
  /* scoped blue palette matching the app */
  --b: #6c8cff;
  --b-dim: #5b7fd9;
  --b-solid: #2f5fd0;
  --grn: #10b981;
  --red-badge: #7f1d1d;
}
.demo-sub { color: var(--text-dim); margin-top: -32px; margin-bottom: 48px; font-size: 16px; }

.demo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

/* Phone frame */
.phone { flex-shrink: 0; }
.phone-frame {
  width: 300px;
  background: #0b0b10;
  border-radius: 44px;
  border: 2px solid #23232f;
  box-shadow:
    0 0 0 6px #08080c,
    0 0 0 8px #181824,
    0 40px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(108,140,255,0.12);
  padding: 14px 10px 10px;
  position: relative;
}
.phone-notch {
  width: 80px; height: 22px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 6px;
  border: 2px solid #15151f;
  border-top: none;
}
.phone-screen {
  background: #000;
  border-radius: 32px;
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.phone-home-bar {
  width: 100px; height: 4px;
  background: #2a2a3a;
  border-radius: 2px;
  margin: 8px auto 0;
}

/* Status bar */
.sb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: #000;
  flex-shrink: 0;
}
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-batt { background: #1c1c28; border-radius: 8px; padding: 1px 6px; font-size: 9px; }

/* App shell */
.app-shell { flex: 1; display: flex; overflow: hidden; }

/* LEFT RAIL */
.rail {
  width: 64px;
  background: #050507;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 6px;
  overflow-y: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.rail::-webkit-scrollbar { display: none; }
.rail-logo { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; }
.rail-logo-badge {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #bcd0f5, #93b4f0);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #1a2b52;
}
.rail-logo-text { font-size: 8px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.rail-logo-pro { font-size: 8px; font-weight: 700; color: #34d399; letter-spacing: 1px; }
.rail-divider { width: 28px; height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0 6px; }
.rail-item {
  width: 100%;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px; color: #6b7280;
  transition: color 0.2s, background 0.2s;
  border-radius: 10px;
}
.rail-item span { font-size: 8px; font-family: var(--sans); }
.rail-item:hover { color: var(--text-dim); }
.rail-item.active { color: var(--b); }
.rail-item.active svg { filter: drop-shadow(0 0 6px rgba(108,140,255,0.5)); }
.rail-ai {
  margin-top: 10px;
  width: 44px; height: 44px;
  background: #14141f;
  border: 1px solid rgba(108,140,255,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--b); cursor: pointer;
  transition: background 0.2s;
}
.rail-ai:hover { background: #1a1a2a; }

/* MAIN */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #000; }
.topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 10px;
  flex-shrink: 0;
}
.topbar-title { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; line-height: 1.2; }
.topbar-enc {
  font-size: 9px; font-weight: 700; color: #04150e;
  background: #1ea672; border-radius: 6px; padding: 4px 7px; line-height: 1.1;
}
.topbar-audit {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 600; color: var(--b);
  background: #14141f; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 4px 7px;
}

/* Screen content */
.screen-content { flex: 1; overflow: hidden; position: relative; }
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: #000;
  padding: 4px 12px 14px;
  gap: 8px;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: flex; }

/* Section kicker + heading */
.kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--b-dim); text-transform: uppercase; flex-shrink: 0; }
.panel-h { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; flex-shrink: 0; line-height: 1.2; }

/* Sub tabs */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; margin-bottom: 4px; }
.subtab {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px 9px; color: #6b7280; font-size: 11px; font-weight: 600;
  border-bottom: 2px solid transparent; transition: color 0.2s;
}
.subtab.active { color: var(--b); border-bottom-color: var(--b); }

.subpanel { display: none; flex-direction: column; gap: 8px; }
.subpanel.show { display: flex; }

/* Generic cards */
.panel-card { background: #0c0c14; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.empty-card {
  background: #0a0a12; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px;
  padding: 32px 18px; text-align: center; min-height: 240px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.empty-title { font-size: 15px; font-weight: 700; color: var(--text); }
.empty-sub { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Fields (RPC form) */
.field { background: #0c0c14; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 8px 10px; }
.field label { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 3px; }
.field-val { font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-all; }
.field-val.on { color: var(--grn); }
.field-row { display: flex; gap: 8px; }
.field.half { flex: 1; }
.blue-btn { background: #14141f; border: 1px solid rgba(108,140,255,0.4); color: var(--b); border-radius: 8px; padding: 10px; font-weight: 700; font-size: 12px; cursor: pointer; transition: background 0.2s; }
.blue-btn:hover { background: #1a1a2a; }
.blue-btn.solid { background: var(--b-solid); color: #fff; border-color: var(--b-solid); display: inline-flex; align-items: center; gap: 5px; }
.blue-btn.sm { padding: 8px 14px; font-size: 12px; }

/* Audit trail */
.creds-empty { min-height: 90px; }
.trail-h { font-size: 15px; font-weight: 700; color: var(--text); border-top: 1px solid rgba(255,255,255,0.07); padding-top: 12px; flex-shrink: 0; }
.trail { display: flex; flex-direction: column; gap: 14px; }
.trail-item { display: flex; gap: 10px; }
.trail-dot { width: 5px; border-radius: 3px; flex-shrink: 0; }
.trail-dot.ok { background: #2bbd6e; }
.trail-dot.err { background: #ef4444; }
.trail-body { flex: 1; }
.trail-top { display: flex; justify-content: space-between; align-items: baseline; }
.trail-title { font-size: 12px; font-weight: 700; color: var(--text); }
.trail-time { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }
.trail-desc { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin-top: 2px; }

/* AI Security */
.ai-chip { align-self: flex-start; font-size: 10px; color: var(--b); background: rgba(108,140,255,0.12); border: 1px solid rgba(108,140,255,0.3); border-radius: 999px; padding: 3px 10px; font-family: var(--mono); }
.ai-bubble { font-size: 12px; line-height: 1.55; border-radius: 12px; padding: 10px 12px; max-width: 90%; }
.ai-bubble.user { align-self: flex-end; background: var(--b-solid); color: #fff; border-bottom-right-radius: 4px; }
.ai-bubble.bot { align-self: flex-start; background: #0c0c14; border: 1px solid rgba(255,255,255,0.07); color: var(--text-dim); border-bottom-left-radius: 4px; }
.ai-input { margin-top: auto; display: flex; justify-content: space-between; align-items: center; background: #0c0c14; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-muted); }
.ai-send { color: var(--b); }

/* Topology */
.topo-card { background: #0a0a16; border: 1px solid rgba(108,140,255,0.18); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.topo-matrix { flex: 1; min-width: 90px; }
.topo-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; font-family: var(--mono); }
.topo-toggle { display: flex; background: #0c0c14; border-radius: 8px; padding: 3px; gap: 2px; }
.topo-toggle .tg { font-size: 10px; padding: 5px 9px; border-radius: 6px; color: var(--text-muted); white-space: nowrap; }
.topo-toggle .tg.active { background: #aebfff; color: #1a2b52; font-weight: 600; }
.topo-canvas {
  flex: 1; min-height: 220px; border-radius: 14px;
  background:
    radial-gradient(circle at 30% 40%, rgba(108,140,255,0.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 22px),
    #05050c;
  margin-top: 4px;
}
.topo-hint { font-size: 11px; color: var(--text-dim); background: #0a0a14; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 12px; flex-shrink: 0; }

/* Modules */
.search-bar { display: flex; align-items: center; gap: 10px; background: #0c0c14; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 14px; font-size: 12px; flex-shrink: 0; color: var(--text-muted); }
.search-placeholder { color: var(--text-muted); font-size: 13px; }
.chips { display: flex; gap: 6px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 10px; }
.chip { font-size: 11px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); }
.chip.active { background: transparent; color: var(--text); border: none; }
.chip:not(.active) { background: transparent; }
.mod-list { display: flex; flex-direction: column; gap: 0; }
.mod-item { padding: 14px 2px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mod-type { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.mod-type.exploit { background: var(--red-badge); color: #fca5a5; }
.mod-type.aux { background: rgba(6,182,212,0.15); color: var(--cyan); }
.mod-rank { font-size: 11px; font-weight: 600; }
.mod-rank.excellent { color: #4ade80; }
.mod-name { font-weight: 700; color: var(--text); margin-bottom: 3px; word-break: break-all; }
.mod-name.big { font-size: 13px; }
.mod-path { font-family: var(--mono); font-size: 11px; color: var(--text-muted); word-break: break-all; }
.mod-desc { font-size: 10px; color: var(--text-dim); line-height: 1.4; }

/* Listeners */
.listener-list { display: flex; flex-direction: column; gap: 8px; }
.listener-card { background: #0c0c14; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px; }
.listener-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.listener-status { font-size: 10px; font-weight: 600; }
.listener-status.running { color: var(--grn); }
.listener-job { font-size: 10px; color: var(--text-muted); font-family: var(--mono); }
.listener-payload { font-family: var(--mono); font-size: 11px; color: var(--b); margin-bottom: 3px; word-break: break-all; }
.listener-addr { font-family: var(--mono); font-size: 12px; color: var(--text); }

/* Automation / Import */
.import-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.select-box { background: #0c0c14; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px; font-size: 13px; color: var(--b); }
.text-box { background: #0a0a12; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.text-box.tall { min-height: 120px; }
.ghost-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: #0c0c14; border: 1px solid rgba(255,255,255,0.1); color: var(--b); border-radius: 10px; padding: 12px 16px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* Sessions */
.session-list { display: flex; flex-direction: column; gap: 8px; }
.sess-card { background: #0c0c14; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 10px; cursor: pointer; transition: border-color 0.2s; }
.sess-card:hover { border-color: rgba(108,140,255,0.5); }
.sess-top { display: flex; justify-content: space-between; margin-bottom: 5px; }
.sess-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.sess-badge.meterpreter { background: rgba(108,140,255,0.18); color: var(--b); border: 1px solid rgba(108,140,255,0.35); }
.sess-badge.shell { background: rgba(6,182,212,0.2); color: var(--cyan); border: 1px solid rgba(6,182,212,0.35); }
.sess-id { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.sess-ip { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }
.sess-info { font-size: 10px; color: var(--text-muted); margin-top: 2px; font-family: var(--mono); }

/* Session detail */
.sess-detail {
  position: absolute;
  inset: 0;
  background: #000;
  display: none;
  flex-direction: column;
  padding: 10px 12px;
  gap: 8px;
}
.sess-detail.open { display: flex; }
.sess-detail-header { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; font-family: var(--mono); }
.back-btn { background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: var(--text-dim); border-radius: 6px; padding: 4px 8px; font-size: 11px; cursor: pointer; }
.mini-term { flex: 1; background: #05050a; border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-family: var(--mono); font-size: 11px; overflow-y: auto; scrollbar-width: none; }
.mini-term::-webkit-scrollbar { display: none; }
.mt-line { margin-bottom: 2px; line-height: 1.6; }
.mt-p { color: var(--b); }
.mt-c { color: var(--text); }
.mt-out { color: var(--text-dim); padding-left: 4px; }
.mt-cursor { animation: blink 1s step-end infinite; color: var(--b); }
.cmd-row { display: flex; gap: 6px; flex-shrink: 0; }
.cmd-input { flex: 1; background: #0c0c14; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: 12px; padding: 7px 10px; outline: none; }
.cmd-input:focus { border-color: var(--b); }
.cmd-send { background: var(--b-solid); border: none; color: #fff; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 12px; }

/* Console */
.console-body { flex: 1; overflow-y: auto; padding: 8px; font-family: var(--mono); font-size: 11px; line-height: 1.7; scrollbar-width: none; background: #05050a; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; }
.console-body::-webkit-scrollbar { display: none; }
.cl { color: var(--text-dim); }
.cl .cp { color: var(--b); }
.cl.info { color: #3b4a6b; }
.cl.out { color: var(--text-dim); }
.cl.success { color: var(--grn); }
.cl.error { color: var(--red); }
.console-input-row { display: flex; align-items: center; gap: 6px; padding: 10px; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; flex-shrink: 0; background: #0c0c14; }
.ci-prompt { font-family: var(--mono); font-size: 11px; color: var(--b); white-space: nowrap; }
.ci-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 11px; }

/* Terminals — console multiplexer */
.term-head { display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.round-add { width: 30px; height: 30px; border-radius: 50%; background: #14141f; border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); font-size: 16px; cursor: pointer; flex-shrink: 0; }
.console-tile { display: flex; align-items: center; gap: 12px; background: #07070e; border: 1px solid rgba(108,140,255,0.4); border-radius: 12px; padding: 14px; color: var(--text); cursor: pointer; flex-shrink: 0; }
.ct-name { font-size: 14px; font-weight: 700; }
.ct-status { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.prov-card { background: #0a0a14; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.prov-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--b); }
.prov-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--text-muted); }
.preset-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.preset { font-size: 12px; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); }
.preset.active { color: var(--b); border: 1px solid rgba(108,140,255,0.5); background: rgba(108,140,255,0.08); }
.spawn-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spawn-counts { display: flex; gap: 10px; align-items: center; }
.cnt { font-size: 12px; color: var(--text-muted); padding: 4px 6px; }
.cnt.active { color: #a78bfa; border: 1px solid rgba(167,139,250,0.5); border-radius: 8px; }
.spawn-btn { background: #aebfff; color: #11214a; border: none; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.kicker.grn { color: #2bbd6e; }
.kicker.cyan { color: #2dd4bf; }
.tunnel-item { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 4px 0; }
.tunnel-item .bug { color: #2bbd6e; flex-shrink: 0; }
.tn-body { flex: 1; }
.tn-name { font-size: 14px; font-weight: 700; color: var(--text); }
.tn-ip { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.met-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; color: #fff; background: #2f7d4f; border-radius: 4px; padding: 5px 8px; flex-shrink: 0; }
.lab-status { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 12px; margin-top: 4px; flex-shrink: 0; }
.ls-secure { font-size: 11px; font-weight: 700; color: #2bbd6e; }
.ls-disc { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* Sessions — gateways + meterpreter panel */
.gw-card { background: #0a0e1a; border: 1px solid rgba(108,140,255,0.15); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.gw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.nmap-btn { display: inline-flex; align-items: center; gap: 5px; background: #14141f; border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); border-radius: 8px; padding: 8px 10px; font-size: 11px; font-weight: 600; cursor: pointer; flex-shrink: 0; line-height: 1.3; }
.gw-sess { background: #07101e; border: 1px solid rgba(108,140,255,0.45); border-radius: 12px; padding: 14px; cursor: pointer; }
.gw-sess.peek { opacity: 0.55; border-color: rgba(255,255,255,0.08); padding-bottom: 10px; }
.gw-sess-top { display: flex; align-items: center; gap: 8px; }
.gw-name { font-size: 15px; font-weight: 700; color: var(--text); flex: 1; }
.gw-addr { font-size: 13px; color: var(--text); margin-top: 10px; }
.gw-route { font-family: var(--mono); font-size: 10px; color: var(--text-muted); margin-top: 4px; word-break: break-all; }
.browse-btn { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #1a6b3a; border: none; color: #fff; border-radius: 10px; padding: 13px; font-size: 13px; font-weight: 700; cursor: pointer; }
.browse-btn:hover { background: #1f7d44; }
.met-panel { background: #0a0e1a; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.met-top { display: flex; align-items: flex-start; gap: 12px; }
.met-bug { width: 44px; height: 44px; border-radius: 50%; background: rgba(43,189,110,0.12); display: flex; align-items: center; justify-content: center; color: #2bbd6e; flex-shrink: 0; }
.met-info { flex: 1; }
.met-h { font-size: 16px; font-weight: 700; color: var(--text); }
.met-sub { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-top: 4px; line-height: 1.5; word-break: break-all; }
.runscript-btn { display: inline-flex; align-items: center; gap: 5px; background: #14141f; border: 1px solid rgba(255,255,255,0.1); color: var(--b); border-radius: 8px; padding: 8px 10px; font-size: 11px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.met-tabs { display: flex; justify-content: space-between; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 2px; }
.mtab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--text-muted); padding: 6px 2px 9px; border-bottom: 2px solid transparent; text-align: center; flex: 1; }
.mtab.active { color: var(--b); border-bottom-color: var(--b); }
.telemetry-row { display: flex; gap: 8px; }
.tele-card { flex: 1; background: #07070e; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px; min-width: 0; }
.tele-k { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.tele-v { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); word-break: break-all; }
.tele-v.grn { color: #2bbd6e; }

/* Demo labels */
.demo-labels { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; }
.demo-label-item { display: flex; align-items: flex-start; gap: 12px; opacity: 0.4; transition: opacity 0.3s; }
.demo-label-item.active { opacity: 1; }
.dlbl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--b); margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 8px var(--b); }
.dlbl-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.dlbl-sub { font-size: 12px; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .step { flex-direction: column; gap: 16px; }
  .hero h1 { letter-spacing: -1px; }
}
