/* ============================================================
   INTELLIROOT — Tactical Red Design System
   Enterprise Cybersecurity Services — Red/Black/White Brand
   ============================================================ */

/* --- Design System Variables --- */
:root {
  /* Brand Red Palette */
  --primary: #E11D2E;
  --primary-dark: #B91525;
  --primary-bright: #FF2D55;
  --primary-glow: rgba(225, 29, 46, 0.35);

  /* Tech Accents (used sparingly for data/viz) */
  --accent-cyan: #00F0FF;
  --accent-violet: #9D4EDD;
  --accent-green: #00FF94;

  /* Glow States — brand red */
  --glow: rgba(225, 29, 46, 0.5);
  --glow-soft: rgba(225, 29, 46, 0.15);
  --glow-strong: rgba(255, 45, 85, 0.55);

  /* Keep these for backwards compat with viz/telemetry */
  --glow-violet: rgba(157, 78, 221, 0.5);
  --glow-green: rgba(0, 255, 148, 0.4);

  /* Void Backgrounds */
  --bg: #07080F;
  --bg-2: #0B0D17;
  --bg-3: #10121D;
  --surface: #141722;
  --surface-2: #191D2A;
  --surface-3: #1F2332;

  /* Red-Tinted Borders */
  --border: rgba(225, 29, 46, 0.15);
  --border-subtle: rgba(225, 29, 46, 0.07);
  --border-bright: rgba(255, 45, 85, 0.4);
  --border-glow: rgba(255, 45, 85, 0.75);

  /* Text Scale — white-forward */
  --text: #F0F0F5;
  --text-muted: #7A7E94;
  --text-dim: #6E7285;
  --text-bright: #FFFFFF;
  --text-red: #FF2D55;
  --text-cyan: #00F0FF;
  --text-green: #00FF94;
  --text-violet: #B47EFF;

  /* Status */
  --success: #00FF94;
  --warning: #FFB800;
  --danger: #FF2D55;
  --critical: #FF2D55;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Refined corners */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.12s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(225, 29, 46, 0.2), 0 0 60px rgba(225, 29, 46, 0.08);
  --shadow-glow-strong: 0 0 40px rgba(255, 45, 85, 0.4), 0 0 80px rgba(225, 29, 46, 0.15);

  --z-nav: 1000;
  --z-drawer: 1200;
  --z-modal: 2000;
  --z-tooltip: 3000;
}


/* == Icon Design System =====================================================
   Unified sizing tokens. Apply .icon + size modifier on the <svg> element.
   Stroke colour always via currentColor — set on the parent wrapper.
   Canonical stroke-weight: 1.5 on a 24x24 viewBox.
   ========================================================================= */
:root {
  --icon-xs:  12px;   /* checkmarks, inline trust items          */
  --icon-sm:  16px;   /* nav, sidebar, form-field prefix         */
  --icon-md:  20px;   /* contact benefits, service tiles         */
  --icon-lg:  24px;   /* standard feature icons, footer          */
  --icon-xl:  40px;   /* bento / hero feature cards              */
  --icon-stroke: 1.5; /* canonical stroke-width on 24x24 viewBox */
}
svg.icon {
  display: block; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round; stroke-linejoin: round;
}
svg.icon-xs { width: var(--icon-xs);  height: var(--icon-xs);  }
svg.icon-sm { width: var(--icon-sm);  height: var(--icon-sm);  }
svg.icon-md { width: var(--icon-md);  height: var(--icon-md);  }
svg.icon-lg { width: var(--icon-lg);  height: var(--icon-lg);  }
svg.icon-xl { width: var(--icon-xl);  height: var(--icon-xl);  }

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* Skip link — keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.125rem; }

p { line-height: 1.7; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--primary);
  opacity: 0.7;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #00F0FF 60%, #9D4EDD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

/* --- Quantum Dot Grid Background --- */
.cyber-grid {
  background-image:
    radial-gradient(circle, rgba(0, 240, 255, 0.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
}

/* --- Animations --- */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(225, 29, 46, 0.3), 0 0 40px rgba(225, 29, 46, 0.1); }
  50% { box-shadow: 0 0 40px rgba(255, 45, 85, 0.6), 0 0 80px rgba(255, 45, 85, 0.2); }
}

@keyframes text-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-slow-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes dash-animate {
  to { stroke-dashoffset: 0; }
}

@keyframes bar-fill {
  from { width: 0; }
}

@keyframes counter-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.25rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark { display: flex; align-items: center; }

.logo-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(225,29,46,0.5));
  transition: filter 0.3s ease;
}

.nav-logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(255,45,85,0.8));
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-bright);
}

.logo-accent {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(225, 29, 46, 0.6);
}

.nav-logo-img {
  height: 86px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.08));
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.18));
  opacity: 0.95;
}

/* Dual-logo theme switching */
.nav-logo-dark  { display: block; }
.nav-logo-light { display: none; }
[data-theme="light"] .nav-logo-dark  { display: none; }
[data-theme="light"] .nav-logo-light { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 1px;
  background: var(--primary);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #c4172a 100%);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(225, 29, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: glow-pulse 3s ease-in-out infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225, 29, 46, 0.6), 0 0 60px rgba(255, 45, 85, 0.3);
  animation: none;
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225, 29, 46, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(225, 29, 46, 0.2);
}

.btn-outline:hover::before { opacity: 1; }

.btn-outline.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-icon {
  font-size: 0.875em;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-outline:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

/* ============================================================
   CYBER CARD
   ============================================================ */
.cyber-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(225, 29, 46, 0.05), inset 0 0 20px rgba(225, 29, 46, 0.02);
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 46, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cyber-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(225, 29, 46, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.cyber-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(225, 29, 46, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cyber-card:hover::before { opacity: 1; }
.cyber-card:hover::after { opacity: 1; }

.holographic {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 200%;
}

.holographic:hover {
  background-position: 100% 100%;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
}

/* Glow text effect */
.glow-text {
  text-shadow: 0 0 20px rgba(255, 45, 85, 0.8), 0 0 40px rgba(255, 45, 85, 0.4);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

#cyber-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 46, 0.3), rgba(255, 45, 85, 0.6), rgba(225, 29, 46, 0.3), transparent);
  z-index: 2;
  animation: scan-line 8s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: clamp(1rem, 4vw, 3rem);
  animation: slide-up 1s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(225, 29, 46, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px rgba(225, 29, 46, 0.8);
  animation: glow-pulse 2s infinite;
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 40%, #ff6b7a 80%, #E11D2E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-flicker 10s infinite;
}

.headline-line {
  display: block;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--primary);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  animation: slide-up 1s ease 0.3s both;
}

.stat-card {
  position: relative;
  background: rgba(26, 32, 53, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-align: left;
  backdrop-filter: blur(10px);
  min-width: 0;
  flex: 1 1 0;
  animation: float 4s ease-in-out infinite;
  transition: var(--transition);
}

.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 1s; }
.stat-card:nth-child(4) { animation-delay: 1.5s; }

.stat-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}

.stat-unit {
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stat-pulse {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.stat-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulse-ring 2s ease-out infinite;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  transform: none;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
}

/* Pulse rings */
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.15);
  pointer-events: none;
  z-index: 1;
}

.ring-1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 4s ease-out infinite;
}

.ring-2 {
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 4s ease-out infinite 1.5s;
}

.ring-3 {
  width: 1200px;
  height: 1200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 4s ease-out infinite 3s;
}

/* ============================================================
   PLATFORM SECTION
   ============================================================ */
.platform-section {
  background: var(--bg-2);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Platform card inner layout ---- */
.pcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pcard-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.6;
  letter-spacing: -0.04em;
  transition: opacity 0.3s;
  user-select: none;
}

.cyber-card:hover .pcard-num {
  opacity: 0.85;
}

[data-theme="light"] .pcard-num { opacity: 0.18; }
[data-theme="light"] .cyber-card:hover .pcard-num { opacity: 0.32; }

.pcard-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(225, 29, 46, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.pcard-icon-wrap svg {
  width: 22px;
  height: 22px;
  display: block;
}

.cyber-card:hover .pcard-icon-wrap {
  background: rgba(225, 29, 46, 0.14);
  border-color: var(--border-bright);
  transform: scale(1.06);
}

.pcard-footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(225, 29, 46, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.cyber-card:hover .card-icon-wrap {
  background: rgba(225, 29, 46, 0.14);
  border-color: var(--border-bright);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.card-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-stat {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--primary);
  background: rgba(225, 29, 46, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
  letter-spacing: 0.02em;
}

.card-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cyber-card:hover .card-glow { opacity: 1; }

/* Dashboard Preview */
.platform-dashboard-preview {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.dashboard-frame {
  background: var(--surface);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #EF4444; }
.dashboard-dot.yellow { background: #F59E0B; }
.dashboard-dot.green { background: #10B981; }

.dashboard-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 0.5rem;
}

.dashboard-body {
  display: flex;
  height: 280px;
}

.dash-sidebar {
  width: 180px;
  padding: 1rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-nav-item {
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dash-nav-item.active,
.dash-nav-item:hover {
  background: rgba(225, 29, 46, 0.1);
  color: var(--primary);
  border-left: 2px solid var(--primary);
}

.dash-main {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-metric-row {
  display: flex;
  gap: 1.25rem;
}

.dash-metric {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
}

.dash-metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.dash-metric-val.critical { color: var(--primary); }
.dash-metric-val.warning { color: var(--warning); }
.dash-metric-val.success { color: var(--success); }

.dash-metric-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.dash-chart {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: flex-end;
}

.dash-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  width: 100%;
}

.dash-bar {
  flex: 1;
  background: rgba(225, 29, 46, 0.3);
  border-radius: 2px 2px 0 0;
  transition: var(--transition);
  min-height: 4px;
}

.dash-bar.active {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(225, 29, 46, 0.5);
}

.dash-bar:hover {
  background: var(--primary);
  opacity: 0.8;
}

/* ============================================================
   RISK ENGINE SECTION
   ============================================================ */
.risk-engine-section {
  background: var(--bg);
}

.risk-engine-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.engine-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.engine-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(225, 29, 46, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.engine-badge:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.engine-badge.eu-badge {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
}

.badge-icon {
  font-size: 1rem;
}

/* Engine Visualization */
.risk-engine-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.engine-visualization {
  position: relative;
  width: 380px;
  height: 380px;
}

.engine-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.engine-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 220px;
  height: 220px;
  animation: rotate-slow 20s linear infinite;
  border-style: dashed;
  border-color: rgba(225, 29, 46, 0.15);
}

.ring-middle {
  width: 160px;
  height: 160px;
  animation: rotate-slow-reverse 15s linear infinite;
  border-color: rgba(225, 29, 46, 0.25);
}

.ring-inner {
  width: 100px;
  height: 100px;
  animation: rotate-slow 10s linear infinite;
  border-color: rgba(225, 29, 46, 0.4);
  box-shadow: 0 0 20px rgba(225, 29, 46, 0.2), inset 0 0 20px rgba(225, 29, 46, 0.1);
}

.engine-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.engine-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--primary);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(225, 29, 46, 0.6);
}

.engine-label-sub {
  display: block;
  font-size: 0.5rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.engine-nodes {
  position: absolute;
  inset: 0;
}

.engine-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 2px;
  transform-origin: 0 50%;
  transform: rotate(var(--angle));
}

.node-dot {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(225, 29, 46, 0.8);
}

.node-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 46, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

.node-label {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%) rotate(calc(-1 * var(--angle)));
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  padding: 1.75rem;
}

.pillar-number {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pillar-bar {
  height: 3px;
  background: rgba(225, 29, 46, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.pillar-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--glow));
  border-radius: var(--radius-full);
  animation: bar-fill 1.5s ease-out both;
}

.pillar-accuracy {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ============================================================
   ARCHETYPES SECTION
   ============================================================ */
.archetypes-section {
  background: var(--bg-2);
}

.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.archetype-card {
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
}

.archetype-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}

.archetype-icon svg {
  width: 100%;
  height: 100%;
}

.archetype-number {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.archetype-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.archetype-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.archetype-risk-bar {
  height: 2px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.archetype-risk-bar.critical { background: rgba(239, 68, 68, 0.15); }
.archetype-risk-bar.high { background: rgba(225, 29, 46, 0.12); }
.archetype-risk-bar.medium { background: rgba(245, 158, 11, 0.12); }

.risk-fill {
  height: 100%;
  border-radius: var(--radius-full);
  animation: bar-fill 1.5s ease-out both;
}

.archetype-risk-bar.critical .risk-fill { background: linear-gradient(90deg, #EF4444, #FF2D55); }
.archetype-risk-bar.high .risk-fill { background: linear-gradient(90deg, var(--primary), var(--glow)); }
.archetype-risk-bar.medium .risk-fill { background: linear-gradient(90deg, #F59E0B, #FCD34D); }

.risk-level {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.risk-level.critical { color: #EF4444; }
.risk-level.high { color: var(--primary); }
.risk-level.medium { color: #F59E0B; }

.executive-card {
  background: linear-gradient(135deg, rgba(26, 32, 53, 1), rgba(40, 20, 25, 0.8));
  border-color: rgba(225, 29, 46, 0.35);
}

/* ============================================================
   FEATURES BENTO GRID
   ============================================================ */
.features-section {
  background: var(--bg);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  padding: 2rem;
}

.bento-large {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.bento-icon svg {
  width: 100%;
  height: 100%;
}

.bento-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.bento-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.feature-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
}

.compliance-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.mini-badge {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  background: rgba(225, 29, 46, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   INTEGRATIONS SECTION
   ============================================================ */
.integrations-section {
  background: var(--bg-3);
}

.integration-callout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(225, 29, 46, 0.08), rgba(225, 29, 46, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 3rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.callout-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-mono);
  text-shadow: 0 0 20px rgba(225, 29, 46, 0.4);
}

.callout-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.integrations-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.integration-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.integration-category:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.integration-logos {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.integration-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.integration-badge:hover {
  border-color: var(--border);
  color: var(--text);
  background: rgba(225, 29, 46, 0.05);
}

.integration-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: white;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.okta-icon { background: #007DC1; }
.azure-icon { background: #0078D4; }
.ping-icon { background: #C74634; }
.m365-icon { background: #D83B01; font-size: 0.5rem; }
.google-icon { background: #4285F4; }
.slack-icon { background: #4A154B; }
.crowd-icon { background: #EF4444; }
.sentinel-icon { background: #6B21A8; }
.splunk-icon { background: #E47D1D; }
.palo-icon { background: #FA4616; }
.workday-icon { background: #F36523; }
.bamboo-icon { background: #73BB44; }
.sap-icon { background: #008FD3; }
.generic-icon { background: var(--surface-2); color: var(--text-muted); }

.integration-cta {
  text-align: center;
  padding: 2.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.integration-cta p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   COMPLIANCE SECTION
   ============================================================ */
.compliance-section {
  background: var(--bg-2);
}

.compliance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.compliance-intro {
  margin-bottom: 3rem;
}

.compliance-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.compliance-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.compliance-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.compliance-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(225, 29, 46, 0.06);
  border: 1px solid rgba(225, 29, 46, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.compliance-service-tag:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(225, 29, 46, 0.12);
}

.compliance-service-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.compliance-svc-tags-full {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 3rem;
  background: #ffffff;
  border: 1px solid rgba(225, 29, 46, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .compliance-svc-tags-full {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(225, 29, 46, 0.15);
}

.compliance-svc-tags-full .compliance-service-tag {
  color: #1a2e42;
  border-color: rgba(225, 29, 46, 0.25);
  background: rgba(225, 29, 46, 0.04);
}

.compliance-svc-tags-full .compliance-service-tag:hover {
  background: rgba(225, 29, 46, 0.1);
  border-color: rgba(225, 29, 46, 0.4);
  color: #0F172A;
}

.compliance-services-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.compliance-services-cta:hover {
  text-decoration: underline;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(225, 29, 46, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.compliance-feature:hover .feature-icon {
  background: rgba(225, 29, 46, 0.14);
  border-color: var(--border-bright);
}

.feature-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Compliance Badges Panel */
.compliance-badges-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.compliance-badge-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.compliance-cert-badge {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
  overflow: hidden;
}

.compliance-cert-badge:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

/* Badge color accents */
.compliance-cert-badge.eu-ai  { border-color: rgba(225, 29, 46, 0.3); }
.compliance-cert-badge.eu-ai .cert-icon { background: rgba(225, 29, 46, 0.1); color: #E11D2E; }
.compliance-cert-badge.gdpr   { border-color: rgba(99, 102, 241, 0.3); }
.compliance-cert-badge.gdpr .cert-icon { background: rgba(99, 102, 241, 0.1); color: #818cf8; }
.compliance-cert-badge.soc2   { border-color: rgba(0, 210, 150, 0.3); }
.compliance-cert-badge.soc2 .cert-icon { background: rgba(0, 210, 150, 0.1); color: #00d296; }
.compliance-cert-badge.iso    { border-color: rgba(251, 191, 36, 0.3); }
.compliance-cert-badge.iso .cert-icon  { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.compliance-cert-badge.nist   { border-color: rgba(59, 130, 246, 0.3); }
.compliance-cert-badge.nist .cert-icon { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.compliance-cert-badge.hipaa  { border-color: rgba(16, 185, 129, 0.3); }
.compliance-cert-badge.hipaa .cert-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(225, 29, 46, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}

.cert-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.compliance-cert-badge:hover .cert-icon {
  background: rgba(225, 29, 46, 0.14);
  border-color: var(--border-bright);
}

.compliance-cert-badge .cert-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cert-status {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.compliance-cert-badge:hover .cert-glow { opacity: 1; }

/* SHAP Visualization */
.shap-visualization {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.shap-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.shap-bars {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.shap-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shap-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100px;
  flex-shrink: 0;
}

.shap-bar-container {
  flex: 1;
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.shap-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: var(--radius-full);
  animation: bar-fill 1.5s ease-out both;
}

.shap-bar.positive {
  background: linear-gradient(90deg, var(--primary), var(--glow));
}

.shap-bar.negative {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.shap-value {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.contact-benefit {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.benefit-check {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.contact-trust {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-mono);
}

.trust-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Contact Form */
.contact-card {
  padding: 2.5rem;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-input {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.1);
  background: rgba(11, 15, 25, 0.9);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-sans);
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.form-error {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: #FCA5A5;
  font-size: 0.875rem;
  text-align: center;
}

/* Contact Success (legacy) */
.contact-success { text-align: center; padding: 2rem; animation: slide-up 0.5s ease; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 1.5rem; }
.success-icon svg { width: 100%; height: 100%; }
.success-title { font-size: 1.375rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.success-msg { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.success-next p { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 1rem; }

/* ============================================================
   CONTACT V2 — STUNNING MULTI-STEP ASSESSMENT FORM
   ============================================================ */

/* Section */
.contact-section { position: relative; overflow: hidden; }
.contact-bg-glow {
  position: absolute; pointer-events: none;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(225,29,46,.07) 0%, transparent 68%);
}

/* Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Left info panel ── */
.contact-info-panel { padding-top: .5rem; display: flex; flex-direction: column; align-items: flex-start; }
.contact-info-panel .section-eyebrow { display: flex; margin-bottom: .75rem; }

.contact-live-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 99px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2);
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  color: #4ade80; text-transform: uppercase; margin-bottom: 1.25rem;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Benefits v2 */
.contact-benefits-v2 {
  display: flex; flex-direction: column; gap: 1rem;
  margin: 2rem 0 2.25rem;
}
.cb-item {
  display: flex; align-items: flex-start; gap: .875rem;
}
.cb-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(225,29,46,.1); border: 1px solid rgba(225,29,46,.18);
  border-radius: 9px; color: var(--primary);
  transition: background .2s;
}
.cb-item:hover .cb-icon { background: rgba(225,29,46,.18); }
.cb-body { display: flex; flex-direction: column; gap: .2rem; }
.cb-body strong { font-size: .875rem; font-weight: 700; color: var(--text); }
.cb-body span { font-size: .8125rem; color: var(--text-dim); line-height: 1.5; }

/* Trust stats v2 */
.contact-trust-v2 {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.ctv-stat { display: flex; flex-direction: column; gap: .2rem; }
.ctv-num {
  font-size: 1.75rem; font-weight: 900; line-height: 1;
  color: var(--primary); font-family: var(--font-mono);
  letter-spacing: -.02em;
}
.ctv-lbl { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
.ctv-divider { width: 1px; height: 2.5rem; background: var(--border-subtle); flex-shrink: 0; }

/* Cred badges */
.contact-creds-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.contact-cred-badge {
  padding: .3rem .75rem; border-radius: 99px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle);
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Form card ── */
.contact-form-wrap { position: relative; padding-top: 8rem; }

.contact-card-v2 {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(225,29,46,.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(225,29,46,.05),
              inset 0 1px 0 rgba(255,255,255,.05);
  padding: 2.25rem 2.25rem 2rem;
}

.card-glow-top {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #E11D2E 30%, #FF2D55 55%, #E11D2E 75%, transparent 100%);
}

/* Step indicator */
.step-indicator {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2rem;
}
.step-node {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  flex-shrink: 0;
}
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 2px solid var(--border-subtle);
  transition: background .3s, border-color .3s;
  position: relative;
}
.step-num { font-size: .75rem; font-weight: 700; color: var(--text-dim); transition: color .3s; }
.step-check { position: absolute; opacity: 0; transition: opacity .3s; }

.step-node.active .step-circle {
  background: rgba(225,29,46,.12); border-color: #E11D2E;
}
.step-node.active .step-num { color: #E11D2E; }

.step-node.done .step-circle {
  background: #E11D2E; border-color: #E11D2E;
}
.step-node.done .step-num { opacity: 0; }
.step-node.done .step-check { opacity: 1; color: #fff; }

.step-label { font-size: .65rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
.step-node.active .step-label { color: #E11D2E; }
.step-node.done .step-label { color: var(--text-muted); }

.step-track {
  flex: 1; height: 2px; background: var(--border-subtle);
  position: relative; overflow: hidden; margin: 0 .5rem; margin-bottom: 1.25rem;
}
.step-fill {
  position: absolute; inset: 0; width: 0%;
  background: #E11D2E;
  transition: width .4s ease;
}

/* Form steps */
.form-step { display: none; animation: slide-up .25s ease; }
.form-step.active { display: flex; flex-direction: column; gap: 1.125rem; }
@keyframes slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-header { margin-bottom: .25rem; }
.step-title { font-size: 1.125rem; font-weight: 800; color: var(--text); margin-bottom: .3rem; letter-spacing: -.015em; }
.step-sub { font-size: .8125rem; color: var(--text-dim); }

/* Inputs v2 */
.fv2-group { display: flex; flex-direction: column; gap: .4rem; }
.fv2-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.fv2-label .req { color: var(--primary); }
.fv2-optional { font-weight: 400; color: var(--text-dim); font-size: .72rem; }

.fv2-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,.035); border: 1px solid var(--border-subtle);
  border-radius: 10px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.fv2-input-wrap:focus-within {
  border-color: #E11D2E;
  box-shadow: 0 0 0 3px rgba(225,29,46,.12);
  background: rgba(225,29,46,.03);
}
.fv2-input-wrap.fv2-error {
  border-color: rgba(239,68,68,.7);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.fv2-icon {
  width: 42px; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); flex-shrink: 0;
}
.fv2-input {
  flex: 1; background: none; border: none; outline: none;
  padding: .75rem .875rem .75rem 0; font-size: .9rem; font-family: inherit;
  color: var(--text); width: 100%;
}
.fv2-input::placeholder { color: var(--text-dim); }
.fv2-textarea-wrap { align-items: flex-start; }
.fv2-textarea-wrap .fv2-icon { padding-top: .75rem; align-items: flex-start; }
.fv2-textarea {
  resize: none; min-height: 80px; padding: .75rem .875rem .75rem 0;
  line-height: 1.55; font-family: inherit;
}

/* Service tile grid */
.service-tile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
}
.svc-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; padding: .75rem .5rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle);
  border-radius: 10px; cursor: pointer;
  font-size: .72rem; font-weight: 600; color: var(--text-dim); text-align: center;
  font-family: inherit; line-height: 1.3;
  transition: background .18s, border-color .18s, color .18s;
}
.svc-tile:hover { background: rgba(225,29,46,.06); border-color: rgba(225,29,46,.3); color: var(--text); }
.svc-tile.selected { background: rgba(225,29,46,.1); border-color: #E11D2E; color: var(--text); }
.svc-tile--unsure { grid-column: span 3; flex-direction: row; justify-content: center; gap: .625rem; }

.svc-tile-icon { color: var(--text-dim); transition: color .18s; }
.svc-tile:hover .svc-tile-icon,
.svc-tile.selected .svc-tile-icon { color: var(--primary); }

.svc-tile-lbl { pointer-events: none; }

.svc-tile-check {
  position: absolute; top: 6px; right: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #E11D2E; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transform: scale(.6);
  transition: opacity .15s, transform .15s;
}
.svc-tile.selected .svc-tile-check { opacity: 1; transform: scale(1); }

.svc-select-hint {
  font-size: .75rem; color: var(--primary); text-align: center;
  margin-top: -.25rem;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}
.svc-hint-shake { animation: shake .4s ease; }

/* Org size chips */
.org-chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.org-chip {
  display: flex; cursor: pointer;
}
.org-chip input { display: none; }
.org-chip span {
  padding: .45rem 1rem; border-radius: 99px;
  border: 1px solid var(--border-subtle); background: rgba(255,255,255,.03);
  font-size: .8125rem; font-weight: 600; color: var(--text-dim);
  transition: border-color .15s, background .15s, color .15s;
}
.org-chip:hover span { border-color: rgba(225,29,46,.4); color: var(--text); }
.org-chip.selected span { background: rgba(225,29,46,.12); border-color: #E11D2E; color: var(--text); }

/* Step navigation */
.fv2-step-nav {
  display: flex; align-items: center; gap: .75rem; margin-top: .25rem;
}
.fv2-step-nav--back-only { justify-content: flex-start; }

.fv2-back-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1rem; border-radius: 9px;
  background: none; border: 1px solid var(--border-subtle);
  font-size: .8125rem; font-weight: 600; color: var(--text-dim);
  cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s;
}
.fv2-back-btn:hover { border-color: var(--border); color: var(--text); }

.fv2-next-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.5rem; border-radius: 11px; border: none;
  background: linear-gradient(135deg, #E11D2E 0%, #C4001A 100%);
  font-size: .9375rem; font-weight: 700; color: #fff; cursor: pointer;
  font-family: inherit; letter-spacing: -.01em;
  box-shadow: 0 8px 24px rgba(225,29,46,.35), 0 2px 6px rgba(225,29,46,.2);
  transition: box-shadow .2s, transform .15s, opacity .2s;
}
.fv2-next-btn:hover { box-shadow: 0 12px 32px rgba(225,29,46,.45); transform: translateY(-1px); }
.fv2-next-btn:active { transform: translateY(0); }
.fv2-next-btn--compact { flex: 1; width: auto; padding: .6rem 1.25rem; font-size: .875rem; }

.fv2-submit-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .625rem;
  padding: 1rem 1.5rem; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #E11D2E 0%, #A8001C 100%);
  font-size: 1rem; font-weight: 800; color: #fff; cursor: pointer;
  font-family: inherit; letter-spacing: -.01em;
  box-shadow: 0 8px 28px rgba(225,29,46,.4), 0 2px 6px rgba(225,29,46,.25);
  transition: box-shadow .2s, transform .15s;
  margin-bottom: .625rem;
}
.fv2-submit-btn:hover { box-shadow: 0 14px 40px rgba(225,29,46,.55); transform: translateY(-2px); }
.fv2-submit-btn:active { transform: translateY(0); }

.fv2-disclaimer {
  font-size: .72rem; color: var(--text-dim); text-align: center; line-height: 1.5;
}

/* Success v2 */
.contact-success-v2 {
  text-align: center; padding: 1.5rem 1rem;
  animation: slide-up .4s ease;
}
.success-shield { margin: 0 auto 1.25rem; }
.success-title-v2 { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: .625rem; }
.success-msg-v2 { font-size: .875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.75rem; }

.success-timeline { display: flex; flex-direction: column; gap: .75rem; text-align: left; margin-bottom: .5rem; }
.stl-item { display: flex; align-items: flex-start; gap: .875rem; }
.stl-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}
.stl-dot--done { background: var(--primary); color: #fff; }
.stl-dot--pending { background: rgba(255,255,255,.06); border: 1px solid var(--border-subtle); color: var(--text-dim); }
.stl-body { display: flex; flex-direction: column; gap: .1rem; }
.stl-body strong { font-size: .875rem; font-weight: 700; color: var(--text); }
.stl-body span { font-size: .75rem; color: var(--text-dim); }

/* Responsive */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .service-tile-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-tile--unsure { grid-column: span 3; }
}
@media (max-width: 600px) {
  .contact-card-v2 { padding: 1.75rem 1.25rem 1.5rem; }
  .service-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-tile--unsure { grid-column: span 2; }
  .contact-trust-v2 { gap: 1rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-top {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  animation: text-flicker 10s infinite;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}

.footer-contact-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

a.footer-contact-item:hover {
  color: var(--primary);
}

.footer-contact-item--text {
  cursor: default;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link--inactive {
  opacity: 0.35;
  pointer-events: none;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(225, 29, 46, 0.08);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ═══════════════════════════════════════════
   NEWSLETTER SECTION — WORLD-CLASS UI
   ═══════════════════════════════════════════ */
@keyframes nl-grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
@keyframes nl-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,46,0.7); }
  50%       { box-shadow: 0 0 0 6px rgba(225,29,46,0); }
}
@keyframes nl-shimmer-sweep {
  0%   { left: -60%; }
  100% { left: 120%; }
}
@keyframes nl-check-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  65%  { transform: scale(1.15) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes nl-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─ Section wrapper ─ */
.nl-section {
  position: relative;
  isolation: isolate;
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 70% at 92% 15%, rgba(225,29,46,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 8% 90%, rgba(255,45,85,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #070b16 0%, #0b0f1a 60%, #0d1120 100%);
  border-top: 1px solid rgba(225,29,46,0.18);
  overflow: hidden;
}

/* Animated grid */
.nl-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(225,29,46,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,29,46,0.032) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: nl-grid-drift 22s linear infinite;
}

/* Orbs — CSS-only, no filter:blur overflow issues */
.nl-orb { display: none; }

/* Shimmer sweep on top edge */
.nl-shimmer {
  position: absolute;
  top: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(225,29,46,0.85), rgba(255,180,180,0.4), rgba(225,29,46,0.85), transparent);
  animation: nl-shimmer-sweep 4s ease-in-out infinite;
  z-index: 1;
}

/* ─ Two-column grid ─ */
.nl-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

/* ─ Left copy ─ */
.nl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(225,29,46,0.08);
  border: 1px solid rgba(225,29,46,0.25);
  border-radius: 999px;
  padding: .3rem .875rem .3rem .75rem;
  margin-bottom: 1.375rem;
}
.nl-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: nl-dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.nl-headline {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: 1.125rem;
}
.nl-headline-accent {
  background: linear-gradient(130deg, #fff 0%, #ffaab4 38%, #E11D2E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nl-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 2rem;
}
.nl-social-proof {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
}
.nl-proof-avatars { display: flex; }
.nl-proof-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(7,11,22,0.95);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex; align-items: center; justify-content: center;
  font-size: .625rem; font-weight: 700; color: var(--text-muted);
  margin-left: -9px;
}
.nl-proof-avatar:first-child { margin-left: 0; }
.nl-proof-text { font-size: .8125rem; color: var(--text-muted); line-height: 1.4; }
.nl-proof-text strong { color: #fff; }

/* ─ Right form card ─ */
.nl-card {
  background: linear-gradient(145deg, rgba(26,32,53,0.97) 0%, rgba(16,22,42,0.99) 100%);
  border: 1px solid rgba(225,29,46,0.2);
  border-radius: 20px;
  padding: 2.375rem 2.125rem 2rem;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.025),
    0 24px 64px rgba(0,0,0,0.55),
    0 0 50px rgba(225,29,46,0.04);
}
/* Top accent line */
.nl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225,29,46,0.65), rgba(255,180,180,0.25), rgba(225,29,46,0.65), transparent);
  border-radius: 999px;
}
.nl-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
}
.nl-card-sub {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Fields */
.nl-field {
  position: relative;
  margin-bottom: .875rem;
}
.nl-field-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: color .2s;
  z-index: 1;
}
.nl-input {
  width: 100%;
  box-sizing: border-box;
  padding: .8rem 1rem .8rem 2.625rem;
  background: rgba(7,11,22,0.6);
  border: 1px solid rgba(225,29,46,0.14);
  border-radius: 10px;
  color: #fff;
  font-size: .9375rem;
  font-family: var(--font-sans);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.nl-input::placeholder { color: var(--text-dim); }
.nl-input:focus {
  border-color: rgba(225,29,46,0.52);
  box-shadow: 0 0 0 3px rgba(225,29,46,0.1);
}
.nl-field:focus-within .nl-field-icon { color: var(--primary); }

/* Submit */
.nl-submit {
  width: 100%;
  padding: .9rem 1.5rem;
  margin-top: .375rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: #fff;
  background: linear-gradient(135deg, #E11D2E 0%, #b81c1c 100%);
  box-shadow: 0 4px 20px rgba(225,29,46,0.38), 0 1px 0 rgba(255,255,255,0.08) inset;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.nl-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(225,29,46,0.52), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.nl-submit:active { transform: translateY(0); }
.nl-submit-text { display: flex; align-items: center; justify-content: center; gap: .5rem; }

/* Trust badges */
.nl-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.125rem;
  flex-wrap: wrap;
}
.nl-trust-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--text-dim);
}
.nl-trust-item svg { color: var(--success); flex-shrink: 0; }

/* Success state */
.nl-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem 1.25rem;
  gap: .75rem;
}
.nl-success.visible { display: flex; animation: nl-fade-up .4s ease; }
.nl-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.32);
  display: flex; align-items: center; justify-content: center;
  animation: nl-check-pop .45s cubic-bezier(.34,1.56,.64,1);
}
.nl-success-title { font-size: 1.125rem; font-weight: 700; color: #fff; }
.nl-success-sub { font-size: .875rem; color: var(--text-muted); }

/* ─ Responsive ─ */
@media (max-width: 900px) {
  .nl-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 540px;
    margin: 0 auto;
  }
  .nl-desc { max-width: 100%; }
}
@media (max-width: 480px) {
  .nl-section { padding: 3.5rem 0 3rem; }
  .nl-card { padding: 1.5rem 1.25rem; border-radius: 14px; }
  .nl-trust { gap: .625rem; }
  .nl-headline { font-size: 1.75rem; }
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-bottom-badges {
  display: flex;
  gap: 0.75rem;
}

.footer-badge {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   HTMX LOADING INDICATOR
   ============================================================ */
.htmx-indicator {
  opacity: 0;
  transition: opacity 0.2s;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-grid .platform-card:last-child {
    grid-column: span 2;
    max-width: 480px;
    margin: 0 auto;
  }

  .risk-engine-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .engine-visualization {
    width: 300px;
    height: 300px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archetypes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .compliance-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 3;
  }

  .integrations-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large {
    grid-column: span 2;
  }
}

/* Mobile drawer and overlay: completely absent on desktop */
.mobile-drawer,
.nav-mobile-overlay { display: none; }

/* ============================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* ── Overlay ── */
  .nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    cursor: pointer;
  }
  .nav-mobile-overlay.visible { display: block; }

  /* ── Slide-in drawer ── */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 92vw);
    background: #0b0f19;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.3s;
  }
  .mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
  }

  .mobile-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .mobile-drawer-list > li { border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .mobile-drawer-list > li:last-child { border-bottom: none; }

  .mobile-drawer .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 0;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    box-sizing: border-box;
  }

  .mobile-drawer .nav-link:hover,
  .mobile-drawer .nav-dropdown.open > .nav-dropdown-toggle {
    background: rgba(225, 29, 46, 0.06);
    color: var(--primary);
  }

  .mobile-drawer .dropdown-chevron { transition: transform 0.2s; }
  .mobile-drawer .nav-dropdown.open > .nav-dropdown-toggle .dropdown-chevron { transform: rotate(180deg); }

  .mobile-drawer .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding: 0.25rem 0 !important;
    display: none !important;
  }
  .mobile-drawer .nav-dropdown.open > .nav-dropdown-menu { display: block !important; }

  .mobile-drawer .dropdown-item { padding: 0.6rem 1.25rem; font-size: 0.8rem; }
  .mobile-drawer .dropdown-item-featured { padding: 0.7rem 1.25rem; background: none; margin-bottom: 0; }
  .mobile-drawer .dropdown-item-label strong { font-size: 0.875rem; }
  .mobile-drawer .dropdown-item-label em { font-size: 0.75rem; }
  .mobile-drawer .dropdown-divider { margin: 0.2rem 0; }

  .mobile-drawer .nav-mobile-cta {
    display: block;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(225, 29, 46, 0.03);
    border-top: 1px solid var(--border);
    border-bottom: none;
  }
  .mobile-drawer .nav-mobile-cta .btn-primary { width: 100%; justify-content: center; text-align: center; display: flex; }
  .mobile-drawer-list .nav-mobile-cta-sub { text-align: center; font-size: 0.7rem; color: var(--text-dim); margin-top: 0.5rem; letter-spacing: 0.03em; }

  /* ── Light mode ── */
  [data-theme="light"] .mobile-drawer { background: #ffffff; border-left-color: rgba(0,0,0,0.09); }
  [data-theme="light"] .mobile-drawer-list > li { border-color: rgba(0,0,0,0.08); }
  [data-theme="light"] .mobile-drawer .nav-link { color: #1a2e42; }
  [data-theme="light"] .mobile-drawer .nav-link:hover,
  [data-theme="light"] .mobile-drawer .nav-dropdown.open > .nav-dropdown-toggle { background: rgba(0,0,0,0.03); color: var(--primary); }
  [data-theme="light"] .mobile-drawer .nav-dropdown-menu { background: rgba(0,0,0,0.025) !important; border-top-color: rgba(0,0,0,0.07) !important; }
  [data-theme="light"] .mobile-drawer .dropdown-item { color: #1a2e42; }

  /* Hide desktop nav links and CTA on mobile */
  .nav-links { display: none !important; }

  /* Hide desktop CTA button */
  .nav-actions .btn-primary { display: none; }

  .mobile-menu-btn {
    display: flex;
    position: relative;
  }

  .hero-stats {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid .platform-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .dashboard-body {
    height: auto;
    flex-direction: column;
  }

  .dash-sidebar {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  .archetypes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .integrations-layout {
    grid-template-columns: 1fr;
  }

  .compliance-badge-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    justify-content: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-badges {
    justify-content: center;
  }

  .contact-trust {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .integration-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .engine-visualization {
    width: 280px;
    height: 280px;
  }

  .ring-outer { width: 180px; height: 180px; }
  .ring-middle { width: 130px; height: 130px; }
  .ring-inner { width: 80px; height: 80px; }

  .pulse-ring { display: none; }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .archetypes-grid {
    grid-template-columns: 1fr;
  }

  .compliance-badge-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .stat-card {
    min-width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================================
   SPECIAL CLIP-PATH DIVIDERS
   ============================================================ */
.section-divider-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.section-divider-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-2);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(225, 29, 46, 0.3);
  color: var(--text);
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(225, 29, 46, 0.08);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  position: absolute;
}

.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }

[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }

/* ============================================================
   LIGHT MODE — CUSTOM PROPERTIES
   ============================================================ */
[data-theme="light"] {
  --bg:             #F5F7FA;
  --bg-2:           #EEF1F6;
  --bg-3:           #E5E9F2;
  --surface:        #FFFFFF;
  --surface-2:      #F5F7FA;
  --surface-3:      #EBEEf6;
  --border:         rgba(225, 29, 46, 0.18);
  --border-subtle:  rgba(225, 29, 46, 0.09);
  --border-bright:  rgba(225, 29, 46, 0.45);
  --text:           #0F172A;
  --text-muted:     #475569;
  --text-dim:       #4B5563;
  --text-bright:    #0F172A;
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow:         0 4px 20px rgba(0, 0, 0, 0.09);
  --shadow-lg:      0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow:    0 0 30px rgba(225, 29, 46, 0.12);
  --shadow-glow-strong: 0 0 60px rgba(225, 29, 46, 0.22);
}

/* ============================================================
   LIGHT MODE — COMPONENT OVERRIDES
   ============================================================ */

/* Body / page background */
[data-theme="light"] body {
  background-color: var(--bg);
  color: var(--text);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #CBD5E1; }

/* Navbar */
[data-theme="light"] .nav {
  background: transparent;
}
[data-theme="light"] .nav.scrolled {
  background: rgba(245, 247, 250, 0.88);
  border-bottom-color: rgba(225, 29, 46, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Mobile drawer — light mode (covered in appended section below) */

/* Hero headline — dark gradient instead of white */
[data-theme="light"] .hero-headline {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 40%, #C11826 80%, #E11D2E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero badge */
[data-theme="light"] .hero-badge {
  background: rgba(225, 29, 46, 0.07);
  color: var(--text-muted);
}

/* Stat cards */
[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Cyber grid lines — slightly more visible on light */
[data-theme="light"] .cyber-grid {
  background-image:
    linear-gradient(rgba(225, 29, 46, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 46, 0.08) 1px, transparent 1px);
}

/* Section title gradient — dark on light bg */
[data-theme="light"] .section-title {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cyber card */
[data-theme="light"] .cyber-card {
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 0 0 0 transparent;
}
[data-theme="light"] .cyber-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(225, 29, 46, 0.25);
}

/* Dashboard / surface widgets */
[data-theme="light"] .dashboard-frame,
[data-theme="light"] .dash-metric,
[data-theme="light"] .dash-chart,
[data-theme="light"] .dashboard-header {
  background: var(--surface-2);
}

/* Executive archetype card */
[data-theme="light"] .executive-card {
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,235,235,0.6));
  border-color: rgba(225, 29, 46, 0.3);
}

/* Feature tags */
[data-theme="light"] .feature-tag {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

/* Integration badges */
[data-theme="light"] .integration-badge {
  background: rgba(245, 247, 250, 0.9);
  color: var(--text-muted);
}
[data-theme="light"] .integration-badge:hover {
  background: rgba(225, 29, 46, 0.04);
  color: var(--text);
}

/* Form inputs */
[data-theme="light"] .form-input {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .form-input:focus {
  background: #FFFFFF;
  border-color: var(--primary);
}
[data-theme="light"] .form-input::placeholder {
  color: #94A3B8;
}

/* Form error */
[data-theme="light"] .form-error {
  background: rgba(239, 68, 68, 0.07);
  color: #B91C1C;
}

/* SHAP viz */
[data-theme="light"] .shap-visualization {
  background: var(--surface);
}

/* Footer */
[data-theme="light"] .footer {
  background: var(--bg-2);
  border-top-color: rgba(225, 29, 46, 0.12);
}

/* Three.js canvas — renderer bg updated via JS */
[data-theme="light"] #cyber-canvas {
  opacity: 0.35;
}

/* Scan line slightly more subtle in light mode */
[data-theme="light"] .scan-line {
  background: linear-gradient(90deg, transparent, rgba(225, 29, 46, 0.2), rgba(255, 45, 85, 0.45), rgba(225, 29, 46, 0.2), transparent);
}

/* ============================================================
   NAV OFFSET — prevents fixed navbar from covering content
   ============================================================ */
:root {
  --nav-height: 110px;
}

html {
  /* Native CSS anchor scrolling respects this offset */
  scroll-padding-top: var(--nav-height);
}

/* Every section gets a top margin buffer so anchors land below the nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* Ensure body content starts below the fixed nav */
body > main {
  padding-top: var(--nav-height);
}

/* Hero: offset main's padding-top so section starts at top of viewport,
   then add nav-height + small gap so content clears the fixed nav */
.hero {
  margin-top: calc(-1 * var(--nav-height));
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
}


/* RESOURCES SECTION (DB-driven) */
.resources-section { background: var(--bg-2); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.resource-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; }
.resource-card-top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.resource-type-badge { font-size:.6875rem; font-family:var(--font-mono); font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:.25rem .625rem; border-radius:var(--radius-sm); flex-shrink:0; }
.badge-blog       { background:rgba(59,130,246,.12); color:#60A5FA; border:1px solid rgba(59,130,246,.25); }
.badge-whitepaper { background:rgba(139,92,246,.12); color:#A78BFA; border:1px solid rgba(139,92,246,.25); }
.badge-case-study { background:rgba(16,185,129,.12); color:#34D399; border:1px solid rgba(16,185,129,.25); }
.badge-video      { background:rgba(225,29,46,.12); color:var(--glow); border:1px solid var(--border); }
.badge-report     { background:rgba(245,158,11,.12); color:#FCD34D; border:1px solid rgba(245,158,11,.25); }
.resource-tags { display:flex; gap:.375rem; flex-wrap:wrap; }
.resource-tag { font-size:.625rem; font-family:var(--font-mono); color:var(--text-dim); background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); border-radius:var(--radius-sm); padding:.15rem .5rem; }
.resource-title { font-size:1.0625rem; font-weight:700; color:var(--text); line-height:1.35; flex:1; }
.resource-summary { font-size:.875rem; color:var(--text-muted); line-height:1.75; flex:1; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.resource-card-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:auto; padding-top:1rem; border-top:1px solid var(--border-subtle); }
.resource-meta { display:flex; flex-direction:column; gap:.125rem; }
.resource-author { font-size:.8125rem; font-weight:600; color:var(--text-muted); }
.resource-date { font-size:.75rem; font-family:var(--font-mono); color:var(--text-dim); }
.resource-read-link { font-size:.875rem; font-weight:600; color:var(--primary); display:flex; align-items:center; gap:.25rem; white-space:nowrap; transition:var(--transition-fast); }
.resource-read-link:hover { color:var(--glow); }
.resource-read-link:hover .btn-arrow { transform:translateX(4px); }
.resource-card-accent { position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--primary),transparent); opacity:0; transition:opacity .3s; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.resource-card:hover .resource-card-accent { opacity:1; }
.resources-cta { text-align:center; }

/* COMPANY SECTIONS (DB-driven) */
.company-section { background:var(--bg); }
.company-sections-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; }
.company-section-card { padding:2.5rem; position:relative; }
.company-section-featured { background:linear-gradient(135deg,var(--surface),var(--surface-2)); border-color:rgba(225,29,46,.3); }
.section-card-accent { position:absolute; top:0; left:2rem; right:2rem; height:1px; background:linear-gradient(90deg,transparent,var(--primary),transparent); opacity:.5; }
.section-card-number { font-size:.6875rem; font-weight:700; color:var(--primary); letter-spacing:.15em; margin-bottom:1.25rem; opacity:.7; }
.section-card-title { font-size:1.375rem; font-weight:800; color:var(--text); margin-bottom:.5rem; line-height:1.25; }
.section-card-subtitle { font-size:.9375rem; font-weight:600; color:var(--primary); margin-bottom:1rem; opacity:.85; }
.section-card-body { font-size:.9375rem; color:var(--text-muted); line-height:1.8; }
.section-card-glow { position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:40%; height:1px; background:linear-gradient(90deg,transparent,var(--primary),transparent); opacity:0; transition:opacity .3s; }
.company-section-card:hover .section-card-glow { opacity:1; }

/* TEAM SECTION (DB-driven) */
.team-section { background:var(--bg-3); }
.team-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }
.team-card { display:flex; flex-direction:column; align-items:center; text-align:center; padding:2rem 1.5rem; position:relative; }
.team-avatar { position:relative; margin-bottom:1.5rem; width:80px; height:80px; }
.avatar-circle { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,rgba(225,29,46,.15),rgba(255,45,85,.08)); border:2px solid var(--border); display:flex; align-items:center; justify-content:center; position:relative; z-index:1; transition:var(--transition); overflow:hidden; }
.avatar-circle--photo { background:none; }
.avatar-photo { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.team-card:hover .avatar-circle { border-color:var(--primary); box-shadow:0 0 20px rgba(225,29,46,.3); }
.avatar-initials { font-size:1.375rem; font-weight:800; color:var(--primary); font-family:var(--font-mono); }
.avatar-ring { position:absolute; inset:-4px; border-radius:50%; border:1px solid rgba(225,29,46,.2); animation:rotate-slow 10s linear infinite; }
.avatar-pulse { position:absolute; inset:-8px; border-radius:50%; border:1px solid rgba(225,29,46,.1); animation:pulse-ring 3s ease-out infinite; }
.team-name { font-size:1.0625rem; font-weight:700; color:var(--text); margin-bottom:.25rem; }
.team-title { font-size:.8125rem; font-family:var(--font-mono); color:var(--primary); font-weight:600; letter-spacing:.03em; margin-bottom:.75rem; }
.team-bio { font-size:.8125rem; color:var(--text-muted); line-height:1.7; margin-bottom:1rem; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.team-linkedin { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:var(--radius-sm); background:rgba(10,102,194,.12); border:1px solid rgba(10,102,194,.25); color:#60A5FA; transition:var(--transition-fast); margin-top:auto; }
.team-linkedin:hover { background:rgba(10,102,194,.25); color:#93C5FD; transform:translateY(-2px); }
.team-linkedin svg { width:14px; height:14px; }
.team-card-glow { position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:50%; height:1px; background:linear-gradient(90deg,transparent,var(--primary),transparent); opacity:0; transition:opacity .3s; }
.team-card:hover .team-card-glow { opacity:1; }

[data-theme=light] .resource-tag { background:rgba(0,0,0,.04); border-color:rgba(0,0,0,.08); }

@media(max-width:1024px){ .resources-grid{grid-template-columns:repeat(2,1fr);} .team-grid{grid-template-columns:repeat(3,1fr);} }
@media(max-width:768px){ .resources-grid,.company-sections-grid{grid-template-columns:1fr;} .team-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:480px){ .team-grid{grid-template-columns:1fr;} }

/* ═══════════════════════════════════════════════════════════════════
   DEDICATED PAGES  (Resources, About, Team, Resource Detail)
═══════════════════════════════════════════════════════════════════ */

/* ── Page Hero (shared across all interior pages) ─────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 6rem) 0 5.5rem;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

/* Dot grid */
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(225,29,46,.2) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 100% 85% at 50% 0%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 85% at 50% 0%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Red top glow */
.page-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 130vw);
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, rgba(225,29,46,.3) 0%, rgba(225,29,46,.08) 45%, transparent 70%);
  pointer-events: none;
}

/* Animated scan line */
.page-hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(225,29,46,.4) 20%,
    rgba(255,45,85,.9) 50%,
    rgba(225,29,46,.4) 80%,
    transparent 100%
  );
  animation: page-hero-scan 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes page-hero-scan {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Corner brackets */
.page-hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 1;
}
.page-hero-corner--tl { top: 1.5rem; left: 1.5rem; border-top: 2px solid rgba(225,29,46,.7); border-left: 2px solid rgba(225,29,46,.7); }
.page-hero-corner--tr { top: 1.5rem; right: 1.5rem; border-top: 2px solid rgba(225,29,46,.7); border-right: 2px solid rgba(225,29,46,.7); }

/* Vertical accent lines */
.page-hero-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(225,29,46,.15) 30%, rgba(225,29,46,.15) 70%, transparent);
  pointer-events: none;
}
.page-hero-vline--l { left: clamp(1.5rem, 4vw, 4rem); }
.page-hero-vline--r { right: clamp(1.5rem, 4vw, 4rem); }

/* Content */
.page-hero-content {
  position: relative;
  max-width: 820px;
  z-index: 2;
  animation: page-hero-fadein 0.7s ease both;
}
@keyframes page-hero-fadein {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow */
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.page-hero-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--glow);
  animation: eyebrow-pulse 2s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--glow); }
  50%       { opacity: .5; box-shadow: 0 0 4px var(--glow); }
}

/* Title */
.page-hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  background: linear-gradient(145deg, #ffffff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
[data-theme="light"] .page-hero-title {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.page-hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
}

/* .company-page section no longer needs top padding when PageHero is above it */
.company-page.section { padding-top: 4rem; }

/* Resources page: full-width grid */
.resources-page-section { background: var(--bg-2); }
.resources-grid-full { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

/* Filter tabs */
.resources-filter { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: 3rem; }
.filter-btn { padding: .5rem 1.25rem; border-radius: 2rem; font-size: .8125rem; font-weight: 600; font-family: var(--font-mono); letter-spacing: .04em; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; transition: var(--transition-fast); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Empty state */
.empty-state { text-align: center; padding: 6rem 2rem; color: var(--text-dim); font-size: 1rem; }

/* Resource detail page */
.resource-detail-page { padding: calc(var(--nav-height) + 3rem) 0 5rem; }
.resource-detail-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .875rem; font-weight: 600; text-decoration: none; margin-bottom: 2rem; transition: var(--transition-fast); }
.back-link:hover { color: var(--primary); }
.back-arrow { display: inline-block; transition: transform .2s; }
.back-link:hover .back-arrow { transform: translateX(-4px); }
.resource-detail-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.resource-detail-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; color: var(--text); line-height: 1.15; margin-bottom: 1.25rem; }
.resource-detail-summary { font-size: 1.125rem; color: var(--text-muted); line-height: 1.8; }
.resource-detail-body { max-width: 760px; font-size: 1rem; color: var(--text-muted); line-height: 1.85; }
.resource-detail-body h1, .resource-detail-body h2, .resource-detail-body h3 { color: var(--text); margin: 2rem 0 1rem; }
.resource-detail-body p { margin-bottom: 1.25rem; }
.resource-detail-body ul, .resource-detail-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.resource-detail-body li { margin-bottom: .5rem; }
.resource-detail-body a { color: var(--primary); }
.resource-detail-body code { font-family: var(--font-mono); background: var(--surface); padding: .15em .4em; border-radius: .25rem; font-size: .9em; }
.resource-detail-body pre { background: var(--surface); padding: 1.5rem; border-radius: var(--radius); overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid var(--border-subtle); }
.resource-detail-body pre code { background: none; padding: 0; }

/* Responsive */
@media (max-width: 1024px) { .resources-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .resources-grid-full { grid-template-columns: 1fr; } .resources-filter { gap: .375rem; } .filter-btn { padding: .4rem 1rem; } }

/* ═══════════════════════════════════════════════════════════════════
   NAV DROPDOWNS
═══════════════════════════════════════════════════════════════════ */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: .375rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  line-height: inherit;
}
.dropdown-chevron {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform .25s ease;
}
.nav-dropdown.open .dropdown-chevron,
.nav-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + .875rem); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(225,29,46,.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  width: 100%; height: .875rem;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Mega panel: block the generic hover rule — only the .open class shows it */
.nav-dropdown:hover .svc-mega-panel {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
}

.dropdown-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .875rem; border-radius: calc(var(--radius) - 2px);
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  text-decoration: none; transition: var(--transition-fast);
  white-space: nowrap;
}
.dropdown-item:hover { background: rgba(225,29,46,.08); color: var(--text); }
.dropdown-item--sub { padding-left: 1.5rem; font-size: .8125rem; color: var(--text-dim); }

.dropdown-item-featured {
  padding: .75rem .875rem; margin-bottom: .25rem;
  background: rgba(225,29,46,.04); border: 1px solid rgba(225,29,46,.1);
}
.dropdown-item-featured:hover { background: rgba(225,29,46,.1); }
.dropdown-item-external { color: var(--primary) !important; font-size: .8125rem; gap: .5rem; }
.dropdown-item-external:hover { background: rgba(225,29,46,.08); color: var(--primary) !important; }
.dropdown-item-label { display: flex; flex-direction: column; gap: .15rem; }
.dropdown-item-label strong { font-size: .9375rem; font-weight: 700; color: var(--text); }
.dropdown-item-label em { font-size: .75rem; font-style: normal; color: var(--text-dim); }

.dropdown-divider { height: 1px; background: var(--border-subtle); margin: .375rem .25rem; }

/* Mobile: dropdowns stack inside mobile menu */
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; border: none;
    background: rgba(225,29,46,.04); border-radius: var(--radius-sm);
    padding: .25rem .5rem; min-width: 0;
    display: none; margin-top: .25rem;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu::before { display: none; }
  .dropdown-item { padding: .5rem .75rem; font-size: .8125rem; }
  .dropdown-item-featured { margin-bottom: 0; }
}

/* ═══════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════ */
.blog-page { padding-top: 2.5rem; }
.blog-search-bar { display: flex; gap: 1rem; margin-bottom: 2.5rem; max-width: 520px; }
.blog-search-input {
  flex: 1; padding: .625rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); background: var(--surface);
  color: var(--text); font-size: .9375rem;
}
.blog-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,29,46,.15); }

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }

/* ── Blog listing page (bl-*) ────────────────────────────────────────────── */
.bl-header {
  padding: 3.5rem 0 0;
  background: linear-gradient(180deg, rgba(225,29,46,.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.bl-header-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.bl-eyebrow {
  font-size: .72rem; font-weight: 700; color: var(--primary);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem;
}
.bl-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800;
  color: var(--text); margin: 0 0 .5rem; line-height: 1.15;
}
.bl-desc { font-size: .9375rem; color: var(--text-muted); max-width: 55ch; margin: 0; }
.bl-search-form {
  position: relative; flex-shrink: 0; width: 240px;
}
.bl-search-icon {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.bl-search-input {
  width: 100%; padding: .55rem .875rem .55rem 2.25rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle);
  border-radius: 8px; color: var(--text); font-size: .875rem; outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.bl-search-input:focus { border-color: var(--primary); }
.bl-cats {
  display: flex; align-items: center; gap: .375rem; flex-wrap: wrap;
  padding-bottom: 0; margin-top: .25rem;
}
.bl-cat {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem 1rem; border-radius: 8px 8px 0 0;
  font-size: .8125rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color .15s, background .15s;
  border: 1px solid transparent; border-bottom: none;
  position: relative; bottom: -1px;
}
.bl-cat:hover { color: var(--text); background: rgba(255,255,255,.04); }
.bl-cat--active {
  color: var(--text); background: var(--bg, #0F172A);
  border-color: var(--border-subtle); font-weight: 600;
}
.bl-cat-count {
  font-size: .7rem; background: rgba(255,255,255,.08);
  padding: .1rem .4rem; border-radius: 20px; color: var(--text-muted);
}
.bl-active-filter {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--text-muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: .3rem .875rem; margin-top: .75rem;
}
.bl-clear-filter {
  display: inline-flex; color: var(--text-muted); transition: color .15s;
}
.bl-clear-filter:hover { color: var(--primary); }
.bl-section { padding: 2.5rem 0 5rem; }
.bl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 1024px) { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bl-grid { grid-template-columns: 1fr; } }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* Post card */
.blog-post-card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.blog-post-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(225,29,46,.12); }
.blog-card-image-wrap { display: block; overflow: hidden; aspect-ratio: 3/2; position: relative; }
.blog-card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-post-card:hover .blog-card-image { transform: scale(1.04); }
.blog-card-body { padding: 1rem 1.125rem 1.125rem; }
.blog-card-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.blog-date, .blog-author, .blog-read-time { font-size: .8125rem; color: var(--text-dim); }
.blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.blog-card-title a { color: var(--text); text-decoration: none; transition: color .2s; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--text-dim); font-size: .9375rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-card-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .75rem; border-top: 1px solid var(--border-subtle); }

/* Pagination */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }
.page-btn {
  padding: .5rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid var(--primary); color: var(--primary);
  text-decoration: none; font-size: .9375rem; transition: background .2s, color .2s;
}
.page-btn:hover { background: var(--primary); color: #fff; }
.page-info { font-size: .875rem; color: var(--text-dim); }

/* Sidebar */
.blog-sidebar { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.blog-sidebar-widget {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 1.25rem;
}
.sidebar-widget-title {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.sidebar-post-list, .sidebar-cat-list, .archive-month-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-post-item, .sidebar-cat-item { border-bottom: 1px solid var(--border-subtle); padding-bottom: .5rem; }
.sidebar-post-item:last-child, .sidebar-cat-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-link, .sidebar-cat-link, .archive-month-link {
  display: flex; justify-content: space-between; gap: .5rem;
  text-decoration: none; color: var(--text); font-size: .875rem; line-height: 1.4; transition: color .2s;
}
.sidebar-post-link:hover, .sidebar-cat-link:hover, .archive-month-link:hover { color: var(--primary); }
.sidebar-post-title { flex: 1; }
.sidebar-post-date, .sidebar-cat-count { color: var(--text-dim); font-size: .8125rem; white-space: nowrap; }
.sidebar-tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.archive-year { margin-bottom: .75rem; }
.archive-year-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); display: block; margin-bottom: .375rem; }

/* Blog tags */
.blog-tag {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  border: 1px solid var(--border-subtle); font-size: .75rem; color: var(--text-dim);
  text-decoration: none; transition: border-color .2s, color .2s;
}
.blog-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG SINGLE POST PAGE  (bsp-*)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reading progress bar */
.bpr-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #E11D2E, #FF6B6B);
  z-index: 9999; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(225,29,46,.6);
}

/* Hero */
.bsp-hero {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: flex-end;
  background: var(--bg-3);
}
.bsp-hero-img-wrap {
  position: absolute; inset: 0;
}
.bsp-hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(.35) saturate(.8);
}
.bsp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,15,.2) 0%, rgba(7,8,15,.85) 60%, rgba(7,8,15,1) 100%);
}
.bsp-hero-content {
  position: relative; z-index: 2;
  padding-top: 3rem; padding-bottom: 3.5rem;
  max-width: 860px;
}
.bsp-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8125rem; color: rgba(255,255,255,.6); text-decoration: none;
  margin-bottom: 1.75rem; transition: color .15s;
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  padding: .3rem .875rem;
}
.bsp-back:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.bsp-meta-row { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.bsp-cat {
  display: inline-block; padding: .25rem .875rem;
  background: var(--primary); color: #fff;
  border-radius: 20px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
}
.bsp-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.08); border-radius: 20px;
  padding: .25rem .75rem;
}
.bsp-title {
  font-size: clamp(1.875rem, 4.5vw, 3rem); font-weight: 800;
  line-height: 1.18; color: #fff; margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.bsp-excerpt {
  font-size: 1.125rem; color: rgba(255,255,255,.72); line-height: 1.65;
  margin: 0 0 1.75rem; max-width: 68ch;
}
.bsp-author-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bsp-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #E11D2E, #7c1020);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2);
}
.bsp-author-name { font-weight: 600; font-size: .9375rem; color: #fff; }
.bsp-author-label { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .1rem; }
.bsp-share-group { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.bsp-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  text-decoration: none; transition: background .15s, color .15s;
  border: 1px solid rgba(255,255,255,.15);
}
.bsp-share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.bsp-share-btn--dark {
  background: rgba(255,255,255,.06); color: var(--text-muted);
  border-color: var(--border-subtle);
}
.bsp-share-btn--dark:hover { background: var(--primary); color: #fff; }

/* Body layout */
.bsp-body { padding: 3.5rem 0 5rem; background: var(--bg); }
.bsp-body-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 960px) { .bsp-body-inner { grid-template-columns: 1fr; } }

/* Article */
.bsp-article { min-width: 0; }
.bsp-content {
  font-size: 1.0625rem; line-height: 1.9; color: var(--text);
}
.bsp-content > * + * { margin-top: 1.25rem; }
.bsp-content h2 {
  font-size: 1.625rem; font-weight: 700; color: var(--text);
  margin: 2.5rem 0 .875rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 80px;
}
.bsp-content h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  margin: 2rem 0 .625rem; scroll-margin-top: 80px;
}
.bsp-content h4 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.bsp-content p { margin-bottom: 1.375rem; }
.bsp-content ul, .bsp-content ol { padding-left: 1.625rem; margin-bottom: 1.375rem; }
.bsp-content li { margin-bottom: .5rem; line-height: 1.8; }
.bsp-content ul li::marker { color: var(--primary); }
.bsp-content ol li::marker { color: var(--primary); font-weight: 700; }
.bsp-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.bsp-content strong { font-weight: 700; color: var(--text); }
.bsp-content em { font-style: italic; }
.bsp-content hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2.5rem 0; }
.bsp-content img { max-width: 100%; border-radius: 10px; margin: 2rem 0; display: block; box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.bsp-content figure { margin: 2rem 0; }
.bsp-content figcaption { font-size: .875rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }
.bsp-content blockquote {
  border-left: 3px solid var(--primary); margin: 2rem 0;
  padding: 1rem 1.5rem; background: rgba(225,29,46,.05);
  border-radius: 0 8px 8px 0; color: var(--text-muted); font-style: italic;
  font-size: 1.0625rem;
}
.bsp-content pre {
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 1.25rem; overflow-x: auto; margin: 1.75rem 0;
  font-size: .9rem; line-height: 1.65;
}
.bsp-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .875em;
  background: rgba(255,255,255,.07); padding: .15em .45em; border-radius: 4px;
}
.bsp-content pre code { background: none; padding: 0; font-size: inherit; }
.bsp-content table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .9375rem; }
.bsp-content th { background: rgba(255,255,255,.05); font-weight: 700; text-align: left; padding: .625rem .875rem; border: 1px solid var(--border-subtle); }
.bsp-content td { padding: .5rem .875rem; border: 1px solid var(--border-subtle); vertical-align: top; }
.bsp-content tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* Strip inline light-mode colors injected by the external blog source */
:root:not([data-theme="light"]) .bsp-content *[style*="background-color: rgb(255, 255, 255)"],
:root:not([data-theme="light"]) .bsp-content *[style*="background-color: white"],
:root:not([data-theme="light"]) .bsp-content *[style*="background: white"],
:root:not([data-theme="light"]) .bsp-content *[style*="background:#fff"],
:root:not([data-theme="light"]) .bsp-content *[style*="background: #fff"],
:root:not([data-theme="light"]) .bsp-content *[style*="background-color:#fff"],
:root:not([data-theme="light"]) .bsp-content *[style*="background-color: #fff"] { background-color: transparent !important; background: transparent !important; }
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(0"],
:root:not([data-theme="light"]) .bsp-content *[style*="color:#000"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: #000"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: black"] { color: var(--text) !important; }
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(1"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(2"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(3"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(4"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(5"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(6"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(7"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(8"],
:root:not([data-theme="light"]) .bsp-content *[style*="color: rgb(9"] { color: var(--text) !important; }

/* Light mode overrides for bsp */
[data-theme="light"] .bsp-content th { background: rgba(0,0,0,.04); }
[data-theme="light"] .bsp-content tr:nth-child(even) td { background: rgba(0,0,0,.02); }
[data-theme="light"] .bsp-content pre { background: rgba(0,0,0,.04); }
[data-theme="light"] .bsp-content code { background: rgba(0,0,0,.06); color: var(--primary-dark); }

/* Tags row */
.bsp-tags-row {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Author card */
.bsp-author-card {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-subtle); border-radius: 14px;
}
.bsp-author-card-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #E11D2E, #7c1020);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.125rem; flex-shrink: 0;
}
.bsp-author-card-info { flex: 1; min-width: 0; }
.bsp-author-card-by { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .2rem; }
.bsp-author-card-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.bsp-author-card-team { font-size: .8125rem; color: var(--text-muted); margin-top: .15rem; }
.bsp-author-card-share { display: flex; align-items: center; gap: .4rem; }

/* Sidebar */
.bsp-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 960px) { .bsp-sidebar { position: static; } }

/* TOC card */
.bsp-toc-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle);
  border-radius: 12px; overflow: hidden;
}
.bsp-toc-title {
  display: flex; align-items: center; gap: .5rem;
  padding: .875rem 1rem; font-size: .8125rem; font-weight: 700;
  color: var(--text); border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase; letter-spacing: .06em;
}
.bsp-toc-nav { padding: .75rem 0; }
.bsp-toc-list { list-style: none; padding: 0; margin: 0; }
.bsp-toc-item { }
.bsp-toc-item--h3 .bsp-toc-link { padding-left: 2rem; font-size: .78rem; }
.bsp-toc-link {
  display: block; padding: .35rem 1rem;
  font-size: .8125rem; color: var(--text-muted); text-decoration: none;
  transition: color .15s, background .15s; border-left: 2px solid transparent;
  line-height: 1.4;
}
.bsp-toc-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.bsp-toc-link.active { color: var(--primary); border-left-color: var(--primary); background: rgba(225,29,46,.05); font-weight: 600; }

/* Sidebar cards */
.bsp-sidebar-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 1rem;
}
.bsp-sidebar-card-title {
  font-size: .75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .875rem;
}
.bsp-sidebar-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.bsp-sidebar-post-link {
  display: flex; align-items: flex-start; gap: .75rem;
  text-decoration: none; color: var(--text-muted);
  font-size: .8125rem; line-height: 1.4; transition: color .15s;
}
.bsp-sidebar-post-link:hover { color: var(--text); }
.bsp-sidebar-post-num {
  font-size: .75rem; font-weight: 700; color: var(--primary);
  font-family: monospace; flex-shrink: 0; margin-top: .05rem;
}
.bsp-sidebar-cats { display: flex; flex-direction: column; gap: .375rem; }
.bsp-sidebar-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem .625rem; border-radius: 7px; text-decoration: none;
  font-size: .8125rem; color: var(--text-muted); transition: background .15s, color .15s;
}
.bsp-sidebar-cat:hover { background: rgba(255,255,255,.05); color: var(--text); }
.bsp-sidebar-cat-count {
  font-size: .72rem; background: rgba(255,255,255,.07);
  padding: .1rem .45rem; border-radius: 20px;
}

/* CTA card */
.bsp-cta-card {
  background: linear-gradient(135deg, rgba(225,29,46,.12), rgba(225,29,46,.04));
  border: 1px solid rgba(225,29,46,.2); border-radius: 12px; padding: 1.25rem;
  text-align: center;
}
.bsp-cta-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(225,29,46,.15); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .875rem;
}
.bsp-cta-title { font-weight: 700; font-size: .9375rem; color: var(--text); margin-bottom: .4rem; }
.bsp-cta-text { font-size: .8125rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; }
.bsp-cta-btn {
  display: inline-block; padding: .55rem 1.25rem;
  background: var(--primary); color: #fff; border-radius: 8px;
  font-size: .8125rem; font-weight: 600; text-decoration: none;
  transition: opacity .15s;
}
.bsp-cta-btn:hover { opacity: .88; }

/* ── Blog detail page — full layout & typography ─────────────────────────── */
.blog-breadcrumb-bar { padding: .75rem 0; border-bottom: 1px solid var(--border-subtle); background: var(--bg); }
.blog-breadcrumb { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8125rem; color: var(--text-muted); }
.blog-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.blog-breadcrumb a:hover { color: var(--primary); }
.blog-breadcrumb span[aria-current] { color: var(--text); }
.blog-post-header { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border-subtle); background: var(--bg); }
.blog-post-header-inner { max-width: 800px; }
.blog-post-meta-top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.blog-cat-pill { display: inline-block; padding: .25rem .75rem; background: rgba(225,29,46,.12); color: var(--primary); border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.blog-post-read-time { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--text-muted); }
.blog-post-date-meta { font-size: .8125rem; color: var(--text-muted); }
.blog-post-title-main { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; color: var(--text); margin: 0 0 1rem; }
.blog-post-excerpt-hero { font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; margin: 0; max-width: 70ch; }
.blog-post-author-row { display: flex; align-items: center; gap: .875rem; }
.blog-author-avatar--lg { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9375rem; flex-shrink: 0; }
.blog-author-avatar--xl { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c1020); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; flex-shrink: 0; }
.blog-author-info { display: flex; flex-direction: column; }
.blog-author-name-lg { font-weight: 600; font-size: .9375rem; color: var(--text); }

/* Share buttons */
.blog-share-btns { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.share-label { font-size: .8125rem; color: var(--text-muted); }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 7px; font-size: .8125rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.share-btn--x { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.share-btn--x:hover { background: rgba(255,255,255,.12); color: var(--text); }
.share-btn--li { background: rgba(10,102,194,.15); color: #5b9bd5; border: 1px solid rgba(10,102,194,.25); }
.share-btn--li:hover { background: rgba(10,102,194,.25); color: #7db5e8; }

/* Body layout */
.blog-post-body { padding-top: 2.5rem; padding-bottom: 5rem; background: var(--bg); }
.blog-post-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .blog-post-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.blog-toc-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 960px) { .blog-toc-sidebar { position: static; } }
.blog-toc-wrap { background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.toc-title { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; padding: .875rem 1rem; border-bottom: 1px solid var(--border-subtle); margin: 0; }
.blog-toc { padding: .5rem 0; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item { }
.toc-item--h3 .toc-link { padding-left: 1.75rem; font-size: .78rem; }
.toc-link { display: block; padding: .35rem 1rem; font-size: .8125rem; color: var(--text-muted); text-decoration: none; transition: color .15s, background .15s; border-left: 2px solid transparent; line-height: 1.4; }
.toc-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.toc-link.active { color: var(--primary); border-left-color: var(--primary); background: rgba(225,29,46,.05); font-weight: 600; }
.sidebar-card--toc-inner { background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1rem; }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.sidebar-cat-link { display: flex; align-items: center; justify-content: space-between; padding: .35rem .625rem; border-radius: 7px; text-decoration: none; font-size: .8125rem; color: var(--text-muted); transition: background .15s, color .15s; }
.sidebar-cat-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-cat-count { font-size: .72rem; background: rgba(255,255,255,.07); padding: .1rem .45rem; border-radius: 20px; }
.blog-tags-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.blog-tag { display: inline-block; padding: .25rem .65rem; background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle); border-radius: 20px; font-size: .75rem; color: var(--text-muted); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.blog-tag:hover { background: rgba(225,29,46,.1); border-color: rgba(225,29,46,.3); color: var(--primary); }

/* Article */
.blog-post-article { min-width: 0; }

/* Excerpt pull-quote intro at top of article */
.blog-post-intro {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--primary);
  background: rgba(225, 29, 46, 0.06);
  border-radius: 0 8px 8px 0;
}

.blog-post-cover { border-radius: 12px; overflow: hidden; margin-bottom: 2rem; }
.blog-post-cover img { width: 100%; height: auto; display: block; }

/* Content typography — applies to raw CMS HTML */
.blog-post-content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text);
}
.blog-post-content > * + * { margin-top: 1.25rem; }
.blog-post-content h1, .blog-post-content h2, .blog-post-content h3,
.blog-post-content h4, .blog-post-content h5, .blog-post-content h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 .75rem;
}
.blog-post-content h2 { font-size: 1.625rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-subtle); }
.blog-post-content h3 { font-size: 1.25rem; }
.blog-post-content h4 { font-size: 1.05rem; color: var(--text-muted); }
.blog-post-content p { margin-bottom: 1.375rem; }
.blog-post-content ul, .blog-post-content ol { padding-left: 1.625rem; margin-bottom: 1.375rem; }
.blog-post-content li { margin-bottom: .5rem; line-height: 1.8; }
.blog-post-content ul li::marker { color: var(--primary); }
.blog-post-content ol li::marker { color: var(--primary); font-weight: 700; }
.blog-post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; transition: opacity .15s; }
.blog-post-content a:hover { opacity: .8; }
.blog-post-content strong { font-weight: 700; color: var(--text); }
.blog-post-content em { font-style: italic; }
.blog-post-content hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2.5rem 0; }
.blog-post-content blockquote { border-left: 3px solid var(--primary); margin: 2rem 0; padding: 1rem 1.5rem; background: rgba(225,29,46,.05); border-radius: 0 8px 8px 0; color: var(--text-muted); font-style: italic; }
.blog-post-content blockquote p { margin-bottom: 0; }
.blog-post-content img { max-width: 100%; border-radius: 10px; margin: 2rem 0; display: block; box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.blog-post-content figure { margin: 2rem 0; }
.blog-post-content figcaption { font-size: .875rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }
.blog-post-content table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .9375rem; }
.blog-post-content th { background: rgba(255,255,255,.05); font-weight: 700; text-align: left; padding: .625rem .875rem; border: 1px solid var(--border-subtle); color: var(--text); }
.blog-post-content td { padding: .5rem .875rem; border: 1px solid var(--border-subtle); vertical-align: top; color: var(--text); }
.blog-post-content tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.blog-post-content code { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .875em; background: rgba(255,255,255,.08); padding: .15em .45em; border-radius: 4px; color: var(--accent-cyan); }
.blog-post-content pre { background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 1.25rem; overflow-x: auto; margin: 1.75rem 0; font-size: .9rem; line-height: 1.65; }
.blog-post-content pre code { background: none; padding: 0; color: #e6edf3; font-size: inherit; }

/* Dark-mode override: strip any inline light-mode colors the CMS editor may have injected */
:root:not([data-theme="light"]) .blog-post-content *[style*="color: rgb(0"],
:root:not([data-theme="light"]) .blog-post-content *[style*="color: #000"],
:root:not([data-theme="light"]) .blog-post-content *[style*="color:#000"] { color: var(--text) !important; }
:root:not([data-theme="light"]) .blog-post-content *[style*="background-color: rgb(255, 255, 255)"],
:root:not([data-theme="light"]) .blog-post-content *[style*="background-color: white"],
:root:not([data-theme="light"]) .blog-post-content *[style*="background: white"],
:root:not([data-theme="light"]) .blog-post-content *[style*="background:#fff"],
:root:not([data-theme="light"]) .blog-post-content *[style*="background: #fff"] { background-color: transparent !important; }

/* Author card */
.blog-author-card { display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; margin-top: 3rem; padding: 1.5rem; background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: 14px; }
.blog-author-card-info { flex: 1; min-width: 0; }
.blog-author-role-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: .2rem; }
.blog-author-card-name { font-weight: 700; font-size: 1.0625rem; color: var(--text); margin: 0 0 .2rem; }
.blog-author-card-role { font-size: .875rem; color: var(--text-muted); display: block; }
.blog-author-card-bio { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin: .75rem 0 0; }

/* Post share row */
.blog-post-share-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); font-size: .9rem; color: var(--text-muted); }

/* Tags row */
.blog-post-tags-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.tags-label { font-size: .8125rem; color: var(--text-muted); font-weight: 600; }

/* Light-mode overrides for blog detail */
[data-theme="light"] .blog-breadcrumb-bar,
[data-theme="light"] .blog-post-header,
[data-theme="light"] .blog-post-body { background: var(--bg); }
[data-theme="light"] .blog-toc-wrap,
[data-theme="light"] .sidebar-card--toc-inner { background: var(--surface); border-color: var(--border-subtle); }
[data-theme="light"] .toc-link { color: var(--text-muted); }
[data-theme="light"] .toc-link:hover { background: rgba(0,0,0,.04); }
[data-theme="light"] .blog-post-content th { background: rgba(0,0,0,.03); }
[data-theme="light"] .blog-post-content td { color: var(--text); }
[data-theme="light"] .blog-post-content tr:nth-child(even) td { background: rgba(0,0,0,.02); }
[data-theme="light"] .blog-post-content code { background: rgba(0,0,0,.06); color: var(--primary-dark); }
[data-theme="light"] .blog-post-content pre { background: rgba(0,0,0,.04); }
[data-theme="light"] .blog-post-content pre code { color: #1e293b; }
[data-theme="light"] .blog-author-card { background: rgba(0,0,0,.03); }
[data-theme="light"] .blog-tag { background: rgba(0,0,0,.04); }
[data-theme="light"] .share-btn--x { background: rgba(0,0,0,.05); color: var(--text-muted); }

/* Single post */
.blog-single-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.blog-single-layout { display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .blog-single-layout { grid-template-columns: 1fr; } }
.blog-single-main { min-width: 0; }
.blog-post-meta { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.blog-post-meta .resource-type-badge { font-size: .75rem; }
.blog-post-meta .blog-date { font-size: .8125rem; color: var(--text-dim); }
.blog-post-meta .blog-author { font-size: .8125rem; color: var(--text-dim); }
.blog-post-meta .blog-read-time { font-size: .8125rem; color: var(--text-dim); display: inline-flex; align-items: center; gap: .3rem; }
.blog-featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 1.75rem; display: block; }
.blog-single-excerpt {
  font-size: 1.15rem; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle);
  font-style: italic;
}
.blog-single-content {
  font-size: 1.0625rem; line-height: 1.85; color: var(--text);
  max-width: 90ch;
}
.blog-single-content > * + * { margin-top: 1.25rem; }
.blog-single-content h2 {
  font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 .75rem;
  color: var(--text); letter-spacing: -.01em;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border-subtle);
}
.blog-single-content h3 {
  font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .5rem;
  color: var(--text);
}
.blog-single-content h4 {
  font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .4rem;
  color: var(--text-dim);
}
.blog-single-content p { margin-bottom: 1.25rem; }
.blog-single-content ul, .blog-single-content ol { padding-left: 1.75rem; margin-bottom: 1.25rem; }
.blog-single-content li { margin-bottom: .5rem; line-height: 1.75; }
.blog-single-content ul li::marker { color: var(--primary); }
.blog-single-content ol li::marker { color: var(--primary); font-weight: 700; }
.blog-single-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; transition: opacity .15s; }
.blog-single-content a:hover { opacity: .8; }
.blog-single-content strong { font-weight: 700; color: var(--text); }
.blog-single-content em { font-style: italic; }
.blog-single-content hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2.5rem 0; }
.blog-single-content img {
  max-width: 100%; height: auto; border-radius: var(--radius-sm);
  margin: 1.5rem 0; display: block;
}
.blog-single-content figure { margin: 2rem 0; }
.blog-single-content figcaption { font-size: .875rem; color: var(--text-dim); text-align: center; margin-top: .5rem; }
.blog-single-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9375rem; }
.blog-single-content th { background: var(--surface); font-weight: 700; text-align: left; padding: .625rem .875rem; border: 1px solid var(--border-subtle); }
.blog-single-content td { padding: .5rem .875rem; border: 1px solid var(--border-subtle); vertical-align: top; }
.blog-single-content tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.blog-single-content blockquote {
  border-left: 3px solid var(--primary); margin: 2rem 0;
  padding: 1rem 1.5rem; background: rgba(225,29,46,.05);
  color: var(--text-dim); font-style: italic; font-size: 1.0625rem; line-height: 1.7;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-single-content blockquote p { margin-bottom: 0; }
.blog-single-content code {
  background: var(--surface); border: 1px solid var(--border-subtle);
  padding: .15rem .45rem; border-radius: .3rem; font-size: .875em;
  font-family: 'Courier New', Courier, monospace; color: var(--primary);
}
.blog-single-content pre {
  background: #0d1117; border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); overflow-x: auto;
  margin: 1.5rem 0; line-height: 1.65;
}
.blog-single-content pre code {
  background: none; border: none; padding: 0; color: #e6edf3;
  font-size: .875rem;
}
.blog-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); }
.back-link { display: inline-flex; align-items: center; gap: .375rem; color: var(--text-dim); text-decoration: none; font-size: .875rem; margin-bottom: 1.5rem; transition: color .2s; }
.back-link:hover { color: var(--primary); }

/* Filter active banner */
.blog-filter-banner {
  display: flex; align-items: center; gap: .75rem; justify-content: space-between;
  background: rgba(225,29,46,.07); border: 1px solid rgba(225,29,46,.2);
  border-radius: var(--radius-sm); padding: .6rem 1rem; margin-bottom: 1.5rem;
}
.blog-filter-label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--primary); }
.blog-filter-clear { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--text-dim); text-decoration: none; transition: color .2s; }
.blog-filter-clear:hover { color: var(--primary); }

/* Empty state */
.blog-empty {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 4rem 2rem; text-align: center; color: var(--text-dim);
}
.blog-empty svg { opacity: .3; }
.blog-empty p { font-size: 1rem; }

/* Card image enhancements */
.blog-card-image-wrap { position: relative; }
.blog-card-image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2, rgba(255,255,255,.04)); color: var(--border-subtle);
}
.blog-card-category-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--primary); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px; pointer-events: none;
}

/* Card meta items with icons */
.blog-meta-item { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--text-dim); }

/* Read more CTA */
.blog-read-more { display: inline-flex; align-items: center; gap: .3rem; color: var(--primary); font-size: .875rem; font-weight: 600; text-decoration: none; transition: gap .2s; }
.blog-read-more:hover { gap: .5rem; }

/* Single post cover image */
.blog-single-cover { position: relative; width: 100%; max-height: 420px; overflow: hidden; }
.blog-single-cover-img { width: 100%; height: 420px; object-fit: cover; display: block; }
.blog-single-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.55)); }

/* Single post title & tags label */
.blog-single-content h1 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.02em; border-bottom: none; }
.blog-tags-label { font-size: .8125rem; font-weight: 600; color: var(--text-dim); }

/* Sidebar search */
.sidebar-search-form { display: flex; }
.sidebar-search-wrap { display: flex; width: 100%; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.sidebar-search-input {
  flex: 1; padding: .5rem .75rem; border: none; background: transparent;
  color: var(--text); font-size: .875rem; outline: none;
}
.sidebar-search-btn {
  padding: .5rem .75rem; background: none; border: none; border-left: 1px solid var(--border-subtle);
  cursor: pointer; color: var(--text-dim); display: flex; align-items: center; transition: color .2s;
}
.sidebar-search-btn:hover { color: var(--primary); }

/* Sidebar popular / trending */
.sidebar-popular-list { list-style: none; display: flex; flex-direction: column; gap: .875rem; }
.sidebar-popular-item { border-bottom: 1px solid var(--border-subtle); padding-bottom: .875rem; }
.sidebar-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-popular-link { display: flex; gap: .875rem; text-decoration: none; align-items: flex-start; }
.sidebar-popular-rank {
  font-size: 1.25rem; font-weight: 800; color: rgba(225,29,46,.18); flex-shrink: 0;
  line-height: 1; min-width: 2rem; font-variant-numeric: tabular-nums;
}
.sidebar-popular-info { display: flex; flex-direction: column; gap: .2rem; }
.sidebar-popular-date { font-size: .75rem; color: var(--text-dim); }
.sidebar-popular-title { font-size: .875rem; font-weight: 600; color: var(--text); line-height: 1.4; transition: color .2s; }
.sidebar-popular-link:hover .sidebar-popular-title { color: var(--primary); }

/* Active states for sidebar filters */
.blog-tag--active { background: rgba(225,29,46,.12); border-color: var(--primary); color: var(--primary); }
.sidebar-cat-link--active { color: var(--primary); font-weight: 600; }
.archive-year-label--active { opacity: 1; }
.archive-month-link--active { color: var(--primary); font-weight: 600; }

/* Archive year total count */
.archive-year-total { font-size: .75rem; color: var(--text-dim); font-weight: 400; margin-left: .4rem; }

/* ═══════════════════════════════════════════
   COMPANY CMS PAGE
   ═══════════════════════════════════════════ */
.company-page { padding-top: 2.5rem; }
.company-page-body {
  max-width: 780px; margin: 0 auto; line-height: 1.75; color: var(--text);
  padding: 2.5rem 0 4rem;
}
.company-page-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.company-page-body h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--text); }
.company-page-body p { margin-bottom: 1rem; }
.company-page-body ul, .company-page-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.company-page-body li { margin-bottom: .375rem; }
.company-page-body a { color: var(--primary); }

/* ═══════════════════════════════════════════
   ADMIN: UPLOAD + ATTACHMENTS
   ═══════════════════════════════════════════ */
.cms-upload-form { display: flex; flex-direction: column; gap: .5rem; }
.cms-file-input-row { display: flex; align-items: center; gap: .5rem; }
.cms-file-input { flex: 1; font-size: .8125rem; color: var(--cms-text-muted, #9ca3af); }
.cms-image-preview { margin-top: .75rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--cms-border, #374151); }
.cms-preview-img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.cms-attachment-list { list-style: none; display: flex; flex-direction: column; gap: .375rem; margin-bottom: .5rem; }
.cms-attachment-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .375rem .5rem; background: rgba(0,0,0,.15); border-radius: var(--radius-sm); }
.cms-attachment-name { font-size: .8125rem; color: var(--cms-text, #f9fafb); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cms-attachment-name:hover { text-decoration: underline; }
.cms-btn--xs { padding: .15rem .4rem; font-size: .75rem; line-height: 1.2; }

/* ═══════════════════════════════════════════
   PUBLIC: RESOURCE ATTACHMENTS
   ═══════════════════════════════════════════ */
.resource-attachments { margin: 2.5rem auto; max-width: 780px; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); }
.resource-attachments-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.resource-attachments-list { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.resource-attachment-item {}
.resource-attachment-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.resource-attachment-link:hover { text-decoration: underline; }
.attachment-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   PRESS PAGE
   ═══════════════════════════════════════════ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.press-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.75rem;
}
.press-card-meta {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
}
.press-source-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(225, 29, 46, .08);
  border: 1px solid rgba(225, 29, 46, .2);
  border-radius: 999px;
  padding: .15rem .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.press-date {
  font-size: .8125rem;
  color: var(--text-muted);
}
.press-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}
.press-card-summary {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.press-read-more {
  display: inline-block;
  margin-top: auto;
  padding-top: .5rem;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.press-read-more:hover { opacity: .75; }
.press-empty, .careers-empty, .partners-empty {
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}
.press-empty a, .careers-empty a { color: var(--primary); }

/* ═══════════════════════════════════════════
   CAREERS PAGE
   ═══════════════════════════════════════════ */

/* ── Company Page Intro Block ──────────────────────────────── */
.cp-intro-section {
  padding: 3rem 0 0;
}

.cp-intro-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
}

.cp-intro-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.cp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 2rem;
}

.cp-stat:first-child { padding-left: 0; }

.cp-stat-num {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.cp-stat-lbl {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.cp-stat-div {
  width: 1px;
  height: 2rem;
  background: var(--border);
  flex-shrink: 0;
}

.cp-intro-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
}

.cp-intro-desc a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(225,29,46,0.3);
}

.cp-intro-desc a:hover { border-color: var(--primary); }

@media (max-width: 600px) {
  .cp-intro-block { padding: 1.5rem; }
  .cp-intro-stats { flex-wrap: wrap; gap: 1rem; }
  .cp-stat-div { display: none; }
  .cp-stat { padding: 0; }
}

/* ── Careers List ──────────────────────────────────────────── */
.careers-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.job-card {
  padding: 1.75rem 2rem;
}
.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.job-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.job-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.job-dept-badge {
  font-size: .75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, .12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, .25);
  border-radius: 999px;
  padding: .15rem .65rem;
}
.job-type-badge {
  font-size: .75rem;
  font-weight: 600;
  background: rgba(225, 29, 46, .08);
  color: var(--primary);
  border: 1px solid rgba(225, 29, 46, .2);
  border-radius: 999px;
  padding: .15rem .65rem;
  text-transform: capitalize;
}
.job-location {
  font-size: .9rem;
  color: var(--text-muted);
  margin: .25rem 0 .75rem;
}
.job-description {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.job-apply-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: .6rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity .15s;
}
.job-apply-btn:hover { opacity: .85; }

/* ═══════════════════════════════════════════
   PARTNERS PAGE
   ═══════════════════════════════════════════ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.partner-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  align-items: flex-start;
}
.partner-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}
.partner-logo-placeholder {
  width: 56px;
  height: 56px;
  background: rgba(225, 29, 46, .1);
  border: 1px solid rgba(225, 29, 46, .2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.partner-info {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  flex: 1;
  min-width: 0;
}
.partner-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.partner-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(225, 29, 46, .07);
  border: 1px solid rgba(225, 29, 46, .18);
  border-radius: 999px;
  padding: .1rem .55rem;
  width: fit-content;
}
.partner-description {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: .25rem 0 .375rem;
}
.partner-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity .15s;
}
.partner-link:hover { opacity: .75; }

/* ═══════════════════════════════════════════
   INTEGRATIONS DYNAMIC GRID
   ═══════════════════════════════════════════ */
.integrations-dynamic-section { padding: 4rem 0; }
.integrations-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.integration-item-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  transition: border-color .2s, transform .2s;
}
.integration-item-card:hover {
  border-color: rgba(225, 29, 46, .3);
  transform: translateY(-2px);
}
.integration-item-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: .25rem;
}
.integration-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.integration-item-desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ═══════════════════════════════════════════
   COMPLIANCE DETAIL GRID
   ═══════════════════════════════════════════ */
.compliance-detail-section { padding: 4rem 0; }
.compliance-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.compliance-cert-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 2rem 1.75rem;
}
.cert-badge-img {
  width: auto;
  height: 56px;
  object-fit: contain;
  align-self: flex-start;
}
.cert-standard-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: .7;
}
.compliance-cert-card .cert-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.cert-status-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .2rem .75rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cert-status--certified {
  background: rgba(0, 255, 163, .1);
  color: #00ffa3;
  border: 1px solid rgba(0, 255, 163, .3);
}
.cert-status--compliant {
  background: rgba(99, 102, 241, .12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, .3);
}
.cert-status--in-progress {
  background: rgba(251, 191, 36, .1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .25);
}
.cert-description {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════
   ADMIN: ENTITY TABLES
   ═══════════════════════════════════════════ */
.cms-entity-table th:last-child,
.cms-entity-table td:last-child {
  text-align: right;
}
.cms-entity-actions {
  display: flex;
  gap: .375rem;
  justify-content: flex-end;
  align-items: center;
}

/* ============================================================
   JOB APPLICATION FORM
   ============================================================ */
.job-location-badge { display: inline-flex; align-items: center; padding: .25rem .625rem; border-radius: var(--radius-sm); font-size: .75rem; font-weight: 600; background: rgba(99,102,241,.12); color: var(--primary-light); border: 1px solid rgba(99,102,241,.2); }
.job-requirements { margin: .75rem 0; font-size: .9rem; color: var(--text-muted); }
.job-requirements strong { color: var(--text); }
.job-apply-details { margin-top: 1.25rem; }
.job-apply-details summary { list-style: none; }
.job-apply-details summary::-webkit-details-marker { display: none; }
.job-apply-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; cursor: pointer; transition: var(--transition-fast); }
.job-apply-btn:hover { background: var(--primary-light); }
.job-apply-form-wrap { margin-top: 1.25rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); }
.job-apply-form { display: flex; flex-direction: column; gap: 1rem; }
.apply-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .apply-form-row { grid-template-columns: 1fr; } }
.apply-form-group { display: flex; flex-direction: column; gap: .375rem; }
.apply-form-label { font-size: .8125rem; font-weight: 600; color: var(--text); }
.apply-required { color: var(--danger, #ef4444); }
.apply-form-input, .apply-form-textarea { background: var(--bg); border: 1px solid var(--border-subtle); color: var(--text); border-radius: var(--radius-sm); padding: .6rem .875rem; font-size: .9rem; font-family: inherit; transition: border-color .2s; }
.apply-form-input:focus, .apply-form-textarea:focus { outline: none; border-color: var(--primary); }
.apply-form-textarea { resize: vertical; }
.apply-submit-btn { align-self: flex-start; padding: .65rem 1.5rem; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; cursor: pointer; transition: var(--transition-fast); }
.apply-submit-btn:hover { background: var(--primary-light); }
.careers-success-banner { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); border-radius: var(--radius); margin-bottom: 2rem; color: var(--text); }
.careers-success-icon { font-size: 1.5rem; color: #10b981; flex-shrink: 0; }
.careers-success-banner strong { display: block; margin-bottom: .25rem; }
.careers-success-banner p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.careers-error-banner { padding: 1rem 1.5rem; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius); color: #ef4444; margin-bottom: 1.5rem; font-size: .9rem; }
/* Admin application inline status select */
.cms-select-inline { padding: .25rem .5rem; font-size: .8rem; }
.cms-cover-note-body { padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: .875rem; color: var(--text-muted); margin-top: .5rem; max-width: 400px; white-space: pre-wrap; }
.job-apply-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; margin-bottom: .5rem; }
.job-external-apply-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem; background: transparent; color: var(--primary-light); border: 1px solid var(--primary); border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; text-decoration: none; transition: var(--transition-fast); }
.job-external-apply-btn:hover { background: rgba(99,102,241,.1); }
.resource-card-cover { margin: -1.75rem -1.75rem 1rem; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16/9; }
.resource-card-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.resource-card:hover .resource-card-cover-img { transform: scale(1.04); }
.resource-detail-cover { margin-bottom: 2.5rem; border-radius: var(--radius); overflow: hidden; max-width: 860px; }
.resource-detail-cover-img { width: 100%; height: auto; max-height: 480px; object-fit: cover; display: block; }

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials-section { background: var(--bg); }

/* Carousel */
.testimonials-carousel { margin-top: 3rem; position: relative; }
.testimonials-track { display: flex; overflow-x: scroll; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 0; scrollbar-width: none; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonials-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0 .75rem; box-sizing: border-box; min-width: 0; }
@media (min-width: 700px) { .testimonials-slide { flex: 0 0 50%; } }
@media (min-width: 1024px) { .testimonials-slide { flex: 0 0 33.333%; } }
.testimonials-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.testimonials-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.testimonials-dot.active { background: var(--primary); transform: scale(1.3); }

.testimonial-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem; position: relative; height: 100%; }
.testimonial-quote-mark { font-size: 4rem; line-height: 1; color: var(--primary); opacity: .3; font-family: Georgia, serif; margin-bottom: -.5rem; }
.testimonial-quote { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin: 0; flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .875rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); }
.testimonial-avatar-wrap { flex-shrink: 0; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-subtle); }
.testimonial-avatar--initials { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #c01424); display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; color: #fff; letter-spacing: .05em; }
.testimonial-author-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.testimonial-author-name { font-size: .9375rem; font-weight: 700; color: var(--text); }
.testimonial-author-link { text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; transition: color .2s; }
.testimonial-author-link:hover { color: var(--primary); }
.testimonial-linkedin-icon { width: 14px; height: 14px; color: #0a66c2; flex-shrink: 0; }
.testimonial-author-meta { font-size: .8125rem; color: var(--text-muted); }

/* Truncated quote + Read more */
.testimonial-quote { font-size: .875rem; }
.testimonial-read-more { display: inline; margin-left: .35rem; background: none; border: none; padding: 0; font-size: .8rem; font-weight: 600; color: var(--primary-bright); cursor: pointer; font-style: normal; letter-spacing: .01em; transition: color .15s, opacity .15s; }
.testimonial-read-more:hover { opacity: .75; }
[data-theme="light"] .testimonial-read-more { color: var(--primary-dark); }

/* ── Testimonial Modal ───────────────────────────────────────────────────── */
.tmodal-backdrop { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(0,0,0,0); backdrop-filter: blur(0px); transition: background .28s ease, backdrop-filter .28s ease; }
.tmodal-backdrop[hidden] { display: none; }
.tmodal-open { background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.tmodal-panel { position: relative; width: 100%; max-width: 580px; background: #13131a; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 2.5rem 2.5rem 2rem; box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(200,20,20,.08); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .28s ease; }
.tmodal-open .tmodal-panel { transform: translateY(0) scale(1); opacity: 1; }
.tmodal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.06); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s; }
.tmodal-close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.tmodal-quote-mark { font-size: 5rem; line-height: 1; color: var(--primary); opacity: .2; font-family: Georgia, serif; margin-bottom: -1.25rem; }
.tmodal-quote { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.85; margin: 0 0 2rem; font-style: italic; }
.tmodal-author { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); }
.tmodal-avatar-wrap { flex-shrink: 0; }
.tmodal-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.1); }
.tmodal-avatar--initials { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #c01424); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: .05em; }
.tmodal-author-info { display: flex; flex-direction: column; gap: .25rem; }
.tmodal-author-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.tmodal-author-meta { font-size: .8125rem; color: var(--text-muted); }
.tmodal-linkedin { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: .8125rem; font-weight: 600; color: #0a66c2; text-decoration: none; transition: opacity .15s; }
.tmodal-linkedin:hover { opacity: .8; }
@media (max-width: 540px) { .tmodal-panel { padding: 2rem 1.5rem 1.5rem; } .tmodal-quote { font-size: .9375rem; } }
[data-theme="light"] .tmodal-open { background: rgba(0,0,0,.45); }
[data-theme="light"] .tmodal-panel { background: #ffffff; border-color: rgba(0,0,0,.1); box-shadow: 0 32px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(225,29,46,.06); }
[data-theme="light"] .tmodal-close { background: rgba(0,0,0,.05); color: var(--text-muted); }
[data-theme="light"] .tmodal-close:hover { background: rgba(0,0,0,.1); color: var(--text); }
[data-theme="light"] .tmodal-author { border-top-color: rgba(0,0,0,.1); }
[data-theme="light"] .tmodal-avatar { border-color: rgba(0,0,0,.12); }

/* Admin testimonials */
.cms-testimonial-author { display: flex; align-items: center; gap: 8px; }
.cms-testimonial-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cms-testimonial-quote-cell { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Customer Logo Strip — Infinite Marquee ────────────────────────────────── */
/* ── Trusted / Customer Logos ───────────────────────────────────────────── */

.trusted-section {
  position: relative;
  margin-top: 3.5rem;
  padding: 2.75rem 0 1rem;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Radial red glow behind the whole strip */
.trusted-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(225,29,46,.07) 0%,
    transparent 70%);
  pointer-events: none;
}

/* Header row: rule — label — rule */
.trusted-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.trusted-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225,29,46,.3), transparent);
}
.trusted-label-group {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.customer-logos-label {
  white-space: nowrap;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.trusted-count-badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(225,29,46,.12);
  color: var(--primary);
  border: 1px solid rgba(225,29,46,.25);
}
.trusted-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .7;
}

/* Two-row marquee wrapper */
.trusted-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* Ticker viewport — clips overflow, fades edges */
.customer-logos-ticker {
  overflow: hidden;
  padding: .5rem 0;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.customer-logos-ticker--reverse {
  opacity: .7;
}

/* Scrolling track */
.customer-logos-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: logos-ticker 32s linear infinite;
  will-change: transform;
}
.customer-logos-track--reverse {
  animation: logos-ticker-reverse 38s linear infinite;
}
.trusted-marquee-wrap:hover .customer-logos-track,
.trusted-marquee-wrap:hover .customer-logos-track--reverse {
  animation-play-state: paused;
}

@keyframes logos-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes logos-ticker-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Individual logo card */
.customer-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 .75rem;
  padding: .6rem 1.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  opacity: .55;
  /* Convert any logo to a clean white silhouette — works for dark & light originals */
  filter: brightness(0) invert(1);
  transition: opacity .3s ease, filter .3s ease, transform .3s ease,
              border-color .3s ease, box-shadow .3s ease, background .3s ease;
  cursor: default;
  min-width: 120px;
}
.customer-logo-item:hover {
  opacity: 1;
  /* Reveal original brand colours on hover */
  filter: none;
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(225,29,46,.35);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 18px rgba(225,29,46,.15), 0 4px 16px rgba(0,0,0,.3);
}
.customer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed-size image container keeps all logos the same visual weight */
.customer-logo-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 34px;
}
.customer-logo-img {
  max-width: 110px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.customer-logo-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .25s;
}
.customer-logo-item:hover .customer-logo-name {
  color: var(--text);
}

/* Light mode */
[data-theme="light"] .customer-logo-item {
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
  filter: grayscale(1) brightness(1);
}
[data-theme="light"] .customer-logo-item:hover {
  filter: grayscale(0) brightness(1);
  border-color: rgba(225,29,46,.3);
  background: rgba(225,29,46,.04);
}
[data-theme="light"] .trusted-bg-glow {
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(225,29,46,.04) 0%, transparent 70%);
}

.cms-toggle-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.cms-form-row { display: flex; gap: 24px; flex-wrap: wrap; }
.cms-form-row .cms-form-group { flex: 1; min-width: 160px; }
.cms-card-desc { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-page-section {
  padding: 80px 0 120px;
}

.legal-page-content {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.legal-page-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.legal-page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.legal-page-content p { margin: 0 0 1rem; }
.legal-page-content ul, .legal-page-content ol { margin: 0 0 1rem 1.5rem; }
.legal-page-content li { margin-bottom: 0.4rem; }
.legal-page-content strong { color: var(--text); font-weight: 600; }
.legal-page-content a { color: var(--primary); text-decoration: none; }
.legal-page-content a:hover { text-decoration: underline; }

/* ── FAQ Page ────────────────────────────────────────────── */
.faq-section {
  padding: 80px 0 120px;
}

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.75rem;
}

.faq-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-question {
  list-style: none;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.125rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-contact-cta {
  max-width: 780px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-cta-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.faq-cta-link:hover { text-decoration: underline; }
.faq-empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* ── About page: stats strip ────────────────────────────────────────────── */
.about-stats-section { background: var(--bg-2); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.about-stat-card {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  transition: background .25s;
}
.about-stat-card:last-child { border-right: none; }
.about-stat-card:hover { background: var(--bg-3); }
.about-stat-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat-unit { font-size: 60%; font-weight: 700; }
.about-stat-label { font-size: .85rem; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 640px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stat-card:nth-child(2) { border-right: none; }
  .about-stat-card:nth-child(3), .about-stat-card:nth-child(4) { border-top: 1px solid var(--border-subtle); }
}

/* ── Team: empty-state block ────────────────────────────────────────────── */
.team-building-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.team-building-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.team-building-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(225,29,46,.08), transparent);
  pointer-events: none;
}
.team-building-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  background: rgba(225,29,46,.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-building-icon svg { width: 28px; height: 28px; }
.team-building-title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.team-building-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; font-size: 1rem; }
.team-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.team-discipline {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(225,29,46,.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: .3rem .9rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.discipline-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.team-building-cta { display: inline-flex; }

/* ── Resource card improvements ─────────────────────────────────────────── */
.resource-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.resource-card-body { display: flex; flex-direction: column; gap: .875rem; padding: 1.5rem 1.5rem 1rem; flex: 1; }
.resource-card-top { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.resource-type-badge { display: inline-flex; align-items: center; gap: .3rem; }
.resource-type-icon { width: 11px; height: 11px; flex-shrink: 0; }
.resource-cover-badge { position: absolute; top: .875rem; left: .875rem; z-index: 2; }
.resource-card-cover { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16/9; }
.resource-card-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.resource-card-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(11,15,25,.7)); pointer-events: none; }
.resource-card:hover .resource-card-cover-img { transform: scale(1.05); }

.resource-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.resource-summary { font-size: .875rem; color: var(--text-muted); line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.resource-card-footer { display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.5rem 1.5rem; margin-top: auto; border-top: 1px solid var(--border-subtle); }
.resource-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.resource-meta-item { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--text-dim); }

.resource-read-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; padding: .6rem 1rem;
  background: rgba(225,29,46,.08); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--primary); font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: var(--transition-fast);
}
.resource-read-btn:hover { background: rgba(225,29,46,.15); border-color: var(--border-bright); color: var(--glow); }
.resource-read-btn:hover .btn-arrow { transform: translateX(4px); }
.resource-read-btn .btn-arrow { transition: transform .2s ease; }

/* ── Attachment cards ───────────────────────────────────────────────────── */
.resource-attachments {
  margin: 3rem auto 1.5rem;
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.resource-attachments-header {
  display: flex; align-items: center; gap: .625rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-subtle);
}
.attachments-header-icon { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.resource-attachments-title {
  font-size: 1rem; font-weight: 700; color: var(--text); margin: 0;
  display: flex; align-items: center; gap: .5rem;
}
.attachments-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: rgba(225,29,46,.15); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: .7rem; font-weight: 700; color: var(--primary);
}
.resource-attachments-list { display: flex; flex-direction: column; }

.attachment-card {
  border-bottom: 1px solid var(--border-subtle);
}
.attachment-card:last-child { border-bottom: none; }

.attachment-card-main {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
}

/* File type icon */
.attachment-icon-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.attachment-icon-wrap svg { width: 22px; height: 22px; }
.mime--pdf   { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.3); color: #ef4444; }
.mime--image { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.3); color: #10b981; }
.mime--video { background: rgba(139,92,246,.1);  border-color: rgba(139,92,246,.3); color: #8b5cf6; }
.mime--word  { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.3); color: #3b82f6; }
.mime--excel { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.3); color: #10b981; }
.mime--slides{ background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.3); color: #f59e0b; }
.mime--generic { background: var(--bg-3); color: var(--text-muted); }

.attachment-info { flex: 1; min-width: 0; }
.attachment-name { font-size: .9375rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .3rem; }
.attachment-meta { display: flex; align-items: center; gap: .5rem; }
.attachment-mime-badge {
  display: inline-block; padding: .15rem .5rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); font-size: .7rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
}
.attachment-size { font-size: .78rem; color: var(--text-dim); }

.attachment-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.attachment-open-btn, .attachment-download-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .875rem; border-radius: var(--radius);
  font-size: .8rem; font-weight: 600; text-decoration: none;
  transition: var(--transition-fast); white-space: nowrap;
}
.attachment-open-btn {
  background: rgba(225,29,46,.08); border: 1px solid var(--border);
  color: var(--primary);
}
.attachment-open-btn:hover { background: rgba(225,29,46,.16); border-color: var(--border-bright); }
.attachment-download-btn {
  background: var(--primary); border: 1px solid var(--primary);
  color: #fff;
}
.attachment-download-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ── Full-page PDF embed (outside container, edge-to-edge) ─────────────── */
.pdf-fullpage-wrap {
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-2);
}
.pdf-fullpage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  padding: .875rem 2rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-subtle);
}
.pdf-fullpage-bar-left {
  display: flex; align-items: center; gap: .75rem; min-width: 0;
}
.pdf-bar-icon { width: 36px; height: 36px; flex-shrink: 0; }
.pdf-fullpage-name {
  font-size: .9375rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw;
}
.pdf-fullpage-size { font-size: .78rem; color: var(--text-dim); flex-shrink: 0; }
.pdf-fullpage-bar-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.pdf-fullpage-embed { width: 100%; background: #525659; }
.pdf-fullpage-frame {
  display: block;
  width: 100%;
  height: 90vh;
  border: none;
}
.pdf-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 4rem 2rem; text-align: center; color: var(--text-muted); background: var(--bg-2);
}
@media (max-width: 640px) {
  .pdf-fullpage-bar { padding: .75rem 1rem; }
  .pdf-fullpage-name { max-width: 55vw; }
  .pdf-fullpage-frame { height: 70vh; }
}

@media (max-width: 640px) {
  .attachment-card-main { flex-wrap: wrap; }
  .attachment-actions { width: 100%; }
  .attachment-open-btn, .attachment-download-btn { flex: 1; justify-content: center; }
  .resource-card-footer { padding: .875rem 1.25rem 1.25rem; }
  .resource-card-body { padding: 1.25rem 1.25rem .875rem; }
}


/* ============================================================
   INTELLIROOT NEW SECTION STYLES
   ============================================================ */

/* --- Hero Accent Line --- */
.headline-accent {
  display: block;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  background: none;
  font-size: inherit;
  font-weight: inherit;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES NAV MEGA MENU
   All rules scoped under .svc-mega-panel to prevent
   conflicts with the services page (.svc-cat-icon etc.)
   ═══════════════════════════════════════════════════════════ */

/* Services <li>: static so panel anchors to nav-container */
.svc-nav-item { position: static !important; }

/* Panel: forced dark navy — readable in both themes */
.svc-mega-panel {
  top: 100%;
  left: 0; right: 0; width: 100%; min-width: 0;
  transform: translateY(-8px);
  padding: 0;
  background: #0f1e33;
  border: none;
  border-top: 2px solid rgba(225,29,46,.35);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  /* explicit transition so it matches the products dropdown feel */
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
/* Wider hover bridge so cursor moving into the panel doesn't trigger close */
.svc-nav-item > .nav-dropdown-menu::before {
  height: 1.25rem;
}
.nav-dropdown.open .svc-mega-panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Body grid ── */
.svc-mega-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.75rem 1.25rem 1.375rem;
}
.svc-mega-group {
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
}
.svc-mega-group:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.055);
}

/* ── Category block ── */
.svc-mega-panel .svc-cat { margin-bottom: .875rem; }

.svc-mega-panel .svc-cat-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .375rem;
  border-radius: 7px;
  margin-bottom: .25rem;
  cursor: default;
  user-select: none;
}

/* Icon */
.svc-mega-panel .svc-cat-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0;
  color: #5c7d9c;
  transition: color .14s;
}
.svc-mega-panel .svc-cat-icon svg { width: 16px; height: 16px; }
.svc-mega-panel .svc-cat-head:hover .svc-cat-icon { color: var(--primary); }

/* Category name — light so it reads on dark navy */
.svc-mega-panel .svc-cat-name {
  flex: 1;
  font-size: .775rem;
  font-weight: 600;
  color: #a4bfd6;
  letter-spacing: .01em;
  transition: color .14s;
}
.svc-mega-panel .svc-cat-head:hover .svc-cat-name { color: #ddeaf5; }

/* Arrow: slides in on hover */
.svc-mega-panel .svc-cat-arrow {
  color: #3d5e7a;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .14s, transform .14s, color .14s;
  flex-shrink: 0;
}
.svc-mega-panel .svc-cat-head:hover .svc-cat-arrow {
  opacity: 1; transform: translateX(0); color: rgba(225,29,46,.7);
}

/* Service links */
.svc-mega-panel .svc-cat-links {
  padding-left: 1.625rem;
  display: flex;
  flex-direction: column;
  gap: .02rem;
}
.svc-mega-panel .svc-cat-link {
  display: block;
  padding: .21rem .375rem;
  font-size: .735rem;
  font-weight: 400;
  color: #6a90ae !important;        /* override page-level red */
  text-decoration: none;
  border-radius: 5px;
  line-height: 1.5;
  transition: color .12s, background .12s;
}
.svc-mega-panel .svc-cat-link:hover {
  color: #a8ccdf !important;
  background: rgba(255,255,255,.05);
}
/* Counter any light-theme override */
[data-theme="light"] .svc-mega-panel .svc-cat-link { color: #6a90ae !important; }
[data-theme="light"] .svc-mega-panel .svc-cat-link:hover { color: #a8ccdf !important; }

/* ── Footer ── */
.svc-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.625rem;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.05);
}
.svc-mega-all-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .775rem;
  font-weight: 600;
  color: rgba(225,29,46,.7);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: gap .18s, color .14s;
}
.svc-mega-all-btn:hover { gap: .65rem; color: #E11D2E; }

.svc-mega-stats {
  display: flex; align-items: center; gap: 1.25rem;
}
.svc-mega-stat {
  font-size: .635rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4d6f8a;
  display: flex; align-items: center; gap: .35rem;
}
.svc-mega-stat::before {
  content: ''; display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: #4d6f8a;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .svc-mega-body { grid-template-columns: 1fr 1fr; }
  .svc-mega-group:last-child {
    grid-column: span 2; border-right: none;
    border-top: 1px solid rgba(255,255,255,.055);
    padding-top: .75rem; margin-top: .25rem;
    display: grid; grid-template-columns: repeat(3, 1fr);
  }
  .svc-mega-stats { display: none; }
}
@media (max-width: 640px) {
  .svc-mega-body { grid-template-columns: 1fr; }
  .svc-mega-group { border-right: none !important; border-top: 1px solid rgba(255,255,255,.055); padding-top: .625rem; }
  .svc-mega-group:first-child { border-top: none; padding-top: 0; }
  .svc-mega-group:last-child { grid-template-columns: 1fr; }
  .svc-mega-footer { flex-direction: column; gap: .5rem; align-items: flex-start; }
}

/* ── Light-mode overrides for mega menu ── */
[data-theme="light"] .svc-mega-panel {
  background: #ffffff;
  border-top: 2px solid rgba(225,29,46,.2);
  box-shadow: 0 16px 48px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.06);
}
[data-theme="light"] .svc-mega-group:not(:last-child) {
  border-right: 1px solid rgba(0,0,0,.07);
}
[data-theme="light"] .svc-mega-panel .svc-cat-icon { color: #93afc5; }
[data-theme="light"] .svc-mega-panel .svc-cat-head:hover .svc-cat-icon { color: var(--primary); }
[data-theme="light"] .svc-mega-panel .svc-cat-name { color: #1e3a52; }
[data-theme="light"] .svc-mega-panel .svc-cat-head:hover .svc-cat-name { color: #0f2030; }
[data-theme="light"] .svc-mega-panel .svc-cat-arrow { color: #b8cdd9; }
[data-theme="light"] .svc-mega-panel .svc-cat-head:hover .svc-cat-arrow { color: rgba(225,29,46,.6); }
[data-theme="light"] .svc-mega-footer {
  background: #f5f7fa;
  border-top: 1px solid rgba(0,0,0,.06);
}
[data-theme="light"] .svc-mega-stat { color: #7a9ab0; }
[data-theme="light"] .svc-mega-stat::before { background: #7a9ab0; }

/* ============================================================
   SERVICE CATEGORIES SECTION
   ============================================================ */
.services-section { background: var(--bg-2); }
.service-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-cat-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  overflow: hidden;
}
.service-cat-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.service-cat-wide { grid-column: span 3; }
.svc-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.svc-cat-icon {
  width: 48px; height: 48px;
  padding: .625rem;
  background: rgba(225, 29, 46, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.svc-cat-icon svg { width: 100%; height: 100%; }
.svc-cat-count {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(225, 29, 46, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: .25rem .625rem;
  white-space: nowrap;
}
.svc-cat-title { font-size: 1.1875rem; font-weight: 700; color: var(--text); margin-bottom: .625rem; letter-spacing: -.01em; }
.svc-cat-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.svc-cat-list { list-style: none; margin-bottom: 1.25rem; }
.svc-cat-list li {
  font-size: .8125rem; color: var(--text-muted);
  padding: .25rem 0; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: .5rem;
}
.svc-cat-list li::before { content: "\2192"; color: var(--primary); font-size: .75rem; flex-shrink: 0; }
.svc-cat-link { font-size: .8125rem; font-weight: 600; color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
.svc-cat-link:hover { color: var(--glow); }
@media (max-width: 1024px) {
  .service-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cat-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .service-categories-grid { grid-template-columns: 1fr; }
  .service-cat-wide { grid-column: span 1; }
}

/* ============================================================
   SERVICES CATALOG SECTION
   ============================================================ */
.services-detail-section { background: var(--bg); }
.services-catalog { display: flex; flex-direction: column; gap: 3rem; }
.catalog-cat-header { margin-bottom: 1.5rem; }
.catalog-cat-badge {
  display: inline-flex; align-items: center;
  padding: .375rem 1rem; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.catalog-cat-badge.offensive  { background: rgba(225,29,46,.12); color: #FF2D55; border: 1px solid rgba(225,29,46,.25); }
.catalog-cat-badge.redteam    { background: rgba(239,68,68,.12); color: #F87171; border: 1px solid rgba(239,68,68,.25); }
.catalog-cat-badge.appsec     { background: rgba(245,158,11,.1); color: #FBBF24; border: 1px solid rgba(245,158,11,.2); }
.catalog-cat-badge.devsecops  { background: rgba(16,185,129,.1); color: #34D399; border: 1px solid rgba(16,185,129,.2); }
.catalog-cat-badge.cloud      { background: rgba(59,130,246,.1); color: #60A5FA; border: 1px solid rgba(59,130,246,.2); }
.catalog-cat-badge.ot         { background: rgba(139,92,246,.1); color: #A78BFA; border: 1px solid rgba(139,92,246,.2); }
.catalog-cat-badge.secops     { background: rgba(20,184,166,.1); color: #2DD4BF; border: 1px solid rgba(20,184,166,.2); }
.catalog-cat-badge.compliance { background: rgba(225,29,46,.08); color: #E11D2E; border: 1px solid rgba(225,29,46,.2); }
.catalog-cat-badge.risk       { background: rgba(251,146,60,.1); color: #FB923C; border: 1px solid rgba(251,146,60,.2); }
.catalog-cat-badge.embedded   { background: rgba(99,102,241,.1); color: #818CF8; border: 1px solid rgba(99,102,241,.2); }

.catalog-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.catalog-service-card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem; transition: var(--transition);
}
.catalog-service-card:hover { border-color: var(--border); box-shadow: 0 4px 20px rgba(225,29,46,.08); transform: translateY(-2px); }
.csvc-icon { width: 40px; height: 40px; padding: .5rem; background: rgba(225,29,46,.06); border-radius: var(--radius); flex-shrink: 0; }
.csvc-icon svg { width: 100%; height: 100%; }
.csvc-body { flex: 1; }
.csvc-name { font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; line-height: 1.3; }
.csvc-desc { font-size: .8125rem; color: var(--text-muted); line-height: 1.6; }
.csvc-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.svc-tag {
  font-size: .6875rem; font-weight: 600;
  background: rgba(225,29,46,.06); color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); padding: .2rem .5rem;
}

.catalog-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.catalog-services-list {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.catalog-service-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem 0; border-bottom: 1px solid var(--border-subtle);
  font-size: .875rem; color: var(--text-muted);
}
.catalog-service-item:last-child { border-bottom: none; }
.csi-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }

.compliance-services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .625rem;
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.compliance-svc-item {
  display: flex; align-items: center; gap: .625rem;
  font-size: .875rem; color: var(--text-muted);
  padding: .5rem; border-radius: var(--radius-sm); transition: var(--transition-fast);
}
.compliance-svc-item:hover { background: rgba(225,29,46,.04); color: var(--text); }

@media (max-width: 1200px) {
  .catalog-services-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .catalog-two-col { grid-template-columns: 1fr; }
  .catalog-services-grid { grid-template-columns: 1fr; }
  .compliance-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .compliance-services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ENGAGEMENT PROCESS SECTION
   ============================================================ */
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem; margin-bottom: 3rem; position: relative;
}
.process-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1rem; position: relative;
}
.process-step-num {
  font-family: var(--font-mono); font-size: 2rem;
  font-weight: 800; color: rgba(225, 29, 46, 0.65);
  line-height: 1; letter-spacing: -.05em;
}
[data-theme="light"] .process-step-num { color: rgba(225, 29, 46, 0.22); }
.process-step-content { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.process-step-icon {
  width: 56px; height: 56px; padding: .875rem;
  background: rgba(225, 29, 46, 0.08); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.process-step:hover .process-step-icon {
  background: rgba(225, 29, 46, 0.15);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}
.process-step-icon svg { width: 100%; height: 100%; }
.process-step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.process-step-desc { font-size: .8125rem; color: var(--text-muted); line-height: 1.6; }
.process-connector {
  position: absolute; top: 3.5rem; right: -1rem;
  width: 2rem; height: 1px; background: var(--border);
}
.process-step:last-child .process-connector { display: none; }
@media (max-width: 1024px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-connector { display: none; }
}
@media (max-width: 640px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .process-steps { grid-template-columns: 1fr; } }

/* ============================================================
   CYBER GLOBE HERO — upgraded canvas layout
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--bg);
}

#cyber-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   LIVE DOT (shared across sections)
   ============================================================ */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF2D55;
  box-shadow: 0 0 6px rgba(255,45,85,0.8);
  animation: live-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ============================================================
   PLATFORM SECTION — dual panel layout
   ============================================================ */
.platform-dual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ---- Shared panel chrome ---- */
.panel-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 1rem;
  background: rgba(8, 21, 37, 0.9);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.panel-dots { display: flex; gap: 5px; }
.pdot {
  width: 10px; height: 10px; border-radius: 50%;
  opacity: 0.85;
}
.pdot-red    { background: #FF5F57; }
.pdot-yellow { background: #FEBC2E; }
.pdot-green  { background: #28C840; }

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}

.panel-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 2px;
}

.panel-badge-live {
  background: rgba(255,45,85,0.15);
  color: #ff5277;
  border: 1px solid rgba(255,45,85,0.35);
  display: flex; align-items: center; gap: 4px;
}

.panel-badge-scanning {
  background: rgba(0,240,255,0.1);
  color: #00F0FF;
  border: 1px solid rgba(0,240,255,0.3);
  animation: blink 1.6s ease-in-out infinite;
}

/* ---- Security Dashboard ---- */
.sec-dashboard-panel {
  background: rgba(4, 10, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sec-dashboard-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.dash-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.dash-metric-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-cyan);
  line-height: 1;
  letter-spacing: -0.03em;
}
.dash-metric-val.dash-metric-green { color: #00FF94; }
.dash-metric-val.dash-metric-red   { color: #FF2D55; }

.dash-metric-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.dash-metric-trend {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.dash-metric-trend.up { color: #00FF94; }

/* Sparkline */
.dash-sparkline-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.dash-spark-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-spark-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.dash-spark-current {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--primary);
}

.dash-sparkline-wrap {
  height: 80px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(2, 5, 9, 0.6);
}

.dash-sparkline-wrap canvas { width: 100% !important; height: 100% !important; }

/* Bottom row: ring + log */
.dash-bottom-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  flex: 1;
}

.dash-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.dash-ring-wrap canvas {
  width: 100px !important;
  height: 100px !important;
}

.dash-ring-legend {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.ring-leg-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.ring-leg-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* Event log */
.dash-event-log-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-height: 0;
}

.dash-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.dash-log-scroll {
  font-size: 0.6rem;
  color: var(--primary);
  opacity: 0.6;
}

.dash-event-log {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 148px;
}

.dash-log-row {
  display: grid;
  grid-template-columns: 52px 60px 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(8,21,37,0.6);
  border-left: 2px solid transparent;
  transition: opacity 0.4s ease;
}

.dash-log-row.dash-log-new {
  opacity: 0;
  animation: log-appear 0.35s ease forwards;
}

@keyframes log-appear {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-log-ts  { color: var(--text-dim); }
.dash-log-sev { font-weight: 700; font-size: 0.575rem; letter-spacing: 0.06em; }
.dash-log-msg { color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---- Vulnerability Scanner ---- */
.vuln-scanner-panel {
  background: rgba(3, 12, 23, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vuln-scanner-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scanner-canvas-wrap {
  flex: 1;
  min-height: 320px;
  position: relative;
}

.scanner-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.scan-results-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(2, 8, 16, 0.9);
  border-top: 1px solid var(--border-subtle);
}

.scan-result-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.scan-result-label { color: var(--text-muted); }

.scan-result-val {
  font-weight: 700;
  color: var(--text-cyan);
}

.scan-result-critical { color: #FF2D55 !important; }
.scan-result-high     { color: #FF6B00 !important; }

.scan-result-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* ============================================================
   ENGAGEMENT PIPELINE PANEL
   ============================================================ */
.engage-pipeline-panel {
  background: rgba(4, 10, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.engage-pipeline-body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

/* Each phase row */
.ep-phase {
  display: flex;
  gap: 0.875rem;
  position: relative;
}

.ep-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
}

.ep-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.35s ease, border-color 0.35s ease,
              color 0.35s ease, box-shadow 0.35s ease;
}

.ep-done .ep-num {
  background: rgba(0,255,148,0.12);
  border-color: rgba(0,255,148,0.45);
  color: #00FF94;
}

.ep-active .ep-num {
  background: rgba(255,45,85,0.15);
  border-color: rgba(255,45,85,0.5);
  color: #FF2D55;
  box-shadow: 0 0 8px rgba(255,45,85,0.3);
}

/* ---- Connector line: fills downward while phase is active ---- */
.ep-line {
  flex: 1;
  width: 1.5px;
  background: var(--border-subtle);
  margin: 3px 0 0;
  min-height: 18px;
  position: relative;
  overflow: hidden;
}

/* fill track */
.ep-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
}

/* active: animate fill downward over exactly PHASE_DURATION */
.ep-active .ep-line::after {
  height: 100%;
  background: rgba(255, 45, 85, 0.6);
  animation: ep-line-fill 1.8s linear forwards;
}

/* done: line fully filled green */
.ep-done .ep-line {
  background: rgba(0,255,148,0.12);
}
.ep-done .ep-line::after {
  height: 100%;
  background: rgba(0,255,148,0.5);
}

@keyframes ep-line-fill {
  from { height: 0%; }
  to   { height: 100%; }
}

/* ---- Phase content: sweep-close when done ---- */
.ep-content {
  padding-bottom: 1rem;
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

/* green overlay sweeps left-to-right when phase closes */
.ep-done .ep-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,255,148,0.06);
  pointer-events: none;
  transform-origin: left;
  animation: ep-close-sweep 0.45s ease forwards;
}

@keyframes ep-close-sweep {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.ep-last .ep-content { padding-bottom: 0; }

.ep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 2px;
  margin-bottom: 0.35rem;
}

.ep-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.35s ease;
}

.ep-done .ep-name  { color: var(--text); }
.ep-active .ep-name { color: var(--text); }

.ep-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ep-badge-done {
  background: rgba(0,255,148,0.1);
  color: #00FF94;
  border: 1px solid rgba(0,255,148,0.3);
}

.ep-badge-active {
  background: rgba(255,45,85,0.15);
  color: #FF2D55;
  border: 1px solid rgba(255,45,85,0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulse-badge 1.8s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); }
  50%       { box-shadow: 0 0 6px 2px rgba(255,45,85,0.45); }
}

.ep-badge-pending {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ep-tag {
  font-family: var(--font-mono);
  font-size: 0.595rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 1px 6px;
  letter-spacing: 0.03em;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.ep-done .ep-tag {
  color: rgba(0,255,148,0.65);
  background: rgba(0,255,148,0.05);
  border-color: rgba(0,255,148,0.2);
}

.ep-active .ep-tag {
  color: rgba(255,45,85,0.75);
  background: rgba(255,45,85,0.06);
  border-color: rgba(255,45,85,0.25);
}

/* ============================================================
   FRAMEWORKS PANEL
   ============================================================ */
.frameworks-panel {
  background: rgba(3, 10, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.frameworks-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.fw-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.fw-group-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6375rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fw-group-label svg { flex-shrink: 0; opacity: 0.7; }

.fw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fw-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.fw-pentest {
  background: rgba(139,92,246,0.12);
  color: rgba(167,139,250,0.9);
  border: 1px solid rgba(139,92,246,0.3);
}

.fw-compliance {
  background: rgba(0,240,255,0.08);
  color: rgba(0,240,255,0.8);
  border: 1px solid rgba(0,240,255,0.22);
}

.fw-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.125rem 0;
}

/* ============================================================
   GLOBAL THREAT MAP SECTION
   ============================================================ */
.threat-map-section {
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.threat-map-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), rgba(157,78,221,0.8), var(--primary), transparent);
  opacity: 0.5;
}

.threat-map-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 2rem;
  position: relative;
}

.threat-map-canvas-wrap {
  position: relative;
  background: #020509;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.threat-map-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.threat-map-stat-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(2,5,9,0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 0.625rem 1.25rem;
}

.tm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  text-align: center;
}

.tm-stat-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-cyan);
  line-height: 1;
}

.tm-stat-val.tm-stat-green { color: #00FF94; }
.tm-stat-val.tm-stat-red   {
  color: #FF2D55;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.tm-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
}

.tm-stat-divider {
  width: 1px; height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Threat Feed Panel */
.threat-feed-panel {
  display: flex;
  flex-direction: column;
  background: rgba(4, 10, 18, 0.98);
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.feed-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.feed-header-title svg {
  width: 14px; height: 14px;
}

.feed-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #FF2D55;
  letter-spacing: 0.12em;
}

.feed-list {
  flex: 1;
  overflow: hidden;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feed-item {
  padding: 0.4rem 0.6rem;
  background: rgba(8, 21, 37, 0.7);
  border-radius: 3px;
  border-left: 2px solid rgba(0,240,255,0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.3s ease;
}

.feed-item.feed-new {
  opacity: 0;
  animation: feed-slide-in 0.3s ease forwards;
}

@keyframes feed-slide-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.feed-time {
  font-family: var(--font-mono);
  font-size: 0.575rem;
  color: var(--text-dim);
}

.feed-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feed-dot-red  { background: #FF2D55; box-shadow: 0 0 4px rgba(255,45,85,0.6); }
.feed-dot-cyan { background: #00F0FF; box-shadow: 0 0 4px rgba(0,240,255,0.5); }

.feed-msg {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(2,5,9,0.6);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.legend-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.legend-red  { background: #FF2D55; box-shadow: 0 0 5px rgba(255,45,85,0.5); }
.legend-cyan { background: #00F0FF; box-shadow: 0 0 5px rgba(0,240,255,0.5); }

/* Intel cards below map */
.threat-intel-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.intel-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.intel-card:hover {
  border-color: var(--border);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.intel-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
}
.intel-card-icon svg { width: 100%; height: 100%; }

.intel-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.intel-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.intel-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width: 1200px) {
  .platform-dual-panel {
    grid-template-columns: 1fr;
  }
  .dash-metric-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .threat-intel-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .threat-map-wrapper {
    grid-template-columns: 1fr;
  }
  .threat-map-canvas-wrap {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .threat-feed-panel {
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .dash-metric-row {
    grid-template-columns: 1fr 1fr;
  }
  .dash-bottom-row {
    grid-template-columns: 1fr;
  }
  .dash-ring-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .threat-intel-cards {
    grid-template-columns: 1fr;
  }
  .intel-card {
    flex-direction: row;
  }
  .tm-stat-val { font-size: 0.875rem; }
}

/* ============================================================
   SERVICES PAGES
   ============================================================ */

.services-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.svc-tab {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s;
}
.svc-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}
.services-category-block {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}
.services-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.services-cat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border: 1px solid rgba(225,29,46,0.25);
  border-radius: 12px;
  color: var(--primary);
}
.services-cat-icon svg { width: 28px; height: 28px; }
.services-cat-header > div { flex: 1; }
.services-cat-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.services-cat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}
.services-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.services-card-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225,29,46,0.12);
}
.service-card-body { flex: 1; }
.service-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}
.service-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.service-card-arrow {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}
.service-cat-section, .service-detail-section { padding-top: 3rem; }
.service-cat-layout, .service-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: 100px;
}
.service-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-sidebar-list li { margin-bottom: 0.25rem; }
.service-sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.service-sidebar-link:hover {
  color: var(--text);
  background: var(--surface);
}
.service-sidebar-link.active {
  color: var(--primary);
  background: var(--primary-glow);
  font-weight: 600;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }
.service-detail-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.service-detail-content h2:first-child { margin-top: 0; }
.service-detail-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.service-detail-content ul,
.service-detail-content ol {
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.service-detail-content li { margin-bottom: 0.375rem; }
.service-deliverables {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.service-deliverables h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.related-services { margin-top: 2.5rem; }
.related-services h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.related-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.related-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.related-service-card:hover {
  border-color: var(--primary);
  color: var(--text);
}
.related-service-name { font-weight: 500; }

/* ============================================================
   PRODUCT PAGES  (.prod-*)
   ============================================================ */

/* ── Product Site Banner ── */
.prod-site-banner {
  padding: 0 clamp(1rem,4vw,3rem);
  max-width: 1280px;
  margin: 2rem auto 0;
}
.prod-site-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: rgba(225,29,46,.06);
  border: 1px solid rgba(225,29,46,.25);
  border-radius: 14px;
  overflow: hidden;
  animation: fadeUp .5s ease both;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.prod-site-banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(225,29,46,.08), transparent);
  pointer-events: none;
}
/* Animated scan line */
.prod-site-banner-inner::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  animation: banner-scan 3s ease-in-out infinite;
}
@keyframes banner-scan { to { left: 160%; } }

.prod-site-banner-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.prod-site-banner-text {
  font-size: .875rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}
.prod-site-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.prod-site-banner-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.prod-site-banner-btn:hover {
  background: #c91a2a;
  box-shadow: 0 0 20px rgba(225,29,46,.4);
  transform: translateY(-1px);
}
.prod-site-banner-btn:hover::before { opacity: 1; }
.prod-site-banner-arrow {
  display: flex;
  align-items: center;
  transition: transform .2s;
}
.prod-site-banner-btn:hover .prod-site-banner-arrow { transform: translateX(3px); }

@media (max-width: 640px) {
  .prod-site-banner-inner { flex-wrap: wrap; gap: 1rem; }
  .prod-site-banner-text { display: none; }
}

/* ── Listing section ── */
.prod-listing-section { padding-top: 1.5rem; }

/* ── Nav tabs ── */
.prod-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.prod-tab {
  padding: .4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: border-color .18s, color .18s, background .18s;
}
.prod-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(225,29,46,.05);
}
.prod-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* ── Category block ── */
.prod-cat-block {
  margin-bottom: 4.5rem;
  scroll-margin-top: 100px;
}
.prod-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.prod-cat-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.prod-cat-eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
  font-family: var(--font-mono);
}
.prod-cat-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 580px;
}
.prod-view-all {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  padding: .45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  transition: border-color .18s, color .18s;
  white-space: nowrap;
}
.prod-view-all:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Product card grid ── */
.prod-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.prod-card-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ── Product card ── */
.prod-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .22s, transform .22s, box-shadow .22s;
  position: relative;
}
.prod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity .22s;
}
.prod-card:hover {
  border-color: rgba(225,29,46,.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.2), 0 0 0 1px rgba(225,29,46,.06);
}
.prod-card:hover::before { opacity: 1; }

.prod-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(225,29,46,.1);
  border: 1px solid rgba(225,29,46,.18);
  color: var(--primary);
  margin: 1.375rem 1.375rem 0;
  flex-shrink: 0;
}
.prod-card-body {
  padding: 1rem 1.375rem 1.125rem;
  flex: 1;
}
.prod-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.prod-card-desc {
  font-size: .825rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.prod-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .875rem 1.375rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.prod-card-cta {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.prod-card-arrow {
  color: var(--primary);
  opacity: .6;
  transition: opacity .18s, transform .18s;
}
.prod-card:hover .prod-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ── Empty state ── */
.prod-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 0;
  color: var(--text-muted);
  text-align: center;
}
.prod-empty svg { opacity: .3; }
.prod-empty p { font-size: .9rem; }

/* ── Layout (sidebar + main) ── */
.prod-cat-section,
.prod-detail-section { padding-top: 2.5rem; }

.prod-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}
.prod-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.prod-main { min-width: 0; }

/* ── Sidebar card ── */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.sidebar-title {
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.125rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(225,29,46,.2), transparent);
}

/* ── Sidebar nav list ── */
.prod-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.prod-sidebar-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.prod-sidebar-link svg { opacity: 0; flex-shrink: 0; transition: opacity .15s; }
.prod-sidebar-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.prod-sidebar-link:hover svg { opacity: .5; }
.prod-sidebar-link.active {
  color: var(--primary);
  background: rgba(225,29,46,.07);
  font-weight: 700;
}
.prod-sidebar-link.active svg { opacity: 1; color: var(--primary); }

/* ── Sidebar CTA card ── */
.sidebar-cta-card {
  background: linear-gradient(135deg, rgba(225,29,46,.07) 0%, rgba(255,255,255,.01) 100%);
  border-color: rgba(225,29,46,.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sidebar-cta-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(225,29,46,.12);
  border: 1px solid rgba(225,29,46,.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .875rem;
}
.sidebar-cta-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .4rem;
  line-height: 1.3;
}
.sidebar-cta-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.125rem;
}
.sidebar-cta-card .btn-primary { width: 100%; justify-content: center; }

/* ── Breadcrumb ── */
.prod-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 2rem;
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.prod-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.prod-breadcrumb a:hover { color: var(--primary); }
.prod-breadcrumb-sep { opacity: .35; }
.prod-breadcrumb-current { color: var(--text); font-weight: 600; }

/* ── Detail content ── */
.prod-detail-main { min-width: 0; }
.prod-detail-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
}
.prod-detail-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 .875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.prod-detail-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prod-detail-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 .625rem;
}
.prod-detail-content p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: .9375rem;
}
.prod-detail-content ul,
.prod-detail-content ol {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.prod-detail-content li { margin-bottom: .375rem; }
.prod-detail-content strong { color: var(--text); }
.prod-detail-content a { color: var(--primary); text-decoration: none; }
.prod-detail-content a:hover { text-decoration: underline; }

/* ── Features card ── */
.prod-features-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.prod-features-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(225,29,46,.05) 0%, transparent 70%);
}
.prod-features-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(225,29,46,.1);
  border: 1px solid rgba(225,29,46,.18);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prod-features-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -.01em;
}
.prod-features-body {
  padding: 1.5rem 1.75rem;
}
.prod-features-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.prod-features-body ul li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.prod-features-body ul li:last-child { border-bottom: none; padding-bottom: 0; }
.prod-features-body ul li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.prod-features-body p,
.prod-features-body h3,
.prod-features-body h4 {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: .75rem;
}

/* ── Related products ── */
.prod-related {
  margin-bottom: 1.5rem;
}
.prod-related-header {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1rem;
}
.prod-related-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.prod-related-cat {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.prod-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.prod-related-card {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}
.prod-related-card:hover {
  border-color: rgba(225,29,46,.3);
  background: rgba(225,29,46,.04);
}
.prod-related-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(225,29,46,.08);
  border: 1px solid rgba(225,29,46,.14);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prod-related-name {
  flex: 1;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .15s;
  min-width: 0;
}
.prod-related-card:hover .prod-related-name { color: var(--text); }
.prod-related-arrow {
  color: var(--primary);
  opacity: .4;
  flex-shrink: 0;
  transition: opacity .15s, transform .15s;
}
.prod-related-card:hover .prod-related-arrow { opacity: 1; transform: translateX(3px); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .prod-layout { grid-template-columns: 220px 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .prod-layout { grid-template-columns: 1fr; }
  .prod-sidebar { position: static; }
  .prod-card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
  .prod-card-grid { grid-template-columns: 1fr; }
  .prod-detail-content { padding: 1.5rem; }
  .prod-features-body { padding: 1.25rem 1.5rem; }
}

/* ── Product Slideshow ── */
.prod-slideshow-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #080810;
  border: 1px solid #1e1e2a;
  margin-bottom: 2rem;
}
.prod-slideshow-track {
  display: flex;
  width: 100%;
  will-change: transform;
}
.prod-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
}
.prod-slide-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
/* Caption overlay — frosted glass bar covering bottom ~25% */
.prod-slide-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  min-height: 90px;
  padding: 1rem 1.5rem 1rem 1.75rem;
  background: linear-gradient(to top, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.28) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  z-index: 2;
}
.prod-slide-caption-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.prod-slide-caption-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(0,0,0,0.85);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Prev / Next buttons */
.prod-slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 4;
  transition: background .2s;
}
.prod-slideshow-btn:hover { background: rgba(0,0,0,.85); }
.prod-slideshow-btn--prev { left: 14px; }
.prod-slideshow-btn--next { right: 14px; }
/* Dots */
.prod-slideshow-dots {
  position: absolute;
  bottom: calc(25% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.prod-slideshow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.prod-slideshow-dot--active { background: #fff; transform: scale(1.4); }

@media (max-width: 768px) {
  .prod-slide-img { height: 260px; }
  .prod-slide-caption-overlay { min-height: 70px; padding: 0.75rem 1rem; }
  .prod-slide-caption-text { -webkit-line-clamp: 2; font-size: 0.82rem; }
}

/* ============================================================
   BLOG PAGES
   ============================================================ */
.blog-page-section { padding-top: 1.5rem; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.blog-search-section { padding: 1.5rem 0 0; }
.blog-search-form { display: flex; justify-content: center; }
.blog-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  max-width: 560px;
  width: 100%;
  transition: border-color 0.2s;
}
.blog-search-wrap:focus-within { border-color: var(--primary); }
.blog-search-icon { color: var(--text-muted); flex-shrink: 0; }
.blog-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9375rem;
}
.blog-search-btn {
  padding: 0.375rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-search-btn:hover { background: var(--primary-dark); }
.blog-categories-bar { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.blog-cat-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.blog-cat-tab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}
.blog-cat-tab:hover, .blog-cat-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}
.cat-count {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 0.75rem;
}
.blog-search-banner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.blog-search-banner svg { color: var(--primary); flex-shrink: 0; }
.blog-filter-clear {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: all 0.2s;
}
.blog-filter-clear:hover { border-color: var(--primary); color: var(--primary); }
.posts-grid.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
}
.blog-post-card:hover {
  border-color: rgba(225,29,46,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(225,29,46,0.1);
}
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card-img {
  position: relative;
  height: 180px;
  background: var(--bg-alt);
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(225,29,46,0.08) 0%, rgba(255,45,85,0.04) 100%);
  color: rgba(225,29,46,0.3);
}
.blog-card-cat-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-body { padding: 1.25rem; }
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.blog-card-excerpt {
  font-size: 0.8375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.blog-post-date {
  font-size: 0.7375rem;
  color: var(--text-muted);
  display: block;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.775rem;
  color: var(--text-muted);
}
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.blog-empty svg { margin-bottom: 1rem; color: var(--border); }
.blog-empty p { font-size: 1rem; margin-bottom: 1.25rem; }
.blog-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.blog-spinner { display: flex; align-items: center; justify-content: center; }
.spinner-ring {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: flex; }
.blog-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.625rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.775rem;
  transition: all 0.2s;
}
.blog-tag:hover { border-color: var(--primary); color: var(--primary); }
.tag-count {
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 0.7rem;
}
.sidebar-featured-link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.sidebar-featured-link:hover { opacity: 0.8; }
.sidebar-featured-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--primary-glow);
  border: 1px solid rgba(225,29,46,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.sidebar-post-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.25rem;
}
.sidebar-post-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.sidebar-post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sidebar-recent-list { list-style: none; padding: 0; margin: 0; }
.sidebar-recent-item { margin-bottom: 0.75rem; }
.sidebar-recent-link {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.sidebar-recent-link:hover { opacity: 0.8; }
.sidebar-cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-recent-title {
  font-size: 0.8375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.sidebar-recent-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT PAGE  (.cp-*)
   ============================================================ */
.cp-section {
  padding-top: 1rem;
  position: relative;
  overflow: hidden;
}
.cp-section-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225,29,46,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,29,46,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}
.cp-section > .container { position: relative; z-index: 1; }

.cp-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Form card ── */
.cp-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(225,29,46,.06), 0 24px 64px rgba(0,0,0,.28);
  position: relative;
}
.cp-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, #ff4560 50%, var(--primary) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: cp-border-flow 3s linear infinite;
  z-index: 1;
}
@keyframes cp-border-flow {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.cp-form-card-header {
  padding: 2.25rem 2.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(225,29,46,.06) 0%, rgba(255,255,255,.01) 65%);
  position: relative;
  overflow: hidden;
}
.cp-header-scan {
  position: absolute;
  top: 0; left: -60%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(225,29,46,.07) 50%, transparent 100%);
  animation: cp-scan 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cp-scan {
  0%   { left: -60%; }
  100% { left: 160%; }
}
.cp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .3rem .85rem;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 99px;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: #10B981;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cp-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.6);
  animation: cp-pulse 2s infinite;
}
@keyframes cp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.cp-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .4rem;
  letter-spacing: -.025em;
}
.cp-form-sub {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.cp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 2.25rem 2.25rem;
}
.cp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
.cp-field { display: flex; flex-direction: column; gap: .35rem; }
.cp-label {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cp-req { color: var(--primary); }
.cp-optional { font-weight: 400; color: var(--text-dim); font-size: .72rem; text-transform: none; letter-spacing: 0; }
.cp-input {
  background: rgba(255,255,255,.03);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  box-sizing: border-box;
}
.cp-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(225,29,46,.03);
  box-shadow: 0 0 0 3px rgba(225,29,46,.12), 0 0 22px rgba(225,29,46,.07);
}
.cp-input::placeholder { color: var(--text-dim); }
.cp-textarea { resize: vertical; min-height: 118px; }
.cp-select-wrap { position: relative; }
.cp-select { appearance: none; cursor: pointer; padding-right: 2.5rem; }
.cp-select-chevron {
  position: absolute;
  right: .875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.cp-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #b8101e 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .15s;
  box-shadow: 0 4px 22px rgba(225,29,46,.42), 0 0 0 1px rgba(225,29,46,.2);
  position: relative;
  overflow: hidden;
  margin-top: .25rem;
}
.cp-submit-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  transition: left .45s ease;
}
.cp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(225,29,46,.55), 0 0 0 1px rgba(225,29,46,.3);
  filter: brightness(1.06);
}
.cp-submit-btn:hover::after { left: 160%; }
.cp-submit-btn:active { transform: translateY(0); }
.cp-secure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-size: .72rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
  line-height: 1.55;
}
.cp-secure-row svg { color: #10B981; flex-shrink: 0; }
.cp-disclaimer {
  font-size: .72rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
.cp-disclaimer a { color: var(--text-muted); text-decoration: underline; }

/* ── Info column cards ── */
.cp-info-col { display: flex; flex-direction: column; gap: 1.25rem; }

.cp-info-card,
.cp-why-card,
.cp-certs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.75rem;
  transition: border-color .2s;
}
.cp-info-card:hover,
.cp-why-card:hover,
.cp-certs-card:hover { border-color: rgba(225,29,46,.2); }

.cp-info-section-title {
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.125rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.cp-info-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(225,29,46,.25), transparent);
}

/* Email block */
.cp-email-block {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1rem 1.125rem;
  background: rgba(225,29,46,.04);
  border: 1px solid rgba(225,29,46,.14);
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
  margin-bottom: 1.375rem;
}
.cp-email-block:hover {
  background: rgba(225,29,46,.09);
  border-color: rgba(225,29,46,.3);
  transform: translateX(3px);
}
.cp-email-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(225,29,46,.12);
  border: 1px solid rgba(225,29,46,.2);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cp-contact-label {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .15rem;
}
.cp-email-value {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.cp-email-arrow { margin-left: auto; color: var(--text-muted); flex-shrink: 0; }

/* Stats row */
.cp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--border);
}
.cp-stat {
  text-align: center;
  padding: .75rem .25rem;
  border-radius: 10px;
  transition: background .2s;
}
.cp-stat:hover { background: rgba(225,29,46,.05); }
.cp-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .3rem;
}
.cp-stat-label {
  font-size: .64rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Why list */
.cp-why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.cp-why-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cp-why-item:first-child { padding-top: 0; }
.cp-why-item:last-child { border-bottom: none; padding-bottom: 0; }
.cp-why-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.28);
  color: #10B981;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Certs grid */
.cp-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.cp-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .8rem .4rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .69rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .03em;
  text-align: center;
  transition: border-color .2s, background .2s, transform .18s;
}
.cp-cert svg { color: var(--primary); opacity: .85; }
.cp-cert:hover {
  border-color: rgba(225,29,46,.35);
  background: rgba(225,29,46,.05);
  color: var(--text);
  transform: translateY(-2px);
}

/* == Global Offices Section (full-width) == */
.cp-offices-section {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
  position: relative;
}
.cp-offices-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, rgba(225,29,46,.35) 50%, var(--border) 80%, transparent 100%);
}
.cp-offices-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.cp-offices-eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}
.cp-offices-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: .625rem;
}
.cp-offices-sub { font-size: .9rem; color: var(--text-muted); margin: 0; }

.cp-offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Office card */
.cp-office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
}
.cp-office-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), rgba(255,100,80,.7), var(--primary), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.cp-office-card:hover {
  border-color: rgba(225,29,46,.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0,0,0,.28), 0 0 0 1px rgba(225,29,46,.07);
}
.cp-office-card:hover::before { opacity: 1; }

/* Card top band */
.cp-oc-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  background: linear-gradient(135deg, rgba(225,29,46,.07) 0%, rgba(255,255,255,.01) 100%);
  border-bottom: 1px solid var(--border);
}
.cp-oc-flag-wrap { flex-shrink: 0; }
.cp-oc-flag { font-size: 2.5rem; line-height: 1; display: block; }
.cp-oc-flag-svg { color: var(--primary); opacity: .7; }
.cp-oc-location { flex: 1; min-width: 0; }
.cp-oc-city {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-oc-country {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.cp-oc-tz { flex-shrink: 0; text-align: right; }
.cp-oc-tz-badge {
  display: inline-block;
  padding: .25rem .65rem;
  background: rgba(225,29,46,.08);
  border: 1px solid rgba(225,29,46,.18);
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Divider */
.cp-oc-divider { height: 1px; background: var(--border); margin: 0; }

/* Info rows */
.cp-oc-rows {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding: 1.25rem 1.5rem;
  flex: 1;
}
.cp-oc-row {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
}
.cp-oc-row-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  opacity: .65;
  margin-top: 1px;
}
.cp-oc-phones { display: flex; flex-direction: column; gap: .25rem; }
.cp-oc-phone {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .01em;
  display: block;
  transition: color .15s;
}
.cp-oc-phone:hover { color: var(--primary); }
.cp-oc-email {
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-all;
  transition: color .15s;
}
.cp-oc-email:hover { color: var(--primary); }
.cp-oc-address {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: normal;
  white-space: pre-line;
}

/* CTA button at card bottom */
.cp-oc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 1.5rem 1.5rem;
  padding: .75rem 1rem;
  background: rgba(225,29,46,.07);
  border: 1px solid rgba(225,29,46,.2);
  border-radius: 12px;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}
.cp-oc-cta:hover {
  background: rgba(225,29,46,.13);
  border-color: rgba(225,29,46,.4);
  transform: translateY(-1px);
}

[data-theme="light"] .cp-offices-section { background: transparent; }
[data-theme="light"] .cp-office-card { background: #fff; }
[data-theme="light"] .cp-form-card { background: #fff; }
[data-theme="light"] .cp-info-card,
[data-theme="light"] .cp-why-card,
[data-theme="light"] .cp-certs-card { background: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .service-cat-layout,
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .cp-grid { grid-template-columns: 1fr; }
  .cp-info-col { display: grid; grid-template-columns: 1fr 1fr; }
  .cp-offices-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 720px) {
  .cp-info-col { grid-template-columns: 1fr; }
  .cp-form-row { grid-template-columns: 1fr; }
  .cp-form-card-header, .cp-form { padding-left: 1.375rem; padding-right: 1.375rem; }
}
@media (max-width: 640px) {
  .services-card-grid { grid-template-columns: 1fr; }
  .cp-stats-row { grid-template-columns: repeat(3,1fr); }
  .cp-certs-grid { grid-template-columns: repeat(3,1fr); }
  .cp-offices-grid { grid-template-columns: 1fr; }
}

/* ── Embedded Security Section ─────────────────────────────────────── */
.embedded-section { position: relative; overflow: hidden; }

.embedded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.embedded-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(225,29,46,.15);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .2s;
}
.embedded-card:hover { border-color: rgba(225,29,46,.4); transform: translateY(-3px); }

.emb-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.emb-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(225,29,46,.08);
  border: 1px solid rgba(225,29,46,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.emb-icon svg { width: 100%; height: 100%; }

.emb-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f0f0f5;
  line-height: 1.35;
  margin: 0;
}

.emb-desc {
  font-size: .875rem;
  color: rgba(240,240,245,.6);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.emb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.emb-list li {
  font-size: .8rem;
  color: rgba(240,240,245,.5);
  padding-left: 1rem;
  position: relative;
}
.emb-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E11D2E;
  opacity: .6;
}

/* Service category CTA card */
.service-cat-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.svc-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 0;
  flex: 1;
}
.svc-cta-icon {
  width: 64px;
  height: 64px;
  opacity: .85;
}
.svc-cta-icon svg { width: 100%; height: 100%; }
.svc-cta-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0f0f5;
  margin: 0;
}
.svc-cta-desc {
  font-size: .875rem;
  color: rgba(240,240,245,.6);
  margin: 0;
  line-height: 1.5;
}
.btn-sm {
  font-size: .85rem;
  padding: .55rem 1.25rem;
}

/* ── Breach Response Dashboard ──────────────────────────────────────── */
.breach-dashboard-section { position: relative; overflow: hidden; }

.breach-dashboard {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  margin: 3rem 0 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .breach-dashboard { grid-template-columns: 1fr; }
}

/* Console */
.breach-console {
  background: rgba(6,6,8,.85);
  border: 1px solid rgba(225,29,46,.2);
  border-radius: 12px;
  overflow: hidden;
}

.console-titlebar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.console-dots { display: flex; gap: .4rem; }
.cdot { width: 11px; height: 11px; border-radius: 50%; }
.cdot-red   { background: #E11D2E; }
.cdot-amber { background: #F59E0B; }
.cdot-green { background: #10B981; }
.console-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: rgba(240,240,245,.5);
  flex: 1;
}
.console-live-badge {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 700;
  color: #E11D2E;
  letter-spacing: .08em;
}

.console-body { padding: .5rem 0; }

.incident-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .2s;
}
.incident-row:last-child { border-bottom: none; }
.incident-row:hover { background: rgba(255,255,255,.03); }

.ir-severity {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .2rem .4rem;
  border-radius: 4px;
  text-align: center;
}
.sev-critical { background: rgba(225,29,46,.2); color: #FF2D55; border: 1px solid rgba(225,29,46,.4); }
.sev-high     { background: rgba(245,158,11,.15); color: #FBBF24; border: 1px solid rgba(245,158,11,.3); }
.sev-med      { background: rgba(99,102,241,.15); color: #818CF8; border: 1px solid rgba(99,102,241,.3); }
.sev-ok       { background: rgba(16,185,129,.12); color: #34D399; border: 1px solid rgba(16,185,129,.25); }

.ir-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ir-type { font-size: .85rem; color: rgba(240,240,245,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ir-meta { font-size: .73rem; color: rgba(240,240,245,.4); }

.ir-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: #FF2D55;
  white-space: nowrap;
}
.ir-timer-done { color: #34D399; }

.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: .9rem 1rem;
  background: rgba(225,29,46,.05);
  border-top: 1px solid rgba(225,29,46,.15);
}
.cf-stat { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.cf-val  { font-family: 'JetBrains Mono', monospace; font-size: .95rem; font-weight: 700; color: #f0f0f5; }
.cf-lbl  { font-size: .65rem; color: rgba(240,240,245,.45); text-transform: uppercase; letter-spacing: .06em; }
.cf-divider { width: 1px; height: 32px; background: rgba(255,255,255,.08); }

/* Right panel — response phases */
.breach-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.response-phases { display: flex; flex-direction: column; }

.phase-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.phase-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 700;
  color: #E11D2E;
  background: rgba(225,29,46,.1);
  border: 1px solid rgba(225,29,46,.25);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.phase-body { flex: 1; }
.phase-title { font-size: .9rem; font-weight: 600; color: #f0f0f5; margin: 0 0 .3rem; }
.phase-desc  { font-size: .8rem; color: rgba(240,240,245,.5); line-height: 1.5; margin: 0; }

.phase-connector {
  width: 1px;
  height: 20px;
  background: rgba(225,29,46,.25);
  margin: .35rem 0 .35rem 17px;
}

.breach-cta-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: #E11D2E;
  text-decoration: none;
  padding: .65rem 1.25rem;
  border: 1px solid rgba(225,29,46,.35);
  border-radius: 8px;
  background: rgba(225,29,46,.07);
  transition: background .2s, border-color .2s;
  align-self: flex-start;
}
.breach-cta-link:hover { background: rgba(225,29,46,.14); border-color: rgba(225,29,46,.6); }

/* Catalog badge for breach */
.catalog-cat-badge.breach { background: rgba(225,29,46,.12); color: #FF2D55; border: 1px solid rgba(225,29,46,.25); }

/* ============================================================
   LIGHT MODE — New component overrides (Breach Response,
   Embedded Security, Service Cards, Archetypes catalog)
   ============================================================ */

/* ── Service category cards ─────────────────────────────────── */
[data-theme="light"] .service-cat-card {
  background: #FFFFFF;
  border-color: rgba(225,29,46,.18);
}
[data-theme="light"] .svc-cat-title { color: #0F172A; }
[data-theme="light"] .svc-cat-desc  { color: #475569; }
[data-theme="light"] .svc-cat-list li { color: #64748B; }
[data-theme="light"] .svc-cat-count { color: #94A3B8; }
[data-theme="light"] .svc-cat-link  { color: #E11D2E; }
[data-theme="light"] .svc-cta-title { color: #0F172A; }
[data-theme="light"] .svc-cta-desc  { color: #475569; }

/* ── Service detail page (service-page.css) — light mode fixes ── */
[data-theme="light"] .svc-section-title          { color: #0F172A; }
[data-theme="light"] .svc-section-label          { color: var(--primary); }
[data-theme="light"] .svc-overview p             { color: #334155; }
[data-theme="light"] .svc-highlight              { background: rgba(225,29,46,.04); border-color: rgba(225,29,46,.15); }
[data-theme="light"] .svc-highlight p            { color: #334155; }
[data-theme="light"] .svc-highlight strong       { color: #0F172A; }
[data-theme="light"] .svc-why-card               { background: #FFFFFF; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .svc-why-card h4            { color: #0F172A; }
[data-theme="light"] .svc-why-card p             { color: #475569; }
[data-theme="light"] .svc-audience-card          { background: #FFFFFF; border-color: rgba(0,0,0,.06); }
[data-theme="light"] .svc-audience-card strong   { color: #0F172A; }
[data-theme="light"] .svc-audience-card span     { color: #475569; }
[data-theme="light"] .svc-scope-card             { background: #FFFFFF; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .svc-scope-card h4          { color: #0F172A; }
[data-theme="light"] .svc-scope-card p           { color: #475569; }
[data-theme="light"] .svc-cta-banner-text h3     { color: #0F172A; }
[data-theme="light"] .service-detail-content h2  { color: #0F172A; }
[data-theme="light"] .service-detail-content h3  { color: #0F172A; }
[data-theme="light"] .service-detail-content strong { color: #0F172A; }
[data-theme="light"] .service-detail-content p   { color: #334155; }
[data-theme="light"] .service-detail-content li  { color: #334155; }

/* ── Breach Response dashboard ──────────────────────────────── */
[data-theme="light"] .breach-console {
  background: #FFFFFF;
  border-color: rgba(225,29,46,.2);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
[data-theme="light"] .console-titlebar {
  background: #F8FAFC;
  border-bottom-color: rgba(0,0,0,.07);
}
[data-theme="light"] .console-title { color: #64748B; }
[data-theme="light"] .incident-row  { border-bottom-color: rgba(0,0,0,.05); }
[data-theme="light"] .incident-row:hover { background: rgba(0,0,0,.02); }
[data-theme="light"] .ir-type  { color: #1E293B; }
[data-theme="light"] .ir-meta  { color: #475569; }
[data-theme="light"] .console-footer {
  background: rgba(225,29,46,.04);
  border-top-color: rgba(225,29,46,.12);
}
[data-theme="light"] .cf-val { color: #0F172A; }
[data-theme="light"] .cf-lbl { color: #475569; }
[data-theme="light"] .cf-divider { background: rgba(0,0,0,.08); }

/* Response phases */
[data-theme="light"] .phase-title { color: #0F172A; }
[data-theme="light"] .phase-desc  { color: #475569; }
[data-theme="light"] .phase-connector { background: rgba(225,29,46,.2); }
/* phase-num and cta on light tinted backgrounds need darker red */
[data-theme="light"] .phase-num        { color: #b91c1c; }
[data-theme="light"] .breach-cta-link  { color: #b91c1c; }

/* ── Breach console severity — light bg needs dark text ─────── */
[data-theme="light"] .sev-critical { color: #9b1c1c; }
[data-theme="light"] .sev-high     { color: #92400e; }
[data-theme="light"] .sev-med      { color: #3730a3; }
[data-theme="light"] .sev-ok       { color: #065f46; }
[data-theme="light"] .ir-timer     { color: #b91c1c; }
[data-theme="light"] .ir-timer-done { color: #065f46; }

/* ── Pipeline & scanner panels: always dark bg — lock to bright values ── */
[data-theme="light"] .panel-title          { color: #94a3b8; }
[data-theme="light"] .ep-name              { color: #94a3b8; }
[data-theme="light"] .ep-done  .ep-name,
[data-theme="light"] .ep-active .ep-name   { color: #e2e8f0; }
[data-theme="light"] .ep-tag               { color: #7b90a8; }
[data-theme="light"] .ep-active .ep-num    { color: #ff5277; }
[data-theme="light"] .ep-badge-active      { color: #ff5277; }
[data-theme="light"] .ep-badge-pending     { color: #7b90a8; }
[data-theme="light"] .ep-active .ep-tag    { color: #ff5277; }
[data-theme="light"] .scan-result-label    { color: #94a3b8; }

/* ── Reds on light tinted backgrounds ───────────────────────── */
[data-theme="light"] .section-eyebrow  { color: #b91c1c; }
[data-theme="light"] .about-strip-cta  { color: #b91c1c; }
[data-theme="light"] .logo-accent      { color: #b91c1c; }

/* ── Embedded Security section ──────────────────────────────── */
[data-theme="light"] .embedded-card {
  background: #FFFFFF;
  border-color: rgba(225,29,46,.15);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
[data-theme="light"] .embedded-card:hover {
  border-color: rgba(225,29,46,.35);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
[data-theme="light"] .emb-title { color: #0F172A; }
[data-theme="light"] .emb-desc  { color: #475569; }
[data-theme="light"] .emb-list li { color: #64748B; }

/* ── Services catalog (archetypes) ──────────────────────────── */
[data-theme="light"] .catalog-service-card {
  background: #FFFFFF;
  border-color: rgba(225,29,46,.12);
}
[data-theme="light"] .catalog-service-card:hover {
  border-color: rgba(225,29,46,.3);
}
[data-theme="light"] .csvc-name { color: #0F172A; }
[data-theme="light"] .csvc-desc { color: #475569; }
[data-theme="light"] .svc-tag   { color: #64748B; background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); }
[data-theme="light"] .catalog-service-item span:last-child { color: #334155; }
[data-theme="light"] .compliance-svc-item { color: #334155; }

/* Threat intel cards (breach response capability cards) */
[data-theme="light"] .intel-card {
  background: #FFFFFF;
  border-color: rgba(225,29,46,.12);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
[data-theme="light"] .intel-card-title { color: #0F172A; }
[data-theme="light"] .intel-card-desc  { color: #475569; }

/* ── Hero Trust Strip ───────────────────────────────────────────────── */
.hero-trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(240,240,245,.75);
  padding: .3rem .7rem;
  border: 1px solid rgba(225,29,46,.2);
  border-radius: var(--radius-full);
  background: rgba(225,29,46,.06);
  white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.trust-badge:hover {
  border-color: rgba(225,29,46,.45);
  background: rgba(225,29,46,.12);
  color: #fff;
}

.trust-badge-primary {
  background: rgba(225,29,46,.14);
  border-color: rgba(225,29,46,.45);
  color: #FF2D55;
  font-weight: 700;
}

.trust-badge-live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #34D399;
  border-color: rgba(52,211,153,.25);
  background: rgba(52,211,153,.06);
}
.trust-badge-live:hover {
  border-color: rgba(52,211,153,.5);
  background: rgba(52,211,153,.1);
  color: #34D399;
}

.trust-badge-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.trust-badge-divider {
  width: 1px;
  height: 14px;
  background: rgba(225,29,46,.2);
  flex-shrink: 0;
}

/* Light mode overrides */
[data-theme="light"] .trust-badge {
  color: #475569;
  border-color: rgba(225,29,46,.2);
  background: rgba(225,29,46,.04);
}
[data-theme="light"] .trust-badge:hover { color: #0F172A; }
[data-theme="light"] .trust-badge-primary {
  color: #E11D2E;
  background: rgba(225,29,46,.08);
  border-color: rgba(225,29,46,.35);
}
[data-theme="light"] .trust-badge-live {
  color: #059669;
  border-color: rgba(5,150,105,.25);
  background: rgba(5,150,105,.05);
}
[data-theme="light"] .trust-badge-live:hover { color: #059669; }
[data-theme="light"] .trust-badge-divider { background: rgba(0,0,0,.1); }

/* ── Vulnerability Radar Popup ──────────────────────────────────────── */
#vuln-popup {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity .18s ease, transform .18s ease;
}
#vuln-popup.vp-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vp-inner {
  width: 280px;
  background: rgba(8, 8, 12, 0.96);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  backdrop-filter: blur(12px);
}

.vp-header {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.vp-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: rgba(255,255,255,.45);
  flex: 1;
}
.vp-sev {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: .15rem .45rem;
  border: 1px solid;
  border-radius: 4px;
}
.vp-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  font-size: .8rem;
  padding: 0 .2rem;
  line-height: 1;
  transition: color .15s;
}
.vp-close:hover { color: #fff; }

#vp-radar {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.vp-name {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-align: center;
  line-height: 1.3;
}

.vp-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

.vp-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  overflow: hidden;
}
.vp-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: #FF2D55;
  transition: width .25s linear, background .4s ease;
}

.vp-fix {
  font-size: .72rem;
  color: #00FF94;
  text-align: center;
  min-height: 1em;
  font-family: 'JetBrains Mono', monospace;
}

/* ── About Strip Section ─────────────────────────────────────────────── */
.about-strip-section {
  padding: 5rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .about-strip-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.about-strip-left .section-eyebrow { margin-bottom: .75rem; }

.about-strip-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -.02em;
}

.about-strip-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-strip-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 560px) {
  .about-strip-credentials { grid-template-columns: 1fr; }
}

.asc-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  background: rgba(225,29,46,.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color .2s, background .2s;
}
.asc-item:hover {
  border-color: rgba(225,29,46,.3);
  background: rgba(225,29,46,.07);
}

.asc-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}
.asc-icon svg { width: 100%; height: 100%; }

.asc-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.asc-label {
  font-size: .825rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.asc-sub {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap .2s;
}
.about-strip-cta:hover { gap: .6rem; }

/* ═══════════════════════════════════════════════════════════════════
   SERVICE SUNBURST SECTION
   ═══════════════════════════════════════════════════════════════════ */

/* ── Sunburst section ──────────────────────────────────────────── */
.sunburst-section {
  position: relative;
  overflow: hidden;
}

/* Faint grid overlay for the whole section */
.sunburst-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225,29,46,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,29,46,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.sunburst-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

/* Canvas wrap — dark orb surface */
.sunburst-canvas-wrap {
  flex: 0 0 auto;
  width: min(540px, 100%);
  position: relative;
}

/* Outer ambient glow ring behind the canvas */
.sunburst-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,46,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sunburst-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}

/* ── Info panel ─────────────────────────────────────────────────── */
.sb-panel {
  flex: 1 1 300px;
  min-height: 280px;
  background: rgba(6, 2, 12, 0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

/* Coloured top accent line driven by JS inline var */
.sb-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--bcolor, rgba(225,29,46,0.8));
  opacity: 0.7;
}

.sb-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  gap: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

.sb-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--bcolor, rgba(225,29,46,.4));
  background: color-mix(in srgb, var(--bcolor, #E11D2E) 10%, transparent);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1rem;
}

.sb-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px currentColor;
}

.sb-panel-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.sb-panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sb-panel-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.18s;
}

.sb-panel-list li:hover { color: var(--text); }

.sb-svc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.sb-svc-more {
  font-size: 0.77rem;
  color: var(--text-muted);
  opacity: 0.55;
  padding-left: 1rem;
}

.sb-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--lcolor, var(--primary));
  text-decoration: none;
  transition: gap 0.2s, opacity 0.2s;
}

.sb-panel-link:hover { gap: 0.6rem; opacity: 0.85; }

/* ── Legend ─────────────────────────────────────────────────────── */
.sb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  justify-content: center;
  padding-top: 0.5rem;
}

.sb-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.sb-legend-item:hover,
.sb-legend-item.active {
  color: var(--text);
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}

.sb-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}

.sb-legend-all {
  font-weight: 600;
  color: var(--primary);
  border-color: rgba(225,29,46,.22);
}

.sb-legend-all:hover {
  background: rgba(225,29,46,.06);
  border-color: rgba(225,29,46,.4);
  box-shadow: 0 0 12px rgba(225,29,46,.12);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sunburst-layout {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .sunburst-canvas-wrap {
    width: min(460px, 100%);
  }
}

@media (max-width: 540px) {
  .sunburst-canvas-wrap {
    width: 100%;
    max-width: 360px;
  }
  .sb-panel {
    min-height: auto;
    padding: 1.5rem;
  }
}

/* ── Light mode overrides ───────────────────────────────────────── */
[data-theme="light"] .sb-panel {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .sb-legend-item:hover,
[data-theme="light"] .sb-legend-item.active {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .sunburst-canvas-wrap::before {
  background: radial-gradient(circle, rgba(225,29,46,0.06) 0%, transparent 70%);
}

/* ── Service detail view ────────────────────────────────────────── */
.sb-panel-svc-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.5rem 0 0.85rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sb-panel-svc-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.sb-panel-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s, gap 0.18s;
}
.sb-panel-back:hover { color: var(--text); gap: 0.5rem; }

/* ============================================================
/* ============================================================
   MOBILE DRAWER — MEGA MENU ACCORDION
   Scoped to .mobile-drawer so desktop mega panel is unaffected.
   ============================================================ */
.mobile-drawer .svc-mega-panel {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  box-shadow: none !important;
  border: none !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.18) !important;
  padding: 0 !important;
  display: none !important;
  max-height: none !important;
  overflow: visible !important;
  top: auto !important;
  left: auto !important;
}
.mobile-drawer .nav-dropdown.open > .svc-mega-panel { display: block !important; }
.mobile-drawer .svc-mega-panel::before { display: none !important; }

.mobile-drawer .svc-mega-body { display: block !important; padding: 0 !important; }
.mobile-drawer .svc-mega-group { padding: 0 !important; border-right: none !important; border-top: none !important; display: block !important; }

.mobile-drawer .svc-mega-panel .svc-cat { margin-bottom: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.05) !important; }
.mobile-drawer .svc-mega-panel .svc-cat:last-child { border-bottom: none !important; }

.mobile-drawer .svc-mega-panel .svc-cat-head {
  display: flex !important; align-items: center !important; gap: 0.625rem !important;
  padding: 0.7rem 1.25rem !important; cursor: pointer; user-select: none;
  border-radius: 0 !important; transition: background 0.15s;
}
.mobile-drawer .svc-mega-panel .svc-cat-head:hover { background: rgba(255,255,255,0.03); }
.mobile-drawer .svc-mega-panel .svc-cat.open > .svc-cat-head { background: rgba(225,29,46,0.05); }

.mobile-drawer .svc-mega-panel .svc-cat-head::after {
  content: ''; width: 12px; height: 12px; margin-left: auto; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' stroke='%23557090' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2 4 6 8 10 4'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  transition: transform 0.2s;
}
.mobile-drawer .svc-mega-panel .svc-cat.open > .svc-cat-head::after { transform: rotate(180deg); }

.mobile-drawer .svc-mega-panel .svc-cat-icon {
  width: 22px !important; height: 22px !important;
  background: rgba(225,29,46,0.1) !important; border: 1px solid rgba(225,29,46,0.22) !important;
  border-radius: 4px !important; display: flex !important; align-items: center !important;
  justify-content: center !important; color: var(--primary) !important; flex-shrink: 0;
}
.mobile-drawer .svc-mega-panel .svc-cat-icon svg { width: 12px !important; height: 12px !important; }
.mobile-drawer .svc-mega-panel .svc-cat-name { font-size: 0.79rem !important; font-weight: 600 !important; color: #c8dae8 !important; }
.mobile-drawer .svc-mega-panel .svc-cat-arrow { display: none !important; }

.mobile-drawer .svc-mega-panel .svc-cat-links { display: none !important; flex-direction: column; padding: 0 0 0.5rem 0 !important; gap: 0 !important; }
.mobile-drawer .svc-mega-panel .svc-cat.open > .svc-cat-links { display: flex !important; }
.mobile-drawer .svc-mega-panel .svc-cat-link { padding: 0.42rem 1.25rem 0.42rem 3.5rem !important; font-size: 0.775rem !important; color: #4d7a96 !important; border-radius: 0 !important; line-height: 1.45 !important; }
.mobile-drawer .svc-mega-panel .svc-cat-link:hover { color: #8bbcd6 !important; background: rgba(255,255,255,0.04) !important; }

.mobile-drawer .svc-mega-footer { flex-direction: column !important; gap: 0.625rem !important; padding: 0.875rem 1.25rem !important; border-top: 1px solid rgba(255,255,255,0.06) !important; background: rgba(0,0,0,0.25) !important; align-items: flex-start !important; }
.mobile-drawer .svc-mega-all-btn { font-size: 0.8rem !important; padding: 0.3rem 0 !important; gap: 0.5rem !important; }
.mobile-drawer .svc-mega-stats { display: none !important; }

/* Light mode */
[data-theme="light"] .mobile-drawer { background: #ffffff; border-left-color: rgba(0,0,0,0.09); }
[data-theme="light"] .mobile-drawer-list > li { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .mobile-drawer .nav-link { color: #1a2e42; }
[data-theme="light"] .mobile-drawer .nav-link:hover,
[data-theme="light"] .mobile-drawer .nav-dropdown.open > .nav-dropdown-toggle { background: rgba(0,0,0,0.03); color: var(--primary); }
[data-theme="light"] .mobile-drawer .nav-dropdown-menu { background: rgba(0,0,0,0.025) !important; border-top-color: rgba(0,0,0,0.07) !important; }
[data-theme="light"] .mobile-drawer .dropdown-item { color: #1a2e42; }
[data-theme="light"] .mobile-drawer .svc-mega-panel { background: rgba(0,0,0,0.025) !important; border-top-color: rgba(0,0,0,0.07) !important; }
[data-theme="light"] .mobile-drawer .svc-mega-panel .svc-cat { border-bottom-color: rgba(0,0,0,0.07) !important; }
[data-theme="light"] .mobile-drawer .svc-mega-panel .svc-cat-name { color: #1a3a52 !important; }
[data-theme="light"] .mobile-drawer .svc-mega-panel .svc-cat-link { color: #4a7a9b !important; }
[data-theme="light"] .mobile-drawer .svc-mega-panel .svc-cat-link:hover { color: #1a5a8a !important; background: rgba(0,0,0,0.04) !important; }
[data-theme="light"] .mobile-drawer .svc-mega-footer { background: rgba(0,0,0,0.03) !important; border-top-color: rgba(0,0,0,0.07) !important; }
[data-theme="light"] .mobile-drawer .nav-mobile-cta { border-color: rgba(0,0,0,0.08); }

/* ── Cookie Consent Banner ────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.125rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 -8px 32px rgba(0,0,0,.35);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
#cookie-banner[hidden] { display: none !important; }
#cookie-banner.cookie-banner--visible { transform: translateY(0); }
.cookie-banner-text {
  flex: 1;
  min-width: 220px;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.cookie-banner-text a { color: var(--primary); text-decoration: none; }
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .625rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn { padding: .5rem 1.125rem; border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: var(--transition-fast); white-space: nowrap; }
.cookie-btn--accept { background: var(--primary); color: #fff; }
.cookie-btn--accept:hover { background: var(--primary-light); }
.cookie-btn--reject { background: transparent; color: var(--text-muted); border-color: var(--border); }
.cookie-btn--reject:hover { border-color: var(--border-bright); color: var(--text); }
@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ── Privacy Portal CTA ───────────────────────────────────────────────────── */
.privacy-portal-cta {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.privacy-portal-cta-text { flex: 1; min-width: 180px; }
.privacy-portal-cta-text strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: .25rem; }
.privacy-portal-cta-text p { margin: 0; font-size: .875rem; color: var(--text-muted); }
.privacy-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.privacy-portal-btn:hover { background: var(--primary-light); }
[data-theme="light"] .privacy-portal-cta { background: var(--surface); }
