/* =============================================
   SIDECHAIN SECURITY — MSSP Website
   Visual Overhaul
   ============================================= */

/* Fonts are loaded via <link> tags in index.html (preconnect + stylesheet). */

/* --- CSS Custom Properties --- */
:root {
  /* Palette — Matte slate/midnight-blue to match Colbo reference */
  --color-bg:            #0a0d10;
  --color-bg-alt:        #0e1217;
  --color-bg-surface:    #141920;
  --color-bg-card:       rgba(255, 255, 255, 0.05);
  --color-bg-card-hover: rgba(255, 255, 255, 0.09);
  --color-bg-glass:      rgba(255, 255, 255, 0.06);
  --color-bg-btn:        rgba(255, 255, 255, 0.09);
  --color-bg-btn-hover:  rgba(255, 255, 255, 0.15);

  /* Accent — Muted blue glow */
  --color-accent:        #4a7cff;
  --color-accent-dim:    #3860c4;
  --color-accent-glow:   rgba(74, 124, 255, 0.12);
  --color-accent-ghost:  rgba(74, 124, 255, 0.06);
  --color-glow-core:     rgba(40, 80, 200, 0.15);

  /* CTA — Vibrant teal for call-to-action buttons */
  --color-cta:           #00e5c8;
  --color-cta-hover:     #00ccb3;
  --color-cta-glow:      rgba(0, 229, 200, 0.25);

  /* Text — high contrast white with dimmed layers */
  --color-text-primary:   #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary:  rgba(255, 255, 255, 0.5);
  --color-text-inverse:   #000000;

  /* Borders */
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-border-dash:  rgba(255, 255, 255, 0.1);

  /* Typography — Geometric sans + Monospace accent */
  --font-display: 'Plus Jakarta Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono:    'Space Mono', 'SF Mono', 'Menlo', monospace;
  --font-body:    'Plus Jakarta Sans', -apple-system, 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-card:  0 1px 0 var(--color-border);
  --shadow-glow:  0 0 80px var(--color-glow-core), 0 0 200px rgba(40,80,200,0.06);

  /* Transitions */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  0.2s;
  --dur-med:   0.45s;
  --dur-slow:  0.8s;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS Safari needs overflow-x clipping on html, not just body — body alone
     fails to contain transformed/absolute children (e.g. the 150vw Three.js
     mount in .data-vault, which intentionally spills via overflow: visible).
     Without this, mobile Safari sees a >100vw document and shrinks-to-fit.
     `clip` is preferred (no scroll container side-effect); `hidden` is the
     fallback for older Safari (<16). */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  background: radial-gradient(ellipse at 50% 50%, #2e3642 0%, #11161d 60%, var(--color-bg) 100%);
  overflow-x: hidden;
  overflow-x: clip;
}

/* Fixed background only on desktop — causes scroll jank on iOS Safari. */
@media (min-width: 769px) {
  body { background-attachment: fixed; }
}

p, li {
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
}

img { max-width: 100%; display: block; }

a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}

a:hover { opacity: 0.7; }

::selection {
  background: rgba(74, 124, 255, 0.3);
  color: #fff;
}

/* --- Scroll targets — offset for fixed nav --- */
section[id] {
  scroll-margin-top: 64px;
}

@media (min-width: 769px) {
  section[id] { scroll-margin-top: 100px; }
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.15);
  margin-bottom: var(--space-md);
}


.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Dimmed span within titles */
.text-dim {
  color: var(--color-text-secondary);
}

.gradient-text {
  color: var(--color-text-primary);
}

/* --- Scroll Reveal (Will be handled by GSAP) --- */
.reveal {
  opacity: 0;
  visibility: hidden;
}

/* Fallback visibility if not using GSAP or for elements missed by script */
.reveal.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION (inside hero)
   ============================================= */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  pointer-events: none;
  background: rgba(20, 26, 34, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* Prevent transitions on page load */
.nav.preload * {
  transition: none !important;
  animation: none !important;
}

@keyframes slideDownSticky {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav.scrolled {
  position: fixed;
  background: rgba(20, 26, 34, 0.65); /* Modern deep slate glass */
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.4);
  padding: 0.8rem var(--space-lg);
  pointer-events: all;
}

/* Gracefully reverse nav animations when scrolling up */
.nav.leaving {
  position: fixed;
  background: rgba(20, 26, 34, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out),
              background 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.nav.leaving .nav-logo {
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-wrapper {
  position: relative;
  width: 100%;
  height: 38px;
  pointer-events: all;
}

.nav-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.scrolled .nav-logo {
  left: 0;
  transform: translate(0, -50%);
}

.nav-logo:hover { opacity: 1; }

.nav-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-text-primary);
}

/* CTA button - pinned top right */
.nav-cta-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 55%
  ),
  var(--color-cta);
  border: 1px solid var(--color-cta);
  color: #0a0e14;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 4px 18px var(--color-cta-glow);
  transition: all var(--dur-fast) var(--ease-out);
}

.nav-cta-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0) 55%
  ),
  var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #0a0e14;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 8px 28px var(--color-cta-glow);
  opacity: 1;
}

/* Mobile nav list - hidden by default */
.nav-links {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  flex-direction: column;
  background: rgba(20, 26, 34, 0.92); /* Updated to match slate theme */
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 80px var(--space-lg) var(--space-lg);
  gap: var(--space-md);
  list-style: none;
  z-index: 200;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transition: right var(--dur-med) var(--ease-out);
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text-secondary);
  border-radius: 0;
  transition: all var(--dur-med) var(--ease-out);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }


/* =============================================
   HERO - with Spline 3D placeholder
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

/* Ambient glow removed so the hero reads as the same matte dark as other sections. */

/* React Cyber Background Container */
#hero-react-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  display: block;
}

#hero-react-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: auto;
}

/* Hero content - centered */
.hero-content {
  position: relative;
  z-index: 5;
  pointer-events: none;
  text-align: center;
  max-width: 900px;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-subline {
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.8s var(--ease-out);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1.3rem 0.5rem 0.9rem;
  background: rgba(26, 26, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d1d1d6;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: #00e5c8;
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(0, 229, 200, 0.7), 0 0 0 0 rgba(0, 229, 200, 0.3); }
  50%      { opacity: 0.8; box-shadow: 0 0 6px rgba(0, 229, 200, 0.5), 0 0 0 8px rgba(0, 229, 200, 0); }
}

/* Massive hero headline */
.hero h1 {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1.0;
  padding-bottom: 0.15em; /* Prevents descenders from clipping with background-clip: text */
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s var(--ease-out) 0.15s both;

  /* Interactive Spotlight & Depth */
  --mouse-x: 50%;
  --mouse-y: 50%;
  background: radial-gradient(
    circle 300px at var(--mouse-x) var(--mouse-y),
    #ffffff 0%,
    rgba(255, 255, 255, 1) 20%,
    rgba(215, 225, 245, 0.95) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff; /* fallback */
  transform-style: preserve-3d;
  will-change: transform;
  display: inline-block; /* Required for 3D rotation */
}

/* Inline section nav bar (Professional Style) */
.hero-nav-bar {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1.4rem;
  background: rgba(26, 26, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s var(--ease-out) 0.35s both;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* When the hero nav bar is scrolled past, fade it out incredibly fast to prevent upward ghosting */
.hero-nav-bar.faded {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
}

.hero-nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d1d1d6;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  overflow: hidden;
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
}

.hero-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease-out);
}

.hero-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.hero-nav-link:hover::after {
  width: calc(100% - 1.2rem);
}

.hero-nav-sep {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}

/* Hero bottom tagline */
.hero-bottom {
  position: absolute;
  bottom: var(--space-2xl);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  padding: 0 5%;
  animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

.hero-bottom-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.hero-bottom-sub {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: transparent;
  color: var(--color-cta);
  border-color: var(--color-cta);
}

.btn-primary:hover {
  background: var(--color-cta);
  color: #0a0e14;
  border-color: var(--color-cta);
  box-shadow: 0 4px 20px var(--color-cta-glow);
  transform: scale(1.03);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--color-cta);
  border-color: var(--color-cta);
}

.btn-secondary:hover {
  background: var(--color-cta);
  color: #0a0e14;
  border-color: var(--color-cta);
  box-shadow: 0 4px 20px var(--color-cta-glow);
  transform: scale(1.03);
  opacity: 1;
}

.btn-arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* =============================================
   PRODUCTS
   ============================================= */
.products {
  padding: var(--space-3xl) 0;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.products-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Disabling fragmented background gradients to unify visual consistency globally */
  pointer-events: none;
  z-index: 0;
}

/* products background grid pattern */
.products::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container-relative {
  position: relative;
  z-index: 2;
}

.products-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* Ambient glow effect */
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(30, 60, 160, 0.12), transparent 70%);
}

.products-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: var(--color-bg-btn);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #00e5c8;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e5c8;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.products-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.text-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.products-desc {
  color: var(--color-text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

/* Force 5 columns on desktop for Managed Security Services */
@media (min-width: 1200px) {
  #services .container {
    max-width: 1650px;
  }
  #services .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: rgba(20, 20, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  cursor: default;
}

/* Animated gradient border */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  padding: 1px;
  background-image: radial-gradient(transparent, transparent, #4a7cff, #2dd4bf, transparent, transparent);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  animation: shine-border 14s infinite linear;
}

@keyframes shine-border {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Stagger the animation per card */
.product-card:nth-child(2)::after { animation-delay: -3.5s; }
.product-card:nth-child(3)::after { animation-delay: -7s; }
.product-card:nth-child(4)::after { animation-delay: -10.5s; }

.product-card:hover {
  transform: translateY(-4px);
  background: rgba(25, 25, 34, 0.8);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.product-card:hover::after {
  filter: brightness(1.4) drop-shadow(0 0 10px rgba(74, 124, 255, 0.4));
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 2;
}

.product-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  transition: all var(--dur-med) var(--ease-out);
}

.product-icon svg {
  width: 20px;
  height: 20px;
}

.product-card:hover .product-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(74, 124, 255, 0.3);
}

.product-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  transition: color var(--dur-med) var(--ease-out);
}

.product-card:hover .product-num {
  color: rgba(255,255,255,0.4);
}

.product-card-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body .shimmer-btn {
  margin-top: auto;
}

.product-card-body p {
  margin-bottom: var(--space-lg);
}

.product-card h3 {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(74, 124, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover .product-card-glow {
  opacity: 1;
}

/* =============================================
   WHY FABRIC
   ============================================= */
.data-vault {
  position: relative;
  z-index: 5; /* Creates definitive stacking context to cleanly overlay preceding sections */
  margin-top: 150px; /* Forces distance between this section and the one above it */
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) 0 var(--space-xl);
  overflow: visible; /* Changed from hidden to allow Three.js canvas to spill out */
  background: transparent;
}

.data-vault-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Disabling fragmented background gradients to unify visual consistency globally */
  pointer-events: none;
  z-index: 0;
}

/* Add a geometric/jet shape placeholder in the background */
.data-vault-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 70%;
  height: 90%;
  /* Disabling fragmented section geometric background shapes for global consistency */
  display: none;
}

.data-vault-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 50vh;
  gap: var(--space-3xl);
}


.data-vault-text {
  max-width: 800px;
  margin-top: auto;
}

.data-vault-header {
  position: relative;
  /* Ambient glow effect perfectly synced with other section headers */
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(30, 60, 160, 0.12), transparent 70%);
}

.data-vault-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.data-vault-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 400px;
  align-self: flex-end;
  margin-top: var(--space-2xl);
}

.data-vault-point {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: var(--space-md);
}

.data-vault-point h3 {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.why-bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
}

.data-vault-point p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .data-vault-content {
    flex-direction: row;
    align-items: flex-end;
  }
  .data-vault-points {
    margin-top: 0;
    margin-bottom: 2rem;
  }
}

/* =============================================
   TESTIMONIALS — 3D Marquee
   ============================================= */
.testimonials-marquee {
  padding: var(--space-xl) 0 0;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.testimonials-marquee-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.testimonials-marquee-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.marquee-3d-viewport {
  width: 100%;
  height: 620px;
  overflow: hidden;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    #000 30%,
    rgba(0, 0, 0, 0.6) 55%,
    rgba(0, 0, 0, 0.2) 75%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    #000 30%,
    rgba(0, 0, 0, 0.6) 55%,
    rgba(0, 0, 0, 0.2) 75%,
    transparent 100%
  );
}

.marquee-3d-inner {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  width: 100%;
  max-width: 1300px;
  padding: 0 2rem;
  transform: translateX(-40px) translateY(0px) translateZ(-40px) rotateX(14deg) rotateY(-6deg) rotateZ(12deg);
}

.marquee-col {
  flex: 1;
  overflow: hidden;
  height: 620px;
  min-width: 0;
  contain: paint;
}

.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-track--up {
  animation: marquee-vert-up 30s linear infinite;
}

.marquee-track--down {
  animation: marquee-vert-down 32s linear infinite;
}

.marquee-col:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-vert-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes marquee-vert-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

/* Testimonial Card */
.t-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  user-select: none;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.t-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.t-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.t-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.t-card-name {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-card-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-card-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}

.t-card-stars svg {
  width: 15px;
  height: 15px;
  fill: #f59e0b;
}

.t-card-quote {
  font-size: 0.935rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  font-style: italic;
  margin: 0;
  transition: color 0.3s ease;
}

.t-card:hover .t-card-quote {
  color: var(--color-text-primary);
}


/* =============================================
   TRUSTED LOGOS CAROUSEL
   ============================================= */
/* --- Trust bar (hero → products bridge) --- */
.trust-bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  padding: 2rem 0;
  overflow: hidden;
}

.trust-bar-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  opacity: 0.75;
  margin-bottom: 2rem;
  text-align: center;
}

/* Legacy class kept for compat */
.logo-carousel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.03) 50%, rgba(255,255,255,0));
  padding: var(--space-3xl) 0;
  margin-top: var(--space-2xl);
  overflow: hidden;
  position: relative;
}

.logo-carousel-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Fade edges so logos appear to roll in and out smoothly */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 6rem;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  opacity: 0.85;
  transition: opacity var(--dur-med) ease, color var(--dur-med) ease;
  user-select: none;
  cursor: default;
}

.logo-item:hover {
  opacity: 1;
  color: var(--color-text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: currentColor;
}

/* Compact logo sizing inside trust bar */
.trust-bar .logo-item {
  font-size: 1.4rem;
  padding: 0 3.5rem;
  opacity: 0.75;
}
.trust-bar .logo-item:hover {
  opacity: 1;
}
.trust-bar .brand-logo {
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.trust-bar .logo-item:hover .brand-logo {
  opacity: 1;
}

/* Optical Scale Adjustments for Perfect Consistency
   Sized for matching optical weight — heavy wordmarks (Thales, NinjaOne)
   sized down so their stroke density doesn't outweigh lighter logos;
   GCP sized down further to offset its extreme width. */
.trust-bar .logo-thales { height: 16px; }
.trust-bar .logo-entrust { height: 28px; }
.trust-bar .logo-huntress { height: 28px; filter: brightness(0) invert(1); }
.trust-bar .logo-ninjaone { height: 22px; filter: brightness(0) invert(1); }
.trust-bar .logo-checkpoint { height: 28px; filter: brightness(0) invert(1); }
.trust-bar .logo-tenable { height: 28px; filter: brightness(0) invert(1); }
.trust-bar .logo-aws { height: 28px; }
.trust-bar .logo-azure { height: 28px; }
.trust-bar .logo-gcp { height: 22px; }
.trust-bar .logo-icon {
  width: 24px;
  height: 24px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* =============================================
   PRICING
   ============================================= */
.pricing {
  padding: 6rem 0 5rem;
  background-color: transparent;
}
.pricing-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  position: relative;
  /* Ambient glow effect */
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(30, 60, 160, 0.12), transparent 70%);
}
.pricing-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-top: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}
.banner-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-opacity: 0;
  --spot-rgb: 100, 140, 255;
  --card-brand-bg: linear-gradient(transparent, transparent);
  --card-brand-rgb: 255, 255, 255;
  position: relative;
  background-color: rgba(255, 255, 255, 0.02);
  background-image:
    radial-gradient(
      290px 290px at var(--spotlight-x) var(--spotlight-y),
      rgba(var(--spot-rgb), calc(0.11 * var(--spotlight-opacity))),
      transparent
    ),
    var(--card-brand-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* Spotlight border glow — follows cursor */
.pricing-card::before,
.pricing-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--spotlight-opacity);
  transition: opacity 0.4s ease;
}
.pricing-card::before {
  background: radial-gradient(
    245px 245px at var(--spotlight-x) var(--spotlight-y),
    rgba(var(--spot-rgb), 0.55),
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  z-index: 3;
  filter: brightness(1.2);
}
.pricing-card::after {
  background: radial-gradient(
    175px 175px at var(--spotlight-x) var(--spotlight-y),
    rgba(var(--spot-rgb), 0.35),
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  z-index: 4;
}

/* Outer glow halo */
.pricing-card > .spotlight-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: calc(var(--spotlight-opacity) * 0.3);
  filter: blur(26px);
  background: radial-gradient(
    290px 290px at var(--spotlight-x) var(--spotlight-y),
    rgba(var(--spot-rgb), 0.3),
    transparent 100%
  );
  z-index: 0;
  transition: opacity 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.pricing-card-featured {
  --card-brand-rgb: 160, 180, 255;
  background-color: rgba(255, 255, 255, 0.045);
  position: relative;
  border-color: rgba(100, 140, 255, 0.35);
  box-shadow:
    0 0 40px rgba(80, 120, 255, 0.10),
    0 0 0 1px rgba(100, 140, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.pricing-card-onetime {
  --card-brand-rgb: 120, 240, 220;
}
.pricing-card-custom {
  --card-brand-rgb: 230, 210, 160;
}
.pricing-card-custom .plan-price {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  min-height: calc(clamp(2rem, 3.5vw, 2.5rem) * 1.1);
  display: flex;
  align-items: center;
  word-spacing: 0.08em;
}
.pricing-card-featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(74, 124, 255, 0.4) 0%,
    rgba(74, 124, 255, 0.08) 30%,
    transparent 60%,
    rgba(74, 124, 255, 0.12) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}
.pricing-card-featured:hover {
  border-color: rgba(100, 140, 255, 0.35);
  box-shadow:
    0 0 40px rgba(80, 120, 255, 0.12),
    0 0 100px rgba(80, 120, 255, 0.06),
    0 15px 50px rgba(0, 0, 0, 0.5);
}
.plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, rgba(100, 140, 255, 0.2), rgba(100, 140, 255, 0.08));
  border: 1px solid rgba(100, 140, 255, 0.25);
  color: rgba(160, 190, 255, 0.95);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 6;
}
.plan-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  min-height: calc(1.7rem * 1.2 * 2);
  text-wrap: balance;
}
.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.plan-price span {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0;
  word-spacing: 0.05em;
  margin-left: 0.35em;
}
.plan-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.55;
  min-height: calc(0.95rem * 1.55 * 3);
  text-wrap: pretty;
}
.plan-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0 1.5rem 0;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 0;
}
.plan-features li {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.plan-features li:last-child {
  margin-bottom: 0;
}
.check-icon {
  width: 12px;
  height: 12px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(var(--card-brand-rgb), 0.08);
  border: 1px solid rgba(var(--card-brand-rgb), 0.18);
  color: rgba(var(--card-brand-rgb), 1);
  box-sizing: content-box;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon path {
  stroke-width: 2.5;
}
.plan-features--usage {
  gap: 0;
}
.usage-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  margin-bottom: 0 !important;
}
.usage-row:first-child {
  padding-top: 0;
}
.usage-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.usage-rate {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
}
.pricing-btn {
  width: 100%;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

/* Enterprise tier CTA — solid anchor, differentiated from hollow siblings */
.btn-secondary.pricing-btn {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 55%
  ),
  var(--color-cta);
  color: #0a0e14;
  border-color: var(--color-cta);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 10px 32px var(--color-cta-glow);
}

.btn-secondary.pricing-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0) 55%
  ),
  var(--color-cta-hover);
  color: #0a0e14;
  border-color: var(--color-cta-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 10px 32px var(--color-cta-glow);
  transform: scale(1.01);
}
.founding-callout {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.founding-callout:hover {
  border-color: var(--color-border-hover);
  background-color: rgba(255, 255, 255, 0.04);
}
.founding-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.founding-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.founding-content p {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 0.95rem;
}
.founding-content a {
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
  white-space: nowrap;
}
.founding-content a:hover {
  border-color: var(--color-text-primary);
}

/* =============================================
   ABOUT US
   ============================================= */
.about {
  padding: 8rem 0 4rem;
  background-color: transparent;
}

.about-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 5rem auto;
  position: relative;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(30, 60, 160, 0.12), transparent 70%);
}

/* Case Study Rows */
.case-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-row {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-row--reversed {
  direction: rtl;
}
.case-row--reversed > * {
  direction: ltr;
}
.case-row--reversed .case-content {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 0;
  padding-right: 3rem;
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 3rem;
}

.case-row--reversed .case-content {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Beam animation on divider lines */
.beam-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.beam-svg .beam-path {
  fill: none;
  stroke: url(#beamGradient);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(74, 124, 255, 0.6)) drop-shadow(0 0 12px rgba(45, 212, 191, 0.3));
}

.case-icon-wrap {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.case-icon-wrap svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 4px 14px rgba(74, 124, 255, 0.30))
    drop-shadow(0 16px 40px rgba(74, 124, 255, 0.18));
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 600ms ease;
}
.case-row:hover .case-icon-wrap svg {
  transform: translateY(-2px);
  filter:
    drop-shadow(0 6px 18px rgba(74, 124, 255, 0.44))
    drop-shadow(0 20px 48px rgba(74, 124, 255, 0.26));
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.case-desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Metrics column */
.case-metrics {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 1rem;
}

.case-metric-value {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1;
}

.case-metric-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
}

.case-metric-sub {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}


/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 8rem 0;
  background-color: transparent;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.contact-perks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-perks li {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.contact-perks li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.perk-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-perks p, .contact-perks div {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}
.contact-perks strong {
  color: var(--color-text-primary);
  font-weight: 600;
}
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--dur-med) var(--ease-out);
  position: relative;
  height: fit-content;
  align-self: end;
}
.contact-form-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}
.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:hover, .form-group textarea:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px var(--color-accent), 0 0 0 4px rgba(74, 124, 255, 0.15);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-submit {
  margin-top: 2.5rem;
}
/* Matches the contact form's palette: neutral translucent by default,
   blue accent on interaction — mirrors how the inputs themselves behave. */
.form-submit button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  border-radius: 8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-primary);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-submit button .submit-arrow {
  display: inline-block;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease-out);
}
.form-submit button:hover {
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-text-primary);
  box-shadow: inset 0 0 0 1px var(--color-cta), 0 0 0 4px var(--color-cta-glow);
}
.form-submit button:hover .submit-arrow {
  transform: translateX(3px);
}
.form-submit button:active {
  background: rgba(0, 229, 200, 0.08);
  box-shadow: inset 0 0 0 1px var(--color-cta), 0 0 0 4px rgba(0, 229, 200, 0.3);
}
.form-submit button:focus-visible {
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px var(--color-cta), 0 0 0 4px var(--color-cta-glow);
}
.form-success {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 255, 128, 0.1);
  color: #00ff80;
  border: 1px solid rgba(0, 255, 128, 0.2);
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
}
.form-success.show {
  display: block;
}

/* =============================================
   THE CHALLENGE (bridge section)
   ============================================= */
.challenge {
  padding: var(--space-3xl) 0;
  background: transparent; /* Unified to match body */
}

.challenge-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.challenge-body {
  text-align: left;
  max-width: 700px;
  margin: var(--space-lg) auto 0;
}

.challenge-body p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.challenge-highlight {
  color: var(--color-text-primary) !important;
  font-weight: 500;
  font-size: 1.1rem !important;
  text-align: center;
  margin-top: var(--space-lg) !important;
}

/* =============================================
   CARD CTA LINKS
   ============================================= */
.card-cta-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.card-cta-link:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

/* Shimmer Button */
@keyframes shimmer2 {
  0%   { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

.shimmer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  margin-top: var(--space-md);
  border: 1px solid var(--color-cta);
  border-radius: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-cta);
  text-decoration: none;
  background: transparent;
  transition: all 0.3s var(--ease-out);
}

.shimmer-btn:hover {
  color: #0a0e14;
  background: var(--color-cta);
  box-shadow: 0 4px 20px var(--color-cta-glow);
  transform: scale(1.03);
  opacity: 1;
}

/* =============================================
   ASSESSMENT FOOTNOTE
   ============================================= */
.assess-footnote {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: var(--space-xl);
}

/* =============================================
   ORBITAL TIMELINE — Managed Services
   ============================================= */
.orbital-section {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: visible;
}

/* Tighten header-to-orbital gap — the orbit
   visually "continues" the header, so standard
   section gaps feel too detached. */
.orbital-section .products-header {
  margin-bottom: var(--space-sm);
}

.orbital-viewport {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Push visual center upward so the top node sits
     closer to the section headline */
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* --- Orbit rings --- */
.orbital-ring {
  position: absolute;
  width: 580px; height: 580px;
  border-radius: 50%;
  border: 1px dashed rgba(100, 150, 255, 0.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbital-ring-spin 120s linear infinite;
}
.orbital-ring--inner {
  width: 240px; height: 240px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  animation: orbital-ring-spin-reverse 90s linear infinite;
}

@keyframes orbital-ring-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbital-ring-spin-reverse {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* --- Central core --- */
.orbital-core {
  position: absolute;
  width: 110px; height: 130px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.orbital-shield-wrap {
  width: 130px;
  height: 156px;
  z-index: 2;
  position: relative;
  animation: shield-float 6s ease-in-out infinite;
}

@keyframes shield-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.orbital-shield {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(74, 124, 255, 0.6))
          drop-shadow(0 0 50px rgba(139, 92, 246, 0.4));
}

.shield-aura {
  animation: shield-aura-pulse 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes shield-aura-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

.shield-checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: checkmark-draw 5s ease-in-out infinite;
}

@keyframes checkmark-draw {
  0%, 15% { stroke-dashoffset: 100; opacity: 0; }
  25%, 85% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

.orbital-core-ping {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  animation: orbital-ping 2s cubic-bezier(0,0,0.2,1) infinite;
  z-index: 0;
}

.orbital-core-ping--delayed {
  width: 160px; height: 160px;
  animation-delay: 0.6s;
  border-color: rgba(255,255,255,0.08);
}

.orbital-core-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  text-align: center;
  white-space: nowrap;
  z-index: 10;
}

/* --- Orbital nodes --- */
.orbital-node {
  position: absolute;
  cursor: pointer;
  z-index: 20;
  transition: all 0.7s cubic-bezier(0.22,1,0.36,1);
  /* Positions set by JS */
}

.orbital-node-glow {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.3s ease;
}

.orbital-node-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(20, 25, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  animation: node-idle-float 4s ease-in-out infinite alternate;
}

/* Ensure different nodes have different animation offsets so they don't bounce together */
.orbital-node:nth-child(even) .orbital-node-icon {
  animation-delay: -1.5s;
  animation-duration: 4.8s;
}

.orbital-node:nth-child(3n) .orbital-node-icon {
  animation-delay: -0.7s;
  animation-duration: 4.2s;
}

@keyframes node-idle-float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(4deg); }
}

.orbital-node-icon svg {
  width: 22px; height: 22px;
}

.orbital-node:hover .orbital-node-icon {
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 20px rgba(74,124,255,0.3);
}

.orbital-node.active .orbital-node-icon {
  background: white;
  color: black;
  border-color: white;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
  transform: scale(1.3);
}

.orbital-node.related .orbital-node-icon {
  background: rgba(255,255,255,0.4);
  color: black;
  border-color: white;
  animation: orbital-pulse 1.5s ease infinite;
}

.orbital-node-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  white-space: nowrap;
  transition: all 0.3s ease;
  text-align: center;
}

.orbital-node.active .orbital-node-label {
  color: white;
  transform: translateX(-50%) scale(1.15);
}

/* --- Expanded card --- */
.orbital-card {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: 340px;
  background: rgba(8,8,12,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(74,124,255,0.08);
}

.orbital-node.active .orbital-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.orbital-card-stem {
  position: absolute;
  top: -16px;
  left: 50%; transform: translateX(-50%);
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.3);
}

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

.orbital-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid;
}

.orbital-card-badge--active {
  color: white;
  background: black;
  border-color: rgba(255,255,255,0.5);
}

.orbital-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

.orbital-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.orbital-card-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 1rem;
}



/* --- Orbital animations --- */
@keyframes orbital-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes orbital-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* =============================================
   SERVICES CTA BAR
   ============================================= */
.services-cta-bar {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-3xl);
}

/* =============================================
   DATA SECURITY BODY TEXT
   ============================================= */
.diff-body {
  margin-top: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 650px;
}

/* =============================================
   COMPLIANCE & INDUSTRIES
   ============================================= */
.compliance {
  padding: var(--space-3xl) 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.compliance-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(30, 60, 160, 0.12), transparent 70%);
}

/* ── Industry Switcher (pill tabs) ── */
.ind-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: fit-content;
  margin: 0 auto var(--space-2xl);
  backdrop-filter: blur(16px);
}

.ind-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.ind-switch:hover {
  color: var(--color-text-secondary);
}

.ind-switch.active {
  color: #ffffff;
  background: rgba(var(--tab-color), 0.15);
  border: 1px solid rgba(var(--tab-color), 0.3);
  box-shadow: 0 0 24px rgba(var(--tab-color), 0.12);
}

.ind-switch-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Showcase panel layout ── */
.ind-showcase {
  position: relative;
  min-height: 480px;
}

.ind-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: indFadeIn 0.6s var(--ease-out) both;
}

.ind-panel.active {
  display: grid;
}

@keyframes indFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Visual orb ── */
.ind-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ind-orb {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.ind-orb-ring {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--orb-color), 0.35);
  will-change: transform;
}

.ind-orb-glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--orb-color), 0.35) 0%, transparent 70%);
  filter: blur(40px);
  will-change: transform, opacity;
}

.ind-orb-sonar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--orb-color), 0);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.ind-orb-icon {
  width: 96px;
  height: 96px;
  color: rgba(var(--orb-color), 0.9);
  position: relative;
  z-index: 1;
  will-change: transform, filter;
}

.ind-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ind-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Details column ── */
.ind-details {
  display: flex;
  flex-direction: column;
}

.ind-details-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.ind-details-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
}

.ind-details-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 460px;
}

/* ── Metric bars ── */
.ind-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.ind-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.ind-metric-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.ind-metric-label svg {
  opacity: 0.75;
}

.ind-metric-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.ind-bar {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.ind-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: rgba(var(--bar-color), 0.85);
  border-radius: 999px;
  transition: width 1s var(--ease-out);
}

.ind-panel.active .ind-bar-fill {
  width: var(--bar-width);
}

/* ── Tags row ── */
.ind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.framework-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--color-bg-btn);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--dur-fast) var(--ease-out);
}

.framework-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* 2×2 grid is the only layout that holds together at narrow widths —
     flex-wrap on 4 pill buttons creates an orphan on row 2. */
  .ind-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.4rem;
    border-radius: 14px;
    width: 100%;
    max-width: 360px;
  }
  .ind-switch {
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.65rem 0.75rem;
  }
  .ind-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .ind-visual {
    order: -1;
  }
  .ind-orb {
    width: 220px;
    height: 220px;
  }
  .ind-orb-icon {
    width: 64px;
    height: 64px;
  }
  .ind-details {
    align-items: center;
  }
  .ind-details-title {
    font-size: 1.8rem;
  }
  .ind-details-desc {
    max-width: 100%;
  }
  .ind-tags {
    justify-content: center;
  }
}

/* =============================================
   ABOUT DIFFERENTIATOR CARDS
   ============================================= */

/* =============================================
   CONTACT DETAILS
   ============================================= */
.contact-details {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--color-border-dash);
}

.contact-details p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.contact-details strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.contact-details a {
  color: var(--color-accent);
  transition: color var(--dur-fast) var(--ease-out);
}

.contact-details a:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

/* =============================================
   FOOTER — 4-Column Layout
   ============================================= */
.footer-sc {
  position: relative;
  padding: var(--space-3xl) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  overflow: hidden;
}

.footer-content {
  position: relative;
  z-index: 2;
}

/* Radial background gradient */
.footer-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Disabling footer radial gradient for full website color consistency */
  pointer-events: none;
}

/* SVG text hover container */
.footer-hover-text {
  position: relative;
  z-index: 1;
  height: 20rem;
  margin-top: -6rem;
  margin-bottom: -4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.footer-hover-text svg {
  width: 100%;
  height: 100%;
}

/* Ghost outline text */
.footer-svg-ghost {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-hover-text:hover .footer-svg-ghost {
  opacity: 0.7;
}

/* Animated stroke text */
.footer-svg-stroke {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  fill: transparent;
  stroke: rgba(60, 162, 250, 0.5);
  stroke-width: 0.3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: footerStrokeDraw 4s ease-in-out forwards;
}

/* Gradient reveal text */
.footer-svg-gradient {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  fill: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-hover-text:hover .footer-svg-gradient {
  opacity: 1;
}

@keyframes footerStrokeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  margin-bottom: var(--space-sm);
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-logo:hover { opacity: 1; }

.footer-tagline {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.footer-address {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer-address a {
  color: var(--color-accent);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-address a:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-legal a:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Three.js Data Vault Core mount — extracted from inline style in index.html
   so its sizing can be controlled from CSS. */
.three-core-mount {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 140vh;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }

  .marquee-3d-viewport {
    height: 380px;
  }

  .marquee-col {
    height: 380px;
  }

  .case-row,
  .case-row--reversed {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .case-row--reversed {
    direction: ltr;
  }
  .case-content,
  .case-row--reversed .case-content {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: var(--space-lg);
  }
  .case-metrics {
    flex-direction: row;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 900px) {
  .logo-item {
    font-size: 1.7rem;
    padding: 0 4rem;
    gap: 1rem;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  /* Scale spacing tokens down so every section that uses var(--space-*)
     for vertical padding tightens automatically — single highest-leverage
     mobile rule on the page. */
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
    --space-xl:  2.5rem;
    --space-lg:  1.75rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .nav-cta-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    margin-right: -8px;
  }

  .nav-logo { padding: 8px 0; }

  /* The challenge wrapper hardcodes its own padding instead of using tokens. */
  .challenge-pin-wrapper { padding: 4rem 0 3rem; }

  .contact-form-wrapper { padding: var(--space-lg); }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Hero section nav: 3-column grid (2 rows of 3) instead of flex-wrap.
     The wrap behavior produced an awkward 4 + 2 layout with a visually
     unbalanced second row. A grid gives equal tap targets, deliberate
     rhythm, and reads as a designed control rather than collapsed flex. */
  .hero-nav-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    width: calc(100% - 2 * var(--space-md));
    max-width: 360px;
    padding: 0.45rem;
    box-sizing: border-box;
  }

  /* Separators belong to the inline desktop pill — irrelevant inside grid
     cells where each link already has its own bounded area. */
  .hero-nav-sep {
    display: none;
  }

  .hero-nav-link {
    font-size: 0.66rem;
    padding: 0.6rem 0.4rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .hero-bottom {
    bottom: var(--space-lg);
  }

  .hero-bottom-heading {
    font-size: 1rem;
  }

  .hero-bottom-sub {
    font-size: 0.78rem;
  }

  .products-grid {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .data-vault-content {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Testimonials marquee on mobile: drop the 3D perspective tilt (designed
     for 4 wide columns on desktop — at narrow widths it crushes cards into
     unreadable diagonals) and show a single full-width column. The card
     itself still scrolls vertically so the marquee motion is preserved. */
  .marquee-3d-viewport {
    height: 380px;
    perspective: none;
  }

  .marquee-3d-inner {
    transform: none;
    padding: 0 var(--space-md);
    max-width: 100%;
  }

  .marquee-col {
    height: 380px;
  }

  .marquee-col:nth-child(2),
  .marquee-col:nth-child(3),
  .marquee-col:nth-child(4) {
    display: none;
  }

  /* Stack on mobile but keep content left-aligned — centered text inside
     stacked cards/forms creates ragged feature lists and disconnects labels
     from their inputs. Left alignment matches the desktop card pattern. */
  .pricing-grid,
  .form-row {
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Tighten form rhythm: shorter label-to-input gap and uniform spacing
     between groups inside and outside of form-rows. */
  .form-group { margin-bottom: 1.25rem; }
  .form-group label { margin-bottom: 0.4rem; }
  .form-submit { margin-top: 1.5rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-hover-text {
    display: none;
  }

  /* ── Orbital section: shrink the rosette to fit narrow viewports.
     Coordinated with RADIUS_MOBILE (150) and NODE_HALF_MOBILE (24) in
     script.js — keep them in sync if you change either one. ── */
  .orbital-viewport {
    height: 500px;
    padding-bottom: 30px;
  }
  .orbital-ring {
    width: 300px;
    height: 300px;
  }
  .orbital-ring--inner {
    width: 128px;
    height: 128px;
  }
  .orbital-core {
    width: 88px;
    height: 102px;
  }
  .orbital-shield-wrap {
    width: 102px;
    height: 122px;
  }
  .orbital-core-ping {
    width: 100px;
    height: 100px;
  }
  .orbital-core-ping--delayed {
    width: 126px;
    height: 126px;
  }
  .orbital-node-icon {
    width: 48px;
    height: 48px;
  }
  .orbital-node-glow {
    width: 70px;
    height: 70px;
  }
  .orbital-node-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    white-space: normal;
    max-width: 96px;
    line-height: 1.2;
    top: calc(100% + 6px);
  }
  .orbital-card {
    width: min(300px, calc(100vw - 48px));
    padding: 1.1rem;
  }
}

@media (max-width: 480px) {
  /* Tighten the spacing scale further on the smallest phones. */
  :root {
    --space-3xl: 3.5rem;
    --space-2xl: 2.5rem;
    --space-xl:  2rem;
    --space-lg:  1.5rem;
  }

  .container { padding: 0 var(--space-sm); }

  .hero-nav-bar {
    gap: 0.25rem;
    padding: 0.4rem;
    max-width: 320px;
  }

  .hero-nav-link {
    font-size: 0.58rem;
    padding: 0.55rem 0.3rem;
    min-height: 38px;
    letter-spacing: 0.1em;
  }

  .nav-logo-icon { width: 28px; height: 28px; }

  .hero-bottom {
    bottom: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== THE CHALLENGE SCROLLYTELLING ==================== */
.challenge-pin-wrapper {
  position: relative;
  background-color: transparent;
  padding: 7rem 0 6rem;
}

.challenge-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  height: auto;
}

/* --- Left Column: Narrative (Header above grid) --- */
.challenge-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(80, 120, 200, 0.14), transparent 70%);
}


.challenge-narrative {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* Signal Deck: stacked crossfade container.
   Uses CSS Grid stacking so the deck auto-sizes to the tallest card at any
   viewport width — absolutely-positioned children would let the longer
   "Breach Exposure" copy spill past the deck on mobile and overlap the pips. */
.signal-deck {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  min-height: 260px;
}

.signal-card {
  grid-column: 1;
  grid-row: 1;
  min-height: 260px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2rem 2rem 2.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.signal-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Themed accent bar (left edge) */
.signal-accent {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background-color: var(--card-accent, #ff6b6b);
  box-shadow: 0 0 12px var(--card-accent, #ff6b6b);
}

.signal-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--card-accent, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-icon svg {
  width: 100%;
  height: 100%;
}

.signal-content {
  flex: 1;
}

.signal-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--card-accent, #ff6b6b);
  margin-bottom: 0.75rem;
}

.signal-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.signal-content .challenge-highlight {
  font-weight: 600;
  color: #00e5c8;
}

/* Progress Pips */
.signal-pips {
  display: flex;
  gap: 8px;
  margin-top: 2rem;
  justify-content: flex-start;
}

.signal-pip {
  width: 48px;
  height: 6px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.signal-pip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #00e5c8;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.signal-pip.active::after {
  animation: pipFill 4s linear forwards;
}

@keyframes pipFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* --- Right Column: Threat Visualizer --- */
.challenge-visualizer {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* =============================================
   THREAT VISUALIZER — Security Operations Monitor
   Layered composition: sweep → particles → orbits → symbol → bezel
   All animations are transform/opacity only (GPU-composited)
   ============================================= */

.threat-glass {
  /* State tokens — redefined per state class below */
  --threat-color:  #ff5050;
  --threat-soft:   rgba(255, 80, 80, 0.55);
  --threat-glow:   rgba(255, 80, 80, 0.18);
  --threat-sweep:  rgba(255, 80, 80, 0.32);
  --threat-dim:    rgba(255, 80, 80, 0.12);
  --threat-rgb:    255, 80, 80;

  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  max-height: 440px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255, 0.035) 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(30, 60, 140, 0.10) 0%, rgba(8, 12, 22, 0.6) 62%, rgba(0,0,0, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  /* Atmospheric bloom: three stacked shadows with exponentially wider blur and
     lower opacity produce a smooth, natural falloff. No absorbing dark halo
     outside the rim — that's what created the ringed/textured edge before. */
  box-shadow:
    inset 0 0 110px rgba(0, 0, 0, 0.62),
    inset 0 0 28px  rgba(0, 0, 0, 0.35),
    0 0 55px   rgba(var(--threat-rgb), 0.14),
    0 0 140px  rgba(var(--threat-rgb), 0.085),
    0 0 260px  rgba(var(--threat-rgb), 0.04);
  display: block;
  overflow: hidden;
  color: var(--threat-color);
  transition: box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle CRT scanlines, kept from the original */
.threat-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(0, 0, 0, 0.07) 3px 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 20;
}

/* Inner vignette sits above all content to soften the rim */
.threat-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 55%, rgba(0,0,0, 0.55) 100%);
  pointer-events: none;
  z-index: 19;
}

/* State tokens */
.threat-glass.state-breach {
  --threat-color: #ff5050;
  --threat-soft:  rgba(255, 80, 80, 0.6);
  --threat-glow:  rgba(255, 80, 80, 0.22);
  --threat-sweep: rgba(255, 80, 80, 0.4);
  --threat-dim:   rgba(255, 80, 80, 0.12);
  --threat-rgb:   255, 80, 80;
}
.threat-glass.state-risk {
  --threat-color: #ffaa33;
  --threat-soft:  rgba(255, 170, 51, 0.6);
  --threat-glow:  rgba(255, 170, 51, 0.22);
  --threat-sweep: rgba(255, 170, 51, 0.4);
  --threat-dim:   rgba(255, 170, 51, 0.12);
  --threat-rgb:   255, 170, 51;
}
.threat-glass.state-secure {
  --threat-color: #00e5c8;
  --threat-soft:  rgba(0, 229, 200, 0.65);
  --threat-glow:  rgba(0, 229, 200, 0.25);
  --threat-sweep: rgba(0, 229, 200, 0.38);
  --threat-dim:   rgba(0, 229, 200, 0.14);
  --threat-rgb:   0, 229, 200;
}

/* ── Layer 0: Volumetric radar sweep ─────────────── */
.threat-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 270deg,
    var(--threat-dim) 310deg,
    var(--threat-sweep) 352deg,
    transparent 360deg
  );
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
  transition:
    background 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity    1.1s cubic-bezier(0.22, 1, 0.36, 1);
  animation: threatSweep 7s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
@keyframes threatSweep {
  to { transform: rotate(360deg); }
}

/* ── Layer 1: Ambient depth particles ───────────── */
.threat-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.threat-particles circle {
  fill: rgba(255, 255, 255, 0.5);
  animation: particleDrift var(--pdur, 8s) ease-in-out var(--pdelay, 0s) infinite alternate;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes particleDrift {
  from { transform: translate(0, 0);                       opacity: var(--pmin, 0.15); }
  to   { transform: translate(var(--dx, 0px), var(--dy, 0px)); opacity: var(--pmax, 0.55); }
}

/* ── Layer 2: Core wrapper (orbits + symbol) ────── */
.threat-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 3;
}

/* ── Orbital belt: 6 SVG ellipses with gradient-alpha depth ── */
.threat-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--threat-color);
  filter: drop-shadow(0 0 4px var(--threat-dim));
  transition: color 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}
.orbit {
  transform-box: view-box;
  transform-origin: 200px 200px;
  will-change: transform;
}
/* Explicit rx/ry baseline so the state→state transition has a defined
   starting value. Matches the attribute geometry on each <ellipse>. */
.orbit-1 ellipse { rx: 182px; ry: 58px;  }
.orbit-2 ellipse { rx: 172px; ry: 92px;  }
.orbit-3 ellipse { rx: 152px; ry: 126px; }
.orbit-4 ellipse { rx: 132px; ry: 158px; }
.orbit-5 ellipse { rx: 70px;  ry: 162px; }
.orbit-6 ellipse { rx: 95px;  ry: 95px;  }

/* Shape morph timing — rings settle from tumbling ellipses to concentric
   circles on the secure beat; the long curve lets each ring arrive at a
   different moment (gradient masks + slight geometry diff stagger it). */
.orbit ellipse {
  transition:
    rx 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    ry 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke-opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Solid primary rings: very slow drift rotation — feels alive, not spinning */
.orbit-1 { animation: orbitDrift 48s linear infinite; }
.orbit-2 { animation: orbitDrift 74s linear infinite reverse; }
.orbit-5 { animation: orbitDrift 92s linear infinite; }
/* Dashed data-stream rings: flow via stroke-dashoffset */
.orbit-3 ellipse { animation: dashFlow 9s linear infinite; }
.orbit-4 ellipse { animation: dashFlow 13s linear infinite reverse; }
.orbit-6 ellipse { animation: dashFlow 6s linear infinite; }

@keyframes orbitDrift { to { transform: rotate(360deg); } }
@keyframes dashFlow   { to { stroke-dashoffset: -120; } }

/* ── Central symbol ──────────────────────────────── */
/* Lock is anchored to the exact center of the orb; HUD is parked below
   it as a separate absolute layer. Decoupling them lets the padlock sit
   on the true geometric center (where the orbits converge) while the
   readout floats beneath without dragging the lock off-axis. */
.center-lock {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.lock-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.lock-icon {
  color: var(--threat-color);
  transition: color 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 10px var(--threat-dim));
}

/* Halo: wider soft stroke, opacity-pulsed (no filter keyframes) */
.lock-halo {
  stroke: var(--threat-color);
  fill: none;
  stroke-opacity: 0.22;
  animation: haloPulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes haloPulse {
  0%, 100% { stroke-opacity: 0.14; }
  50%      { stroke-opacity: 0.38; }
}

.lock-body,
.lock-shackle,
#lock-shackle-halo {
  stroke-linejoin: round;
  transition: d 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Vertical scanning line sweeping across the lock */
.lock-scanline {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--threat-soft) 20%,
    var(--threat-color) 50%,
    var(--threat-soft) 80%,
    transparent 100%);
  opacity: 0;
  filter: blur(0.6px);
  pointer-events: none;
  animation: lockScan 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lockScan {
  0%   { transform: translateX(-4px);  opacity: 0; }
  15%  {                                opacity: 0.9; }
  50%  { transform: translateX(74px);   opacity: 0.9; }
  65%  {                                opacity: 0; }
  100% { transform: translateX(74px);   opacity: 0; }
}

/* Pulse wave — emits once on enter-secure (JS toggles .pulse class) */
.lock-pulse-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid var(--threat-color);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.4);
  will-change: transform, opacity;
}
.lock-pulse-wave.pulse {
  animation: pulseWave 900ms cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}
@keyframes pulseWave {
  0%   { transform: scale(0.3); opacity: 0.9; }
  80%  {                          opacity: 0.15; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Breach jitter — applied once per breach-enter (JS toggles .jitter class) */
.lock-wrap.jitter .lock-icon {
  animation: lockJitter 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}
@keyframes lockJitter {
  0%, 100% { transform: translate(0, 0); }
  15%      { transform: translate(-2px, 1px); }
  30%      { transform: translate(2px, -1px); }
  45%      { transform: translate(-1.5px, -1px); }
  60%      { transform: translate(1.5px, 1px); }
  75%      { transform: translate(-1px, 0.5px); }
}

/* ── HUD micro-readout ───────────────────────────── */
.status-readout {
  /* Anchored below the centered lock — translate(-50%) centers the box
     horizontally, the Y offset = lock half-height + breathing gap. */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 52px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Isolating panel: dark translucent backdrop lifts the HUD off the
     orbits/particles behind it without fighting the floating aesthetic. */
  padding: 0.55rem 0.9rem 0.6rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 9, 17, 0.78) 0%, rgba(4, 9, 17, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 220px;
  align-items: stretch;
}
.hud-line {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hud-key {
  flex: 0 0 54px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.hud-val {
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.hud-val-primary {
  color: var(--threat-color);
  text-shadow:
    0 0 10px rgba(var(--threat-rgb), 0.45),
    0 1px 2px rgba(0, 0, 0, 0.85);
  transition: color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  font-weight: 700;
}
.hud-val-primary::after {
  content: '█';
  display: inline-block;
  margin-left: 3px;
  font-size: 0.85em;
  animation: cursorBlink 1s steps(1) infinite;
  vertical-align: baseline;
}
.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--threat-color);
  box-shadow: 0 0 8px var(--threat-color), 0 0 2px var(--threat-color);
  transition: background 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: hudDotPulse 2s ease-in-out infinite;
}
@keyframes hudDotPulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

.hud-bars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.hud-bars span {
  width: 6px;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hud-bars span.filled {
  background: var(--threat-color);
  box-shadow: 0 0 6px rgba(var(--threat-rgb), 0.7);
}
.hud-threat-pct {
  color: var(--threat-color);
  min-width: 2.5em;
  text-align: right;
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(var(--threat-rgb), 0.4),
    0 1px 2px rgba(0, 0, 0, 0.85);
  transition: color 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cursorBlink {
  0%, 50%   { opacity: 0.75; }
  51%, 100% { opacity: 0; }
}

/* ── Layer 3: Outer instrumentation bezel ─────────── */
.threat-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
}
.bezel-rotating {
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: bezelDrift 90s linear infinite;
  will-change: transform;
}
@keyframes bezelDrift { to { transform: rotate(360deg); } }

.bezel-ticks line {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
  stroke-linecap: round;
}
.bezel-ticks line.major {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.4;
}

.bezel-cardinals text {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  fill: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  font-weight: 600;
}

.bezel-scanner circle {
  fill: var(--threat-color);
  filter: drop-shadow(0 0 4px var(--threat-color));
  transition: fill 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Secure-state: brief bezel brighten pulse (JS toggles .bezel-flash) */
.threat-glass.bezel-flash .bezel-ticks line {
  animation: bezelFlash 600ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}
@keyframes bezelFlash {
  0%   { stroke: rgba(255, 255, 255, 0.25); }
  40%  { stroke: var(--threat-color); }
  100% { stroke: rgba(255, 255, 255, 0.25); }
}

/* ═════════════════════════════════════════════════════════════════
   SECURE STATE — steady-state calm.
   Design intent: the system has finished its work. Motion should
   retreat, not stop — still ambient, but visibly at rest. Every
   layer slows; the active-scan cues (scanline, bright sweep) retire;
   the lock becomes the visual anchor.
   ═════════════════════════════════════════════════════════════════ */
.threat-glass.state-secure .threat-sweep {
  animation-duration: 14s;   /* patrol, not search */
  opacity: 0.24;
}
.threat-glass.state-secure .orbit-1           { animation-duration: 96s;  }
.threat-glass.state-secure .orbit-2           { animation-duration: 148s; }
.threat-glass.state-secure .orbit-5           { animation-duration: 184s; }
.threat-glass.state-secure .orbit-3 ellipse   { animation-duration: 18s;  }
.threat-glass.state-secure .orbit-4 ellipse   { animation-duration: 26s;  }
.threat-glass.state-secure .orbit-6 ellipse   { animation-duration: 12s;  }
.threat-glass.state-secure .lock-halo         { animation-duration: 4.5s; }
.threat-glass.state-secure .lock-scanline     { opacity: 0; }
.threat-glass.state-secure .threat-particles  { opacity: 0.55; }

/* ── Secure-state radial unfold ─────────────────────────────────────
   The six tumbling ellipses smoothly morph their rx/ry into equal
   values — resolving the composition into clean concentric rings
   centered on the padlock. Rotation continues invisibly on the now-
   circular geometry; the gradient-masked strokes on orbits 1/2/5
   become slowly phasing arcs, giving the "radar at rest" feel.
   Radii are chosen to echo the reference: tight inner ring hugging
   the lock, comfortable mid-band, one outer ring near the bezel. */
.threat-glass.state-secure .orbit-6 ellipse { rx: 65px;  ry: 65px;  }
.threat-glass.state-secure .orbit-5 ellipse { rx: 96px;  ry: 96px;  }
.threat-glass.state-secure .orbit-4 ellipse { rx: 125px; ry: 125px; }
.threat-glass.state-secure .orbit-3 ellipse { rx: 152px; ry: 152px; }
.threat-glass.state-secure .orbit-2 ellipse { rx: 174px; ry: 174px; }
.threat-glass.state-secure .orbit-1 ellipse { rx: 190px; ry: 190px; }

/* ── Off-screen / tab-hidden pause: freeze all child animations ── */
.threat-glass.is-paused,
.threat-glass.is-paused *,
.threat-glass.is-paused *::before,
.threat-glass.is-paused *::after {
  animation-play-state: paused !important;
}

/* ── Reduced-motion: keep legibility, drop all looped motion ── */
@media (prefers-reduced-motion: reduce) {
  .threat-sweep,
  .threat-particles circle,
  .orbit,
  .orbit ellipse,
  .lock-halo,
  .lock-scanline,
  .hud-dot,
  .hud-val-primary::after,
  .bezel-rotating {
    animation: none !important;
  }
  /* Reduced motion: disable the radial-unfold morph, keep color crossfade */
  .orbit ellipse { transition: stroke-opacity 300ms linear !important; }
  .threat-sweep { opacity: 0.3; }
  .lock-scanline { display: none; }
  .center-lock,
  .threat-orbits,
  .threat-bezel,
  .threat-particles {
    transition: none !important;
  }
  .marquee-track--up,
  .marquee-track--down,
  .logo-track {
    animation: none !important;
  }
  .marquee-3d-viewport,
  .marquee-col {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 992px) {
  .challenge-grid {
    grid-template-columns: 1fr;
    height: auto;
    text-align: center;
    gap: 3rem;
  }

  .challenge-visualizer {
    height: auto;
    min-height: 360px;
    margin-top: 2rem;
  }

  .threat-glass {
    max-width: 360px;
    max-height: 360px;
    margin: 0 auto;
  }

  .status-readout {
    font-size: 0.6rem;
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .threat-glass {
    max-width: 320px;
    max-height: 320px;
  }
  .lock-wrap {
    width: 60px;
    height: 66px;
  }
  .lock-icon {
    width: 60px;
    height: 66px;
  }
  .status-readout {
    font-size: 0.55rem;
    min-width: 180px;
    transform: translate(-50%, 44px);
  }
  .hud-key {
    flex: 0 0 44px;
  }
}

/* =============================================
   STICKY NAV LINKS — Seamless hero nav handoff
   ============================================= */
.nav-sticky-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  /* Invisible by default — revealed via JS class */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

/* Active state — links revealed when hero-nav-bar scrolls out */
.nav-sticky-links.visible {
  opacity: 1;
  pointer-events: all;
}

.nav-sticky-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
}

.nav-sticky-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease-out);
}

.nav-sticky-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.nav-sticky-link:hover::after {
  width: calc(100% - 1.2rem);
}

.nav-sticky-sep {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}

@media (max-width: 768px) {
  .nav-sticky-links {
    display: none;
  }
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
}
.nav-sticky-link.nav-dropdown-toggle::after {
  content: '';
  position: static;
  display: inline-block;
  width: 5px;
  height: 5px;
  background: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: 0.5;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.nav-dropdown.open .nav-sticky-link.nav-dropdown-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
  opacity: 0.8;
  width: 5px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(20, 26, 34, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile nav dropdown — flat list */
.nav-links .nav-dropdown-mobile {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
}
.nav-links .nav-dropdown-mobile a {
  font-size: 0.65rem;
  color: var(--color-text-tertiary);
}
.nav-links .nav-dropdown-mobile a:hover {
  color: var(--color-text-primary);
}

/* =============================================
   OUR DIFFERENTIATOR — Enhanced prominence
   ============================================= */
.data-vault .section-label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--color-cta);
  text-shadow: 0 0 15px var(--color-cta-glow), 0 0 30px rgba(0, 229, 200, 0.1);
}

/* =============================================
   COMPLIANCE STAT BARS (replaces percentage bars)
   ============================================= */
.stat-bars {
  background: rgba(25, 28, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Guarantee a minimum gap between label and percentage so they never
     visually collide on narrow viewports even if the title runs long. */
  gap: 0.75rem;
}

.stat-bar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  /* Allow the title to shrink under flex pressure so the value stays put. */
  min-width: 0;
}

.stat-bar-title svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-tertiary);
  opacity: 0.8;
}

.stat-bar-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color 0.5s ease;
}

.stat-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* =============================================
   THE REALITY — Section body copy
   ============================================= */
.challenge-body-copy {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =============================================
   PRICING — Health Check card one-time badge
   ============================================= */
.plan-badge-custom {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, rgba(200, 170, 100, 0.18), rgba(200, 170, 100, 0.06));
  border: 1px solid rgba(200, 170, 100, 0.3);
  color: rgba(230, 200, 130, 0.95);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 6;
}

.plan-badge-onetime {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(0, 229, 200, 0.12);
  border: 1px solid rgba(0, 229, 200, 0.25);
  color: var(--color-cta);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 6;
}

.plan-price-onetime {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price-qualifier {
  display: inline;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0;
  margin-left: 0.4em;
  vertical-align: baseline;
  white-space: nowrap;
}

.plan-deliverable {
  padding: 0.85rem 1rem;
  background: rgba(0, 229, 200, 0.06);
  border: 1px solid rgba(0, 229, 200, 0.12);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.plan-small-print {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  margin-top: 1rem;
  font-style: italic;
}

/* Footnote placed under card 1 but outside its border (grid row 2, col 1) */
.plan-small-print-footnote {
  grid-column: 1 / 2;
  grid-row: 2;
  margin-top: 0.25rem;
  padding: 0 0.25rem;
}

@media (max-width: 900px) {
  .plan-small-print-footnote {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* =============================================
   PRICING — BOLDER
   Heavier hierarchy, committed brand washes per tier,
   pedestal lift on featured. No gradient text, no
   glassmorphism, no side-stripes.
   ============================================= */

/* Slightly more breathing room across all cards */
.pricing-card {
  padding: 4.75rem 2.25rem 2.25rem;
}

/* Per-tier committed wash + 2px top-edge brand glow inside the card */
.pricing-card-onetime {
  --card-brand-rgb: 120, 240, 220;
  --spot-rgb: 0, 229, 200;
  --card-brand-bg:
    radial-gradient(ellipse 110% 55% at 50% 0%, rgba(0, 229, 200, 0.07), transparent 60%);
}

.pricing-card-custom {
  --card-brand-rgb: 230, 210, 160;
  --spot-rgb: 220, 180, 100;
  --card-brand-bg:
    radial-gradient(ellipse 110% 55% at 50% 0%, rgba(230, 200, 130, 0.06), transparent 60%);
}

.pricing-card-featured {
  --card-brand-rgb: 74, 124, 255;
  --spot-rgb: 74, 124, 255;
  --card-brand-bg:
    radial-gradient(ellipse 115% 60% at 50% 0%, rgba(74, 124, 255, 0.22), transparent 62%);
  background-color: rgba(255, 255, 255, 0.055);
  border-color: rgba(74, 124, 255, 0.55);
  padding: 4.5rem 2.4rem 2.4rem;
  box-shadow:
    0 0 0 1px rgba(74, 124, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 32px 88px rgba(74, 124, 255, 0.24),
    0 15px 42px rgba(0, 0, 0, 0.48);
}

/* Pedestal lift only on desktop where cards sit side-by-side */
@media (min-width: 769px) {
  .pricing-card-featured {
    transform: translateY(-12px);
  }
}

.pricing-card-featured:hover {
  transform: translateY(-17px);
  border-color: rgba(74, 124, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(74, 124, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 42px 100px rgba(74, 124, 255, 0.32),
    0 18px 50px rgba(0, 0, 0, 0.55);
}

/* Typography muscle: heavier weights, dramatic scale jumps */
.plan-name {
  font-weight: 700;
  font-size: clamp(1.4rem, 1.95vw, 1.7rem);
  letter-spacing: -0.025em;
  min-height: calc(1.7rem * 1.2 * 2);
}

.plan-price,
.plan-price-onetime {
  font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 3.25rem);
  letter-spacing: -0.045em;
  margin-bottom: 1.75rem;
}

.pricing-card-featured .plan-price {
  font-size: clamp(3.05rem, 5.6vw, 3.95rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 1.2rem;
}

.pricing-card-featured .plan-price > span {
  font-size: 1rem;
}

.plan-price > span,
.plan-price-qualifier {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0;
  margin-left: 0.4em;
}

/* "Quote on request" stays smaller — it's text, not a price.
   min-height matches the new price scale so the three CTAs share a baseline. */
.pricing-card-custom .plan-price {
  font-size: clamp(1.75rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  white-space: normal;
  min-height: calc(clamp(2.5rem, 4.4vw, 3.25rem) * 1.1);
}

/* Brighter dividers; featured gets a brand-tinted gradient line */
.plan-divider {
  background: rgba(255, 255, 255, 0.14);
}

.pricing-card-featured .plan-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(74, 124, 255, 0.45),
    transparent
  );
}

/* More saturated check-icon brand wells */
.check-icon {
  width: 14px;
  height: 14px;
  background: rgba(var(--card-brand-rgb), 0.14);
  border-color: rgba(var(--card-brand-rgb), 0.34);
}

/* Confident badges — bigger, weightier, real brand commitment */
.plan-badge,
.plan-badge-onetime,
.plan-badge-custom {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  letter-spacing: 0.1em;
  top: 1.6rem;
}

.plan-badge {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-dim)
  );
  border-color: rgba(140, 170, 255, 0.6);
  color: #ffffff;
  box-shadow:
    0 6px 18px rgba(74, 124, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.plan-badge-onetime {
  background: rgba(0, 229, 200, 0.16);
  border-color: rgba(0, 229, 200, 0.45);
  color: #5cf2dc;
  box-shadow: 0 6px 14px rgba(0, 229, 200, 0.12);
}

.plan-badge-custom {
  background: linear-gradient(
    135deg,
    rgba(220, 180, 100, 0.24),
    rgba(220, 180, 100, 0.08)
  );
  border-color: rgba(230, 200, 130, 0.5);
  color: rgba(245, 220, 160, 1);
  box-shadow: 0 6px 14px rgba(180, 140, 60, 0.16);
}

/* CTA on featured: a touch weightier to anchor the recommended tier */
.btn-secondary.pricing-btn {
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* Cleaner feature-list rhythm — uniform gap regardless of single/multi-line items */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.plan-features li {
  margin-bottom: 0;
  line-height: 1.5;
  gap: 0.75rem;
}

/* Mobile: recenter the card edges and badge positions */
@media (max-width: 768px) {
  .pricing-card,
  .pricing-card-featured {
    padding: 4rem 1.75rem 2rem;
  }
  .plan-badge,
  .plan-badge-onetime,
  .plan-badge-custom {
    top: 1.4rem;
    left: 1.75rem;
  }
}


/* =============================================
   ENGAGEMENT: Nav Phone Link
   ============================================= */
.nav-phone {
  position: absolute;
  right: 130px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), color 0.2s var(--ease-out);
}

.nav.scrolled .nav-phone {
  opacity: 1;
  pointer-events: all;
}

.nav-phone:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

.nav-phone-icon {
  color: var(--color-cta);
  opacity: 0.6;
  transition: filter 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.nav-phone:hover .nav-phone-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px var(--color-cta-glow));
}


/* =============================================
   ENGAGEMENT: Hero CTA Cluster
   ============================================= */
.hero-cta-cluster {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: var(--space-lg);
  pointer-events: auto;
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.hero-cta-main {
  min-width: 280px;
  height: 3.25rem;
  justify-content: center;
  font-size: 0.78rem;
}

.hero-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.hero-cta-phone svg {
  color: var(--color-cta);
  opacity: 0.6;
}

.hero-cta-phone:hover {
  opacity: 1;
  color: var(--color-text-primary);
}

.hero-cta-phone:hover svg {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--color-cta-glow));
}


/* =============================================
   ENGAGEMENT: Floating Action Button (FAB)
   ============================================= */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
}

.fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 26, 34, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  color: var(--color-cta);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--color-cta-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  animation: fab-glow 4s ease-in-out infinite;
}

@keyframes fab-glow {
  0%, 100% { box-shadow: 0 0 20px var(--color-cta-glow), 0 8px 32px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 30px rgba(0, 229, 200, 0.35), 0 8px 32px rgba(0, 0, 0, 0.4); }
}

.fab-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(0, 229, 200, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.fab-icon-close { display: none; }

.fab-container.open .fab-icon-default { display: none; }
.fab-container.open .fab-icon-close { display: block; }

.fab-container.open .fab-trigger {
  animation: none;
}

.fab-menu {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  min-width: 210px;
  background: rgba(20, 26, 34, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.fab-container.open .fab-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.fab-option:hover {
  color: var(--color-cta);
  border-left-color: var(--color-cta);
  background: rgba(0, 229, 200, 0.04);
  opacity: 1;
}

.fab-option svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.fab-option:hover svg {
  opacity: 1;
}

.fab-container.fab-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}


/* =============================================
   ENGAGEMENT: Mobile Sticky Bottom Bar
   ============================================= */
.mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    height: 56px;
    padding: 0 var(--space-md);
    padding-bottom: env(safe-area-inset-bottom);
    align-items: center;
    gap: 0.75rem;
    background: rgba(14, 18, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }

  .mobile-bar.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-bar.contact-visible {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
  }

  .mobile-bar-phone {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    height: 40px;
  }

  .mobile-bar-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-cta);
    border: 1px solid var(--color-cta);
    color: #0a0e14;
    text-decoration: none;
    box-shadow: 0 4px 18px var(--color-cta-glow);
  }

  .fab-container {
    bottom: calc(env(safe-area-inset-bottom) + 4.5rem);
    right: 1rem;
  }

  .fab-trigger {
    width: 48px;
    height: 48px;
  }

  .fab-menu {
    min-width: 200px;
  }

  .fab-option {
    min-height: 44px;
  }

  body {
    padding-bottom: 56px;
  }

  .nav-phone-text {
    display: none;
  }

  .nav-phone {
    right: 52px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}


/* =============================================
   ENGAGEMENT: Mid-Page Engagement Breaks
   ============================================= */
.engagement-break {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.engagement-break-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.engagement-break-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.engagement-break-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cta);
}

.engagement-break-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin: 0;
}

.engagement-break-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.engagement-break-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.engagement-break-phone svg {
  color: var(--color-cta);
  opacity: 0.6;
}

.engagement-break-phone:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

@media (max-width: 768px) {
  .engagement-break-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .engagement-break-actions {
    flex-direction: column;
    width: 100%;
  }

  .engagement-break-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* =============================================
   ENGAGEMENT: Availability Badge (Contact Section)
   ============================================= */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem 0.4rem 0.7rem;
  background: rgba(26, 26, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: var(--space-md);
}

.avail-dot {
  width: 6px;
  height: 6px;
  background: #00e5c8;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e5c8;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.avail-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
