/* ==========================================================================
   ClaimFusion — High-End Responsive Design System & Theme Engine
   Adhering to: /notavibecoder & /better-ui guidelines
   - Pure brand alignment with logo: Primary Navy (#08244a), Electric Blue (#1769d3),
     and Medical Cyan/Teal (#13b8b1, #00d2c4)
   - Seamless Light & Dark Theme modes with smooth transition suppression
   - Concentric border radius & optical alignment
   - Flawless responsiveness across 320px, 375px, 640px, 768px, 1024px, 1280px, 1440px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens: Light Mode (Default Brand System)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Constants from ClaimFusion Identity */
  --cf-brand-navy: #08244a;
  --cf-brand-navy-deep: #051630;
  --cf-brand-navy-light: #0d3b75;
  --cf-brand-blue: #1769d3;
  --cf-brand-teal: #13b8b1;
  --cf-teal: #13b8b1;
  --cf-brand-cyan: #e7fbfb;
  --cf-brand-cyan-soft: #f0fdfd;
  
  /* Semantic Tokens — Light Mode Default */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f8fc;
  --bg-tertiary: #eaf2f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-header-solid: #ffffff;
  --bg-drawer: #ffffff;
  --bg-banner: linear-gradient(135deg, #08244a 0%, #0d3b75 60%, #13b8b1 100%);
  --bg-banner-text: #ffffff;
  
  --text-primary: #0a1f3a;
  --text-secondary: #3b526d;
  --cf-text-secondary: #3b526d;
  --text-muted: #64748b;
  --cf-text-muted: #64748b;
  --text-on-navy: #ffffff;
  --text-on-navy-muted: rgba(255, 255, 255, 0.78);
  
  --border-light: rgba(8, 36, 74, 0.1);
  --border-subtle: rgba(8, 36, 74, 0.06);
  --border-hover: rgba(19, 184, 177, 0.45);
  
  --shadow-sm: 0 2px 8px rgba(8, 36, 74, 0.05);
  --shadow-md: 0 12px 32px rgba(8, 36, 74, 0.08);
  --shadow-lg: 0 24px 56px rgba(8, 36, 74, 0.12);
  --shadow-glow: 0 0 40px -8px rgba(19, 184, 177, 0.35);
  --shadow-blue-glow: 0 0 40px -8px rgba(23, 105, 211, 0.35);

  --accent-pill-bg: #e7fbfb;
  --accent-pill-text: #08244a;
  --badge-bg: rgba(23, 105, 211, 0.08);
  --badge-text: #1769d3;
  --badge-border: rgba(23, 105, 211, 0.2);

  --canvas-grid-line: rgba(8, 36, 74, 0.04);
  --logo-filter: none;

  /* Concentric border-radius system: outer = inner + padding */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Layout dimensions */
  --container-max: 1280px;
  --header-height: 76px;

  /* Curves per /better-ui */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.2, 0, 0, 1);
}

/* --------------------------------------------------------------------------
   Dark Mode Tokens ([data-theme="dark"])
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-primary: #07152b;
  --bg-secondary: #0b203e;
  --bg-tertiary: #0f2a52;
  --bg-card: rgba(12, 35, 68, 0.94);
  --bg-card-hover: rgba(16, 46, 88, 0.98);
  --bg-glass: rgba(12, 35, 68, 0.9);
  /* Crisp, high-contrast navbar in dark mode: pure clean surface so logo is 100% crisp with ZERO glow */
  --bg-header: #ffffff;
  --bg-header-solid: #ffffff;
  --bg-drawer: #ffffff;
  --bg-banner: linear-gradient(135deg, #071933 0%, #0d386b 60%, #0e6378 100%);
  --bg-banner-text: #ffffff;

  --cf-teal: #2de2db;
  --cf-brand-teal: #2de2db;

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --cf-text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --cf-text-muted: #94a3b8;
  --text-on-navy: #ffffff;
  --text-on-navy-muted: rgba(255, 255, 255, 0.88);

  --border-light: rgba(255, 255, 255, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(45, 226, 219, 0.65);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 45px -5px rgba(45, 226, 219, 0.4);
  --shadow-blue-glow: 0 0 45px -5px rgba(23, 105, 211, 0.4);

  --accent-pill-bg: rgba(45, 226, 219, 0.15);
  --accent-pill-text: #2de2db;
  --badge-bg: rgba(23, 105, 211, 0.25);
  --badge-text: #93c5fd;
  --badge-border: rgba(147, 197, 253, 0.35);

  --canvas-grid-line: rgba(255, 255, 255, 0.05);
  /* ZERO glow or filter: pure, untouched native logo */
  --logo-filter: none;
}

/* --------------------------------------------------------------------------
   Suppress Transitions On Theme Switch (/better-ui rule)
   -------------------------------------------------------------------------- */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
}

.site-main,
.hero-section,
.section,
.site-footer {
  overflow-x: clip;
  max-width: 100%;
}

/* Global Subtle Noise */
.bg-noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--cf-brand-navy);
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--cf-brand-navy-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cf-brand-teal);
}

/* Selection */
::selection {
  background: var(--cf-brand-teal);
  color: #ffffff;
}

/* Top Scroll Progress */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cf-brand-navy), var(--cf-brand-blue), var(--cf-brand-teal));
  z-index: 10000;
  box-shadow: 0 0 10px rgba(19, 184, 177, 0.5);
  transition: width 0.08s linear;
}

/* Typography Core */
h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.028em;
  font-weight: 750;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--cf-brand-navy) 20%, var(--cf-brand-blue) 70%, var(--cf-brand-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #93c5fd 60%, var(--cf-brand-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cf-brand-teal);
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cf-brand-teal);
  box-shadow: 0 0 8px var(--cf-brand-teal);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Header & Navigation (Optical Centering & Strict Responsive Spacing)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 999;
  display: flex;
  align-items: center;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: height 0.25s var(--ease-spring), background 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.site-header.scrolled {
  height: 66px;
  box-shadow: 0 4px 20px -2px rgba(8, 36, 74, 0.08);
  background: var(--bg-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: clamp(12px, 2.5vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s var(--ease-spring);
}

.brand:active {
  transform: scale(0.96); /* Scale on press per /better-ui */
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: var(--logo-filter);
}

/* Desktop Navigation - Optical Alignment */
.nav {
  display: flex;
  align-items: center;
  margin-inline: auto; /* Clean optical center balance */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  position: relative;
  padding: 8px 4px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--cf-brand-blue);
}

[data-theme="dark"] .site-header .nav-link {
  color: #1e293b;
}

[data-theme="dark"] .site-header .nav-link:hover,
[data-theme="dark"] .site-header .nav-link.active {
  color: var(--cf-brand-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cf-brand-blue), var(--cf-brand-teal));
  border-radius: 2px;
  transition: width 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.phone-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--cf-brand-navy);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.2s var(--ease-spring);
  white-space: nowrap;
}

[data-theme="dark"] .site-header .phone-quick-link {
  color: var(--cf-brand-navy);
  background: #ffffff;
  border-color: rgba(8, 36, 74, 0.15);
}

.phone-quick-link svg {
  flex-shrink: 0;
}

.phone-quick-link:hover {
  color: var(--cf-brand-blue);
  border-color: var(--cf-brand-blue);
  transform: translateY(-1px);
}

.phone-quick-link:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   High-End Theme Toggle Switch (Apple / Stripe Calibrated Pill Design)
   -------------------------------------------------------------------------- */
.theme-switch-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-switch-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(8, 36, 74, 0.08);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  padding: 2px;
  transition: background 0.25s var(--ease-spring), border-color 0.25s ease;
  display: flex;
  align-items: center;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .theme-switch-track {
  background: rgba(23, 105, 211, 0.35);
  border-color: rgba(19, 184, 177, 0.45);
}

.theme-switch-track:hover {
  border-color: var(--cf-brand-teal);
}

.theme-switch-track:active {
  transform: scale(0.96);
}

/* Sliding thumb with concentric radius */
.theme-switch-thumb {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s var(--ease-spring), background 0.25s ease;
}

[data-theme="dark"] .theme-switch-thumb {
  transform: translate(24px, -50%);
  background: #08244a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Icons inside the thumb - exactly ONE active, never both visible */
.theme-switch-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4px;
  flex-shrink: 0;
}

.theme-switch-thumb .icon-moon {
  display: block;
  color: #08244a;
}
.theme-switch-thumb .icon-sun {
  display: none;
  color: #f59e0b;
}

[data-theme="dark"] .theme-switch-thumb .icon-moon {
  display: none !important;
}
[data-theme="dark"] .theme-switch-thumb .icon-sun {
  display: block !important;
  color: #38bdf8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 44px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cf-brand-navy) 0%, #0d4b82 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -4px rgba(8, 36, 74, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(8, 36, 74, 0.35);
  background: linear-gradient(135deg, #061c3b 0%, var(--cf-brand-blue) 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--cf-brand-navy);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .btn-secondary {
  color: #ffffff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--cf-brand-blue);
  color: var(--cf-brand-blue);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.2s var(--ease-spring), border-color 0.15s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:active {
  transform: scale(0.96);
}

/* Mobile Menu Drawer (Opaque, High-Contrast & Clear Text Visibility) */
.mobile-menu-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  padding: 24px 20px 28px;
  display: none;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-menu-drawer .nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #0f172a !important; /* Crystal clear dark slate in light mode */
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

.mobile-menu-drawer .nav-link:hover {
  background: var(--bg-secondary);
  color: var(--cf-brand-blue) !important;
}

[data-theme="dark"] .mobile-menu-drawer {
  background: #081a33; /* Rich executive navy solid surface */
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Explicit high-contrast white text for all links in dark mobile drawer */
[data-theme="dark"] .mobile-menu-drawer .nav-link {
  color: #ffffff !important; /* 100% VISIBLE CRISP WHITE */
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mobile-menu-drawer .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cf-brand-teal) !important;
}

[data-theme="dark"] .mobile-menu-drawer .phone-quick-link {
  background: #ffffff;
  color: #08244a !important;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Hero Section: Editorial Vertical Fluted Texture & Luminous Aurora
   Inspired by Reference: Precision Vertical Ribbing + Radiant Electric Blue & Teal Glow
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: auto;
  padding-top: clamp(20px, 2.5vw, 32px);
  padding-bottom: clamp(48px, 6vw, 84px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: #f7fbfe;
  background-image:
    /* High-luminous aurora glows from top and corners */
    radial-gradient(ellipse 75% 60% at 50% -15%, rgba(23, 105, 211, 0.18), transparent 70%),
    radial-gradient(ellipse 55% 55% at 92% 20%, rgba(19, 184, 177, 0.15), transparent 60%),
    radial-gradient(circle 45% at 8% 80%, rgba(23, 105, 211, 0.10), transparent 55%),
    /* Vertical Fluted Texture (from User's reference image 2) */
    repeating-linear-gradient(
      90deg,
      rgba(23, 105, 211, 0.035) 0px,
      rgba(23, 105, 211, 0.035) 2px,
      transparent 2px,
      transparent 8px
    ),
    /* Soft architectural baseline grid */
    linear-gradient(to right, rgba(8, 36, 74, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 36, 74, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 8px 100%, 48px 48px, 48px 48px;
}

[data-theme="dark"] .hero-section {
  background-color: #051429;
  background-image:
    /* Deep electric blue and vibrant cyan aurora (from User's reference image 1 & 2) */
    radial-gradient(ellipse 80% 65% at 50% -15%, rgba(23, 105, 211, 0.40), transparent 72%),
    radial-gradient(ellipse 60% 55% at 90% 25%, rgba(45, 226, 219, 0.28), transparent 65%),
    radial-gradient(circle 45% at 10% 75%, rgba(23, 105, 211, 0.25), transparent 60%),
    /* Luminous vertical fluted stripes in dark mode */
    repeating-linear-gradient(
      90deg,
      rgba(45, 226, 219, 0.045) 0px,
      rgba(45, 226, 219, 0.045) 2px,
      transparent 2px,
      transparent 8px
    ),
    /* Delicate structural micro-grid */
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 8px 100%, 48px 48px, 48px 48px;
}

/* Floating ambient aurora orbs (smooth blur) */
.hero-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-1 {
  width: min(600px, 60vw);
  height: min(600px, 60vw);
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(19, 184, 177, 0.25) 0%, rgba(23, 105, 211, 0.12) 60%, transparent 80%);
}

.hero-glow-2 {
  width: min(500px, 50vw);
  height: min(500px, 50vw);
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(23, 105, 211, 0.20) 0%, rgba(19, 184, 177, 0.08) 60%, transparent 80%);
}

[data-theme="dark"] .hero-glow-1 {
  background: radial-gradient(circle, rgba(45, 226, 219, 0.35) 0%, rgba(23, 105, 211, 0.22) 55%, transparent 80%);
}

[data-theme="dark"] .hero-glow-2 {
  background: radial-gradient(circle, rgba(23, 105, 211, 0.35) 0%, rgba(45, 226, 219, 0.15) 55%, transparent 80%);
}

#hero-webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

[data-theme="dark"] #hero-webgl-canvas {
  opacity: 0.85;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.badge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf-brand-teal);
  box-shadow: 0 0 10px var(--cf-brand-teal);
  animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.hero-badge-text {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2rem;
}

.partner-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.partner-indicator strong {
  color: var(--text-primary);
  font-weight: 800;
}

.hero-pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.hero-pill-tag {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
  border: 1px solid rgba(19, 184, 177, 0.2);
}

.hero-segments-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.segment-badge {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Hero Interactive 3D Console (Concentric Radii & Optical Alignment)
/* --------------------------------------------------------------------------
   Hero Revenue OS Architecture Diagram Matrix (Inspired by Reference Image 2)
   Concentric Rings, Clean Blueprint Grid, Floating Feature Cards & Central Sphere
   -------------------------------------------------------------------------- */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-matrix-showcase {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: clamp(400px, 46vw, 470px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px -16px rgba(8, 36, 74, 0.12), 0 4px 16px rgba(8, 36, 74, 0.04);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

[data-theme="dark"] .hero-matrix-showcase {
  background: #081a33;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.7);
}

/* 1. Matrix Blueprint Grid Floor */
.matrix-grid-surface {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(to right, rgba(23, 105, 211, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 105, 211, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center center;
  pointer-events: none;
}

[data-theme="dark"] .matrix-grid-surface {
  background-image:
    linear-gradient(to right, rgba(45, 226, 219, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 226, 219, 0.08) 1px, transparent 1px);
}

/* 2. Concentric Orbit Rings (Slow Perpetual Rotation) */
.matrix-orbit-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(19, 184, 177, 0.35);
}

.ring-inner {
  width: 170px;
  height: 170px;
  animation: rotateOrbitSlow 45s linear infinite reverse;
}

.ring-middle {
  width: 250px;
  height: 250px;
  animation: rotateOrbitSlow 65s linear infinite;
}

.ring-outer {
  width: 340px;
  height: 340px;
  border-color: rgba(19, 184, 177, 0.24);
  animation: rotateOrbitSlow 90s linear infinite reverse;
}

@keyframes rotateOrbitSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Orbit Data Blips (Traveling around orbit rings) */
.orbit-data-blip {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cf-brand-teal);
  box-shadow: 0 0 10px var(--cf-brand-teal), 0 0 18px var(--cf-brand-blue);
}

.blip-1 {
  top: -4.5px;
  left: 50%;
  transform: translateX(-50%);
  animation: blipGlow 2.5s ease-in-out infinite alternate;
}

.blip-2 {
  bottom: 22px;
  right: 18px;
  background: var(--cf-brand-blue);
  box-shadow: 0 0 12px var(--cf-brand-blue);
  animation: blipGlow 3s ease-in-out infinite alternate 0.5s;
}

.blip-3 {
  top: 28px;
  left: 18px;
  animation: blipGlow 2.8s ease-in-out infinite alternate 1.2s;
}

.blip-4 {
  top: 50%;
  right: -4.5px;
  transform: translateY(-50%);
  animation: blipGlow 3.5s ease-in-out infinite alternate 0.8s;
}

@keyframes blipGlow {
  0% { transform: scale(0.9); opacity: 0.75; }
  100% { transform: scale(1.35); opacity: 1; }
}

[data-theme="dark"] .orbit-ring {
  border-color: rgba(45, 226, 219, 0.38);
}
[data-theme="dark"] .ring-outer {
  border-color: rgba(45, 226, 219, 0.22);
}

/* 3. Central Node: CF REVENUE OS Sphere with Logo Brand Colors & Radar Ripples */
.matrix-center-node {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(30px);
}

/* Radar pulse ripple rings expanding outward */
.center-radar-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--cf-brand-teal);
  pointer-events: none;
  opacity: 0;
  animation: radarRipple 3.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.pulse-1 {
  width: 120px;
  height: 120px;
}

.pulse-2 {
  width: 120px;
  height: 120px;
  animation-delay: 1.8s;
}

@keyframes radarRipple {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Center sphere styled with exact ClaimFusion Logo Colors:
   Deep Navy (#08244a), Electric Blue (#1769d3), Medical Teal (#13b8b1) */
.center-sphere {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #13b8b1 0%, #1769d3 42%, #08244a 88%, #051630 100%);
  box-shadow:
    0 16px 36px rgba(8, 36, 74, 0.42),
    0 2px 8px rgba(8, 36, 74, 0.25),
    0 0 0 4px rgba(19, 184, 177, 0.35),
    0 0 0 10px rgba(23, 105, 211, 0.14),
    0 0 36px rgba(19, 184, 177, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  animation: spherePulse 4s ease-in-out infinite alternate;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.center-sphere::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.center-sphere:hover {
  transform: scale(1.08) translateZ(10px);
  box-shadow:
    0 22px 48px rgba(8, 36, 74, 0.5),
    0 0 0 6px rgba(19, 184, 177, 0.5),
    0 0 0 14px rgba(23, 105, 211, 0.22),
    0 0 50px rgba(19, 184, 177, 0.55);
}

@keyframes spherePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

[data-theme="dark"] .center-sphere {
  background: radial-gradient(circle at 32% 26%, #2de2db 0%, #1769d3 45%, #08244a 85%, #051630 100%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.75),
    0 0 0 4px rgba(45, 226, 219, 0.45),
    0 0 0 10px rgba(23, 105, 211, 0.2),
    0 0 42px rgba(45, 226, 219, 0.4);
}

.center-cf-brand {
  font-size: 1.7rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 3px;
  text-shadow: 0 2px 10px rgba(8, 36, 74, 0.6);
}

.center-os-label {
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e7fbfb;
  text-shadow: 0 1px 6px rgba(8, 36, 74, 0.5);
  margin-bottom: 4px;
}

.center-live-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(8, 36, 74, 0.55);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(19, 184, 177, 0.4);
}

.live-dot-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.8s infinite;
}

/* 4. Satellite Cards (Elevated 3D Layer with Organic Floating Motion) */
.matrix-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(8, 36, 74, 0.1);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow:
    0 14px 30px -8px rgba(8, 36, 74, 0.12),
    0 4px 10px rgba(8, 36, 74, 0.04);
  z-index: 4;
  transform: translateZ(20px);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  min-width: 140px;
}

.matrix-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -6px rgba(8, 36, 74, 0.12);
}

[data-theme="dark"] .matrix-card {
  background: #0d264a;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.matrix-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .matrix-card-title {
  color: #ffffff !important;
}

.matrix-card-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

[data-theme="dark"] .matrix-card-sub {
  color: #94a3b8 !important;
}

.matrix-card-status.status-teal {
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  color: #0d9488;
}

[data-theme="dark"] .matrix-card-status.status-teal {
  color: #2de2db !important;
}

/* Top-Left: Claim File Card */
.card-claim-file {
  top: 36px;
  left: 20px;
  transform: rotate(-3deg) translateZ(24px);
  animation: cardFloatA 6s ease-in-out infinite;
}
.card-claim-file:hover {
  transform: rotate(-3deg) translateY(-5px) translateZ(32px);
}

.claim-skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0;
}

.claim-skeleton-lines .sk-line {
  height: 4px;
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 50%, #cbd5e1 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: shimmerScan 3s linear infinite;
}
.sk-1 { width: 85%; }
.sk-2 { width: 100%; animation-delay: 0.3s; }
.sk-3 { width: 70%; animation-delay: 0.6s; }

@keyframes shimmerScan {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

[data-theme="dark"] .claim-skeleton-lines .sk-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(45, 226, 219, 0.4) 50%, rgba(255, 255, 255, 0.15) 100%);
  background-size: 200% 100%;
}

/* Top-Right: Live DSO Card */
.card-live-dso {
  top: 32px;
  right: 22px;
  padding-top: 24px;
  transform: translateZ(28px);
  animation: cardFloatB 7s ease-in-out infinite 0.5s;
}
.card-live-dso:hover {
  transform: translateY(-5px) translateZ(36px);
}

.dso-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 24px;
  margin: 6px 0;
}

.dso-bar {
  border-radius: 3px;
  width: 18px;
  transform-origin: bottom;
  animation: barEqualize 2.4s ease-in-out infinite alternate;
}
.bar-1 { height: 16px; background: #13b8b1; animation-delay: 0s; }
.bar-2 { height: 24px; background: #1769d3; animation-delay: 0.4s; }
.bar-3 { height: 12px; background: #13b8b1; animation-delay: 0.8s; }

@keyframes barEqualize {
  0% { transform: scaleY(0.75); }
  50% { transform: scaleY(1.1); }
  100% { transform: scaleY(0.85); }
}

[data-theme="dark"] .bar-1,
[data-theme="dark"] .bar-3 {
  background: #2de2db;
}

/* Bottom-Left: Deduction Card */
.card-deduction {
  bottom: 24px;
  left: 18px;
  padding-bottom: 16px;
  transform: translateZ(26px);
  animation: cardFloatB 6.5s ease-in-out infinite 1.2s;
}
.card-deduction:hover {
  transform: translateY(-5px) translateZ(34px);
}

/* Bottom-Right: Settlement Card */
.card-settlement {
  bottom: 24px;
  right: 18px;
  transform: translateZ(22px);
  animation: cardFloatA 7.5s ease-in-out infinite 1.8s;
}
.card-settlement:hover {
  transform: translateY(-5px) translateZ(30px);
}

@keyframes cardFloatA {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes cardFloatB {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}

/* 5. Overlapping / Satellite Pill Badges */
.matrix-overlap-badge {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(8, 36, 74, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: 0 8px 20px -4px rgba(8, 36, 74, 0.12);
  z-index: 6;
  white-space: nowrap;
}

[data-theme="dark"] .matrix-overlap-badge {
  background: #081a33;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.badge-claims-desk {
  top: 14px;
  right: 130px;
  animation: cardFloatA 6s ease-in-out infinite 0.3s;
}

/* Standalone Satellite Pill: AR Watchlist positioned with clean breathing room */
.badge-ar-watchlist {
  bottom: 12px;
  left: 200px;
  animation: cardFloatB 7s ease-in-out infinite 1s;
}

.badge-mini-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

[data-theme="dark"] .badge-mini-label {
  color: #94a3b8 !important;
}

.badge-mini-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1px;
}

[data-theme="dark"] .badge-mini-title {
  color: #ffffff !important;
}

@media (max-width: 640px) {
  /* Hide overlapping badges on mobile to keep four cards and center sphere clean and spacious */
  .badge-claims-desk,
  .badge-ar-watchlist,
  .matrix-overlap-badge {
    display: none !important;
  }

  .hero-matrix-showcase {
    height: 360px;
    max-width: 100%;
    margin-inline: auto;
  }
  .card-claim-file {
    top: 14px;
    left: 8px;
  }
  .card-live-dso {
    top: 14px;
    right: 8px;
    padding-top: 14px;
  }
  .card-deduction {
    bottom: 16px;
    left: 8px;
  }
  .card-settlement {
    bottom: 16px;
    right: 8px;
  }
  .matrix-card {
    padding: 9px 12px;
    min-width: 105px;
  }
  .matrix-card-title {
    font-size: 0.82rem;
    margin-bottom: 3px;
  }
  .matrix-card-sub {
    font-size: 0.68rem;
    margin-top: 3px;
  }
  .matrix-card-status.status-teal {
    font-size: 0.72rem;
  }
  .center-sphere {
    width: 90px;
    height: 90px;
  }
  .center-cf-brand {
    font-size: 1.3rem;
  }
  .center-os-label {
    font-size: 0.52rem;
  }
  .ring-inner { width: 120px; height: 120px; }
  .ring-middle { width: 175px; height: 175px; }
  .ring-outer { width: 240px; height: 240px; }
}

@media (max-width: 380px) {
  .hero-matrix-showcase {
    transform: scale(0.88);
    transform-origin: center center;
    margin-block: -16px;
  }
}

@media (max-width: 330px) {
  .hero-matrix-showcase {
    transform: scale(0.80);
    transform-origin: center center;
    margin-block: -28px;
  }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cf-brand-navy), var(--cf-brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}

.floating-content strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 800;
}
.floating-content span {
  display: block;
  font-size: 0.74rem;
  color: var(--cf-brand-teal);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Section System & Bento Layouts
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(64px, 8vw, 110px);
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.75rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.15rem;
  font-weight: 800;
}

.section-desc {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 720px;
}
.section-header.text-center .section-desc {
  margin-inline: auto;
}

/* Bento Grid (Platform 4 Pillars) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cf-brand-teal), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(19, 184, 177, 0.45);
  box-shadow: 0 16px 36px -8px rgba(8, 36, 74, 0.12), 0 0 20px rgba(19, 184, 177, 0.15);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-num {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--cf-brand-teal);
  margin-bottom: 1.25rem;
  font-family: 'Plus Jakarta Sans', monospace;
  transition: transform 0.25s var(--ease-spring);
}

.bento-card:hover .bento-num {
  transform: scale(1.08) translateX(2px);
}

.bento-title {
  font-size: 1.2rem;
  font-weight: 750;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.bento-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Challenges Section
   -------------------------------------------------------------------------- */
.challenge-section-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease;
}

.challenge-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-4px);
}

.challenge-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.challenge-title {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.challenge-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Workflow 9-Step Lifecycle & Interactive Orbit
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Workflow Architectural Matrix Showcase (Harmonized with Hero Section)
   Concentric Rotating Orbit Rings, Blueprint Floor, Radar Pulse & 5 Stage Nodes
   -------------------------------------------------------------------------- */
.workflow-orbit-interactive {
  position: relative;
  width: 100%;
  max-width: 660px;
  height: clamp(380px, 44vw, 440px);
  margin: 0 auto 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px -12px rgba(8, 36, 74, 0.1), 0 4px 16px rgba(8, 36, 74, 0.04);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

[data-theme="dark"] .workflow-orbit-interactive {
  background: #081a33;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 64px -14px rgba(0, 0, 0, 0.65);
}

/* 1. Workflow Architectural Blueprint Grid Floor */
.workflow-grid-surface {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(to right, rgba(23, 105, 211, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 105, 211, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center center;
  pointer-events: none;
}

[data-theme="dark"] .workflow-grid-surface {
  background-image:
    linear-gradient(to right, rgba(45, 226, 219, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 226, 219, 0.08) 1px, transparent 1px);
}

/* 2. Concentric Orbit Rings (Rotating in Sync with Hero Motion) */
.workflow-orbit-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
}

.wf-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(19, 184, 177, 0.32);
}

[data-theme="dark"] .wf-ring {
  border-color: rgba(45, 226, 219, 0.35);
}

.wf-ring-inner {
  width: 170px;
  height: 170px;
  animation: rotateOrbitSlow 45s linear infinite reverse;
}

.wf-ring-middle {
  width: 260px;
  height: 260px;
  animation: rotateOrbitSlow 65s linear infinite;
}

.wf-ring-outer {
  width: 360px;
  height: 360px;
  border-color: rgba(19, 184, 177, 0.22);
  animation: rotateOrbitSlow 90s linear infinite reverse;
}

[data-theme="dark"] .wf-ring-outer {
  border-color: rgba(45, 226, 219, 0.2);
}

/* 3. Orbit Traveling Data Blips */
.wf-orbit-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf-brand-teal);
  box-shadow: 0 0 10px var(--cf-brand-teal), 0 0 16px var(--cf-brand-blue);
}

.wf-blip-1 {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  animation: blipGlow 2.5s ease-in-out infinite alternate;
}

.wf-blip-2 {
  bottom: 24px;
  right: 20px;
  background: var(--cf-brand-blue);
  box-shadow: 0 0 12px var(--cf-brand-blue);
  animation: blipGlow 3.2s ease-in-out infinite alternate 0.4s;
}

.wf-blip-3 {
  top: 30px;
  left: 20px;
  animation: blipGlow 2.7s ease-in-out infinite alternate 1s;
}

.wf-blip-4 {
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  animation: blipGlow 3.4s ease-in-out infinite alternate 0.7s;
}

/* 4. Central Core Sphere Node with Logo Colors & Radar Pulse */
.workflow-center-node {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(28px);
}

.wf-radar-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--cf-brand-teal);
  pointer-events: none;
  opacity: 0;
  animation: radarRipple 3.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.wf-pulse-1 {
  width: 120px;
  height: 120px;
}

.wf-pulse-2 {
  width: 120px;
  height: 120px;
  animation-delay: 1.9s;
}

.orbit-center-disc {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #13b8b1 0%, #1769d3 42%, #08244a 88%, #051630 100%);
  box-shadow:
    0 16px 36px rgba(8, 36, 74, 0.42),
    0 2px 8px rgba(8, 36, 74, 0.25),
    0 0 0 4px rgba(19, 184, 177, 0.35),
    0 0 0 10px rgba(23, 105, 211, 0.14),
    0 0 36px rgba(19, 184, 177, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 10px;
  color: #ffffff;
  animation: spherePulse 4s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .orbit-center-disc {
  background: radial-gradient(circle at 32% 26%, #2de2db 0%, #1769d3 45%, #08244a 85%, #051630 100%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.75),
    0 0 0 4px rgba(45, 226, 219, 0.45),
    0 0 0 10px rgba(23, 105, 211, 0.2),
    0 0 42px rgba(45, 226, 219, 0.4);
}

.orbit-center-disc span.brand-tag {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.orbit-center-disc small {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e7fbfb;
  margin-bottom: 4px;
}

/* 5. Workflow Stage Cards (Symmetrically Positioned Orbit Nodes) */
.wf-stage-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(8, 36, 74, 0.1);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  box-shadow:
    0 12px 28px -6px rgba(8, 36, 74, 0.12),
    0 4px 10px rgba(8, 36, 74, 0.04);
  z-index: 4;
  transform: translateZ(24px);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wf-stage-card:hover {
  transform: translateY(-4px) translateZ(30px);
  box-shadow: 0 16px 36px -8px rgba(8, 36, 74, 0.16);
  border-color: var(--cf-brand-teal);
}

[data-theme="dark"] .wf-stage-card {
  background: #0d264a;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.wf-stage-step {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(19, 184, 177, 0.12);
  color: var(--cf-brand-teal);
  font-size: 0.8rem;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .wf-stage-step {
  background: rgba(45, 226, 219, 0.18);
  color: #2de2db;
}

.wf-stage-info strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

[data-theme="dark"] .wf-stage-info strong {
  color: #ffffff !important;
}

.wf-stage-info small {
  display: block;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

[data-theme="dark"] .wf-stage-info small {
  color: #94a3b8 !important;
}

/* Stage Card Layout Coordinates on Desktop */
.wf-stage-1 {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  animation: cardFloatA 6s ease-in-out infinite;
}
.wf-stage-2 {
  top: 95px;
  right: 18px;
  animation: cardFloatB 7s ease-in-out infinite 0.4s;
}
.wf-stage-3 {
  bottom: 26px;
  right: 32px;
  animation: cardFloatA 6.5s ease-in-out infinite 0.8s;
}
.wf-stage-4 {
  bottom: 26px;
  left: 32px;
  animation: cardFloatB 7.5s ease-in-out infinite 1.2s;
}
.wf-stage-5 {
  top: 95px;
  left: 18px;
  animation: cardFloatA 6s ease-in-out infinite 1.6s;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.28s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.workflow-card:hover {
  transform: translateY(-5px);
  border-color: var(--cf-brand-teal);
  box-shadow: 0 12px 28px -6px rgba(8, 36, 74, 0.1), 0 0 16px rgba(19, 184, 177, 0.1);
}

.workflow-step-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cf-brand-navy), var(--cf-brand-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease-spring);
}

.workflow-card:hover .workflow-step-badge {
  transform: scale(1.1) rotate(-4deg);
}

.workflow-card-body h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.workflow-card-body p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

/* --------------------------------------------------------------------------
   Core Modules
   -------------------------------------------------------------------------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.module-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1769d3, #13b8b1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: rgba(19, 184, 177, 0.45);
  box-shadow: 0 20px 42px -10px rgba(8, 36, 74, 0.14), 0 0 22px rgba(19, 184, 177, 0.12);
}

.module-card:hover::after {
  opacity: 1;
}

.module-code {
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: var(--cf-brand-teal);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.module-card h3 {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.module-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Advantage Section
   -------------------------------------------------------------------------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--cf-brand-blue);
  box-shadow: var(--shadow-md);
}

.advantage-pill {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cf-brand-blue), var(--cf-brand-teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.advantage-card h3 {
  font-size: 1.18rem;
  font-weight: 750;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   Analytics & Command Center Mockup
   -------------------------------------------------------------------------- */
.analytics-section-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 2rem;
}

.check-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.check-icon-circle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(19, 184, 177, 0.15);
  border: 1px solid var(--cf-brand-teal);
  color: var(--cf-brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 850;
  margin-top: 2px;
}

.interactive-command-center {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.center-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.center-logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.center-logo-badge img {
  height: 28px;
  filter: var(--logo-filter);
}

.center-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.center-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.center-status-badge {
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--cf-brand-teal);
  background: rgba(19, 184, 177, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(19, 184, 177, 0.25);
  white-space: nowrap;
}

.kpi-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.kpi-stat-box small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-stat-box strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.chart-container-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 22px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.live-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding-bottom: 6px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--cf-brand-teal) 0%, rgba(19, 184, 177, 0.3) 100%);
  border-radius: 6px 6px 2px 2px;
  transition: height 0.8s var(--ease-spring);
}

.bar-label {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.donut-legend-wrap {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.css-donut-chart {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(
    var(--cf-brand-teal) 0% 36%, 
    var(--cf-brand-blue) 36% 68%, 
    #08244a 68% 100%
  );
  box-shadow: inset 0 0 0 26px var(--bg-secondary);
}

[data-theme="dark"] .css-donut-chart {
  background: conic-gradient(
    var(--cf-brand-teal) 0% 36%, 
    var(--cf-brand-blue) 36% 68%, 
    #60a5fa 68% 100%
  );
  box-shadow: inset 0 0 0 26px var(--bg-secondary);
}

.legend-list {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* --------------------------------------------------------------------------
   Integrations Section
   -------------------------------------------------------------------------- */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease;
}

.integration-card:hover {
  transform: translateY(-4px);
  border-color: var(--cf-brand-teal);
  box-shadow: var(--shadow-md);
}

.integration-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-pill-bg);
  border: 1px solid rgba(19, 184, 177, 0.25);
  color: var(--cf-brand-teal);
  font-size: 0.84rem;
  font-weight: 850;
  margin-bottom: 1rem;
}

.integration-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Stakeholder & Security Grids
   -------------------------------------------------------------------------- */
.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stakeholder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease;
}

.stakeholder-card:hover {
  transform: translateY(-4px);
  border-color: var(--cf-brand-teal);
  box-shadow: var(--shadow-md);
}

.stakeholder-card h3 {
  font-size: 1.25rem;
  font-weight: 750;
  margin-bottom: 0.9rem;
  color: var(--text-primary);
}

.stakeholder-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.security-section-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.security-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: flex-start;
}

.security-cards-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.security-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.security-mini-card h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.security-mini-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Why ClaimFusion Banner
   -------------------------------------------------------------------------- */
.why-cf-banner {
  background: var(--bg-banner);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px);
  position: relative;
  overflow: hidden;
  color: var(--bg-banner-text);
  box-shadow: var(--shadow-lg);
}

.why-content-wrap {
  max-width: 840px;
  position: relative;
  z-index: 2;
}

.why-content-wrap .eyebrow {
  color: #7ee2dc;
}
.why-content-wrap .eyebrow::before {
  background-color: #7ee2dc;
  box-shadow: 0 0 8px #7ee2dc;
}

.why-content-wrap h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.why-content-wrap p {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.why-content-wrap .btn {
  background: #ffffff;
  color: var(--cf-brand-navy);
}

.why-content-wrap .btn:hover {
  background: var(--cf-brand-cyan);
}

/* --------------------------------------------------------------------------
   Contact & Demo Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: flex-start;
}

.contact-info-list {
  display: grid;
  gap: 14px;
  margin-top: 2rem;
}

.contact-info-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-spring), border-color 0.15s ease, color 0.15s ease;
}

.contact-info-link:hover {
  color: var(--cf-brand-blue);
  border-color: var(--cf-brand-blue);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(19, 184, 177, 0.12);
  color: var(--cf-brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.booking-form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.booking-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--cf-brand-teal);
  box-shadow: 0 0 0 3px rgba(19, 184, 177, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 96px;
}

.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}
.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding-block: 54px 28px;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand img {
  height: 38px;
  margin-bottom: 8px;
  filter: var(--logo-filter);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 26px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-bottom a:hover {
  color: var(--cf-brand-blue);
}

/* --------------------------------------------------------------------------
   Dark Mode Explicit Text Contrast & Legibility Guards (/better-ui & /notavibecoder)
   Guarantees 100% crystal-clear readability across all devices
   -------------------------------------------------------------------------- */
[data-theme="dark"] .eyebrow {
  color: #2de2db;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .bento-title,
[data-theme="dark"] .challenge-title,
[data-theme="dark"] .module-card h3,
[data-theme="dark"] .advantage-card h3,
[data-theme="dark"] .stakeholder-card h3,
[data-theme="dark"] .security-mini-card h4,
[data-theme="dark"] .workflow-card-body h4,
[data-theme="dark"] .center-title,
[data-theme="dark"] .kpi-stat-box strong,
[data-theme="dark"] .console-metric-box strong.metric-value {
  color: #ffffff !important;
}

[data-theme="dark"] .section-desc,
[data-theme="dark"] .bento-text,
[data-theme="dark"] .challenge-text,
[data-theme="dark"] .module-card p,
[data-theme="dark"] .advantage-card p,
[data-theme="dark"] .stakeholder-card p,
[data-theme="dark"] .security-mini-card p,
[data-theme="dark"] .workflow-card-body p,
[data-theme="dark"] .integration-card p,
[data-theme="dark"] .check-list-item,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .partner-indicator,
[data-theme="dark"] .legend-item,
[data-theme="dark"] .chart-header,
[data-theme="dark"] .flow-title,
[data-theme="dark"] .flow-step-name,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-bottom a {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .partner-indicator strong {
  color: #38bdf8 !important;
}

[data-theme="dark"] .center-subtitle,
[data-theme="dark"] .kpi-stat-box small,
[data-theme="dark"] .bar-label,
[data-theme="dark"] .console-metric-box span.metric-label,
[data-theme="dark"] .footer-bottom {
  color: #94a3b8 !important;
}

/* Card backing contrast in dark mode */
[data-theme="dark"] .console-metric-box,
[data-theme="dark"] .console-flow-card,
[data-theme="dark"] .kpi-stat-box,
[data-theme="dark"] .chart-container-box,
[data-theme="dark"] .donut-legend-wrap {
  background: #081a33;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .feature-icon-badge {
  filter: brightness(1.2);
}

[data-theme="dark"] .flow-step-item {
  background: #0d264a;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Form input crystal-clear contrast in dark mode */
[data-theme="dark"] .form-control {
  background: #081a33;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .form-control::placeholder {
  color: #94a3b8;
  opacity: 0.85;
}

[data-theme="dark"] .form-control option {
  background: #081a33;
  color: #ffffff;
}

/* Primary Button in Dark Mode */
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #1769d3 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -4px rgba(23, 105, 211, 0.45);
}

/* Contact Links in Dark Mode */
[data-theme="dark"] .contact-info-link {
  background: var(--bg-card);
  color: #ffffff;
  border-color: var(--border-light);
}

[data-theme="dark"] .contact-info-link:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

/* Logos on dark surfaces: provide crisp, zero-glow white backing so native logo is 100% visible */
[data-theme="dark"] .center-logo-badge img {
  background: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

[data-theme="dark"] .footer-brand img {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Badges & Pills in dark mode */
[data-theme="dark"] .segment-badge {
  background: #0b2242;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero-pill-tag {
  background: rgba(19, 184, 177, 0.15);
  color: #2de2db;
  border-color: rgba(45, 226, 219, 0.3);
}

[data-theme="dark"] .orbit-satellite {
  background: #0b2242;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .workflow-step-badge {
  background: linear-gradient(135deg, #1769d3, #0d9488);
  color: #ffffff;
}

[data-theme="dark"] .challenge-badge-num {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

[data-theme="dark"] .check-icon-circle {
  background: rgba(45, 226, 219, 0.18);
  color: #2de2db;
  border-color: #2de2db;
}

[data-theme="dark"] .center-status-badge {
  background: rgba(45, 226, 219, 0.18);
  color: #2de2db;
  border-color: rgba(45, 226, 219, 0.35);
}

/* --------------------------------------------------------------------------
   Comprehensive Responsive Breakpoints (320px, 640px, 768px, 1024px, 1280px)
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-links {
    gap: clamp(0.5rem, 1vw, 1.1rem);
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .bento-grid,
  .challenge-grid,
  .modules-grid,
  .advantage-grid,
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-cards-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .site-header .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .analytics-grid,
  .security-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

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

  .hero-glass-console {
    max-width: 600px;
    margin-inline: auto;
  }

  .interactive-command-center {
    max-width: 600px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow from AOS translate offsets on mobile */
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: none !important;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  /* Global Section & Card Padding Refinement */
  .section {
    padding-block: 52px;
  }

  .container {
    padding-inline: 16px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .header-inner {
    gap: 8px;
  }

  .phone-quick-link {
    display: none;
  }

  .brand-logo-img {
    height: 32px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-sm {
    padding: 0 12px;
    font-size: 0.82rem;
    height: 36px;
  }

  .bento-grid,
  .challenge-grid,
  .modules-grid,
  .advantage-grid,
  .integration-grid,
  .workflow-track,
  .kpi-row-3,
  .console-inner-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bento-card,
  .challenge-card,
  .module-card,
  .advantage-card,
  .integration-card,
  .workflow-card,
  .stakeholder-card {
    padding: 22px 18px;
  }

  .module-card {
    min-height: auto;
  }

  .interactive-command-center {
    padding: 20px 16px;
  }

  .center-top-bar {
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
  }

  .live-bar-chart {
    height: 130px;
    gap: 8px;
  }

  .hero-section {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .hero-glow-1 {
    right: -20px;
    max-width: 80vw;
    height: 80vw;
  }

  .hero-glow-2 {
    left: -20px;
    max-width: 70vw;
    height: 70vw;
  }

  .hero-badge-pill {
    margin-bottom: 1rem;
    padding: 5px 12px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .hero-pill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.15rem;
  }

  .hero-pill-tag {
    font-size: 0.74rem;
    padding: 4px 10px;
    line-height: 1.3;
  }

  .hero-segments-marquee {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .segment-badge {
    font-size: 0.72rem;
    padding: 4px 9px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .donut-legend-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 16px;
    padding: 14px;
  }

  .card-top-right,
  .card-bottom-left {
    position: static;
    margin-top: 10px;
    animation: none;
  }

  .workflow-orbit-interactive {
    height: 380px;
    max-width: 100%;
    margin: 0 auto 36px;
  }

  .workflow-center-node .orbit-center-disc {
    width: 90px;
    height: 90px;
  }

  .workflow-center-node .orbit-center-disc span.brand-tag {
    font-size: 0.95rem;
  }

  .workflow-center-node .orbit-center-disc small {
    font-size: 0.48rem;
  }

  .wf-ring-inner { width: 110px; height: 110px; }
  .wf-ring-middle { width: 180px; height: 180px; }
  .wf-ring-outer { width: 250px; height: 250px; }

  .wf-stage-card {
    padding: 6px 10px;
    gap: 7px;
  }

  .wf-stage-step {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  .wf-stage-info strong {
    font-size: 0.74rem;
  }

  .wf-stage-info small {
    display: none;
  }

  .wf-stage-1 {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .wf-stage-2 {
    top: 76px;
    right: 8px;
  }

  .wf-stage-3 {
    bottom: 16px;
    right: 10px;
  }

  .wf-stage-4 {
    bottom: 16px;
    left: 10px;
  }

  .wf-stage-5 {
    top: 76px;
    left: 8px;
  }

  .form-control {
    font-size: 16px; /* Prevents iOS Safari auto-zoom on input focus */
    min-height: 44px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    height: 44px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 10px;
  }

  .brand-logo-img {
    height: 28px;
  }

  .theme-switch-track {
    width: 48px;
    height: 26px;
  }
  .theme-switch-thumb {
    width: 18px;
    height: 18px;
  }
  [data-theme="dark"] .theme-switch-thumb {
    transform: translate(22px, -50%);
  }

  .header-actions .btn-sm {
    display: none; /* Keep clean space for logo, toggle & hamburger on ultra-small screens */
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .btn {
    padding: 0 16px;
    font-size: 0.88rem;
  }

  .workflow-orbit-interactive {
    transform: scale(0.88);
    transform-origin: center center;
    margin-block: -18px 24px;
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: 12px;
  }

  .bento-card,
  .challenge-card,
  .module-card,
  .advantage-card,
  .integration-card,
  .workflow-card,
  .stakeholder-card {
    padding: 18px 14px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

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

  .kpi-row-3 {
    gap: 10px;
  }

  .kpi-stat-box {
    padding: 14px 12px;
  }

  .chart-container-box {
    padding: 14px 10px;
  }

  .workflow-orbit-interactive {
    transform: scale(0.78);
    transform-origin: center center;
    margin-block: -32px 18px;
  }

  .hero-pill-strip {
    gap: 4px;
  }

  .hero-pill-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .hero-segments-marquee {
    gap: 4px;
  }

  .segment-badge {
    font-size: 0.66rem;
    padding: 3px 7px;
  }
}
