/* ============================================================
   ROOT & RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  background-image: var(--grid-img);
  background-size: var(--grid-size);
  color: #e5e5e5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --red: #ef4444;
  --red-hover: #dc2626;
  --red-10: rgba(239, 68, 68, 0.10);
  --red-20: rgba(239, 68, 68, 0.20);
  --red-30: rgba(239, 68, 68, 0.30);
  --bg: #0a0a0a;
  --bg-dark: #000;
  --bg-zinc: #0c0c0c;
  --bg-cream: #f5f1ea;
  --bg-cream-2: #ece6dc;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #6b6b6b;
  --border-subtle: rgba(255,255,255,0.05);
  --border-soft:   rgba(255,255,255,0.08);
  --border-mid:    rgba(255,255,255,0.12);
  --hairline: rgba(255,255,255,0.07);
  --text:     #e5e5e5;
  --text-300: #d1d5db;
  --text-400: #9ca3af;
  --text-500: #6b7280;
  --display: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --max-w:  1280px;
  --nav-h:  80px;
  /* Grid texture — used on body and all major sections */
  --grid-img:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  --grid-size: 50px 50px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   EFFECTS
   ============================================================ */

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Scroll reveal — elements get .reveal from JS (so no-JS shows everything),
   then .in once they scroll into view. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,0.7,0.3,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

@keyframes bar-grow {
  from { width: 0; }
  to   { width: var(--bar-target, 82%); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-nav.scrolled,
.site-nav:has(.nav-links.open) {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Pulsing red dot */
.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  animation: pulse-ring 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

.logo-text {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.logo-white { color: #fff; }
.logo-red   { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-300);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-link:hover         { color: #fff; }
.nav-link:hover::after  { width: 100%; }

.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-500);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 4px 0;
}
.lang-toggle:hover { color: #fff; }

.btn-portal {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-portal:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.32);
}

.menu-toggle {
  display: none;
  color: #fff;
  padding: 4px;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 0 28px rgba(239,68,68,0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.btn-text-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s, gap 0.2s;
}
.btn-text-red:hover { color: #f87171; gap: 10px; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--red);
}

.section-header { margin-bottom: 80px; }

.section-header h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-400);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero canvas[data-hero-animation] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 100px;
}

.hero-content {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
.hero-badge span {
  font-size: 13px;
  color: #f87171;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7.6vw, 84px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 28px;
}
.hero h1 .text-red {
  color: var(--red);
  font-weight: 500;
  text-shadow: 0 0 24px rgba(239,68,68,0.35);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-400);
  line-height: 1.72;
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  padding: 96px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-card {
  padding: 8px 36px;
  border-left: 1px solid var(--hairline);
  transition: background 0.3s;
}
.stat-card:first-child { border-left: none; padding-left: 0; }
.stat-card:last-child  { padding-right: 0; }

.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
  font-weight: 600;
}
.stat-label::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--red);
}

.stat-headline {
  font-family: var(--display);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 500;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.stat-sub {
  font-size: 13.5px;
  color: var(--text-400);
  line-height: 1.65;
  max-width: 320px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 140px 0;
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(13,13,13,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover {
  background: rgba(20,20,20,0.85);
  border-color: rgba(239,68,68,0.38);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--red-10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-400);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* ── Capabilities grid (Forensics + Dark Web teasers) ───── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.capability-card {
  background: rgba(13,13,13,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.capability-card:hover {
  background: rgba(20,20,20,0.85);
  border-color: rgba(239,68,68,0.38);
  transform: translateY(-4px);
}
.capability-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.capability-card p {
  font-size: 14.5px;
  color: var(--text-400);
  line-height: 1.75;
  margin-bottom: 22px;
}
.capability-card em { color: var(--text-300); font-style: italic; }
@media (max-width: 768px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

/* ── Forensics divider ──────────────────────────────────── */
.forensics-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 20px;
  color: var(--text-500);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}
.forensics-divider::before,
.forensics-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Forensics featured card ────────────────────────────── */
.forensics-card {
  /* Override the standard top-margin from grid context */
  margin-top: 0;
}

.forensics-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.forensics-left h3 { font-size: 22px; }

.forensics-left p { margin-bottom: 14px; }
.forensics-left p:last-of-type { margin-bottom: 22px; }

.forensics-left em { color: var(--text-300); font-style: italic; }

.forensics-clients {
  font-size: 13px !important;
  color: var(--text-500) !important;
  font-style: italic;
  border-left: 2px solid rgba(239,68,68,0.35);
  padding-left: 12px;
  margin-bottom: 24px !important;
}

.forensics-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 32px;
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.12);
  border-radius: 12px;
}

.forensics-capability {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-300);
}

.forensics-cap-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .forensics-card-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  padding: 140px 0;
  background: var(--bg-zinc);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.approach-card {
  background: rgba(13,13,13,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.approach-card:hover {
  border-color: rgba(239,68,68,0.22);
  transform: translateY(-2px);
}

.approach-icon {
  width: 40px; height: 40px;
  background: var(--red-10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 18px;
}

.approach-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.approach-card p {
  font-size: 14px;
  color: var(--text-400);
  line-height: 1.72;
}

/* ============================================================
   TEAM (light interlude)
   ============================================================ */
.team {
  padding: 140px 0;
  background: var(--bg-cream);
  color: var(--ink);
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.team .section-label {
  color: var(--red);
}
.team .section-label::before {
  background: var(--red);
}

.team-header h2 {
  color: var(--ink);
}
.team-header p {
  color: var(--ink-soft);
  max-width: 600px;
}

.team-roster {
  margin-top: 8px;
  max-width: 860px;
  border-top: 1px solid rgba(0,0,0,0.14);
}

.team-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0;
  padding: 26px 6px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.14);
  transition: padding-left 0.3s ease, background 0.3s ease;
}
.team-row:hover {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(239,68,68,0.06), rgba(239,68,68,0) 55%);
}

.team-row-main {
  display: flex;
  align-items: baseline;
  gap: 22px;
  min-width: 0;
  flex: none;
}

/* The roster is a set of peers, not a ranking, so the rows carry no
   marker. A leader line joins each name to its role the way a table of
   contents or a credits list does, which gives the row a shape without
   numbering it or bulleting it. */
.team-leader {
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: rgba(0,0,0,0.14);
  margin: 0 20px 7px;
  align-self: flex-end;
  transition: background 0.25s;
}
.team-row:hover .team-leader { background: var(--red-30); }

.team-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.1;
  transition: color 0.25s;
}
.team-row:hover .team-name { color: var(--red-hover); }

.team-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}

/* Below this the row is too narrow for a leader line to read as anything
   but a stray dash, so the name and role stack instead. */
@media (max-width: 680px) {
  .team-row {
    display: block;
    padding: 22px 6px 20px;
  }
  .team-leader { display: none; }
  .team-role { display: block; margin-top: 8px; white-space: normal; }
}

@media (max-width: 600px) {
  .team-name { font-size: 22px; }
  .team-row-main { gap: 16px; }
  .team-role { letter-spacing: 1.2px; }
}

/* ============================================================
   TRAINING
   ============================================================ */
.training {
  padding: 140px 0;
  background: var(--bg-dark);
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.training-left {
  border-left: 3px solid var(--red);
  padding-left: 28px;
}

.training-left h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.9vw, 46px);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  margin-top: 6px;
}

.training-left > p {
  font-size: 16px;
  color: var(--text-400);
  line-height: 1.75;
  margin-bottom: 34px;
}

.training-items { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }

.training-item { display: flex; align-items: flex-start; gap: 12px; }

.training-check {
  width: 20px; height: 20px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.training-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.training-item-sub {
  font-size: 13px;
  color: var(--text-400);
}

/* Right panel — metric card */
.training-right {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(239,68,68,0.14) 0%, transparent 65%);
  border-radius: 20px;
  padding: 20px;
}

.training-card {
  width: 100%;
  height: 100%;
  background: rgba(13,13,13,0.7);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.training-metric-label {
  font-size: 10px;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}

.training-metric-number {
  font-size: 68px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}
.training-metric-number span { color: var(--red); }

.training-metric-desc {
  font-size: 14px;
  color: var(--text-400);
}

.training-bar-row { display: flex; flex-direction: column; gap: 10px; }

.training-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.training-bar-labels span:first-child { color: var(--text-400); }
.training-bar-labels span:last-child  { color: #fff; font-weight: 500; }

.training-bar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  height: 5px;
  overflow: hidden;
}

.training-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 100px;
  width: 0;
  --bar-target: 82%;
  animation: bar-grow 1.6s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-play-state: paused;
}
.training-bar-fill.animated { animation-play-state: running; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 160px 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239,68,68,0.04) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.5;
}

.cta-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -1.4px;
  line-height: 1.08;
  margin-bottom: 22px;
}

.cta-inner p {
  font-size: 18px;
  color: var(--text-400);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 140px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-info h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
  line-height: 1.12;
}

.contact-info > p {
  font-size: 15px;
  color: var(--text-400);
  margin-bottom: 40px;
  line-height: 1.72;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-detail-icon {
  width: 36px; height: 36px;
  background: var(--red-10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 14px;
  color: var(--text-400);
  line-height: 1.65;
}

.contact-detail-text a {
  color: var(--text-300);
  transition: color 0.2s;
}
.contact-detail-text a:hover { color: #fff; }

.contact-note {
  font-size: 13.5px;
  color: var(--text-500);
  line-height: 1.75;
  max-width: 360px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.contact-card {
  background: rgba(13,13,13,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 40px;
}

.contact-card-primary {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.contact-card-label {
  font-size: 10px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.3px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.contact-email svg { color: var(--red); flex-shrink: 0; }
.contact-email:hover { color: var(--red); gap: 16px; }

.contact-card-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-card-row-label {
  display: block;
  font-size: 11px;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand > p {
  font-size: 13px;
  color: var(--text-500);
  margin-top: 12px;
  line-height: 1.65;
  max-width: 230px;
}

.footer-col-label {
  font-size: 10px;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-300); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-address { font-size: 13px; color: var(--text-300); line-height: 1.85; }

.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { font-size: 13px; color: var(--text-300); transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 12px; color: var(--text-500); }

.footer-lang { display: flex; gap: 16px; align-items: center; }
.footer-lang a {
  font-size: 11px;
  color: var(--text-500);
  transition: color 0.2s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-lang a:hover,
.footer-lang a.active { color: #fff; }
.footer-lang .separator { color: var(--border-mid); }

/* ============================================================
   UNIVERSAL GRID TEXTURE
   Overrides background-image: none set by each section's
   background shorthand — must stay after all section rules.
   ============================================================ */
.stats-bar,
.services,
.approach,
.training,
.cta-banner,
.contact,
footer {
  background-image: var(--grid-img);
  background-size: var(--grid-size);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(2,2,2,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 99;
  }
  .nav-links.open { display: flex; }

  .nav-link,
  .lang-toggle {
    padding: 18px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
  }
  .nav-link::after { display: none; }

  .btn-portal {
    margin: 16px 24px 0;
    text-align: center;
    border-radius: 8px;
  }

  .menu-toggle { display: flex; }

  .hero h1 { letter-spacing: -1.2px; }

  .stats-grid        { grid-template-columns: 1fr; }
  .services-grid     { grid-template-columns: 1fr; }
  .approach-grid     { grid-template-columns: 1fr; }
  .training-grid     { grid-template-columns: 1fr; gap: 40px; }
  .training-right    { aspect-ratio: auto; }
  .training-card     { min-height: 280px; }
  .contact-grid      { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .threat-widget     { display: none; }

  /* Tighter vertical rhythm on small screens */
  .stats-bar         { padding: 60px 0; }
  .services,
  .approach,
  .training,
  .team,
  .contact           { padding: 72px 0; }
  .cta-banner        { padding: 84px 0; }
  .section-header    { margin-bottom: 40px; }

  /* Stacked stat cards: swap the divider from left edge to top */
  .stat-card {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding: 26px 0;
  }
  .stat-card:first-child { border-top: none; padding-top: 0; }
  .stat-card:last-child  { padding-bottom: 0; }
  .stat-sub { max-width: none; }
}

@media (max-width: 480px) {
  .footer-grid      { grid-template-columns: 1fr; }
  .hero-ctas        { flex-direction: column; }
  .btn-primary,
  .btn-ghost        { width: 100%; justify-content: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .approach-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SUBPAGES (forensics, dark-web-monitoring, legal)
   ============================================================ */
.subpage-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--hairline);
  background-image: var(--grid-img);
  background-size: var(--grid-size);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-500);
  margin-bottom: 36px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 500;
}
.breadcrumb a {
  color: var(--text-400);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #fff; }

.subpage-hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 500;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -1.6px;
  margin-bottom: 28px;
  max-width: 900px;
}
.subpage-hero h1 .text-red {
  color: var(--red);
  font-style: italic;
  text-shadow: 0 0 24px rgba(239,68,68,0.32);
}

.subpage-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--text-400);
  line-height: 1.72;
  max-width: 740px;
}
.subpage-lede em { color: var(--text-300); font-style: italic; }

.subpage-section {
  padding: 120px 0;
  background: var(--bg);
  background-image: var(--grid-img);
  background-size: var(--grid-size);
  border-bottom: 1px solid var(--hairline);
}
.subpage-section-alt {
  background: var(--bg-zinc);
}

.subpage-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.subpage-left h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.subpage-left p {
  font-size: 16px;
  color: var(--text-400);
  line-height: 1.72;
  max-width: 460px;
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cap-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.cap-row:last-child { border-bottom: none; padding-bottom: 0; }
.cap-row .cap-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
  opacity: 0.9;
  flex-shrink: 0;
}
.cap-row strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}
.cap-row span {
  display: block;
  color: var(--text-400);
  font-size: 14px;
  line-height: 1.65;
}
.cap-row em { color: var(--text-300); font-style: italic; }

@media (max-width: 900px) {
  .subpage-grid { grid-template-columns: 1fr; gap: 40px; }
  .subpage-section { padding: 80px 0; }
  .subpage-hero { padding: calc(var(--nav-h) + 56px) 0 56px; }
}

/* ============================================================
   LEGAL PAGES (datenschutz, impressum)
   ============================================================ */
.legal-page {
  padding: calc(var(--nav-h) + 80px) 0 120px;
  background: var(--bg);
  background-image: var(--grid-img);
  background-size: var(--grid-size);
  min-height: 100vh;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-300);
  font-size: 15.5px;
  line-height: 1.78;
}
.legal-content h1 {
  font-family: var(--display);
  font-size: clamp(33px, 4vw, 48px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.legal-content h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: #fff;
  margin: 40px 0 12px;
  letter-spacing: -0.2px;
}
.legal-content p { margin-bottom: 16px; }
.legal-content a { color: var(--red); }
.legal-content a:hover { color: #f87171; }
/* Buttons inside legal copy keep their own colours (red text on a red
   button would otherwise be invisible). */
.legal-content a.btn-primary,
.legal-content a.btn-primary:hover { color: #fff; }
.legal-content .legal-meta {
  font-size: 12px;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 36px;
}
.legal-placeholder {
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px dashed var(--border-mid);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-500);
  background: rgba(255,255,255,0.02);
}

/* ============================================================
   COOKIE / PRIVACY BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 200;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.cookie-banner-text {
  font-size: 13px;
  color: var(--text-400);
  line-height: 1.6;
}
.cookie-banner-text a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid var(--border-mid);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-btn:hover { background: rgba(255,255,255,0.08); }
.cookie-btn.cookie-btn-primary {
  background: var(--red);
  border-color: var(--red);
}
.cookie-btn.cookie-btn-primary:hover { background: var(--red-hover); }

@media (max-width: 600px) {
  .cookie-banner { padding: 18px 20px; }
  .cookie-banner-actions { flex-direction: column; align-items: stretch; }
  .cookie-btn { width: 100%; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;
  font-size: 12px;
  color: var(--text-500);
  margin-bottom: 36px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login-card {
  background: rgba(14,14,14,0.85);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 40px 36px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.login-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.login-card > p {
  font-size: 13px;
  color: var(--text-400);
  margin-bottom: 28px;
}

.form-field { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-400);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: rgba(239,68,68,0.45);
  background: rgba(255,255,255,0.06);
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.form-remember input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--red);
  cursor: pointer;
}
.form-remember label {
  font-size: 13px;
  color: var(--text-400);
  cursor: pointer;
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  font-family: inherit;
}
.btn-login:hover:not(:disabled) { background: var(--red-hover); }
.btn-login:disabled { opacity: 0.65; cursor: not-allowed; }

.login-spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-error {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: 8px;
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.55;
  display: none;
}
.login-error.visible { display: block; }

.login-divider {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-500);
}

.tls-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4ade80;
  font-size: 11px;
}
.tls-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2.5s ease infinite;
}

.login-back {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-500);
}
.login-back a { color: var(--text-400); transition: color 0.2s; }
.login-back a:hover { color: #fff; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.u-hidden { display: none !important; }

/* Footer: address should not be italic */
.footer-address { font-style: normal; }

/* Tabular monospace numerals — used on phone numbers, addresses, dates */
.num,
a[href^="tel:"],
.contact-detail-text,
.footer-address,
.footer-contact a[href^="tel:"] {
  font-variant-numeric: tabular-nums;
}
a[href^="tel:"],
.footer-contact a[href^="tel:"] {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.2px;
}

/* Footer: first legal link gets a top gap */
.footer-link-gap { margin-top: 12px; }

/* ============================================================
   WISSEN (knowledge hub + article pages)
   ============================================================ */
.wissen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.wissen-card {
  display: flex;
  flex-direction: column;
  background: rgba(13,13,13,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 30px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.wissen-card:hover {
  border-color: rgba(239,68,68,0.28);
  transform: translateY(-3px);
}
.wissen-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 14px;
}
.wissen-card h2 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.wissen-card p {
  font-size: 14px;
  color: var(--text-400);
  line-height: 1.72;
  margin-bottom: 20px;
}
.wissen-card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.2s;
}
.wissen-card:hover .wissen-card-more { gap: 10px; }

/* Article body: long-form reading column */
.article-body {
  max-width: 760px;
  font-size: 16px;
  color: var(--text-400);
  line-height: 1.8;
}
.article-body h2 {
  font-family: var(--display);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 44px 0 14px;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 30px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul,
.article-body ol { margin: 0 0 18px 20px; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--red); }
.article-body a:hover { color: #f87171; }
.article-body strong { color: var(--text-300); font-weight: 600; }

/* Answer-first summary box: the passage search engines and AI
   assistants are most likely to lift. */
.article-key {
  background: var(--red-10);
  border-left: 2px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 0 0 32px;
  font-size: 15.5px;
  color: var(--text-300);
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--text-500);
  margin-top: 22px;
}

@media (max-width: 600px) {
  .wissen-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 15.5px; }
}

/* ============================================================
   LONG-WORD HANDLING (German compounds)
   ============================================================ */
/* German compound nouns are long. In large display type their min-content
   width can exceed the column, and because a `1fr` track never shrinks
   below min-content that pushes the whole document wider than the
   viewport, which shows up as sideways scrolling on phones.

   The whole block is scoped to narrow viewports on purpose. On a wide
   screen there is room for these words on one line and the layout is
   correct as designed, so nothing here should apply there.

   `hyphens: none` is what keeps it that way. The soft hyphens sitting in
   the German headings would otherwise lower their min-content width and
   wrap them on desktop too, which is not what the design calls for. */
:lang(de) h1,
:lang(de) h2,
:lang(de) h3 {
  -webkit-hyphens: none;
  hyphens: none;
}

@media (max-width: 900px) {

  /* A grid child may shrink below its min-content width instead of forcing
     the track, and therefore the document, wider than the viewport. */
  .stats-grid > *,
  .services-grid > *,
  .capabilities-grid > *,
  .approach-grid > *,
  .training-grid > *,
  .contact-grid > *,
  .subpage-grid > *,
  .wissen-grid > *,
  .footer-grid > *,
  .team-row-main { min-width: 0; }

  /* Last-resort break so an over-long word wraps rather than overflows. */
  h1, h2, h3,
  .stat-headline,
  .subpage-lede,
  .article-body,
  .wissen-card,
  .cap-row,
  .training-item { overflow-wrap: break-word; }

  /* The compounds that are genuinely too long for a phone column carry a
     soft hyphen in the markup, so they always break at the correct seam.
     `hyphens: auto` covers anything that does not, where the browser ships
     a German hyphenation dictionary. */
  :lang(de) h1,
  :lang(de) h2,
  :lang(de) h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  /* Breadcrumbs wrap rather than push the page wide. */
  .breadcrumb { flex-wrap: wrap; row-gap: 6px; }
}

@media (max-width: 600px) {
  .subpage-hero h1  { font-size: 32px; letter-spacing: -1px; }
  .training-left h2 { font-size: 26px; }
}
