/* ==========================================================
   FORENSIK.IT GmbH — 2026 Redesign v2
   Advanced animations • Dual theming • Ultra-responsive
   ========================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Font --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ============================================
   TOKENS — LIGHT
   ============================================ */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f7f9;
  --bg-tertiary: #eceef2;
  --surface: #ffffff;
  --surface-hover: #f2f4f7;
  --surface-elevated: #ffffff;
  --border: rgba(19,72,146,0.07);
  --border-strong: rgba(19,72,146,0.13);
  --text-primary: #1a1a2e;
  --text-secondary: #475569;
  --text-muted: #5e6b7d;
  --heading: #0c111d;
  --accent-red: #d32f2c;
  --accent-red-hover: #b82725;
  --accent-red-glow: rgba(211,47,44,0.12);
  --accent-blue: #134892;
  --accent-blue-light: #e8eef8;
  --accent-blue-glow: rgba(19,72,146,0.08);
  --link: #134892;
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(19,72,146,0.06);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.10);
  --shadow-card-hover: 0 16px 48px rgba(19,72,146,0.12);
  --shadow-glow-red: 0 0 40px rgba(211,47,44,0.08);
  --shadow-glow-blue: 0 0 40px rgba(19,72,146,0.06);
  --hero-bg: #f0f2f6;
  --hero-text: #0c111d;
  --hero-muted: #475569;
  --hero-grid: rgba(19,72,146,0.06);
  --hero-orb-blue: rgba(19,72,146,0.08);
  --hero-orb-red: rgba(211,47,44,0.05);
  --hero-particle: rgba(19,72,146,0.18);
  --hero-particle-red: rgba(211,47,44,0.14);
  --hero-node: rgba(19,72,146,0.25);
  --hero-node-red: rgba(211,47,44,0.2);
  --hero-hud: rgba(19,72,146,0.2);
  --hero-hud-accent: rgba(211,47,44,0.4);
  --hero-hud-blue: rgba(19,72,146,0.35);
  --hero-fiber: rgba(19,72,146,0.25);
  --hero-fiber-pulse: rgba(19,72,146,0.5);
  --hero-fiber-encrypt: rgba(211,47,44,0.35);
  --hero-fiber-node: rgba(19,72,146,0.7);
  --hero-fiber-node-red: rgba(211,47,44,0.55);
  --hero-scan: rgba(19,72,146,0.4);
  --hero-scan-red: rgba(211,47,44,0.5);
  --hero-pill-bg: rgba(19,72,146,0.04);
  --hero-pill-border: rgba(19,72,146,0.1);
  --hero-pill-text: rgba(12,17,29,0.82);
  --hero-scroll-text: rgba(71,85,105,0.82);
  --hero-scroll-arrow: rgba(71,85,105,0.7);
  --focus-ring: #c62828;
  --focus-shadow: rgba(198,40,40,0.2);
  --gradient-surface: linear-gradient(135deg, var(--surface) 0%, var(--bg-secondary) 100%);
  --max-w: 1600px;
  --max-w-narrow: 860px;
  --header-h: 72px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.15s var(--ease);
  --t-base: 0.3s var(--ease);
  --t-slow: 0.5s var(--ease-out);
  --t-spring: 0.5s var(--ease-spring);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --lh: 1.7;
}

/* ============================================
   TOKENS — DARK
   ============================================ */
[data-theme="dark"] {
  --bg-primary: #090c14;
  --bg-secondary: #0f1320;
  --bg-tertiary: #161b2e;
  --surface: #131828;
  --surface-hover: #1a2038;
  --surface-elevated: #1e2540;
  --border: rgba(255,255,255,0.05);
  --border-strong: rgba(255,255,255,0.09);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #c1cad8;
  --heading: #f1f5f9;
  --accent-red-glow: rgba(211,47,44,0.15);
  --accent-blue-light: #172240;
  --accent-blue-glow: rgba(19,72,146,0.15);
  --link: #6ea8fe;
  --glass-bg: rgba(9,12,20,0.82);
  --glass-border: rgba(255,255,255,0.04);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
  --shadow-card-hover: 0 16px 48px rgba(0,0,0,0.4);
  --shadow-glow-red: 0 0 60px rgba(211,47,44,0.12);
  --shadow-glow-blue: 0 0 60px rgba(19,72,146,0.10);
  --gradient-surface: linear-gradient(135deg, var(--surface) 0%, var(--bg-secondary) 100%);
  /* Dark hero overrides */
  --hero-bg: #0a0e17;
  --hero-text: #f1f5f9;
  --hero-muted: #94a3b8;
  --hero-grid: rgba(255,255,255,0.025);
  --hero-orb-blue: rgba(19,72,146,0.35);
  --hero-orb-red: rgba(211,47,44,0.18);
  --hero-particle: rgba(19,72,146,0.25);
  --hero-particle-red: rgba(211,47,44,0.2);
  --hero-node: rgba(19,72,146,0.3);
  --hero-node-red: rgba(211,47,44,0.3);
  --hero-hud: rgba(19,72,146,0.25);
  --hero-hud-accent: rgba(211,47,44,0.5);
  --hero-hud-blue: rgba(19,72,146,0.45);
  --hero-fiber: rgba(19,72,146,0.3);
  --hero-fiber-pulse: rgba(19,72,146,0.55);
  --hero-fiber-encrypt: rgba(211,47,44,0.4);
  --hero-fiber-node: rgba(19,72,146,0.75);
  --hero-fiber-node-red: rgba(211,47,44,0.6);
  --hero-scan: rgba(19,72,146,0.5);
  --hero-scan-red: rgba(211,47,44,0.7);
  --hero-pill-bg: rgba(255,255,255,0.04);
  --hero-pill-border: rgba(255,255,255,0.07);
  --hero-pill-text: rgba(241,245,249,0.88);
  --hero-scroll-text: rgba(226,232,240,0.88);
  --hero-scroll-arrow: rgba(226,232,240,0.75);
  --focus-ring: #ff9b9b;
  --focus-shadow: rgba(255,155,155,0.25);
}

/* Theme transition */
body.theme-ready,
body.theme-ready *,
body.theme-ready *::before,
body.theme-ready *::after {
  transition: background-color 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease), fill 0.3s var(--ease), stroke 0.3s var(--ease) !important;
}

/* ============================================
   BASE
   ============================================ */
body {
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: var(--lh);
  color: var(--text-primary);
  background: var(--bg-primary);
}
h1,h2,h3,h4,h5,h6 { color: var(--heading); line-height: 1.2; font-weight: 700; }
strong,b { color: var(--heading); font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a:not(.btn-primary):not(.btn-outline):not(.btn-ghost) { color: var(--link); transition: color var(--t-fast); }
a:not(.btn-primary):not(.btn-outline):not(.btn-ghost):hover { color: var(--accent-red); }
main { display: block; }
#main-content:focus { outline: none; box-shadow: none; }

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 2001;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
  transition: transform var(--t-fast);
}
.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--focus-shadow);
}

main p a,
main li a,
.faq-answer a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }

/* ============================================
   HEADER
   ============================================ */
#header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-h);
  transition: height 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#header.scrolled {
  height: 60px;
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-strong);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 30px; width: auto; transition: height 0.35s var(--ease); }
#header.scrolled .logo img { height: 24px; }

/* Nav */
#nav { display: flex; align-items: center; }
#nav > ul { display: flex; gap: 2px; align-items: center; }
#nav > ul > li { position: relative; }
#nav > ul > li > a,
#nav > ul > li > button {
  display: block; padding: 8px 16px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
  position: relative;
  border: 0;
  background: none;
}
#nav > ul > li > a::after,
#nav > ul > li > button::after {
  content: '';
  position: absolute; bottom: 2px; left: 16px; right: 16px;
  height: 2px; background: var(--accent-red);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}
#nav > ul > li > a:hover,
#nav > ul > li > a.active,
#nav > ul > li > a[aria-current="location"],
#nav > ul > li > button:hover,
#nav > ul > li > button.active,
#nav > ul > li > button[aria-current="location"],
#nav > ul > li > button[aria-expanded="true"] {
  color: var(--heading);
}
#nav > ul > li > a.active::after,
#nav > ul > li > a[aria-current="location"]::after,
#nav > ul > li > button.active::after,
#nav > ul > li > button[aria-current="location"]::after,
#nav > ul > li > button[aria-expanded="true"]::after { transform: scaleX(1); }

/* Dropdown */
.has-dropdown > a > .chevron {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px; vertical-align: middle;
  transition: transform var(--t-fast);
}
.has-dropdown:hover > .nav-dropdown-toggle > .chevron,
.has-dropdown:focus-within > .nav-dropdown-toggle > .chevron,
.has-dropdown.is-open > .nav-dropdown-toggle > .chevron { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px; min-width: 260px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  padding-top: 16px;
}
/* Invisible bridge so mouse can travel from nav link to dropdown */
.dropdown::before {
  content: ''; position: absolute;
  top: -12px; left: 0; right: 0; height: 16px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 14px;
  font-size: 0.875rem; color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}
.dropdown li a:hover { background: var(--surface-hover); color: var(--heading); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
.theme-btn, .lang-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.theme-btn:hover, .lang-btn:hover {
  color: var(--heading);
  background: var(--surface-hover);
}
.theme-btn svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease-spring); }
.theme-btn:hover svg { transform: rotate(30deg); }
.lang-btn svg { width: 22px; height: 16px; }

/* Mobile */
.mobile-btn {
  display: none;
  flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.mobile-btn:hover { background: var(--surface-hover); }
.mobile-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all 0.35s var(--ease); transform-origin: center;
}
.mobile-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO — Clean, elegant, themed
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 12vh, 120px)) 24px 80px;
  background: var(--hero-bg); color: var(--hero-text);
}

/* === Background: gradient + subtle grid === */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 50% 45% at 30% 40%, var(--hero-orb-blue) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 70% 30%, var(--hero-orb-red) 0%, transparent 55%);
  animation: meshFloat 30s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(1%, -1%) scale(1.02); }
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
}

/* === Scan line — runs ONCE on load, then gone === */
.hero-scanline {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.hero-scanline::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -2px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, transparent 20%,
    var(--hero-scan) 40%, var(--hero-scan-red) 50%, var(--hero-scan) 60%,
    transparent 80%, transparent 100%);
  box-shadow: 0 0 15px 3px var(--hero-scan);
  animation: scanOnce 3.5s linear 0.3s 1 both;
}
@keyframes scanOnce {
  0%   { top: -2px; opacity: 0; }
  3%   { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* === Floating orbs (2 only, subtle) === */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.2;
  animation: orbDrift 25s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--hero-orb-blue); top: 10%; left: -5%; }
.hero-orb-2 { width: 380px; height: 380px; background: var(--hero-orb-red); top: 30%; right: -5%; animation-delay: -8s; }
.hero-orb-3 { display: none; }
@keyframes orbDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(15px, -10px); }
}

/* === Data particles (JS-generated, very subtle) === */
.hero-particles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--hero-particle);
  white-space: nowrap;
  animation: particleFall linear infinite;
  will-change: transform;
}
.particle.red { color: var(--hero-particle-red); }
@keyframes particleFall {
  0%   { transform: translateY(-20px); opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* === Corner HUD === */
.hero-hud {
  position: absolute; z-index: 2; pointer-events: none;
}
.hero-hud-tl { top: calc(var(--header-h) + 20px); left: clamp(20px, 4vw, 48px); }
.hero-hud-br { bottom: 68px; right: clamp(20px, 4vw, 48px); }
.hud-line {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--hero-hud); line-height: 1.8;
  opacity: 0; animation: hudFade 1s ease-out forwards;
}
.hud-line:nth-child(2) { animation-delay: 0.3s; }
.hud-line:nth-child(3) { animation-delay: 0.6s; }
.hud-line:nth-child(4) { animation-delay: 0.9s; }
.hud-line:nth-child(5) { animation-delay: 1.2s; }
.hud-line .accent { color: var(--hero-hud-accent); }
.hud-line .blue { color: var(--hero-hud-blue); }
@keyframes hudFade {
  0%   { opacity: 0; transform: translateX(-6px); }
  100% { opacity: 1; transform: translateX(0); }
}
.hero-hud-br .hud-line { text-align: right; animation-name: hudFadeBr; }
@keyframes hudFadeBr {
  0%   { opacity: 0; transform: translateX(6px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* === No node dots (removed for cleanliness) === */
.hero-nodes { display: none; }

/* === Hero content === */
.hero-content { position: relative; z-index: 2; max-width: 900px; width: 100%; }
/* Keep content away from the network map on screens where the map is visible */
@media (min-width: 768px) {
  .hero-content { max-width: min(900px, 60vw); margin-right: auto; margin-left: auto; padding-right: 2vw; }
}
@media (min-width: 1024px) {
  .hero-content { max-width: min(900px, 55vw); }
}
@media (min-width: 1600px) {
  .hero-content { max-width: 900px; }
}

#hero h1 {
  font-size: clamp(2.8rem, 2rem + 4vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.0; margin-bottom: 20px;
  color: var(--hero-text);
}
.dot { color: var(--accent-red); }
.gmbh { font-weight: 300; opacity: 0.4; font-size: 0.45em; vertical-align: 0.12em; }

.hero-tagline {
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  color: var(--hero-muted); margin-bottom: 10px;
  font-weight: 400; display: inline-block;
  position: relative;
}
.hero-tagline .cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--accent-red); margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(0.88rem, 0.82rem + 0.35vw, 1.05rem);
  color: var(--hero-muted); opacity: 0.92;
  margin-bottom: 32px;
  max-width: 580px; margin-left: auto; margin-right: auto;
}

/* Pills */
.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 40px; margin-bottom: 32px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.hero-pills a {
  background: var(--hero-pill-bg);
  border: 1px solid var(--hero-pill-border);
  color: var(--hero-pill-text);
  padding: 7px 18px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  opacity: 0; animation: pillReveal 0.4s var(--ease-out) forwards;
}
.hero-pills a:nth-child(1) { animation-delay: 1.0s; }
.hero-pills a:nth-child(2) { animation-delay: 1.1s; }
.hero-pills a:nth-child(3) { animation-delay: 1.2s; }
.hero-pills a:nth-child(4) { animation-delay: 1.3s; }
.hero-pills a:nth-child(5) { animation-delay: 1.4s; }
.hero-pills a:nth-child(6) { animation-delay: 1.5s; }
.hero-pills a:nth-child(7) { animation-delay: 1.6s; }
@keyframes pillReveal {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-pills a:hover {
  background: var(--accent-blue-light);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  color: var(--hero-text);
}

/* Certs */
.hero-certs {
  display: flex; justify-content: center; align-items: center;
  gap: 28px; margin-bottom: 0;
}
.cert-badge {
  height: 100px; width: auto; opacity: 0.85;
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease);
}
[data-theme="dark"] .cert-badge { filter: brightness(1.3); }
.cert-badge:hover { opacity: 1; transform: scale(1.06); }
.cert-badge-link { display: inline-block; text-decoration: none; }

/* === Scroll arrow — pinned to very bottom === */
.hero-scroll-cta {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  text-decoration: none; cursor: pointer;
  opacity: 0; animation: heroCtaIn 0.5s var(--ease-out) 2.2s forwards;
}
.hero-scroll-text {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--hero-scroll-text);
  transition: color 0.3s var(--ease);
}
.hero-scroll-cta:hover .hero-scroll-text { color: var(--hero-text); }
.hero-scroll-chevron {
  width: 24px; height: 24px;
  color: var(--hero-scroll-arrow);
  animation: scrollBob 2.5s ease-in-out infinite;
  transition: color 0.3s var(--ease);
}
.hero-scroll-cta:hover .hero-scroll-chevron { color: var(--accent-red); }
@keyframes scrollBob {
  0%,100% { transform: translateY(0); opacity: 0.5; }
  50%     { transform: translateY(5px); opacity: 1; }
}
@keyframes heroCtaIn {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === Germany map — right side, full height === */
.hero-network {
  position: absolute; z-index: 1; pointer-events: none;
  top: calc(var(--header-h) + 16px);
  bottom: 16px;
  right: clamp(8px, 2vw, 40px);
  width: auto;
  height: calc(100% - var(--header-h) - 32px);
  opacity: 0;
  animation: networkFadeIn 1.5s var(--ease-out) 2s forwards;
}
.hero-network svg {
  width: auto; height: 100%;
  max-height: 100%;
}
@keyframes networkFadeIn {
  0%   { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}
/* Fiber pulse */
.fiber-pulse { stroke-dasharray: 8 20; animation: fiberFlow 3s linear infinite; }
.fiber-pulse-reverse { stroke-dasharray: 8 20; animation: fiberFlow 3s linear infinite reverse; }
@keyframes fiberFlow { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -56; } }
.fiber-encrypt { stroke-dasharray: 4 24; animation: fiberFlow 2.2s linear infinite; opacity: 0.5; }
.network-node { animation: netNodePulse 3.5s ease-in-out infinite; }
@keyframes netNodePulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.network-label { font-family: 'Courier New', monospace; font-size: 9px; letter-spacing: 0.1em; fill: var(--hero-hud); }
.city-label { font-size: 11px; font-weight: bold; fill: var(--hero-text); opacity: 0.8; letter-spacing: 0.14em; }
.airgap-ring { animation: airgapSpin 15s linear infinite; transform-origin: center; }
@keyframes airgapSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* === Entrance === */
.hero-entrance #hero h1 { animation: heroTitleIn 0.7s var(--ease-out) 0.15s both; }
.hero-entrance .hero-tagline { animation: heroFadeUp 0.6s var(--ease-out) 0.5s both; }
.hero-entrance .hero-sub { animation: heroFadeUp 0.6s var(--ease-out) 0.7s both; }
.hero-entrance .hero-certs { animation: heroFadeUp 0.5s var(--ease-out) 1.8s both; }
@keyframes heroTitleIn {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === Responsive hero === */
@media (max-width: 1023px) {
  .hero-network { width: 160px; height: auto; top: auto; bottom: 60px; right: 12px; }
  .hero-network svg { width: 100%; height: auto; }
}
@media (max-width: 767px) {
  .hero-hud { display: none; }
  .hero-network { display: none; }
  .particle { font-size: 9px; }
  .hero-certs { gap: 20px; flex-wrap: wrap; }
  .hero-pills { gap: 6px; }
  .hero-pills a { font-size: 0.75rem; padding: 6px 14px; }
}

/* Scroll-to-top */
.scroll-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(211,47,44,0.3);
  opacity: 0; pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring), bottom 0.15s linear, background 0.2s var(--ease);
}
.scroll-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.scroll-btn:hover { background: var(--accent-red-hover); transform: translateY(-3px) scale(1.05); }
.scroll-btn svg {
  width: 22px; height: 22px;
  transition: transform 0.4s var(--ease-spring);
}
/* Points down by default, rotates to up when past 50% */
.scroll-btn.scroll-down svg { transform: rotate(180deg); }
.scroll-btn.scroll-up svg { transform: rotate(0deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 40px;
  background: var(--accent-red); color: #fff;
  font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent-red);
  transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(211,47,44,0.3); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border: 2px solid var(--border-strong); color: var(--heading);
  font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease); white-space: nowrap;
}
.btn-outline:hover { border-color: var(--accent-red); color: var(--accent-red); transform: translateY(-2px); }

/* (hero CTA is now .hero-scroll-cta, not btn-primary) */

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--bg-primary);
  position: relative;
}
.section-alt { background: var(--bg-secondary); }

.section-label {
  text-transform: uppercase; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--accent-red); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  font-weight: 800; color: var(--heading);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
.section-intro {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--text-secondary); max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem); line-height: 1.7;
}

/* Two-col */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.two-col h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--heading);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 3px solid var(--accent-red);
  display: inline-block;
}

/* Check list */
.check-list { padding: 0; }
.check-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent-red);
}

/* Process steps */
.process-list { counter-reset: process; }
.process-list li { counter-increment: process; padding-left: 52px; }
.process-list li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute; left: 0; top: 10px;
  width: 36px; height: 36px;
  background: var(--accent-red); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.two-col-list { columns: 2; column-gap: 36px; }

/* ============================================
   SERVICES SHOWCASE — Feature grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.service-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--accent-blue-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent-blue);
  transition: all 0.4s var(--ease);
}
.service-card:hover .service-icon {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow-blue);
}
.service-card h4 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; border: none; padding: 0;
}
.service-card p {
  font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.65;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-band.cta-accent {
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent-red);
}

/* Watermark icons */
.cta-careers::before,
.cta-security::before {
  content: '';
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  top: 50%; transform: translateY(-50%);
  width: 120px; height: 120px;
  opacity: 0.04;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}
[data-theme="dark"] .cta-careers::before,
[data-theme="dark"] .cta-security::before { opacity: 0.06; }

/* Person icon for careers */
.cta-careers::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
/* Shield icon for security */
.cta-security::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

/* ── Section watermark icons ── */
#about::after,
#services::after,
#itforensik::after,
#wirtschaft::after,
#workshops::after,
#sicherheit::after,
#team::after,
#partner::after,
#faq::after,
#contact::after {
  content: '';
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(24px, 5vw, 80px);
  width: 140px; height: 140px;
  opacity: 0.03;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}
[data-theme="dark"] #about::after,
[data-theme="dark"] #services::after,
[data-theme="dark"] #itforensik::after,
[data-theme="dark"] #wirtschaft::after,
[data-theme="dark"] #workshops::after,
[data-theme="dark"] #sicherheit::after,
[data-theme="dark"] #team::after,
[data-theme="dark"] #partner::after,
[data-theme="dark"] #faq::after,
[data-theme="dark"] #contact::after { opacity: 0.05; }

/* About — building */
#about::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01M16 6h.01M12 6h.01M8 10h.01M16 10h.01M12 10h.01M8 14h.01M16 14h.01M12 14h.01'/%3E%3C/svg%3E");
}
/* Services — grid/search */
#services::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
}
/* IT Forensik — hard drive */
#itforensik::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='12' x2='2' y2='12'/%3E%3Cpath d='M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3Cline x1='6' y1='16' x2='6.01' y2='16'/%3E%3Cline x1='10' y1='16' x2='10.01' y2='16'/%3E%3C/svg%3E");
}
/* Wirtschaft — trending up / chart */
#wirtschaft::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E");
}
/* Workshops — presentation */
#workshops::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h20v14H2z'/%3E%3Cpath d='M8 21l4-4 4 4'/%3E%3C/svg%3E");
}
/* Sicherheit — lock */
#sicherheit::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
/* Team — users */
#team::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
/* Partner — handshake */
#partner::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 17l-5-5 5-5'/%3E%3Cpath d='M13 7l5 5-5 5'/%3E%3C/svg%3E");
}
/* FAQ — help circle */
#faq::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}
/* Contact — mail */
#contact::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23134892' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22 6 12 13 2 6'/%3E%3C/svg%3E");
}
.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.cta-inner h3 { font-size: 1.5rem; margin-bottom: 6px; }
.cta-inner p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 0; }

/* ============================================
   CARDS (Team / Partners)
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: all 0.45s var(--ease);
  position: relative;
}
.card:hover {
  border-color: var(--accent-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
[data-theme="dark"] .card:hover {
  box-shadow: var(--shadow-glow-red);
}
.card h4 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 3px solid var(--accent-red);
}
.card ul { padding: 0; }
.card li {
  font-size: 0.875rem; color: var(--text-secondary);
  padding: 6px 0 6px 18px; position: relative; line-height: 1.6;
}
.card li::before {
  content: '\2022'; color: var(--accent-red); font-weight: bold;
  position: absolute; left: 0;
}

/* Partner logo card */
.partner-logo-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 16px;
}
.partner-logo {
  height: 56px; width: auto;
  opacity: 0.7;
  filter: grayscale(0.2);
  transition: all 0.4s var(--ease);
}
.logo-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
}
.logo-info-icon {
  position: relative;
  color: var(--text-secondary, #888);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: help;
}
.logo-info-icon:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}
.logo-copyright-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #ddd);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-secondary, #666);
  width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 10;
  text-align: left;
}
.logo-info:hover .logo-copyright-tooltip,
.logo-info:focus-within .logo-copyright-tooltip {
  display: block;
}
.card:hover .partner-logo { opacity: 1; filter: grayscale(0); }
[data-theme="dark"] .partner-logo { filter: brightness(1.5) grayscale(0.3); opacity: 0.6; }
[data-theme="dark"] .card:hover .partner-logo { filter: brightness(1.6) grayscale(0); opacity: 0.9; }

.card-featured {
  border-left: 3px solid var(--accent-blue);
}
.card-featured:hover { border-color: var(--accent-blue); }
.partner-org {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-blue); margin-bottom: 10px;
}
.partner-desc {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65;
}

/* ============================================
   SECURITY
   ============================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.security-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
  transition: all 0.45s var(--ease);
}
.security-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-blue);
}
.sec-icon {
  width: 52px; height: 52px;
  background: var(--accent-blue-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent-blue);
  transition: all 0.4s var(--ease);
}
.security-card:hover .sec-icon { transform: scale(1.1) rotate(-5deg); }
.security-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; border: none; padding: 0; }
.security-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

.iso-tooltip {
  font-weight: 700;
  color: var(--accent-blue);
  cursor: help;
  border-bottom: 1px dashed var(--accent-blue);
  border-radius: 2px;
  outline-offset: 2px;
}
.iso-tooltip:focus-visible {
  outline: 2px solid var(--accent-blue);
}

@keyframes cert-highlight {
  0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  30%  { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.security-card.is-highlighted {
  animation: cert-highlight 1.2s ease-out;
}
#iso-cert { scroll-margin-top: 100px; }

.compliance-block {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
}
.compliance-block h3 { border: none; padding: 0; margin-bottom: 18px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 1024px) {
  .faq-list { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.faq-item[open] { border-color: var(--accent-red); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 22px 28px; font-weight: 600; font-size: 1rem;
  color: var(--heading); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--t-fast);
}
.faq-item summary:hover { background: var(--surface-hover); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 28px; height: 28px; margin-left: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d32f2c' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.4s var(--ease-spring);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 28px 22px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.contact-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
  transition: all 0.45s var(--ease);
}
.contact-card:hover { border-color: var(--accent-blue); transform: translateY(-4px); box-shadow: var(--shadow-glow-blue); }
.contact-icon {
  width: 48px; height: 48px;
  background: var(--accent-blue-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent-blue);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 1rem; margin-bottom: 8px; border: none; padding: 0; }
.contact-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 6rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-logo-img { height: 30px; width: auto; margin-bottom: 18px; }
[data-theme="dark"] .footer-logo-img { filter: brightness(1.4); }
.footer-tagline { font-size: 0.9rem; color: var(--text-muted); max-width: 300px; line-height: 1.7; margin-bottom: 24px; }
.footer-certs { display: flex; gap: 20px; align-items: center; }
.footer-certs img { height: 52px; width: auto; opacity: 0.85; transition: all 0.3s var(--ease); border-radius: var(--radius-xs); }
.footer-certs img:hover { opacity: 1; transform: scale(1.05); }
[data-theme="dark"] .footer-certs img { filter: brightness(1.3); }

.footer-col h4 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 18px; border: none; padding: 0;
}
.footer-col ul { padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent-red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { font-size: 0.8rem; font-weight: 600; color: var(--accent-red); }
.footer-legal-links a:hover { color: var(--accent-red-hover); }

/* ============================================
   ANIMATIONS
   ============================================ */
/* Base hidden state */
[data-anim] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.7s;
  transition-timing-function: var(--ease-out);
  will-change: opacity, transform;
}
/* Variants */
[data-anim="up"] { transform: translateY(40px); }
[data-anim="down"] { transform: translateY(-40px); }
[data-anim="left"] { transform: translateX(60px); }
[data-anim="right"] { transform: translateX(-60px); }
[data-anim="scale"] { transform: scale(0.92); }
[data-anim="fade"] { transform: none; }
[data-anim="flip"] { transform: perspective(800px) rotateY(8deg) translateX(30px); }

/* Visible */
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) perspective(800px) rotateY(0deg);
}

/* Stagger delays via data-delay */
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }
[data-delay="7"] { transition-delay: 0.56s; }
[data-delay="8"] { transition-delay: 0.64s; }
[data-delay="9"] { transition-delay: 0.72s; }
[data-delay="10"] { transition-delay: 0.80s; }
[data-delay="11"] { transition-delay: 0.88s; }
[data-delay="12"] { transition-delay: 0.96s; }

/* Speed variants */
[data-speed="fast"] { transition-duration: 0.45s; }
[data-speed="slow"] { transition-duration: 1s; }

/* ============================================
   LEGAL SUBPAGES
   ============================================ */
.legal-page { padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(4rem, 8vw, 8rem); }
.legal-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 3px solid var(--accent-red);
}
.legal-header h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 8px; }
.legal-header p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.legal-content h2 { font-size: 1.3rem; margin: 3rem 0 1.25rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.legal-content h3 { font-size: 1.1rem; margin: 2.5rem 0 0.75rem; }
.legal-content p { margin-bottom: 1.15rem; color: var(--text-secondary); line-height: 1.75; }
.legal-content ul { padding-left: 28px; margin-bottom: 1.25rem; }
.legal-content li { list-style: disc; color: var(--text-secondary); margin-bottom: 8px; font-size: 0.95rem; }

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-overlay {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-primary); z-index: 999;
  padding: 32px 24px; overflow-y: auto;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: all 0.35s var(--ease);
}
.mobile-overlay[hidden] { display: none; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-overlay ul { padding: 0; }
.mobile-overlay > ul > li > a {
  display: block; padding: 18px 0;
  font-size: 1.2rem; font-weight: 600;
  color: var(--heading); border-bottom: 1px solid var(--border);
}
.mobile-overlay .dropdown {
  position: static; display: block;
  background: none; border: none; box-shadow: none;
  padding: 0 0 0 20px; min-width: auto; opacity: 1; visibility: visible;
  transform: none;
}
.mobile-overlay .dropdown li a {
  font-size: 1.05rem; font-weight: 500; padding: 14px 0;
  color: var(--text-secondary); border-bottom: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.theme-ready,
  body.theme-ready *,
  body.theme-ready *::before,
  body.theme-ready *::after,
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-scanline,
  .hero-particles,
  .hero-hud,
  .hero-nodes { display: none !important; }
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1600px) {
  .hero-content { max-width: 1100px; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .security-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1023px) {
  #nav { display: none; }
  .mobile-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

@media (max-width: 639px) {
  .card-grid, .services-grid, .security-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero-certs { flex-wrap: wrap; gap: 20px; }
  .hero-pills { gap: 8px; }
  .hero-pills a { font-size: 0.8rem; padding: 6px 16px; }
  #hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  #header, .hero-scroll-cta, .scroll-btn, .cta-band, .hero-certs, .hero-bg, .hero-orb, .hero-network, .hero-scanline, .hero-particles, .hero-nodes, .hero-hud { display: none; }
  body { background: #fff; color: #111; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  #hero { min-height: auto; background: #1a1a2e; padding: 2rem; }
}
