/* ==========================================================================
   CYFORTA ENTERPRISE DESIGN SYSTEM
   Autonomous Offensive Security Platform
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Lexend:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-primary: #080C14;
  --bg-secondary: #0D1322;
  --bg-tertiary: #121A2F;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --accent-indigo: #6366F1;
  --accent-indigo-hover: #4F46E5;
  --accent-indigo-light: #818CF8;
  --accent-indigo-glow: rgba(99, 102, 241, 0.4);
  --accent-indigo-dim: rgba(99, 102, 241, 0.12);

  --accent-emerald: #10B981;
  --accent-emerald-hover: #059669;
  --accent-emerald-light: #34D399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.4);
  --accent-emerald-dim: rgba(16, 185, 129, 0.12);

  --accent-ruby: #EF4444;
  --accent-ruby-dim: rgba(239, 68, 68, 0.12);
  --accent-ruby-glow: rgba(239, 68, 68, 0.4);
  --accent-amber: #F59E0B;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #94A3B8; /* Elevated to 7.5:1 contrast on #080C14 (WCAG AAA) */
  --text-dim: #7E8B9F;   /* Elevated to 4.8:1 contrast on #080C14 (WCAG AA) */

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-indigo: #1E1B4B;
  --border-indigo-glow: rgba(99, 102, 241, 0.28);
  --border-emerald-dim: rgba(16, 185, 129, 0.3);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Layout */
  --site-max-width: 1240px;
  --mobile-pad: clamp(1rem, 4vw, 2.5rem);
  --section-spacing: clamp(3.75rem, 7vw, 7.5rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Safe Area Insets for Modern Mobile Notches */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --- Accessibility & Focus Management --- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.5rem;
  background: var(--accent-indigo);
  color: #FFFFFF;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 10000;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-indigo-glow);
  border: 2px solid #FFFFFF;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1.5rem;
  outline: 3px solid var(--accent-emerald);
  outline-offset: 4px;
}

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

/* Clear, high-contrast keyboard focus indicators */
:focus-visible {
  outline: 2px solid var(--accent-indigo-light);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-indigo-light);
  outline-offset: 3px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Body scroll lock when mobile navigation menu is active */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Ambient Background Glow Effect */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Custom Minimalist Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-indigo);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo-hover);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-indigo) var(--bg-primary);
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

code, pre {
  font-family: var(--font-mono);
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mobile-pad);
  padding-right: var(--mobile-pad);
  position: relative;
  z-index: 1;
}

.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
  scroll-margin-top: 90px;
}

section[id],
main[id] {
  scroll-margin-top: 90px;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 1rem;
}

.section-tag.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald-light);
  border-color: rgba(16, 185, 129, 0.25);
}

.section-tag.ruby {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.section-tag.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

/* --- Glassmorphism Card (.glass-card) --- */
.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(99, 102, 241, 0.15);
}

/* --- Button Component Classes --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, #4F46E5 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7073F8 0%, #5850EC 100%);
  box-shadow: 0 0 24px var(--accent-indigo-glow), 0 4px 14px rgba(99, 102, 241, 0.4);
  transform: translateY(-1.5px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-emerald);
  border: 1.5px solid var(--accent-emerald);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 20px var(--accent-emerald-glow);
  transform: translateY(-1.5px);
  color: #FFFFFF;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* --- Terminal Component Classes (.terminal-container) --- */
.terminal-container {
  background: #0B101D;
  border: 1px solid var(--border-indigo);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(99, 102, 241, 0.15);
  font-family: var(--font-mono);
}

.terminal-header {
  background: #080C16;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background-color: #EF4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.dot-yellow { background-color: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.dot-green { background-color: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }

.terminal-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
  background: #080D1A;
}

/* --- Sticky Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), padding var(--transition-normal), border-bottom-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-indigo);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: clamp(7.5rem, 14vw, 10.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--accent-indigo-light);
  font-weight: 500;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #FFFFFF 30%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline .gradient-highlight {
  background: linear-gradient(135deg, var(--accent-indigo-light) 0%, var(--accent-emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 840px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* --- Hero Stats Strip --- */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto 3rem auto;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-indigo-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-number.emerald {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.hero-trust-bar {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trust-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-badge-img {
  height: 38px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.trust-badge-img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* --- AI Threat Section (.threat-card) --- */
.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.threat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, rgba(13, 19, 34, 0.6) 100%);
}

.threat-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(239, 68, 68, 0.15);
}

.threat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.threat-card:nth-child(2) .threat-icon-wrap {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #FBBF24;
}

.threat-card:nth-child(3) .threat-icon-wrap {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.3);
  color: #818CF8;
}

.threat-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.threat-card .threat-subtitle {
  font-size: 0.825rem;
  color: var(--accent-indigo-light);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.threat-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.threat-badge-row {
  margin-top: auto;
}

.threat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.threat-card:nth-child(2) .threat-pill {
  background: rgba(245, 158, 11, 0.1);
  color: #FDE68A;
  border-color: rgba(245, 158, 11, 0.3);
}

.threat-card:nth-child(3) .threat-pill {
  background: rgba(99, 102, 241, 0.1);
  color: #C7D2FE;
  border-color: rgba(99, 102, 241, 0.3);
}

/* --- Frontier Agentic Pipeline Grid --- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.pipeline-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pipeline-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pipeline-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-indigo-light);
}

.pipeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pipeline-card p {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pipeline-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pipeline-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.pipeline-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* --- Team vs Cyforta Comparison Matrix --- */
.team-matrix-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-indigo);
  background: rgba(13, 19, 34, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
}

.team-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.team-matrix-table th,
.team-matrix-table td {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-matrix-table th {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(8, 12, 20, 0.7);
}

.team-matrix-table th.col-cyforta {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border-top: 3px solid var(--accent-emerald);
}

.team-matrix-table tr:last-child td {
  border-bottom: none;
}

.team-matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.team-matrix-table td.col-cyforta {
  background: rgba(16, 185, 129, 0.04);
  font-weight: 600;
  color: #FFFFFF;
}

.team-dim-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}

.team-dim-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-legacy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #F87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
  line-height: 1.4;
}

.badge-cyforta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 600;
  line-height: 1.4;
}

/* --- OWASP Benchmark Table Section --- */
.benchmark-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-indigo);
  background: rgba(13, 19, 34, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.benchmark-table th,
.benchmark-table td {
  padding: 1.3rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.benchmark-table th {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(8, 12, 20, 0.6);
}

.benchmark-table th.col-highlight {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border-top: 2px solid var(--accent-emerald);
}

.benchmark-table tr:last-child td {
  border-bottom: none;
}

.benchmark-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.benchmark-table td.col-highlight {
  background: rgba(16, 185, 129, 0.04);
  font-weight: 700;
  color: #FFFFFF;
}

.benchmark-metric-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.score-badge-cyforta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.score-badge-legacy {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

/* --- Multi-Scenario IDE Switcher Section --- */
.ide-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
}

.ide-info-panel h2 {
  margin-bottom: 1rem;
}

.ide-info-panel p {
  margin-bottom: 1.5rem;
}

.ide-feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ide-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.ide-feature-icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.ide-switcher-card {
  background: #080D18;
  border: 1px solid var(--border-indigo);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(99, 102, 241, 0.2);
}

.ide-top-bar {
  background: #060911;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ide-toggle-tabs {
  display: inline-flex;
  background: #0E1528;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ide-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ide-toggle-btn.active.tab-vulnerable {
  background: rgba(239, 68, 68, 0.18);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ide-toggle-btn.active.tab-remediated {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.ide-file-tab {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-container {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 1.25rem 0;
  overflow-x: auto;
  background: #090E1B;
  min-height: 280px;
}

.code-view {
  display: none;
  animation: fadeInCode 0.3s ease-in-out forwards;
}

.code-view.active {
  display: inline-block;
  min-width: 100%;
  width: max-content;
}

@keyframes fadeInCode {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-line {
  display: flex;
  align-items: center;
  padding: 0.2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  border-left: 3px solid transparent;
}

.line-num {
  width: 2.5rem;
  user-select: none;
  color: var(--text-dim);
  text-align: right;
  padding-right: 1.25rem;
  flex-shrink: 0;
}

.line-content {
  flex: 1 0 auto;
  white-space: pre;
  padding-right: 2rem;
}

/* Syntax Highlighting */
.syn-kw { color: #818CF8; font-weight: 600; }
.syn-fn { color: #38BDF8; }
.syn-str { color: #34D399; }
.syn-cm { color: #64748B; font-style: italic; }
.syn-var { color: #F1F5F9; }
.syn-op { color: #F472B6; }

/* Vulnerability and Remediation Code Highlights */
.code-highlight-vuln {
  background: var(--accent-ruby-dim);
  border-left: 3px solid var(--accent-ruby);
}

.code-highlight-remed {
  background: var(--accent-emerald-dim);
  border-left: 3px solid var(--accent-emerald);
}

.ide-status-bar {
  background: #050810;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.status-vuln { color: #F87171; }
.status-remed { color: #34D399; }

/* --- Enterprise Surface Coverage Cards Section --- */
.surface-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.surface-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-indigo-light);
}

.surface-card:nth-child(2) .surface-icon-wrap {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald-light);
}

.surface-card:nth-child(3) .surface-icon-wrap {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38BDF8;
}

.surface-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.surface-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.surface-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.pill-item {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Interactive ROI Calculator Section --- */
.roi-calculator-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.roi-form-card {
  padding: 2.5rem;
}

.roi-input-group {
  margin-bottom: 1.75rem;
}

.roi-input-group:last-child {
  margin-bottom: 0;
}

.roi-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.roi-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.roi-val-badge {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-indigo-light);
  background: rgba(99, 102, 241, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.roi-control-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 1rem;
  align-items: center;
}

.roi-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #1E293B;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  touch-action: manipulation;
}

.roi-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-indigo);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-indigo-glow);
  border: 2px solid #FFFFFF;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.roi-range-slider::-webkit-slider-thumb:hover,
.roi-range-slider:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 18px var(--accent-indigo-glow);
}

.roi-range-slider:focus-visible::-webkit-slider-thumb {
  outline: 3px solid var(--accent-emerald);
  outline-offset: 3px;
}

.roi-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-indigo);
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 12px var(--accent-indigo-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.roi-range-slider:focus-visible::-moz-range-thumb {
  outline: 3px solid var(--accent-emerald);
  outline-offset: 3px;
}

.roi-num-input {
  background: #0B101E;
  border: 1px solid var(--border-indigo);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  outline: none;
  text-align: right;
  width: 100%;
  min-height: 44px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.roi-num-input:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 12px var(--accent-indigo-glow);
}

.roi-results-card {
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(13, 19, 34, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid var(--border-indigo-glow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.roi-metric-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 1.5rem;
}

.roi-metric-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-value-display {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.metric-value-display.savings {
  color: var(--accent-emerald);
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.metric-value-display.hours {
  color: var(--accent-indigo-light);
  text-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.metric-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* --- Pricing Section --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.pricing-card.featured {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(99, 102, 241, 0.2);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: var(--accent-indigo);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.pricing-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* --- FAQ Accordion Section --- */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: var(--bg-glass-hover);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-indigo-light);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-indigo-light);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.5rem 1.75rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Bottom CTA Section --- */
.bottom-cta-card {
  padding: clamp(3rem, 6vw, 5rem) var(--mobile-pad);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(8, 12, 20, 0.9) 70%);
  border: 1px solid var(--border-indigo-glow);
  position: relative;
  overflow: hidden;
}

.bottom-cta-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 100px;
  background: var(--accent-emerald);
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}

.bottom-cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bottom-cta-desc {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

/* --- Footer & Compliance Row --- */
.footer {
  background-color: #050810;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4.5rem 0 2.5rem 0;
}

.compliance-row {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compliance-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.compliance-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.compliance-badges-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.compliance-badge-item {
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.compliance-badge-item:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col p {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  color: #FFFFFF;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: var(--text-muted);
}

.footer-legal-link:hover {
  color: var(--text-primary);
}

/* --- Scroll Fade-in-up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Mobile Utility Helpers --- */
.mobile-only {
  display: none !important;
}

.table-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-indigo-light);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
  :root {
    --section-spacing: 4.5rem;
  }

  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ide-section-grid,
  .roi-calculator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }

  /* Navbar Mobile Drawer */
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-indigo);
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem max(var(--mobile-pad), env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom)) max(var(--mobile-pad), env(safe-area-inset-left));
    border-bottom: 1px solid var(--border-indigo-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    gap: 0.25rem;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideDownMobile 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownMobile {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: #FFFFFF;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-drawer-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Hero Mobile Layout */
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    line-height: 1.18;
  }

  .hero-subheadline {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .trust-badges {
    gap: 1rem;
  }

  .trust-badge-img {
    height: 32px;
    width: auto;
  }

  /* Table Mobile Layout */
  .benchmark-table th,
  .benchmark-table td,
  .team-matrix-table th,
  .team-matrix-table td {
    padding: 1rem 1.1rem;
    font-size: 0.875rem;
  }

  /* IDE Switcher Mobile Layout */
  .ide-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .ide-toggle-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ide-toggle-btn {
    justify-content: center;
    padding: 0.55rem 0.5rem;
    font-size: 0.78rem;
    min-height: 44px;
  }

  .code-container {
    font-size: 0.78rem;
    padding: 1rem 0;
  }

  .code-line {
    padding: 0.15rem 1rem;
  }

  .line-num {
    width: 2rem;
    padding-right: 0.75rem;
  }

  .ide-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
  }

  /* ROI Calculator Mobile Layout */
  .roi-form-card,
  .roi-results-card {
    padding: 1.5rem;
  }

  .roi-control-row {
    grid-template-columns: 1fr 85px;
    gap: 0.75rem;
  }

  .metric-value-display {
    font-size: 2rem;
  }

  /* Pricing Cards Mobile Layout */
  .pricing-card {
    padding: 1.75rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* FAQ Accordion Mobile Layout */
  .faq-question {
    padding: 1.15rem 1.25rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  /* Footer Mobile Layout */
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .compliance-badges-grid {
    gap: 1rem;
  }

  .compliance-badge-item img {
    height: 36px;
    width: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  :root {
    --mobile-pad: 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero-stats-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .glass-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
  }

  .roi-control-row {
    grid-template-columns: 1fr 75px;
    gap: 0.5rem;
  }

  .roi-num-input {
    font-size: 0.85rem;
    padding: 0.45rem 0.5rem;
  }
}

/* Ultra-Compact Screens (<= 360px) */
@media (max-width: 360px) {
  :root {
    --mobile-pad: 0.75rem;
  }

  .hero-headline {
    font-size: 1.65rem;
  }

  .hero-subheadline {
    font-size: 0.9rem;
  }

  .roi-control-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .roi-num-input {
    text-align: left;
  }

  .metric-value-display {
    font-size: 1.65rem;
  }
}

/* --- Accessibility: Reduced Motion (Vestibular & Motion Sensitive Users) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .live-indicator {
    animation: none !important;
  }

  .faq-answer {
    transition: none !important;
  }
}

/* --- Accessibility: High Contrast & Forced Colors Mode --- */
@media (forced-colors: active) {
  .btn,
  .glass-card,
  .terminal-container,
  .ide-switcher-card,
  .faq-item,
  .benchmark-table-wrapper {
    border: 2px solid CanvasText !important;
  }

  .btn-primary {
    background: Highlight !important;
    color: HighlightText !important;
  }

  .code-highlight-vuln,
  .code-highlight-remed {
    border: 2px solid Highlight !important;
  }
}

/* ==========================================================================
   CYFORTA WHITE PAPER & TECHNICAL ARTICLE STYLES
   ========================================================================== */

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent-indigo-light);
}

.breadcrumb-sep {
  color: var(--text-dim);
}

.breadcrumb-current {
  color: var(--accent-indigo-light);
  font-weight: 500;
}

/* --- White Paper Header / Hero --- */
.whitepaper-hero {
  padding-top: clamp(6.5rem, 10vw, 8.5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.wp-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-indigo-light);
  margin-bottom: 0.75rem;
}

.wp-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 960px;
  color: #FFFFFF;
}

.wp-meta-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.wp-meta-text strong {
  color: #FFFFFF;
}

.wp-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* --- Executive Highlights Strip (Clean & Minimal) --- */
.wp-highlights-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(13, 19, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.wp-highlight-card {
  text-align: left;
}

.wp-highlight-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.wp-highlight-num.emerald {
  color: var(--accent-emerald-light);
}

.wp-highlight-num.indigo {
  color: var(--accent-indigo-light);
}

.wp-highlight-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

/* --- Main Layout Grid (Sticky TOC + Article Body) --- */
.whitepaper-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3.5rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
  align-items: flex-start;
}

/* --- Sticky Table of Contents (TOC) --- */
.wp-toc-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.wp-toc-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0 0.5rem 1.25rem;
}

.wp-toc-header {
  margin-bottom: 0.75rem;
}

.wp-toc-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.wp-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wp-toc-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  line-height: 1.4;
  text-decoration: none;
}

.wp-toc-link:hover {
  color: #FFFFFF;
}

.wp-toc-link.active {
  color: var(--accent-emerald-light);
  font-weight: 600;
}

/* --- White Paper Article Content & Typography --- */
.wp-article {
  max-width: 820px;
}

.wp-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 100px;
}

.wp-section:last-child {
  margin-bottom: 0;
}

.wp-section-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFFFFF;
}

.wp-section-heading .heading-anchor {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 400;
  opacity: 0;
  font-size: 0.9em;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.wp-section-heading:hover .heading-anchor {
  opacity: 1;
}

.wp-section-heading .heading-anchor:hover {
  color: var(--accent-indigo-light);
}

.wp-subheading {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.85rem;
  margin-bottom: 0.75rem;
  color: #F1F5F9;
}

.wp-paragraph {
  font-size: 1.025rem;
  line-height: 1.78;
  color: #CBD5E1;
  margin-bottom: 1.15rem;
}

.wp-paragraph:last-child {
  margin-bottom: 0;
}

.wp-paragraph strong {
  color: #FFFFFF;
}

/* Clean Abstract Box */
.wp-abstract-box {
  border-left: 3px solid var(--accent-indigo);
  background: rgba(99, 102, 241, 0.04);
  padding: 1.35rem 1.6rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2.5rem;
}

.wp-abstract-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-indigo-light);
  margin-bottom: 0.5rem;
}

.wp-abstract-text {
  font-size: 1.025rem;
  line-height: 1.78;
  color: #E2E8F0;
  font-style: italic;
  margin: 0;
}

/* Clean Bullet Lists */
.wp-list {
  list-style: none;
  margin: 1rem 0 1.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 0;
}

.wp-list-item {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #CBD5E1;
}

.wp-list-item::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-indigo-light);
  font-weight: bold;
}

.wp-list-item strong {
  color: #FFFFFF;
}

/* --- Clean Numbered Architecture Flow --- */
.arch-flow-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.arch-flow-item {
  padding: 1.15rem 1.35rem;
  background: rgba(13, 19, 34, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent-indigo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.arch-flow-header {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.arch-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-indigo-light);
  letter-spacing: 0.05em;
}

.arch-flow-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.arch-flow-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #94A3B8;
  margin: 0;
}

/* --- Clean Data Tables --- */
.wp-table-card {
  margin: 1.5rem 0 2rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 19, 34, 0.4);
  overflow: hidden;
}

.wp-table-header-bar {
  padding: 0.85rem 1.25rem;
  background: rgba(8, 12, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wp-table-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #F1F5F9;
}

.wp-table-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.wp-table-responsive {
  overflow-x: auto;
  width: 100%;
}

.wp-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 540px;
}

.wp-data-table th,
.wp-data-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.wp-data-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(8, 12, 20, 0.4);
  white-space: nowrap;
}

.wp-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.wp-data-table tr:last-child td {
  border-bottom: none;
}

.wp-data-table tr.total-row td,
.wp-data-table tr.total-row th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wp-data-table tr.row-cyforta td,
.wp-data-table tr.row-cyforta th {
  background: rgba(16, 185, 129, 0.06);
  font-weight: 700;
  color: #FFFFFF;
}

.wp-data-table td.cell-emerald {
  color: var(--accent-emerald-light);
  font-weight: 700;
  font-family: var(--font-mono);
}

.wp-data-table td.cell-mono {
  font-family: var(--font-mono);
}

/* --- Citation & BibTeX Box --- */
.wp-citation-card {
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.wp-citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.wp-citation-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wp-bibtex-block {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #CBD5E1;
  background: #050810;
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0;
}

/* --- Mobile Table of Contents Accordion --- */
.mobile-toc-accordion {
  background: rgba(13, 19, 34, 0.92);
  border: 1px solid var(--border-indigo);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-toc-summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-indigo-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  min-height: 48px;
}

.mobile-toc-summary::-webkit-details-marker {
  display: none;
}

.mobile-toc-summary::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  color: var(--accent-emerald);
}

.mobile-toc-accordion[open] .mobile-toc-summary::after {
  transform: rotate(180deg);
}

.mobile-toc-body {
  padding: 0.75rem 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-toc-item a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-toc-item a:hover,
.mobile-toc-item a:active {
  background: rgba(99, 102, 241, 0.12);
  color: #FFFFFF;
}

/* Touch Target Minimum Sizing */
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}

.btn {
  min-height: 44px;
}

/* --- Responsive Adjustments for White Paper --- */
@media (max-width: 992px) {
  .whitepaper-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .wp-toc-sidebar {
    display: none;
  }

  .wp-highlights-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wp-highlights-strip {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .wp-actions-bar {
    flex-direction: row;
    gap: 0.5rem;
  }

  .wp-data-table th,
  .wp-data-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.825rem;
  }

  .wp-section {
    margin-bottom: 2.5rem;
  }

  .wp-abstract-box {
    padding: 1.25rem;
  }
}

/* --- Print Media Styles for Technical White Paper --- */
@media print {
  body {
    background: #FFFFFF !important;
    color: #111827 !important;
  }

  body::before,
  .navbar,
  .footer,
  .wp-toc-sidebar,
  .wp-actions-bar,
  .hero-trust-bar,
  .mobile-only,
  .skip-link,
  .bottom-cta-card {
    display: none !important;
  }

  .whitepaper-hero {
    padding-top: 0 !important;
    border-bottom: 2px solid #E5E7EB !important;
    background: none !important;
  }

  .wp-title {
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
    color: #111827 !important;
    font-size: 24pt !important;
  }

  .wp-paragraph,
  .arch-flow-desc,
  .wp-list-item {
    color: #374151 !important;
    font-size: 11pt !important;
    line-height: 1.6 !important;
  }

  .wp-section-heading {
    color: #111827 !important;
    border-bottom: 1px solid #E5E7EB !important;
    page-break-after: avoid;
  }

  .wp-table-card,
  .arch-flow-item,
  .wp-abstract-box {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .wp-data-table th {
    background: #F3F4F6 !important;
    color: #374151 !important;
  }

  .wp-data-table td {
    color: #1F2937 !important;
    border-bottom: 1px solid #E5E7EB !important;
  }

  .wp-highlight-card {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
  }

  .wp-highlight-num {
    color: #111827 !important;
  }
}
