/* ============================================================
   MALWAREZERO.ORG — Design System CSS Framework
   Version: 1.0 | 2026-04-07
   Industrial precision + Apple dark mode technical authority
   ============================================================ */

/* ============================================================
   A. CSS VARIABLES — DESIGN TOKENS
   ============================================================ */

:root {
  /* ── Color Palette ── */
  /* Primary Backgrounds */
  --color-bg-primary:   #000000;  /* Pure black */
  --color-bg-secondary: #0A0A0A;  /* Card surfaces */
  --color-bg-tertiary:  #111111;  /* Elevated elements */
  --color-bg-code:      #0D1117;  /* Code blocks (GitHub dark) */

  /* Borders */
  --color-border:        #1F1F1F;  /* Subtle dividers */
  --color-border-hover:  #2A2A2A;  /* Hover state */
  --color-border-accent: #00D4FF;  /* Accent blue border */

  /* Text Colors */
  --color-text-primary:   #FFFFFF;  /* Headings */
  --color-text-secondary: #A0A0A0;  /* Body text */
  --color-text-tertiary:  #666666;  /* Captions, labels */

  /* Accent Colors */
  --color-accent-primary:   #00D4FF;  /* Electric cyan — Tesla blue */
  --color-accent-secondary: #0088FF;  /* Deeper blue — links, interactive */
  --color-accent-tertiary:  #00FF88;  /* Matrix green — success states */

  /* Threat Level Colors */
  --color-threat-low:    #FFD700;   /* Gold — theoretical risk */
  --color-threat-medium: #FF8C00;   /* Orange — moderate threat */
  --color-threat-high:   #FF3B3B;   /* Red — critical threat */
  --color-threat-elite:  #DC143C;   /* Crimson — nation-state level */

  /* Code Syntax Colors */
  --color-code-text:     #58A6FF;  /* Blue code */
  --color-code-string:   #A5D6FF;  /* Light blue strings */
  --color-code-comment:  #6A737D;  /* Gray comments */
  --color-code-keyword:  #FF7B72;  /* Red keywords */
  --color-code-number:   #79C0FF;  /* Blue numbers */
  --color-code-function: #D2A8FF;  /* Purple functions */
  --color-code-operator: #FF7B72;  /* Red operators */

  /* Callout Colors */
  --color-callout-info:     #0088FF;
  --color-callout-warning:  #FF8C00;
  --color-callout-danger:   #FF3B3B;
  --color-callout-success:  #00FF88;

  /* ── Typography Scale ── */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;

  /* Font Sizes (fluid scale) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  /* Font Weights */
  --weight-normal:  400;
  --weight-medium:  500;
  --weight-semibold: 600;
  --weight-bold:    700;
  --weight-black:   900;

  /* Line Heights */
  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --leading-loose:  2;

  /* Letter Spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* ── Spacing Scale ── */
  --space-0:   0;
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  /* ── Border Styles ── */
  --border-width:   1px;
  --border-width-2: 2px;
  --border-radius:  0px;  /* Sharp industrial corners */
  --border-subtle:  1px solid var(--color-border);
  --border-accent:  1px solid var(--color-accent-primary);
  --border-threat:   1px solid var(--color-threat-high);

  /* ── Shadows ── */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --shadow-glow-strong: 0 0 30px rgba(0, 212, 255, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 212, 255, 0.03);

  /* ── Animation Timings ── */
  --duration-fast:   100ms;
  --duration-normal: 150ms;
  --duration-slow:   200ms;
  --duration-slower: 300ms;
  --duration-slowest: 500ms;
  --duration-typing: 2000ms;

  --ease-default: ease;
  --ease-in:      ease-in;
  --ease-out:     ease-out;
  --ease-in-out:  ease-in-out;

  /* ── Layout ── */
  --container-max: 1400px;
  --container-padding-mobile: var(--space-6);
  --container-padding-desktop: var(--space-12);

  /* ── Z-Index Scale ── */
  --z-base:    0;
  --z-raised:  10;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-modal:   300;
  --z-tooltip: 400;
  --z-ticker:  500;
}

/* ============================================================
   B. BASE STYLES — RESET & NORMALIZE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
}

h1 { font-size: var(--text-5xl); font-weight: var(--weight-black); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-5xl); }
  h3 { font-size: var(--text-4xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-7xl); }
}

/* ── Links ── */
a {
  color: var(--color-accent-secondary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}

a:hover {
  color: var(--color-accent-primary);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

::-moz-selection {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

/* ── Lists ── */
ul, ol {
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

/* ── Images ── */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Horizontal Rule ── */
hr {
  border: none;
  border-top: var(--border-subtle);
  margin: var(--space-8) 0;
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

th, td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-subtle);
}

th {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  background-color: var(--color-bg-secondary);
}

/* ── Code Inline ── */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--color-bg-tertiary);
  padding: 0.15em 0.4em;
  color: var(--color-code-text);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  overflow-x: auto;
}

/* ── Keyboard / Abbr ── */
kbd {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  padding: 0.15em 0.5em;
  color: var(--color-text-secondary);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* ── Blockquote ── */
blockquote {
  border-left: 3px solid var(--color-accent-primary);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

/* ── Details / Summary ── */
details {
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
}

summary {
  padding: var(--space-4);
  cursor: pointer;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

details[open] summary {
  border-bottom: var(--border-subtle);
}

/* ============================================================
   C. TYPOGRAPHY COMPONENT CLASSES
   ============================================================ */

.heading-display {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .heading-display { font-size: var(--text-6xl); }
}

@media (min-width: 1024px) {
  .heading-display { font-size: var(--text-7xl); }
}

.heading-section {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .heading-section { font-size: var(--text-4xl); }
}

.heading-subsection {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .heading-subsection { font-size: var(--text-3xl); }
}

.body-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.body-text-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.code-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-code-text);
}

.label-uppercase {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
}

/* ============================================================
   D. COLOR COMPONENT CLASSES
   ============================================================ */

/* Text Colors */
.text-primary   { color: var(--color-text-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-tertiary  { color: var(--color-text-tertiary) !important; }
.text-cyan      { color: var(--color-accent-primary) !important; }
.text-blue      { color: var(--color-accent-secondary) !important; }
.text-green     { color: var(--color-accent-tertiary) !important; }
.text-red       { color: var(--color-threat-high) !important; }
.text-gold      { color: var(--color-threat-low) !important; }
.text-orange    { color: var(--color-threat-medium) !important; }
.text-crimson   { color: var(--color-threat-elite) !important; }

/* Background Colors */
.bg-black     { background-color: var(--color-bg-primary) !important; }
.bg-card      { background-color: var(--color-bg-secondary) !important; }
.bg-elevated  { background-color: var(--color-bg-tertiary) !important; }
.bg-code      { background-color: var(--color-bg-code) !important; }
.bg-accent    { background-color: var(--color-accent-primary) !important; }
.bg-transparent { background-color: transparent !important; }

/* Border Colors */
.border-subtle  { border-color: var(--color-border) !important; }
.border-hover   { border-color: var(--color-border-hover) !important; }
.border-accent  { border-color: var(--color-accent-primary) !important; }
.border-blue    { border-color: var(--color-accent-secondary) !important; }
.border-green   { border-color: var(--color-accent-tertiary) !important; }
.border-red     { border-color: var(--color-threat-high) !important; }
.border-gold    { border-color: var(--color-threat-low) !important; }
.border-orange  { border-color: var(--color-threat-medium) !important; }

/* ============================================================
   E. CARD COMPONENTS
   ============================================================ */

.card {
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
  padding: var(--space-6);
  transition: border-color var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.card-hover {
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
  padding: var(--space-6);
  transition: border-color var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
  cursor: pointer;
}

.card-hover:hover {
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card-hover:focus-within {
  border-color: var(--color-accent-primary);
  outline: none;
  box-shadow: var(--shadow-glow);
}

.card-threat {
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
  border-left: 3px solid var(--color-threat-high);
  padding: var(--space-6);
  position: relative;
}

.card-threat.threat-critical { border-left-color: var(--color-threat-elite); }
.card-threat.threat-high      { border-left-color: var(--color-threat-high); }
.card-threat.threat-medium    { border-left-color: var(--color-threat-medium); }
.card-threat.threat-low       { border-left-color: var(--color-threat-low); }

.card-stat {
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
  padding: var(--space-6);
  text-align: center;
}

.card-stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.card-stat .stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
}

/* ============================================================
   F. BUTTON COMPONENTS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--border-radius);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button — Accent blue bg, black text */
.btn-primary {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
  border-color: var(--color-accent-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent-secondary);
  border-color: var(--color-accent-secondary);
  text-decoration: none;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Secondary Button — Transparent, blue border */
.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 212, 255, 0.1);
  text-decoration: none;
}

.btn-secondary:active {
  background-color: rgba(0, 212, 255, 0.2);
}

/* Ghost Button — Transparent, white text */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  text-decoration: none;
}

/* Threat Button — Red variant */
.btn-threat {
  background-color: var(--color-threat-high);
  color: var(--color-text-primary);
  border-color: var(--color-threat-high);
}

.btn-threat:hover {
  background-color: var(--color-threat-elite);
  border-color: var(--color-threat-elite);
  text-decoration: none;
}

/* Button Sizes */
.btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* ============================================================
   G. CODE BLOCK COMPONENTS
   ============================================================ */

.code-block {
  background-color: var(--color-bg-code);
  border: var(--border-subtle);
  padding: var(--space-4);
  overflow-x: auto;
  position: relative;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-code-text);
}

.code-block-header {
  background-color: var(--color-bg-tertiary);
  border: var(--border-subtle);
  border-bottom: none;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-block-header + .code-block {
  border-top: none;
  margin-top: 0;
}

.terminal-window {
  background-color: var(--color-bg-code);
  border: var(--border-subtle);
  overflow: hidden;
}

.terminal-window .terminal-header {
  background-color: var(--color-bg-tertiary);
  border-bottom: var(--border-subtle);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.terminal-window .terminal-dot.red    { background-color: #FF5F56; }
.terminal-window .terminal-dot.yellow { background-color: #FFBD2E; }
.terminal-window .terminal-dot.green  { background-color: #27C93F; }

.terminal-window .terminal-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-left: var(--space-4);
}

.terminal-window .terminal-body {
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-code-text);
}

/* Syntax Highlighting Classes */
.token-keyword  { color: var(--color-code-keyword); font-weight: var(--weight-medium); }
.token-string   { color: var(--color-code-string); }
.token-comment  { color: var(--color-code-comment); font-style: italic; }
.token-number   { color: var(--color-code-number); }
.token-function { color: var(--color-code-function); }
.token-operator { color: var(--color-code-operator); }
.token-prompt   { color: var(--color-accent-primary); }
.token-output    { color: var(--color-text-secondary); }
.token-error    { color: var(--color-threat-high); }
.token-success  { color: var(--color-accent-tertiary); }

/* ============================================================
   H. CALLOUT / ALERT BOXES
   ============================================================ */

.callout {
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
  border-left: 3px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  display: flex;
  gap: var(--space-4);
}

.callout-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.callout-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Callout Variants */
.callout-info {
  border-left-color: var(--color-callout-info);
}

.callout-info .callout-icon { color: var(--color-callout-info); }

.callout-warning {
  border-left-color: var(--color-callout-warning);
}

.callout-warning .callout-icon { color: var(--color-callout-warning); }

.callout-danger {
  border-left-color: var(--color-callout-danger);
}

.callout-danger .callout-icon { color: var(--color-callout-danger); }

.callout-success {
  border-left-color: var(--color-callout-success);
}

.callout-success .callout-icon { color: var(--color-callout-success); }

/* ============================================================
   I. THREAT BADGE COMPONENTS
   ============================================================ */

.threat-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: var(--space-1) var(--space-3);
  border: 1px solid;
  background-color: transparent;
}

.threat-critical {
  color: var(--color-threat-elite);
  border-color: var(--color-threat-elite);
  background-color: rgba(220, 20, 60, 0.1);
}

.threat-critical::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-threat-elite);
  animation: pulse-critical 2s infinite;
}

.threat-high {
  color: var(--color-threat-high);
  border-color: var(--color-threat-high);
  background-color: rgba(255, 59, 59, 0.1);
}

.threat-high::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-threat-high);
}

.threat-medium {
  color: var(--color-threat-medium);
  border-color: var(--color-threat-medium);
  background-color: rgba(255, 140, 0, 0.1);
}

.threat-low {
  color: var(--color-threat-low);
  border-color: var(--color-threat-low);
  background-color: rgba(255, 215, 0, 0.1);
}

/* ============================================================
   J. LAYOUT COMPONENTS
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
  }
}

.container-narrow {
  max-width: 800px;
}

.container-wide {
  max-width: 1600px;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flex Utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-start  { display: flex; align-items: flex-start; justify-content: flex-start; }
.flex-end    { display: flex; align-items: flex-end; justify-content: flex-end; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================================
   K. NAVIGATION COMPONENTS
   ============================================================ */

.nav-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--border-subtle);
  padding: var(--space-4) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.nav-logo span {
  color: var(--color-accent-primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
  position: relative;
}

.nav-link:hover {
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-primary);
  transition: width var(--duration-normal) var(--ease-default);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
  padding: var(--space-2);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-default);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) var(--ease-default);
}

.nav-dropdown-item:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--color-text-tertiary);
}

.breadcrumb a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}

.breadcrumb a:hover {
  color: var(--color-accent-primary);
}

.breadcrumb .current {
  color: var(--color-text-secondary);
}

/* ============================================================
   L. FOOTER COMPONENTS
   ============================================================ */

.footer {
  background-color: var(--color-bg-secondary);
  border-top: var(--border-subtle);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer-logo span {
  color: var(--color-accent-primary);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: var(--leading-relaxed);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}

.footer-link:hover {
  color: var(--color-accent-primary);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

/* ============================================================
   M. SPECIAL COMPONENTS
   ============================================================ */

/* Terminal Typing Effect */
.terminal-typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--color-accent-primary);
  animation: typing-cursor 0.8s step-end infinite,
             typing-text var(--duration-typing) steps(40) forwards;
}

@keyframes typing-cursor {
  0%, 100% { border-color: var(--color-accent-primary); }
  50% { border-color: transparent; }
}

@keyframes typing-text {
  from { width: 0; }
  to   { width: 100%; }
}

/* Threat Ticker — Scrolling horizontal ticker */
.threat-ticker {
  overflow: hidden;
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
  padding: var(--space-3) 0;
  position: relative;
  z-index: var(--z-ticker);
}

.threat-ticker::before,
.threat-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
}

.threat-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-secondary), transparent);
}

.threat-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-secondary), transparent);
}

.threat-ticker-inner {
  display: flex;
  gap: var(--space-12);
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.threat-ticker-inner:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.threat-ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.threat-ticker-item .ticker-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-threat-high);
  flex-shrink: 0;
}

/* Attack Flow — Horizontal step connector */
.attack-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}

@media (min-width: 768px) {
  .attack-flow {
    flex-direction: row;
    align-items: flex-start;
  }
}

.attack-flow-step {
  flex: 1;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .attack-flow-step + .attack-flow-step::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-xl);
    color: var(--color-accent-primary);
  }
}

.attack-flow-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.attack-flow-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.attack-flow-desc {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border: var(--border-subtle);
  border-collapse: collapse;
}

.comparison-table th {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: var(--border-subtle);
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.comparison-table td:first-child {
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

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

.comparison-table .col-without {
  background-color: rgba(0, 255, 136, 0.05);
  border-left: 2px solid var(--color-accent-tertiary);
}

.comparison-table .col-with {
  background-color: rgba(255, 59, 59, 0.05);
  border-left: 2px solid var(--color-threat-high);
}

/* Step List — Numbered steps with timeline connector */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.step-list::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background-color: var(--color-border);
}

.step-list-item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  position: relative;
}

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

.step-list-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-bg-primary);
  background-color: var(--color-accent-primary);
  z-index: 1;
}

.step-list-content {
  flex: 1;
  padding-top: 2px;
}

.step-list-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.step-list-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ASCII Diagram */
.ascii-diagram {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-code-text);
  background-color: var(--color-bg-code);
  border: var(--border-subtle);
  padding: var(--space-4) var(--space-6);
  overflow-x: auto;
  white-space: pre;
  tab-size: 4;
}

.ascii-diagram .ascii-highlight {
  color: var(--color-accent-primary);
}

.ascii-diagram .ascii-danger {
  color: var(--color-threat-high);
}

.ascii-diagram .ascii-safe {
  color: var(--color-accent-tertiary);
}

/* ============================================================
   N. PAGE-SPECIFIC COMPONENTS
   ============================================================ */

/* Attack Hero */
.attack-hero {
  padding: var(--space-16) 0;
  border-bottom: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.attack-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top center, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.attack-hero-header {
  position: relative;
  z-index: 1;
}

.attack-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.attack-hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

@media (min-width: 768px) {
  .attack-hero-title { font-size: var(--text-5xl); }
}

@media (min-width: 1024px) {
  .attack-hero-title { font-size: var(--text-6xl); }
}

.attack-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* Specs Grid — Prerequisites table */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  background-color: var(--color-bg-secondary);
  border: var(--border-subtle);
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.specs-item {
  padding: var(--space-4);
  border-bottom: var(--border-subtle);
}

@media (min-width: 768px) {
  .specs-item:nth-child(odd) {
    border-right: var(--border-subtle);
  }

  .specs-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (min-width: 1024px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .specs-item:nth-child(odd) {
    border-right: var(--border-subtle);
  }

  .specs-item:nth-child(3n) {
    border-right: none;
  }

  .specs-item:nth-last-child(-n+3) {
    border-bottom: none;
  }
}

.specs-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}

.specs-value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

.specs-value.highlight-cyan  { color: var(--color-accent-primary); }
.specs-value.highlight-gold  { color: var(--color-threat-low); }
.specs-value.highlight-red   { color: var(--color-threat-high); }
.specs-value.highlight-green { color: var(--color-accent-tertiary); }

/* Dashboard Mock — Attacker view visualization */
.dashboard-mock {
  background-color: var(--color-bg-code);
  border: var(--border-subtle);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-code-text);
  line-height: var(--leading-relaxed);
}

.dashboard-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: var(--border-subtle);
  margin-bottom: var(--space-3);
}

.dashboard-mock-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.dashboard-mock-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-tertiary);
}

.dashboard-mock-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent-tertiary);
  border-radius: 50%;
  animation: pulse-status 1.5s infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dashboard-mock-row {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-1) 0;
}

.dashboard-mock-label {
  min-width: 120px;
  color: var(--color-text-tertiary);
}

.dashboard-mock-value {
  color: var(--color-accent-primary);
}

.dashboard-mock-value.danger { color: var(--color-threat-high); }
.dashboard-mock-value.success { color: var(--color-accent-tertiary); }

/* ============================================================
   O. RESPONSIVE BREAKPOINTS & UTILITIES
   ============================================================ */

/* Mobile-first: base styles target mobile
   Media queries add/complete for larger screens */

/* Tablet breakpoint — 768px */
@media (min-width: 768px) {
  .hide-tablet { display: none !important; }
  .show-tablet { display: revert !important; }
}

/* Desktop breakpoint — 1024px */
@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: revert !important; }
}

/* Spacing Utilities */
.m-0  { margin: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

/* Text Utilities */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-mono   { font-family: var(--font-mono); }
.font-heading { font-family: var(--font-heading); }
.font-bold   { font-weight: var(--weight-bold); }
.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: var(--tracking-wide); }

/* Display Utilities */
.block     { display: block; }
.inline-block { display: inline-block; }
.hidden    { display: none; }
.w-full    { width: 100%; }
.max-w-sm  { max-width: 24rem; }
.max-w-md  { max-width: 32rem; }
.max-w-lg  { max-width: 48rem; }
.max-w-xl  { max-width: 64rem; }
.max-w-2xl { max-width: 80rem; }

/* Border Utilities */
.border    { border: var(--border-subtle); }
.border-0  { border: none; }
.rounded-0 { border-radius: 0; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer; }

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .threat-ticker-inner {
    animation: none;
  }

  .terminal-typing {
    animation: none;
    white-space: normal;
    border-right: none;
  }
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ============================================================
   ACCESSIBILITY — FOCUS VISIBLE
   ============================================================ */

/* Custom focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   ACCESSIBILITY — SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-tooltip);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: top var(--duration-normal) var(--ease-default);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================================
   DARK MODE (for future use)
   ============================================================ */

.dark-mode {
  /* Currently the default, but this class is available
     for light mode implementation in the future */
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  body {
    background-color: white;
    color: black;
  }

  .nav-header,
  .footer,
  .threat-ticker,
  .attack-flow,
  .btn {
    display: none !important;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }

  .card,
  .code-block,
  .terminal-window {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
  }
}

/* ============================================================
   PULSE ANIMATIONS (for threat badges)
   ============================================================ */

@keyframes pulse-critical {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0);
  }
}

@keyframes pulse-high {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ============================================================
   SCANLINE EFFECT (CRT homage for loading states)
   ============================================================ */

.scanlines {
  position: relative;
  overflow: hidden;
}

.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
}

/* ============================================================
   DATA FLOW ANIMATION (for network diagrams)
   ============================================================ */

@keyframes data-flow-dot {
  0%   { offset-distance: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.data-flow-item {
  offset-path: path('M0,0 L200,0');
  animation: data-flow-dot 2s linear infinite;
}

/* ============================================================
   GLOW PULSE (for interactive highlights)
   ============================================================ */

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  }
}

.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ============================================================
   THREAT LEVEL GAUGE (visual meter)
   ============================================================ */

.threat-gauge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.threat-gauge-bar {
  display: flex;
  gap: 3px;
}

.threat-gauge-segment {
  width: 16px;
  height: 8px;
  background-color: var(--color-border);
  transition: background-color var(--duration-normal) var(--ease-default);
}

.threat-gauge-segment.active.low    { background-color: var(--color-threat-low); }
.threat-gauge-segment.active.medium { background-color: var(--color-threat-medium); }
.threat-gauge-segment.active.high   { background-color: var(--color-threat-high); }
.threat-gauge-segment.active.critical { background-color: var(--color-threat-elite); }

.threat-gauge-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ============================================================
   END OF DESIGN SYSTEM
   ============================================================ */
