/* ============================================
   Securing the Agentic Frontier - CISO London Summit
   Professional Cybersecurity Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #222845;
  --bg-code: #0d1117;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #00d4ff;
  --accent-purple: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --border: #1e293b;
  --border-light: #334155;
  --nav-height: 70px;
  --container-max: 1280px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: #38bdf8; }

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-brand .shield-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 1.5rem;
}

.hero h1 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.05);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card h4 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Severity Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-critical { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-high { background: rgba(249, 115, 22, 0.1); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-medium { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-low { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }

/* --- MAESTRO Layer Visualization --- */
.maestro-layers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.maestro-layer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.maestro-layer:hover {
  border-color: var(--border-light);
}

.maestro-layer.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.layer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

.layer-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.layer-info { flex: 1; }
.layer-info h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.layer-info .layer-subtitle { font-size: 0.85rem; color: var(--text-muted); }

.layer-badges { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.layer-expand {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1.2rem;
}

.maestro-layer.active .layer-expand { transform: rotate(180deg); }

.layer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.maestro-layer.active .layer-content {
  max-height: 1000px;
}

.layer-content-inner {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.layer-content-inner ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.layer-content-inner li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.layer-content-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  transform: translateY(-50%);
}

/* --- Attack Scenario Cards --- */
.attack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.attack-card:hover {
  border-color: var(--danger);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.attack-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.attack-card-body {
  padding: 1.5rem;
}

.attack-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.attack-meta-item {
  font-size: 0.85rem;
}

.attack-meta-item .meta-label {
  color: var(--text-muted);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.attack-meta-item .meta-value {
  font-weight: 600;
  margin-top: 0.15rem;
}

.attack-steps {
  list-style: none;
  margin-top: 1.25rem;
}

.attack-steps li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.attack-steps li:last-child { border-bottom: none; }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Code Blocks --- */
.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.code-block code {
  color: #e2e8f0;
  white-space: pre;
}

.code-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--bg-card);
}

th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(0, 212, 255, 0.02); }

/* --- Findings Section --- */
.finding-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.finding-item:hover {
  border-color: var(--border-light);
}

.finding-severity {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.finding-severity.critical { background: var(--danger-bg); color: var(--danger); }
.finding-severity.high { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.finding-severity.medium { background: var(--warning-bg); color: var(--warning); }
.finding-severity.low { background: var(--info-bg); color: var(--info); }

.finding-content { flex: 1; }
.finding-content h4 { margin-bottom: 0.35rem; }
.finding-content p { font-size: 0.9rem; color: var(--text-secondary); }

.finding-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.finding-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg-primary);
}

.timeline-item h4 { margin-bottom: 0.35rem; }
.timeline-item p { font-size: 0.9rem; color: var(--text-secondary); }
.timeline-time {
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
}

/* --- ROI Comparison --- */
.roi-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.roi-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.roi-column.highlight {
  border-color: var(--accent-blue);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.roi-column h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.roi-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.roi-item:last-child { border-bottom: none; }
.roi-item .label { color: var(--text-secondary); }
.roi-item .value { font-weight: 600; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Collapsible / Accordion --- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.accordion-header:hover { background: var(--bg-card-hover); }

.accordion-arrow {
  transition: var(--transition);
  color: var(--text-muted);
}

.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-item.open .accordion-body { max-height: 2000px; }

.accordion-body-inner {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Soundbite Callout --- */
.callout {
  border-left: 4px solid;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.callout-danger { border-color: var(--danger); background: var(--danger-bg); }
.callout-warning { border-color: var(--warning); background: var(--warning-bg); }
.callout-info { border-color: var(--accent-blue); background: rgba(0, 212, 255, 0.06); }
.callout-success { border-color: var(--success); background: var(--success-bg); }

.callout-quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.08);
}

.callout-quote .attribution {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* --- Demo Terminal --- */
.terminal {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.terminal-header {
  background: #161b22;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #c9d1d9;
  overflow-x: auto;
  white-space: pre;
}

.terminal-body .prompt { color: #58a6ff; }
.terminal-body .comment { color: #8b949e; }
.terminal-body .success { color: #3fb950; }
.terminal-body .danger { color: #f85149; }
.terminal-body .warning { color: #d29922; }

/* --- Slide Outline --- */
.slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.slide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: var(--transition);
}

.slide-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.slide-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-card h4 {
  font-size: 0.95rem;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}

.slide-card .slide-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Stat Boxes --- */
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-box .stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.stat-number.danger { color: var(--danger); }
.stat-number.warning { color: var(--warning); }
.stat-number.success { color: var(--success); }
.stat-number.info { color: var(--accent-blue); }

/* --- Diagram Container --- */
.diagram-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.mermaid {
  display: flex;
  justify-content: center;
  min-height: 100px;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .mobile-toggle { display: block; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .roi-comparison { grid-template-columns: 1fr; }

  .finding-item { flex-direction: column; }

  .finding-severity {
    writing-mode: horizontal-tb;
  }

  .attack-card-header { flex-direction: column; }

  .slide-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-stat .stat-value { font-size: 1.8rem; }
  .tabs { gap: 0; }
  .tab-btn { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
}

/* --- Print --- */
@media print {
  .navbar, .mobile-toggle { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; }
  .section { padding: 2rem 0; }
  body { background: #fff; color: #111; }
  .card, .attack-card, .finding-item, .maestro-layer { border: 1px solid #ccc; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Misc Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Highlight text */
.highlight { color: var(--accent-blue); font-weight: 600; }
.highlight-danger { color: var(--danger); font-weight: 600; }
.highlight-warning { color: var(--warning); font-weight: 600; }
.highlight-success { color: var(--success); font-weight: 600; }

/* Tag cloud for demo */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Phase indicators for demo flow */
.phase-flow {
  display: flex;
  gap: 0;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.phase-item {
  flex: 1;
  min-width: 140px;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.phase-item:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.phase-item:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.phase-item .phase-num {
  font-size: 0.7rem;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phase-item .phase-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.phase-item .phase-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Keynote section styling */
.keynote-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.keynote-block h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.keynote-block p, .keynote-block li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.keynote-block ul {
  list-style: none;
  padding: 0;
}

.keynote-block li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.keynote-block li::before {
  content: '\2022';
  position: absolute;
  left: 0.25rem;
  color: var(--accent-blue);
}
