/* ══════════════════════════════════════════
   The Disruptor — Website Shared Styles
   Matches the game's actual design system
   ══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #f7f7f7;
  color: #1a1a1a;
  line-height: 1.6;
}

:root {
  /* ── Warm Neutrals (from game :root) ── */
  --neutral-900: #1a1a1a;  --neutral-800: #2d2d2d;  --neutral-700: #404040;
  --neutral-600: #555555;  --neutral-500: #777777;  --neutral-400: #999999;
  --neutral-300: #c4c4c4;  --neutral-200: #e0e0e0;  --neutral-100: #eeeeee;
  --neutral-50:  #f7f7f7;
  /* ── Accent: Deep Red (from game) ── */
  --red-800: #7f1d1d;  --red-700: #991b1b;  --red-600: #b91c1c;
  --red-500: #cc2936;  --red-400: #dc3545;  --red-300: #e8626e;
  --red-200: #f5b3b8;  --red-100: #fce4e6;  --red-50:  #fef2f2;
  /* ── Semantic (from game) ── */
  --success: #16a34a;  --success-light: #dcfce7;
  --warning: #f59e0b;  --warning-light: #fef3c7;
  --danger: #dc2626;   --danger-light: #fee2e2;
  --info: #2563eb;     --info-light: #dbeafe;
  /* ── Surfaces (from game) ── */
  --bg-page: #ffffff;  --bg-card: #ffffff;  --bg-panel: #f5f5f5;
  --border: #e0e0e0;   --border-light: #ececec;
  --shadow-sm: rgba(0,0,0,0.04);  --shadow: rgba(0,0,0,0.08);  --shadow-lg: rgba(0,0,0,0.14);
  /* ── Text (from game) ── */
  --text-primary: #1a1a1a;  --text-secondary: #555555;  --text-muted: #888888;
  --text-on-red: #ffffff;
  /* ── Aliases (from game) ── */
  --primary: var(--red-500);
  --primary-light: var(--red-400);
}

/* ═══════ NAVIGATION ═══════
   Mirrors the game's #top-bar:
   - white bg, red 3px top border, bottom border
   - box-shadow: 0 1px 3px rgba(0,0,0,0.05) */
nav {
  background: var(--bg-card);
  border-top: 3px solid var(--red-500);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 56px; width: auto; display: block; }
@media (max-width: 640px) {
  .nav-logo img { height: 44px; }
}
.nav-links { display: flex; gap: 24px; font-size: 13px; font-weight: 500; margin-left: auto; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--neutral-900); }
.mobile-menu {
  display: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  display: block;
  padding: 8px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu.active { display: block; }
}

/* ═══════ PAGE LAYOUT ═══════ */
section { max-width: 960px; margin: 0 auto; padding: 48px 24px; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0 auto; max-width: 960px; }

/* ═══════ TYPOGRAPHY ═══════ */
h1 { font-size: 36px; font-weight: 800; color: var(--neutral-900); margin-bottom: 8px; letter-spacing: -0.5px; }
h2 { font-size: 28px; font-weight: 800; color: var(--neutral-900); margin-bottom: 8px; letter-spacing: -0.3px; }
h3 { font-size: 20px; font-weight: 700; color: var(--neutral-900); margin-bottom: 8px; }
.section-intro { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; max-width: 640px; line-height: 1.6; }
.page-intro { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; max-width: 720px; line-height: 1.7; }

/* Section sub-headers — matches game modal section headers:
   uppercase, tracked, muted, with bottom border */
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

/* ═══════ CARDS ═══════
   Matches game's .card exactly:
   - white bg, 1px border, rounded corners
   - hover: red border + red shadow + slight lift */
.card-grid { display: grid; gap: 16px; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .card-grid-3, .card-grid-4 { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: default;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(204, 41, 54, 0.15);
  transform: translateY(-1px);
}
a.card { cursor: pointer; text-decoration: none; color: inherit; }
.card h3 { font-size: 15px; font-weight: 700; color: var(--neutral-900); margin-bottom: 4px; }
.card h4 { font-size: 14px; font-weight: 700; color: var(--neutral-900); margin-bottom: 4px; }
.card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* Card with icon box — matches game's card-icon */
.card-icon-box {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.card-icon-box.blue { background: #dbeafe; }
.card-icon-box.purple { background: #ede9fe; }
.card-icon-box.cyan { background: #cffafe; }
.card-icon-box.green { background: #d1fae5; }
.card-icon-box.orange { background: #ffedd5; }
.card-icon-box.red { background: #fee2e2; }
.card-icon-box.gray { background: #f1f5f9; }

/* ═══════ HIGHLIGHT BOX ═══════ */
.highlight-box {
  border-left: 3px solid var(--red-500);
  background: var(--bg-card);
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.highlight-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.highlight-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ═══════ HERO BOX ═══════
   Matches game's .corp-hero: gradient red bg, white text */
.hero-box {
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  color: white;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-box::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-box h2 { color: white; }
.hero-box p { color: rgba(255,255,255,0.9); }
.hero-box .stat { font-size: 28px; font-weight: 800; }

/* ═══════ STAT BOXES ═══════
   Matches game's .stat: bg, border, rounded, with hover */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
}
.stat-box:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(204, 41, 54, 0.15);
}
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.3px; }

/* ═══════ BUTTONS ═══════
   Matches game's landing CTA + action buttons */
.btn-primary {
  display: inline-block;
  background: var(--red-500);
  color: white;
  border: none;
  padding: 14px 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(204,41,54,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(204,41,54,0.35); }
.btn-secondary {
  display: inline-block;
  background: white;
  color: var(--neutral-900);
  border: 1px solid var(--border);
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--neutral-400); }

/* ═══════ MODAL ═══════
   Matches the game's modal-overlay + .modal exactly:
   - Blur backdrop
   - White card with header row: icon box + title/subtitle + close btn
   - Scrollable body
   - Entry animation */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: 16px;
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  background: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-icon {
  width: 40px; height: 40px;
  background: var(--red-500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 12px rgba(204,41,54,0.2);
  flex-shrink: 0;
}
.modal-titles { flex: 1; min-width: 0; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--neutral-900); margin: 0; }
.modal-sub { font-size: 12px; color: var(--text-muted); margin: 0; }
.modal-close {
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: inherit;
}
.modal-close:hover { background: var(--neutral-100); color: var(--neutral-900); }
.modal-body { flex: 1; padding: 20px; overflow-y: auto; }
.modal-body h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}
.modal-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.modal-body p:last-child { margin-bottom: 0; }

/* ═══════ CONCEPT GRID ═══════
   Concept buttons that open game-style modals */
.concept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 768px) { .concept-grid { grid-template-columns: repeat(2, 1fr); } }
.concept-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-900);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
}
.concept-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(204, 41, 54, 0.15);
  transform: translateY(-1px);
  color: var(--primary);
}

/* ═══════ TWO-COLUMN / EDU LAYOUTS ═══════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.edu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.edu-item:hover { border-color: var(--neutral-300); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.edu-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.edu-item-red h4 { color: var(--red-500); }
.edu-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ═══════ STEPS ═══════ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
@media (max-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red-500); color: white;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.step h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 12px; color: var(--text-muted); }

/* ═══════ SCREENSHOTS ═══════ */
.screenshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .screenshot-grid { grid-template-columns: 1fr; } }
.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
}
.screenshot-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(204, 41, 54, 0.15); }
.screenshot-card img { width: 100%; display: block; }
.screenshot-card .caption { padding: 14px 18px; }
.screenshot-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.screenshot-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ═══════ COMPETITOR CARDS ═══════
   Matches game's entity-card + comp-card styles */
.competitor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
}
.competitor-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(204, 41, 54, 0.15);
  transform: translateY(-1px);
}
.competitor-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.competitor-card .meta { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.competitor-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ═══════ BADGES & TAGS ═══════
   Matches game's comp-tag, threat badges, etc. */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  vertical-align: middle;
}
.threat-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.threat-high, .badge-danger { background: #fecaca; color: #991b1b; }
.threat-medium, .badge-warning { background: #fef3c7; color: #92400e; }
.threat-low, .badge-success { background: #dcfce7; color: #166534; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-neutral { background: #f1f5f9; color: #475569; }

/* Comp-style tags */
.comp-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; display: inline-block; }
.comp-tag.premium { background: #dcfce7; color: #166534; }
.comp-tag.connected { background: #ede9fe; color: #5b21b6; }
.comp-tag.smart { background: #e0f2fe; color: #0369a1; }
.comp-tag.value { background: #fef9c3; color: #854d0e; }
.comp-tag.niche { background: #f1f5f9; color: #475569; }
.comp-tag.full-spectrum { background: #dbeafe; color: #1e40af; }

/* ═══════ TIMELINE ═══════ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
}
.timeline-item.milestone::before { background: var(--primary); }
.timeline-year { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.timeline-text { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.timeline-text strong { color: var(--neutral-900); }

/* ═══════ FOOTER ═══════ */
footer { border-top: 1px solid var(--border); margin-top: 32px; background: var(--bg-card); }
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-inner h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--neutral-900); }
.footer-inner p, .footer-inner a { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-inner a { text-decoration: none; display: block; margin-bottom: 6px; transition: color 0.2s; }
.footer-inner a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--primary); text-decoration: none; }
