﻿/* FraudDefense â€” Enterprise Design System (Light Theme) */
:root {
  --navy-950: #f8fafc;
  --navy-900: #f1f5f9;
  --navy-800: #ffffff;
  --navy-700: #1e293b;
  --slate-400: #64748b;
  --slate-300: #475569;
  --slate-200: #334155;
  --slate-100: #e2e8f0;
  --white: #ffffff;
  --text-heading: #0f172a;
  --text-body: #475569;
  --accent: #ef4444;
  --accent-dim: rgba(239, 68, 68, 0.10);
  --accent-secondary: #fb7185;
  --danger: #dc2626;
  --warning: #d97706;
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  --gradient-hero-dark: linear-gradient(160deg, #020617 0%, #0f172a 45%, #1e293b 100%);
  --gradient-accent: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  --gradient-text: linear-gradient(135deg, #0f172a 0%, #ef4444 55%, #fb7185 100%);
  --gradient-text-hero: linear-gradient(135deg, #f8fafc 0%, #ef4444 55%, #fb7185 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(239, 68, 68, 0.10), transparent);
  --gradient-glow-hero: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(239, 68, 68, 0.22), transparent 65%);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.1);
  --surface-muted: rgba(241, 245, 249, 0.9);
  --code-bg: #0f172a;
  --code-header-bg: #1e293b;
  --code-text: #e2e8f0;
  --code-muted: #94a3b8;
  --code-border: rgba(148, 163, 184, 0.2);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--navy-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Typography */
.display-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.lead-text {
  font-size: var(--text-lg);
  color: var(--slate-400);
  max-width: 36rem;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--slate-400);
  max-width: 42rem;
}

.gradient-text {
  font-family: var(--font-serif);
  font-style: italic;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

em.gradient-text {
  font-style: italic;
}

/* Layout */
.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-pad-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bg-elevated {
  background: var(--navy-900);
}

/* Dark band sections (homepage + selective blocks) */
.section-dark {
  --text-heading: #f8fafc;
  --text-body: #94a3b8;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --glass-bg: rgba(30, 41, 59, 0.72);
  --glass-border: rgba(148, 163, 184, 0.14);
  --surface-muted: rgba(15, 23, 42, 0.55);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
  background: #0f172a;
  color: var(--text-body);
}

.section-dark .gradient-text {
  background: var(--gradient-text-hero);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-dark .btn-outline-light {
  border-color: rgba(248, 250, 252, 0.3);
  color: #f8fafc !important;
}

.section-dark .btn-outline-light:hover {
  background: rgba(248, 250, 252, 0.08);
  border-color: #f8fafc;
  color: #f8fafc !important;
}

.section-dark .mini-sol {
  background: var(--surface-muted);
  color: var(--text-body);
}

.section-dark .mini-sol:hover {
  color: var(--text-heading);
}

.section-dark .feature-chip {
  background: var(--surface-muted);
  color: var(--text-body);
}

.section-dark .feature-chip:hover {
  color: var(--text-heading);
}

.section-dark .solution-panels p {
  color: var(--slate-400);
}

.section-dark .cta-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(30, 41, 59, 0.9) 55%);
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

/* Glass cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: var(--shadow-lg);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0.75rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--glass-border), 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 0.5rem 0;
}

.navbar {
  padding: 0;
}

.navbar-brand {
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 10px;
  color: var(--navy-950);
  font-size: 1.1rem;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--accent);
}

.nav-link {
  color: var(--text-body) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem !important;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text-heading) !important;
  background: rgba(15, 23, 42, 0.05);
}

.navbar-toggler {
  color: var(--text-heading);
}

.navbar-toggler-icon {
  filter: none;
}

/* Mega menu */
.mega-dropdown .dropdown-menu {
  margin-top: 0.5rem;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  min-width: min(90vw, 900px);
}

.mega-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.mega-item:hover {
  background: rgba(239, 68, 68, 0.1);
}

.mega-item i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.mega-item strong {
  display: block;
  color: var(--text-heading);
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}

.mega-item span {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.mega-item.compact {
  padding: 0.75rem;
}

/* Buttons */
.btn-primary-gradient {
  background: var(--gradient-accent);
  border: none;
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.35);
  filter: brightness(1.05);
  color: var(--white) !important;
}

.btn-ghost {
  color: var(--text-body) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.btn-ghost:hover {
  color: var(--text-heading) !important;
  background: rgba(15, 23, 42, 0.06);
}

.btn-outline-light {
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text-heading) !important;
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--text-heading);
  color: var(--text-heading) !important;
}

.text-muted {
  color: var(--slate-400) !important;
}

/* Hero */
.hero {
  position: relative;
  padding-top: calc(5rem + 80px);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0f172a;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(239, 68, 68, 0.15), transparent 55%);
  pointer-events: none;
}

.hero .container-xl {
  position: relative;
  z-index: 1;
}

.hero .hero-title,
.hero .display-title {
  color: #f8fafc;
}

.hero .hero-sub,
.hero .lead-text {
  color: #94a3b8;
}

.hero .gradient-text {
  background: var(--gradient-text-hero);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .stat-value {
  color: #f8fafc;
}

.hero .stat-label,
.hero .badge-trust {
  color: #94a3b8;
}

.hero .hero-badge {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.hero .btn-outline-light {
  border-color: rgba(248, 250, 252, 0.35);
  color: #f8fafc !important;
}

.hero .btn-outline-light:hover {
  background: rgba(248, 250, 252, 0.08);
  border-color: #f8fafc;
  color: #f8fafc !important;
}

/* Transparent header over home dark hero only */
body[data-page="home"] .site-header:not(.scrolled) {
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .site-header:not(.scrolled) .brand-text {
  color: #f8fafc;
}

body[data-page="home"] .site-header:not(.scrolled) .nav-link {
  color: rgba(248, 250, 252, 0.82) !important;
}

body[data-page="home"] .site-header:not(.scrolled) .nav-link:hover,
body[data-page="home"] .site-header:not(.scrolled) .nav-link:focus,
body[data-page="home"] .site-header:not(.scrolled) .nav-link.active {
  color: #f8fafc !important;
  background: rgba(248, 250, 252, 0.08);
}

body[data-page="home"] .site-header:not(.scrolled) .btn-ghost {
  color: rgba(248, 250, 252, 0.9) !important;
}

body[data-page="home"] .site-header:not(.scrolled) .btn-ghost:hover {
  color: #f8fafc !important;
  background: rgba(248, 250, 252, 0.08);
}

body[data-page="home"] .site-header:not(.scrolled) .navbar-toggler-icon {
  filter: invert(1);
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5%, 5%); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.pulse-dot.sm {
  width: 6px;
  height: 6px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-stats .stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.stat-number {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.1em;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}

.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin: 0;
  line-height: 1.4;
  max-width: 11rem;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--slate-400);
  font-weight: 500;
}

.badge-trust i {
  color: var(--accent);
}

/* Dashboard preview */
.dashboard-stack {
  position: relative;
}

.dashboard-main {
  padding: 0;
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  background: var(--surface-muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #b91c1c; }

.dashboard-title {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-left: 0.5rem;
}

.live-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.dashboard-body {
  padding: 1.25rem;
}

#miniHeatmap {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.metric-pill {
  padding: 0.75rem;
  border-radius: 10px;
  text-align: center;
  background: var(--surface-muted);
}

.metric-pill span {
  display: block;
  font-size: 0.6875rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-pill strong {
  font-size: 1.125rem;
  color: var(--text-heading);
}

.metric-pill.danger strong { color: var(--danger); }
.metric-pill.warning strong { color: var(--warning); }
.metric-pill.success strong { color: var(--accent); }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.25rem;
}

.floating-card small {
  display: block;
  font-size: 0.6875rem;
  color: var(--slate-400);
}

.floating-card strong {
  color: var(--text-heading);
  font-size: 1rem;
}

.fc-1 { top: -1rem; right: -0.5rem; animation-delay: 0s; }
.fc-2 { bottom: 30%; left: -1.5rem; animation-delay: -2s; }
.fc-3 { bottom: -0.5rem; right: 10%; animation-delay: -4s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.attack-feed {
  padding: 1rem 1.25rem;
}

.feed-header {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feed-header i {
  color: var(--accent);
}

.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 140px;
  overflow: hidden;
}

.feed-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  animation: feedSlide 0.4s ease-out;
}

@keyframes feedSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.feed-list .feed-type {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.feed-type.bot { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.feed-type.vpn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.feed-type.fraud { background: rgba(239, 68, 68, 0.16); color: #b91c1c; }

/* Logos */
.logos-label {
  font-size: 0.875rem;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}

.logo-item {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-400);
  opacity: 0.6;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.logo-item:hover {
  opacity: 1;
  color: var(--slate-300);
}

/* Services */
.service-card {
  padding: 2rem;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.service-card > p {
  font-size: 0.9375rem;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  font-size: 0.875rem;
  color: var(--text-body);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Solutions */
.solution-nav .nav-link {
  color: var(--slate-400) !important;
  border-radius: 100px;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.solution-nav .nav-link.active {
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
  border-color: rgba(239, 68, 68, 0.35);
}

.solution-panels h3 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.problem-label,
.solution-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.problem-label { color: var(--danger); }
.solution-label { color: var(--accent); }

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.kpi-chip {
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.kpi-chip strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
}

.kpi-chip span {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.workflow-diagram {
  padding: 2rem;
}

.wf-step {
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.wf-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--glass-border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.75rem;
  color: var(--slate-400);
}

.wf-step.highlight {
  background: var(--accent-dim);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--text-heading);
}

.wf-step.highlight span {
  background: var(--accent);
  color: var(--white);
}

.wf-arrow {
  text-align: center;
  color: var(--slate-400);
  padding: 0.5rem;
}

.mini-sol {
  padding: 0.875rem 1rem;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  text-align: center;
  transition: border-color var(--transition), color var(--transition);
}

.mini-sol:hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--text-heading);
}

/* Industries */
.industry-card {
  padding: 1.75rem;
  height: 100%;
  transition: transform var(--transition);
}

.industry-card:hover {
  transform: translateY(-4px);
}

.industry-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.industry-card h3 {
  font-size: 1.125rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.industry-card p {
  font-size: 0.9375rem;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.industry-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

/* API section */
.api-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.api-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: var(--text-base);
  color: var(--text-body);
}

.api-benefits i {
  color: var(--accent);
  font-size: 1.125rem;
}

.code-window {
  overflow: hidden;
}

.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--code-border);
  background: var(--code-header-bg);
}

.code-tab {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--code-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  font-family: inherit;
}

.code-tab:hover,
.code-tab.active {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.15);
}

.code-block {
  margin: 0;
  padding: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-text);
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 0 0 12px 12px;
}

.code-block.glass-card {
  background: var(--code-bg);
  border-color: var(--code-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.code-block code {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  white-space: pre;
  color: inherit;
}

/* Threat map */
.map-container {
  position: relative;
  padding: 1rem;
  min-height: 400px;
}

#worldHeatmap {
  width: 100%;
  height: 380px;
  display: block;
  border-radius: 8px;
}

.map-overlay-stats {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.map-stat span {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

.map-stat small {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.threat-categories,
.event-stream {
  padding: 1.5rem;
}

.threat-categories h3,
.event-stream h3 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.threat-bar {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
}

.threat-bar span:first-child {
  color: var(--slate-400);
}

.threat-bar .bar {
  height: 6px;
  background: var(--surface-muted);
  border-radius: 100px;
  overflow: hidden;
}

.threat-bar .fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 100px;
  transition: width 1s ease-out;
}

.stream-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px;
  overflow: hidden;
}

.stream-list li {
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--slate-400);
}

.stream-list li strong {
  color: var(--accent);
}

/* Features grid */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.feature-chip {
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: all var(--transition);
}

.feature-chip:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--text-heading);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* Trust */
.compliance-badges {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.compliance-item i {
  font-size: 1.75rem;
  color: var(--accent);
}

.compliance-item strong {
  display: block;
  color: var(--text-heading);
}

.compliance-item span {
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.testimonial {
  padding: 2rem;
}

.testimonial .stars {
  color: var(--accent-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
}

.testimonial-author strong {
  display: block;
  color: var(--text-heading);
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.metric-card {
  padding: 1.25rem;
}

.metric-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
}

.metric-card span {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* Pricing */
.pricing-card {
  padding: 2rem;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2), var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.25rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.price {
  margin-bottom: 0.5rem;
}

.price .currency {
  font-size: 1.25rem;
  color: var(--slate-400);
  vertical-align: top;
}

.price .amount {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

.price .period {
  font-size: 1rem;
  color: var(--slate-400);
}

.custom-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
}

.price-desc {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-card ul li {
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-body);
}

.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--accent-dim);
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 700;
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.resource-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--slate-300);
  transition: all var(--transition);
}

.resource-link i {
  font-size: 1.5rem;
  color: var(--accent);
}

.resource-link:hover {
  color: var(--white);
  transform: translateY(-3px);
}

/* FAQ */
.faq-accordion .accordion-item {
  margin-bottom: 0.75rem;
  border: none;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  background: transparent;
  color: var(--text-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--accent);
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--slate-400);
  font-size: var(--text-base);
}

/* CTA */
.cta-section .cta-box {
  padding: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(30, 41, 59, 0.95) 55%);
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  --text-heading: #f8fafc;
  --text-body: #94a3b8;
  --slate-400: #94a3b8;
  color: var(--text-body);
}

.site-footer .brand-text,
.site-footer h4 {
  color: var(--text-heading);
}

.footer-desc {
  font-size: 0.9375rem;
  color: var(--slate-400);
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.site-footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-footer ul a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.site-footer ul a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  border-radius: 10px;
  color: var(--text-body);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.footer-bottom a {
  color: var(--slate-400);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.15s; }

/* Responsive */
@media (max-width: 991.98px) {
  .mega-dropdown .dropdown-menu {
    min-width: 100%;
    position: static !important;
    transform: none !important;
    box-shadow: none;
    margin-top: 0;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
  }

  .floating-card {
    display: none;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .solution-nav {
    flex-direction: column;
  }

  .map-overlay-stats {
    position: static;
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

