@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ─── VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #04080f;
  --bg-2:       #070d1a;
  --bg-card:    #0a1220;
  --bg-card-h:  #0e1928;
  --border:     #162338;
  --border-h:   #2a4a6a;

  --green:      #00ff88;
  --green-d:    #00cc6a;
  --cyan:       #00d4ff;
  --red:        #ff3366;
  --orange:     #ff6b35;
  --amber:      #ffb300;
  --blue:       #4d8bff;

  --text:       #b8cfe0;
  --text-hi:    #e8f4ff;
  --text-lo:    #4a6a8a;
  --text-dim:   #2a4a6a;

  --f-display:  'Syne', sans-serif;
  --f-body:     'DM Sans', sans-serif;
  --f-mono:     'JetBrains Mono', monospace;

  --r:    12px;
  --r-sm: 8px;
  --r-lg: 20px;
  --gap:  1.5rem;
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0,212,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(0,255,136,.03) 0%, transparent 50%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--f-display); color: var(--text-hi); line-height: 1.2; }
code, pre, .mono { font-family: var(--f-mono); }
p { max-width: 72ch; }
p + p { margin-top: .75rem; }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 4rem 0; }

/* ─── HEADER / NAV ───────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,8,15,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .75rem;
}
.brand-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: .95rem;
  color: #04080f; flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0,255,136,.3);
}
.brand-text h1 { font-size: 1.05rem; font-weight: 700; color: var(--text-hi); }
.brand-text p  { font-size: .75rem; color: var(--text-lo); font-family: var(--f-mono); }
.nav-links { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nav-link {
  font-size: .8rem; font-family: var(--f-mono); color: var(--text-lo);
  padding: .35rem .7rem; border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--cyan); border-color: rgba(0,212,255,.3);
  background: rgba(0,212,255,.06);
}
.nav-btn {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #04080f; font-weight: 600; font-size: .8rem;
  padding: .45rem .9rem; border-radius: var(--r-sm);
  border: none; cursor: pointer; font-family: var(--f-display);
  transition: opacity .2s, box-shadow .2s;
}
.nav-btn:hover { opacity: .88; box-shadow: 0 0 16px rgba(0,255,136,.3); }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .78rem; color: var(--text-lo);
  padding: .8rem 0;
}
.breadcrumb a { color: var(--text-lo); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text-dim); }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 3.5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,255,136,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label {
  font-family: var(--f-mono); font-size: .75rem; color: var(--green);
  letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
}
.hero-label::before {
  content: ''; width: 24px; height: 1px; background: var(--green);
}
.hero h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.08;
  background: linear-gradient(135deg, #e8f4ff 0%, var(--cyan) 60%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text); max-width: 620px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.4rem; border-radius: var(--r-sm); font-weight: 600;
  font-family: var(--f-display); font-size: .9rem; cursor: pointer;
  transition: all .2s; border: none; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #04080f;
  box-shadow: 0 4px 20px rgba(0,255,136,.25);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(0,255,136,.4); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text-hi);
  border: 1px solid var(--border-h);
}
.btn-outline:hover {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(0,212,255,.06);
}

/* hero stats */
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding: 1.5rem 0; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-num {
  font-family: var(--f-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text-hi); line-height: 1;
}
.stat-num.green { color: var(--green); text-shadow: 0 0 12px rgba(0,255,136,.4); }
.stat-num.cyan  { color: var(--cyan);  text-shadow: 0 0 12px rgba(0,212,255,.4); }
.stat-num.red   { color: var(--red);   text-shadow: 0 0 12px rgba(255,51,102,.4); }
.stat-label { font-size: .78rem; color: var(--text-lo); font-family: var(--f-mono); }

/* ─── NMAP TABLE ─────────────────────────────────────────────────────────── */
.terminal-block {
  background: #060c16;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin: 1.5rem 0;
}
.terminal-bar {
  display: flex; align-items: center; gap: .5rem;
  background: #0a1220; padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
  font-family: var(--f-mono); font-size: .75rem; color: var(--text-lo);
  margin-left: .5rem; flex: 1; text-align: center;
}
.terminal-body { padding: 1rem 1.2rem; overflow-x: auto; }
.terminal-body pre {
  font-family: var(--f-mono); font-size: .8rem; color: var(--text);
  white-space: pre; line-height: 1.7;
}
.t-cmd  { color: var(--green); }
.t-port { color: var(--cyan); }
.t-svc  { color: var(--amber); }
.t-ver  { color: var(--text-lo); }
.t-open { color: var(--green); }
.t-comment { color: var(--text-dim); }
.t-flag { color: #9b6eff; }

/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap;
}
.section-label {
  font-family: var(--f-mono); font-size: .72rem; color: var(--green);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem;
}
.section-header h3 { font-size: 1.7rem; font-weight: 700; }
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute; left: .75rem; top: 50%;
  transform: translateY(-50%); opacity: .4; pointer-events: none;
}
#searchInput {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text-hi); font-family: var(--f-mono); font-size: .82rem;
  padding: .6rem .8rem .6rem 2.4rem;
  width: 260px;
  outline: none; transition: border-color .2s;
}
#searchInput:focus { border-color: var(--cyan); }
#searchInput::placeholder { color: var(--text-lo); }

/* ─── MODULE GRID ────────────────────────────────────────────────────────── */
.modules-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.module-card {
  display: block; position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem;
  text-decoration: none; color: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0,212,255,.03) 100%);
  opacity: 0; transition: opacity .25s;
}
.module-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 0 0 1px rgba(0,212,255,.15), 0 12px 40px rgba(0,0,0,.5);
  transform: translateY(-3px);
}
.module-card:hover::before { opacity: 1; }
.card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1rem; gap: .5rem;
}
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .9rem; font-weight: 600;
  flex-shrink: 0;
}
.icon-critical { background: rgba(255,51,102,.15); color: var(--red); border: 1px solid rgba(255,51,102,.25); }
.icon-high     { background: rgba(255,107,53,.15); color: var(--orange); border: 1px solid rgba(255,107,53,.25); }
.icon-medium   { background: rgba(255,179,0,.15);  color: var(--amber); border: 1px solid rgba(255,179,0,.25); }
.icon-info     { background: rgba(77,139,255,.15); color: var(--blue); border: 1px solid rgba(77,139,255,.25); }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 5px; text-transform: uppercase; letter-spacing: .06em;
  flex-shrink: 0;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.badge-critical { background: rgba(255,51,102,.15); color: var(--red); border: 1px solid rgba(255,51,102,.3); }
.badge-critical::before { background: var(--red); box-shadow: 0 0 5px var(--red); }
.badge-high     { background: rgba(255,107,53,.15); color: var(--orange); border: 1px solid rgba(255,107,53,.3); }
.badge-high::before { background: var(--orange); box-shadow: 0 0 5px var(--orange); }
.badge-medium   { background: rgba(255,179,0,.15);  color: var(--amber); border: 1px solid rgba(255,179,0,.3); }
.badge-medium::before { background: var(--amber); }
.badge-info     { background: rgba(77,139,255,.15); color: var(--blue); border: 1px solid rgba(77,139,255,.3); }
.badge-info::before { background: var(--blue); }

.card-name {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 700;
  color: var(--text-hi); margin-bottom: .3rem;
}
.card-port {
  font-family: var(--f-mono); font-size: .73rem; color: var(--text-lo);
  margin-bottom: .6rem;
}
.card-desc { font-size: .88rem; color: var(--text); line-height: 1.5; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.1rem; padding-top: .9rem;
  border-top: 1px solid var(--border); gap: .5rem;
}
.card-tool {
  font-family: var(--f-mono); font-size: .72rem; color: var(--text-lo);
  display: flex; align-items: center; gap: .35rem;
}
.card-arrow {
  font-size: .8rem; color: var(--text-dim);
  transition: color .2s, transform .2s;
}
.module-card:hover .card-arrow { color: var(--cyan); transform: translateX(3px); }

/* ─── ENVIRONMENT CARDS ──────────────────────────────────────────────────── */
.env-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}
.env-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
}
.env-card-label {
  font-family: var(--f-mono); font-size: .7rem; color: var(--text-lo);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem;
}
.env-card-value {
  font-family: var(--f-display); font-size: 1rem; font-weight: 600; color: var(--text-hi);
}
.env-card-sub {
  font-family: var(--f-mono); font-size: .75rem; color: var(--text-lo); margin-top: .2rem;
}

/* ─── MODULE PAGE HEADER ─────────────────────────────────────────────────── */
.module-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.module-hero::before {
  content: '';
  position: absolute; right: -5%; top: -50%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.module-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.module-title-wrap {}
.module-hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: .5rem;
}
.module-hero .sub-title {
  font-family: var(--f-mono); font-size: .82rem; color: var(--text-lo);
}
.overview-pills {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem;
}
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-mono); font-size: .72rem; color: var(--text-lo);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: .28rem .65rem; border-radius: 6px;
}
.pill strong { color: var(--text-hi); font-weight: 500; }

/* ─── OVERVIEW BOX ───────────────────────────────────────────────────────── */
.overview-box {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.4rem 1.6rem; margin: 1.5rem 0;
}
.overview-box-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ov-item-label {
  font-family: var(--f-mono); font-size: .68rem; color: var(--text-lo);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem;
}
.ov-item-value {
  font-size: .92rem; color: var(--text-hi); font-weight: 500;
}
.ov-item-value.mono { font-family: var(--f-mono); font-size: .82rem; }

/* ─── STEPS / CONTENT ────────────────────────────────────────────────────── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
.content-body {}
.step-section { margin-bottom: 3rem; }
.step-label {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.step-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,255,136,.2), rgba(0,212,255,.2));
  border: 1px solid rgba(0,212,255,.3);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600; color: var(--cyan);
  flex-shrink: 0;
}
.step-label h3 { font-size: 1.2rem; font-weight: 700; }
.step-section p, .step-section ul, .step-section ol {
  color: var(--text); font-size: .93rem; line-height: 1.7;
  margin-bottom: .8rem;
}
.step-section ul { padding-left: 1.3rem; }
.step-section li { margin-bottom: .3rem; }

/* ─── CODE BLOCKS ────────────────────────────────────────────────────────── */
.code-wrap { position: relative; margin: 1.2rem 0; }
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #0a1220; padding: .55rem 1rem;
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.code-lang {
  font-family: var(--f-mono); font-size: .7rem; color: var(--text-lo);
  text-transform: uppercase; letter-spacing: .1em;
}
.copy-btn {
  font-family: var(--f-mono); font-size: .7rem; color: var(--text-lo);
  background: none; border: 1px solid var(--border); border-radius: 5px;
  padding: .22rem .55rem; cursor: pointer; transition: all .2s;
}
.copy-btn:hover { color: var(--green); border-color: var(--green); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }
pre.code-block {
  background: #050b14;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 1.1rem 1.2rem;
  overflow-x: auto; overflow-y: auto;
  font-family: var(--f-mono); font-size: .82rem;
  line-height: 1.75; color: var(--text);
  white-space: pre;
}
/* syntax-ish color */
.kw  { color: var(--cyan); }   /* keywords / flags */
.cmd { color: var(--green); }  /* commands */
.str { color: var(--amber); }  /* strings / values */
.cmt { color: var(--text-lo); font-style: italic; } /* comments */
.num { color: #ff9b6e; }       /* numbers */
.pth { color: #c58fff; }       /* paths */
.svc { color: var(--blue); }   /* services */

/* ─── SCREENSHOT ─────────────────────────────────────────────────────────── */
.screenshot-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin: 1.5rem 0; cursor: zoom-in;
  transition: border-color .2s;
}
.screenshot-wrap:hover { border-color: var(--border-h); }
.screenshot-bar {
  display: flex; align-items: center; gap: .5rem;
  background: #0a1220; padding: .5rem .9rem;
  border-bottom: 1px solid var(--border);
}
.screenshot-bar .terminal-dot { width: 8px; height: 8px; }
.screenshot-caption {
  font-family: var(--f-mono); font-size: .7rem; color: var(--text-lo);
  margin-left: .5rem;
}
.screenshot-wrap img {
  width: 100%; border-radius: 0 0 var(--r-sm) var(--r-sm);
  display: block;
}

/* ─── RESULTS BOX ────────────────────────────────────────────────────────── */
.results-box {
  background: rgba(0,255,136,.04);
  border: 1px solid rgba(0,255,136,.2);
  border-radius: var(--r); padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
}
.results-box h4 {
  font-family: var(--f-mono); font-size: .75rem; color: var(--green);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.results-box h4::before { content: '✓'; }
.results-box ul { padding-left: 1.2rem; }
.results-box li { color: var(--text); font-size: .9rem; margin-bottom: .4rem; }

.mitigation-box {
  background: rgba(0,212,255,.03);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: var(--r); padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
}
.mitigation-box h4 {
  font-family: var(--f-mono); font-size: .75rem; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem;
}
.mitigation-box ul { padding-left: 1.2rem; }
.mitigation-box li { color: var(--text); font-size: .9rem; margin-bottom: .4rem; }

.callout {
  background: rgba(255,179,0,.06);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .9rem 1rem; margin: 1.2rem 0;
  font-size: .88rem; color: var(--text);
  font-family: var(--f-mono); line-height: 1.6;
}

/* ─── TOC ────────────────────────────────────────────────────────────────── */
.toc {
  position: sticky; top: 80px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem; height: fit-content;
}
.toc-title {
  font-family: var(--f-mono); font-size: .7rem; color: var(--text-lo);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem;
}
.toc a {
  display: block; font-size: .82rem; color: var(--text-lo);
  padding: .3rem .5rem; border-radius: 5px;
  transition: all .18s; border-left: 2px solid transparent;
  line-height: 1.4; margin-bottom: .15rem;
}
.toc a:hover, .toc a.active {
  color: var(--cyan); border-left-color: var(--cyan);
  background: rgba(0,212,255,.06);
}

/* ─── ABOUT SECTION ──────────────────────────────────────────────────────── */
.about-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.about-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { font-size: .93rem; color: var(--text); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-left { font-family: var(--f-mono); font-size: .75rem; color: var(--text-lo); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--f-mono); font-size: .73rem; color: var(--text-lo);
  transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }

/* ─── LIGHTBOX ───────────────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(2,5,10,.94);
  place-items: center;
  backdrop-filter: blur(8px);
}
.lightbox-overlay.open { display: grid; }
.lightbox-overlay img {
  max-width: min(95vw, 1100px); max-height: 90vh;
  border-radius: var(--r); border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0,0,0,.8);
}
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px;
  width: 38px; height: 38px; display: grid; place-items: center;
  cursor: pointer; font-size: 1.1rem; transition: all .2s;
}
.lightbox-close:hover { border-color: var(--red); color: var(--red); }

/* ─── PLACEHOLDER (for empty modules) ────────────────────────────────────── */
.wip-banner {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,179,0,.07);
  border: 1px solid rgba(255,179,0,.25);
  border-radius: var(--r); padding: 1rem 1.2rem; margin: 1.5rem 0;
  font-family: var(--f-mono); font-size: .82rem; color: var(--amber);
}

/* ─── TABLE ──────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
th {
  background: var(--bg-card); font-family: var(--f-mono); font-size: .72rem;
  color: var(--text-lo); text-transform: uppercase; letter-spacing: .1em;
  padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border);
}
td {
  padding: .7rem .9rem; font-size: .88rem; color: var(--text);
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease forwards; }
.fade-up-2 { animation: fadeUp .5s .12s ease forwards; opacity: 0; }
.fade-up-3 { animation: fadeUp .5s .24s ease forwards; opacity: 0; }
.fade-up-4 { animation: fadeUp .5s .36s ease forwards; opacity: 0; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 0 2rem; }
  .hero-stats { gap: 1.2rem; }
  .section { padding: 2.5rem 0; }
  .modules-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
}
