/* =====================================================
   REVALABS.AI - NAVY BLUE + WHITE + BLACK SAAS DESIGN
   Premium Color System
   ===================================================== */

/* ── FONT FACES ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── COLOR SYSTEM ── */
:root {
  /* Primary Colors */
  --navy-blue: #0A1F44;
  --navy-dark: #061528;
  --navy-light: #0F2A56;
  --white: #FFFFFF;
  --black: #000000;

  /* Text Colors */
  --text-on-navy: #FFFFFF;
  --text-on-white: #111111;
  --text-on-black: #E5E5E5;
  --text-muted-on-navy: rgba(255, 255, 255, 0.75);
  --text-muted-on-white: #666666;
  --text-muted-on-black: #AAAAAA;

  /* Accent */
  --accent-blue: #3B82F6;
  --accent-blue-hover: #2563EB;
  --accent-light: #60A5FA;

  /* Borders */
  --border-light: #EAEAEA;
  --border-navy: rgba(255, 255, 255, 0.15);
  --border-black: rgba(255, 255, 255, 0.1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-blue: 0 10px 40px rgba(59, 130, 246, 0.2);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing (8px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 100px;

  /* Transitions */
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-white);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── FADE UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RIPPLE EFFECT ── */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  color: var(--text-on-white);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid var(--border-light);
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

/* Button variants for different sections */
.section-navy .btn-primary {
  background: var(--white);
  color: #000000;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.section-navy .btn-primary:hover {
  background: var(--white);
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.section-navy .btn-ghost {
  border-color: var(--border-navy);
  color: var(--white);
}

.section-navy .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section-black .btn-primary {
  background: var(--accent-blue);
  color: var(--white);
}

.section-black .btn-ghost {
  border-color: var(--border-black);
  color: var(--text-on-black);
}

.section-black .btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

/* ── EYEBROW PILL ── */
.eyebrow-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.section-navy .eyebrow-pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--border-navy);
}

.section-black .eyebrow-pill {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-light);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ── SECTION STYLES ── */
section {
  position: relative;
  padding: var(--space-24) 0;
  z-index: 1;
}

/* Remove padding for full-height sections */
#hero,
#frameworks-new {
  padding: 0;
  margin: 0;
}

.section-navy {
  background: var(--navy-blue);
  color: var(--text-on-navy);
}

.section-white {
  background: var(--white);
  color: var(--text-on-white);
}

.section-black {
  background: var(--black);
  color: var(--text-on-black);
}

/* ── SECTION-SPECIFIC TEXT COLOR ENFORCEMENT ── */
/* Override inline styles to ensure proper contrast */

/* NAVY sections - Light text on dark background */
.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy h5,
.section-navy h6 {
  color: #FFFFFF !important;
}

.section-navy p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.section-navy strong {
  color: #FFFFFF !important;
}

.section-navy em {
  color: rgba(255, 255, 255, 0.85) !important;
}

.section-navy span:not([class*="gradient"]):not(.cta-icon-wrap):not(.hero-count):not(.btn-primary span):not(.btn-primary *) {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Ensure button text maintains proper colors */
.btn-primary span,
.btn-primary * {
  color: inherit !important;
}

.section-navy .btn-primary span,
.section-navy .btn-primary * {
  color: #000000 !important;
}

.section-navy .hero-count {
  color: #FFFFFF !important;
}

.section-navy cite,
.section-navy blockquote cite {
  color: rgba(255, 255, 255, 0.6) !important;
}

.section-navy blockquote {
  color: #FFFFFF !important;
}

/* WHITE sections - Dark text on light background */
.section-white h1,
.section-white h2,
.section-white h3,
.section-white h4,
.section-white h5,
.section-white h6 {
  color: #111111 !important;
}

.section-white p {
  color: #555555 !important;
}

.section-white strong {
  color: #111111 !important;
}

.section-white em {
  color: #333333 !important;
}

.section-white span:not([class*="gradient"]) {
  color: #555555 !important;
}

.section-white cite {
  color: #777777 !important;
}

.section-white blockquote {
  color: #111111 !important;
}

/* BLACK sections - Light gray text on black background */
.section-black h1,
.section-black h2,
.section-black h3,
.section-black h4,
.section-black h5,
.section-black h6 {
  color: #E5E5E5 !important;
}

.section-black p {
  color: #B0B0B0 !important;
}

.section-black strong {
  color: #E5E5E5 !important;
}

.section-black em {
  color: #CCCCCC !important;
}

.section-black span:not([class*="gradient"]) {
  color: #B0B0B0 !important;
}

.section-black cite {
  color: #888888 !important;
}

.section-black blockquote {
  color: #E5E5E5 !important;
}

/* ── COMPONENT COLOR FIXES FOR DARK SECTIONS ── */
/* Pills, badges, and stat elements in navy/black sections */

.section-navy [style*="background:rgba(0,0,0"],
.section-black [style*="background:rgba(0,0,0"] {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
}

.section-navy [style*="font-family:var(--font-body)"],
.section-black [style*="font-family:var(--font-body)"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Ensure stat numbers are visible */
.section-navy .hero-count,
.section-navy [class*="count"],
.section-black .hero-count,
.section-black [class*="count"] {
  color: #FFFFFF !important;
}

/* Ensure small text/captions are readable */
.section-navy [style*="font-size:0.6"],
.section-navy [style*="font-size:0.7"],
.section-navy [style*="font-size:0.68"],
.section-black [style*="font-size:0.6"],
.section-black [style*="font-size:0.7"],
.section-black [style*="font-size:0.68"] {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Links in sections */
.section-navy a:not(.btn-primary):not(.btn-ghost):not(.nav-cta) {
  color: var(--accent-light);
}

.section-white a:not(.btn-primary):not(.btn-ghost):not(.nav-cta):not(.risk-cta-button) {
  color: var(--accent-blue);
}

.section-black a:not(.btn-primary):not(.btn-ghost):not(.nav-cta) {
  color: var(--accent-light);
}

/* List items */
.section-navy li {
  color: rgba(255, 255, 255, 0.75);
}

.section-white li {
  color: #555555;
}

.section-black li {
  color: #B0B0B0;
}

/* ── CARD TEXT COLORS ── */
/* Cards always have specific background colors, so text must match */

/* White cards (default .stripe-card) - Always dark text */
.stripe-card h1,
.stripe-card h2,
.stripe-card h3,
.stripe-card h4,
.stripe-card h5,
.stripe-card h6 {
  color: #111111 !important;
}

.stripe-card p {
  color: #555555 !important;
}

.stripe-card strong {
  color: #111111 !important;
}

.stripe-card em {
  color: #333333 !important;
}

.stripe-card blockquote {
  color: #111111 !important;
}

.stripe-card cite {
  color: #666666 !important;
}

/* Cards in navy/black sections with dark backgrounds */
.section-navy .stripe-card[style*="background:rgba(255"],
.section-black .stripe-card[style*="background:rgba(255"] {
  color: #111111;
}

.section-navy .stripe-card[style*="background:rgba(255"] h1,
.section-navy .stripe-card[style*="background:rgba(255"] h2,
.section-navy .stripe-card[style*="background:rgba(255"] h3,
.section-black .stripe-card[style*="background:rgba(255"] h1,
.section-black .stripe-card[style*="background:rgba(255"] h2,
.section-black .stripe-card[style*="background:rgba(255"] h3 {
  color: #111111 !important;
}

/* ── SPECIFIC ELEMENT FIXES ── */
/* Override problematic inline color values */

/* Navy section: ensure arrows and list markers are visible */
.section-navy li [style*="color:#000000"],
.section-navy .section-title [style*="color:#000000"],
.section-navy div:not(.stripe-card) [style*="color:#000000"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Black section: ensure arrows and list markers are visible */
.section-black li [style*="color:#000000"],
.section-black .section-title [style*="color:#000000"],
.section-black div:not(.stripe-card) [style*="color:#000000"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Gray text improvements in dark sections */
.section-navy [style*="color:#737373"],
.section-black [style*="color:#737373"] {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Keep gray text in white sections */
.section-white [style*="color:#737373"] {
  color: #666666 !important;
}

/* Ensure light text in dark sections stays light */
.section-navy [style*="color:#f1f5f9"],
.section-black [style*="color:#f1f5f9"] {
  color: #FFFFFF !important;
}

/* But inside white cards, use dark text */
.stripe-card [style*="color:#f1f5f9"] {
  color: #111111 !important;
}

/* ── BENCHMARK/FRAMEWORK LIST ITEM HOVER FIX ── */
/* When list items get dark blue background on hover, text must be light */
.fw-item:hover span[style*="color:#f1f5f9"],
.fw-item:hover span[style*="color:#737373"] {
  color: #FFFFFF !important;
}

.fw-item:hover span[style*="font-size:0.75rem"] {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ── FOOTER TEXT COLOR FIXES ── */
/* Footer is on black background - all text must be light */
footer a[style*="color:#000000"],
footer span[style*="color:#000000"],
footer h4[style*="color:#000000"] {
  color: #E5E5E5 !important;
}

/* Footer logo "Labs" part */
footer .nav-logo span[style*="color:#000000"] {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ── ABOUT SECTION (NAVY BACKGROUND) TEXT FIXES ── */
/* Fix black text elements in founder section inside about */
#about .founder-section span[style*="color:#000000"],
#about .founder-section blockquote[style*="color:#000000"] {
  color: #FFFFFF !important;
}

/* Fix border colors in about section */
#about .pillar[style*="border-left:3px solid #000000"] {
  border-left-color: rgba(255, 255, 255, 0.3) !important;
}

#about .founder-section blockquote[style*="border-left:3px solid #000000"] {
  border-left-color: rgba(255, 255, 255, 0.4) !important;
}

/* Note: .labs-gradient styles are now in navbar.css */

.section-title {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.section-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: var(--space-12);
}

.section-navy .section-lead {
  color: var(--text-muted-on-navy);
}

.section-white .section-lead {
  color: var(--text-muted-on-white);
}

.section-black .section-lead {
  color: var(--text-muted-on-black);
}

/* ── CARDS ── */
.stripe-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  padding: var(--space-8);
}

.stripe-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
}

.section-navy .stripe-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-navy);
  backdrop-filter: blur(10px);
}

.section-navy .stripe-card:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-black .stripe-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-black);
}

.section-black .stripe-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ── TILT CARD ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ── TAGS ── */
.tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  transition: all var(--transition-base);
  cursor: default;
}

.tag:hover {
  transform: scale(1.05);
  background: rgba(59, 130, 246, 0.15);
}

.section-navy .tag,
.section-black .tag {
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ── HERO SECTION ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(70px + var(--space-20)) var(--space-8) var(--space-20);
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Animated background blobs for navy hero */
.hero-blob-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: blob-move-1 8s ease-in-out infinite;
  filter: blur(60px);
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
  top: 50px;
  right: -50px;
  animation: blob-move-2 10s ease-in-out infinite;
  filter: blur(70px);
  pointer-events: none;
}

.hero-blob-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  bottom: -50px;
  left: 30%;
  animation: blob-move-3 12s ease-in-out infinite;
  filter: blur(65px);
  pointer-events: none;
}

@keyframes blob-move-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes blob-move-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-30px, 40px) scale(1.08);
  }
  66% {
    transform: translate(20px, -20px) scale(0.92);
  }
}

@keyframes blob-move-3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.1);
  }
}

.hero-two-col {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text-col {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-8);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}

.hero-subheadline {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: var(--space-8);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-navy);
  margin-top: var(--space-12);
}

.hero-stats-row > div {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hero-stats-row > div:not(:last-child) {
  border-right: 1px solid var(--border-navy);
  padding-right: var(--space-6);
}

.hero-stats-row > div:not(:first-child) {
  padding-left: var(--space-6);
}

.hero-count {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: var(--space-2);
  line-height: 1.5;
}

.hero-stat-source {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-1);
  display: block;
}

/* ── FRAMEWORK PILLS ── */
.fw-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-base);
  letter-spacing: -0.01em;
}

.fw-pill:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.fw-label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--space-2);
  animation: pulse 2s ease-in-out infinite;
}

.fw-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── FRAMEWORK STRIP ── */
.fw-track {
  display: inline-flex;
  gap: var(--space-4);
  animation: fw-scroll 45s linear infinite;
  padding: 0 var(--space-4);
}

.fw-track:hover {
  animation-play-state: paused;
}

.fw-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-base);
  cursor: default;
  flex-shrink: 0;
}

.fw-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.fw-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.fw-name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.fw-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@keyframes fw-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── ICON ANIMATIONS ── */
.why-card:hover .why-icon {
  animation: icon-bounce 0.4s ease;
}

@keyframes icon-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  70% {
    transform: translateY(-3px);
  }
}

/* ── FLOATING SHAPES ── */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  pointer-events: none;
}

.floating-shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #fff, transparent);
  top: -80px;
  right: 10%;
  animation: float-shape 8s ease-in-out infinite;
}

.floating-shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #fff, transparent);
  bottom: -40px;
  left: 5%;
  animation: float-shape 6s ease-in-out infinite reverse;
}

.floating-shape-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #fff, transparent);
  top: 40%;
  left: 40%;
  animation: float-shape 10s ease-in-out infinite 2s;
}

@keyframes float-shape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 10px) scale(0.95);
  }
}

/* ── STAT ICONS ── */
.stat-icon-3d {
  flex-shrink: 0;
  animation: float-stat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
  transform-style: preserve-3d;
}

.stat-icon-1 {
  animation-delay: 0s;
}

.stat-icon-2 {
  animation-delay: 0.4s;
}

.stat-icon-3 {
  animation-delay: 0.8s;
}

@keyframes float-stat {
  0%, 100% {
    transform: translateY(0) rotateY(0deg);
  }
  50% {
    transform: translateY(-5px) rotateY(8deg);
  }
}

.stat-ring {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── PARTICLE BACKGROUND ── */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border-black);
  padding: var(--space-20) 0 var(--space-8);
  color: var(--text-on-black);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

footer h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: var(--space-3);
}

footer a {
  color: var(--text-muted-on-black);
  text-decoration: none;
  transition: color var(--transition-base);
  font-size: 0.9375rem;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-bottom-inner {
  border-top: 1px solid var(--border-black);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-inner a {
  font-size: 0.8125rem;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-two-col {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero-text-col {
    text-align: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-stats-row {
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .hero-stats-row > div {
    flex: 0 0 calc(50% - var(--space-4));
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 var(--space-4);
    height: 60px;
  }

  .nav-links,
  .nav-email {
    display: none;
  }

  section {
    padding: var(--space-16) 0;
  }

  #hero {
    padding: calc(60px + var(--space-16)) var(--space-4) var(--space-16);
  }

  .hero-stats-row > div {
    flex: 0 0 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── ACCESSIBILITY ── */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--accent-blue);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: top var(--transition-base);
}

.skip-to-main:focus {
  top: var(--space-4);
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

a:focus,
button:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ── UTILITY CLASSES ── */
.text-center {
  text-align: center;
}

#main-content {
  position: relative;
  z-index: 1;
}

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */

/* Loading state */
body {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

body.loaded {
  opacity: 1;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.reduce-motion .fade-up {
  opacity: 1 !important;
  transform: none !important;
}

/* Enhanced fade-up animation */
.fade-up,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible,
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth navbar transition */
#main-nav {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

/* Card animation readiness */
.stripe-card,
.why-card,
.tilt-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.stripe-card:hover,
.why-card:hover,
.tilt-card:hover {
  will-change: transform, box-shadow;
}

/* Button animation enhancement */
.btn-primary,
.btn-ghost,
.nav-cta {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform;
}

/* Icon animations */
.icon-animated,
.why-icon,
.fw-pill,
.feature-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  will-change: transform;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Hero canvas floating preparation */
#hero-anim {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* Parallax elements */
.hero-blob-1,
.hero-blob-2,
.hero-blob-3,
.floating-shape {
  will-change: transform;
  backface-visibility: hidden;
}

/* ========================================
   SVG ICON STYLING
   ======================================== */

svg.icon {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

/* Icon in framework pills */
.fw-pill svg.icon {
  width: 20px;
  height: 20px;
  margin-right: 0.25rem;
}

/* Icon in framework cards */
.fw-card svg.icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.5rem;
}

/* Icon in feature cards */
.why-card svg.icon,
.stripe-card svg.icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
}

/* Icon colors by section */
.section-navy svg.icon {
  stroke: currentColor;
}

.section-white svg.icon {
  stroke: currentColor;
}

.section-black svg.icon {
  stroke: currentColor;
}

/* Icon hover effects */
svg.icon:hover {
  transform: scale(1.1);
}

/* Icon in buttons */
.btn-primary svg.icon,
.btn-ghost svg.icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for animated elements */
.fade-up,
.stripe-card,
.btn-primary,
.btn-ghost,
.nav-cta,
.hero-blob-1,
.hero-blob-2,
.hero-blob-3 {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Optimize repaints */
@supports (will-change: transform) {
  .fade-up.visible {
    will-change: auto;
  }
}

/* ========================================
   HOVER STATE ENHANCEMENTS
   ======================================== */

/* Enhanced card shadows on hover */
.stripe-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-navy .stripe-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.section-black .stripe-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Button glow effect */
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.section-navy .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ========================================
   MOBILE RESPONSIVE ANIMATIONS
   ======================================== */

@media (max-width: 768px) {
  /* Reduce animation intensity on mobile */
  .fade-up,
  .reveal-on-scroll {
    transform: translateY(20px);
  }

  /* Disable parallax on mobile */
  .hero-blob-1,
  .hero-blob-2,
  .hero-blob-3,
  .floating-shape {
    transform: none !important;
  }

  /* Simplify hover effects on touch devices */
  @media (hover: none) {
    .stripe-card:hover,
    .why-card:hover,
    .tilt-card:hover {
      transform: none;
    }

    .btn-primary:hover,
    .btn-ghost:hover {
      transform: none;
    }
  }
}

/* ========================================
   ACCESSIBILITY FOCUS STATES
   ======================================== */

/* Enhanced focus indicators */
.btn-primary:focus,
.btn-ghost:focus,
.nav-cta:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
  animation: pulse-outline 1.5s ease infinite;
}

@keyframes pulse-outline {
  0%, 100% {
    outline-color: var(--accent-blue);
  }
  50% {
    outline-color: var(--accent-light);
  }
}

.section-navy .btn-primary:focus {
  outline-color: var(--white);
}

/* ========================================
   LOADING ANIMATIONS
   ======================================== */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 1000px 100%;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  /* Disable animations for print */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}



/* ========================================
   SERVICES SECTION - FULL WIDTH SPLIT LAYOUT
   ======================================== */

/* ========================================
   SERVICES SECTION - EXACT REFERENCE MATCH
   ======================================== */

/* Main Section Container */
.services-reference-section {
  background: linear-gradient(135deg, #0A1F44 0%, #061528 100%);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

/* Subtle background gradient */
.services-reference-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Content Container */
.services-reference-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 1;
}

/* Centered Main Heading */
.services-reference-heading {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  margin: 0 0 70px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Two Column Layout: Thin Nav + Wide Card */
.services-reference-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

/* ── LEFT: MINIMAL VERTICAL NAVIGATION ── */
.services-reference-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual Nav Item */
.service-ref-nav-item {
  position: relative;
  padding: 18px 0 18px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Vertical Indicator Line */
.service-ref-indicator {
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, #60A5FA 0%, #3B82F6 100%);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-ref-nav-item.active .service-ref-indicator {
  opacity: 1;
  transform: scaleY(1);
}

/* Service Number */
.service-ref-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.service-ref-nav-item.active .service-ref-number {
  color: #60A5FA;
}

/* Service Title */
.service-ref-title {
  font-family: var(--font-body);
  font-size: 1.175rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
}

.service-ref-nav-item.active .service-ref-title {
  color: #FFFFFF;
  font-weight: 600;
}

/* Hover State */
.service-ref-nav-item:hover:not(.active) .service-ref-title {
  color: rgba(255, 255, 255, 0.65);
}

.service-ref-nav-item:hover:not(.active) .service-ref-number {
  color: rgba(255, 255, 255, 0.5);
}

/* ── RIGHT: HORIZONTAL FEATURED CARD ── */
.services-reference-featured {
  position: relative;
  min-height: 420px;
}

/* Individual Service Card - HORIZONTAL LAYOUT WITH PREMIUM GLASS */
.service-ref-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 420px;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.15) 0%,
    rgba(15, 23, 42, 0.1) 100%
  );
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(71, 85, 105, 0.12);
  border-radius: 20px;
  padding: 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(148, 163, 184, 0.03) inset,
    0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  will-change: transform, opacity;
}

.service-ref-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.service-ref-card.exiting {
  opacity: 1;
  transform: translateX(120%);
  transition: transform 0.6s cubic-bezier(0.6, 0, 0.4, 1),
              opacity 0.3s cubic-bezier(0.6, 0, 0.4, 1) 0.3s;
  z-index: 3;
  pointer-events: none;
}

/* Enhanced hover effect with atmospheric depth */
.service-ref-card:hover {
  border-color: rgba(71, 85, 105, 0.18);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 25px 70px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(148, 163, 184, 0.05) inset,
    0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Image - LEFT SIDE */
.service-ref-image {
  width: 45%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Atmospheric gradient blend into glass panel */
.service-ref-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(10, 31, 68, 0.2) 70%,
    rgba(30, 41, 59, 0.4) 100%
  );
  pointer-events: none;
}

.service-ref-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-ref-card:hover .service-ref-image img {
  transform: scale(1.05);
}

/* Content - RIGHT SIDE - PREMIUM GLASSMORPHISM WITH 3D DEPTH */
.service-ref-content {
  flex: 1;
  padding: 50px 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(51, 65, 85, 0.35) 0%,
    rgba(30, 41, 59, 0.28) 50%,
    rgba(15, 23, 42, 0.32) 100%
  );
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border-left: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 
    /* Premium white inner glow - soft illumination from edges */
    inset 0 0 80px rgba(255, 255, 255, 0.03),
    inset 0 0 40px rgba(255, 255, 255, 0.05),
    inset 0 2px 20px rgba(255, 255, 255, 0.08),
    /* Subtle inner shadows for depth */
    inset 0 1px 0 rgba(148, 163, 184, 0.15),
    inset -1px 0 0 rgba(148, 163, 184, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    /* Soft ambient depth shadow */
    inset 0 0 60px rgba(71, 85, 105, 0.12);
}

/* Layered glass reflection and atmospheric lighting */
.service-ref-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Soft light source from top-left */
    radial-gradient(
      ellipse at 15% 15%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(96, 165, 250, 0.08) 20%,
      transparent 50%
    ),
    /* Subtle ambient light spread */
    radial-gradient(
      ellipse at 50% 0%,
      rgba(148, 163, 184, 0.08) 0%,
      transparent 40%
    ),
    /* Smooth gradient transition for depth */
    linear-gradient(
      135deg,
      rgba(148, 163, 184, 0.15) 0%,
      rgba(71, 85, 105, 0.1) 30%,
      rgba(30, 41, 59, 0.08) 60%,
      rgba(15, 23, 42, 0.06) 100%
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* Premium edge highlights - subtle glass reflection */
.service-ref-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Top edge highlight */
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 2px
    ),
    /* Left edge soft glow */
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 2px,
      transparent 4px
    ),
    /* Bottom subtle shadow for 3D lift */
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.08) 1px,
      transparent 3px
    );
  pointer-events: none;
  z-index: 0;
  border-radius: 0 20px 20px 0;
}

/* Ensure content stays above the overlays */
.service-ref-content > * {
  position: relative;
  z-index: 1;
}

/* Card Title */
.service-ref-card-title {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

/* Card Description */
.service-ref-card-description {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
}

/* CTA Link - Premium Glass Button */
.service-ref-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #60A5FA;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  padding: 11px 22px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(37, 99, 235, 0.08) 100%
  );
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 2px 8px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(148, 163, 184, 0.1);
}

.service-ref-cta:hover {
  color: #93C5FD;
  gap: 10px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(37, 99, 235, 0.15) 100%
  );
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.25),
    0 8px 24px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(148, 163, 184, 0.15);
  transform: translateY(-1px);
}

.service-ref-cta svg {
  transition: transform 0.3s ease;
}

.service-ref-cta:hover svg {
  transform: translateX(3px);
}

/* ── RESPONSIVE DESIGN ── */

/* Large Tablet */
@media (max-width: 1200px) {
  .services-reference-container {
    padding: 0 32px;
  }

  .services-reference-layout {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .service-ref-card {
    height: 340px;
  }

  .service-ref-content {
    padding: 36px 40px;
  }

  .service-ref-card-title {
    font-size: 1.5rem;
  }

  .service-ref-card-description {
    font-size: 0.875rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .services-reference-section {
    padding: 60px 0 80px;
  }

  .services-reference-heading {
    font-size: 2.25rem;
    margin-bottom: 48px;
  }

  .services-reference-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services-reference-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .service-ref-nav-item {
    flex-shrink: 0;
    min-width: 220px;
    padding: 14px 20px;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .service-ref-indicator {
    left: 0;
    right: 0;
    top: auto;
    bottom: -1px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
  }

  .service-ref-nav-item.active .service-ref-indicator {
    transform: scaleX(1);
  }

  .services-reference-featured {
    min-height: 320px;
  }

  .service-ref-card {
    height: 320px;
  }

  .service-ref-image {
    width: 42%;
  }

  .service-ref-content {
    padding: 32px 36px;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .services-reference-section {
    padding: 48px 0 60px;
  }

  .services-reference-container {
    padding: 0 24px;
  }

  .services-reference-heading {
    font-size: 1.875rem;
    margin-bottom: 36px;
  }

  .services-reference-layout {
    gap: 28px;
  }

  .service-ref-nav-item {
    min-width: 200px;
    padding: 12px 18px;
  }

  .service-ref-title {
    font-size: 0.875rem;
  }

  .services-reference-featured {
    min-height: 360px;
  }

  .service-ref-card {
    height: auto;
    min-height: 360px;
    flex-direction: column;
  }

  .service-ref-image {
    width: 100%;
    height: 160px;
  }

  .service-ref-content {
    padding: 24px 28px;
  }

  .service-ref-card-title {
    font-size: 1.375rem;
    margin-bottom: 12px;
  }

  .service-ref-card-description {
    font-size: 0.875rem;
    margin-bottom: 20px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .services-reference-section {
    padding: 40px 0 50px;
  }

  .services-reference-container {
    padding: 0 20px;
  }

  .services-reference-heading {
    font-size: 1.625rem;
    margin-bottom: 28px;
  }

  .service-ref-nav-item {
    min-width: 180px;
    padding: 10px 16px;
  }

  .service-ref-number {
    font-size: 0.625rem;
  }

  .service-ref-title {
    font-size: 0.8125rem;
  }

  .services-reference-featured {
    min-height: 320px;
  }

  .service-ref-card {
    min-height: 320px;
  }

  .service-ref-image {
    height: 140px;
  }

  .service-ref-content {
    padding: 20px 24px;
  }

  .service-ref-card-title {
    font-size: 1.25rem;
  }

  .service-ref-card-description {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .service-ref-cta {
    font-size: 0.8125rem;
  }
}


/* ========================================
   INDUSTRIES SECTION - CARD-BASED LAYOUT
   ======================================== */

/* Grid Container - 2 Column Layout */
.industry-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px;
  margin: 48px 0 0;
  max-width: 100%;
  width: 100%;
}

/* Limit maximum cards per row to 2 */
@supports (grid-template-columns: repeat(2, 1fr)) {
  .industry-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Individual Industry Card */
.industry-card {
  position: relative;
  width: 100%;
  height: 420px; /* Reduced from 520px */
  border-radius: 16px; /* Reduced from 20px */
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Background Image/Video */
.industry-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
}

.industry-card:hover .industry-card-bg {
  transform: scale(1.05);
}

/* Healthcare Card - Default Zoom */
.industry-card:first-child .industry-card-bg {
  transform: scale(1.04);
}

.industry-card:first-child:hover .industry-card-bg {
  transform: scale(1.09);
}

/* Dark Overlay - Stays on Hover */
.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.industry-card:hover .industry-card-overlay {
  opacity: 1;
}

/* Content Container */
.industry-card-content {
  position: relative;
  z-index: 2;
  padding: 28px; /* Reduced from 32px */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

/* Industry Pill - Enhanced Glass Effect */
.industry-card-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.7rem; /* Reduced from 0.75rem */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px; /* Reduced from 6px 14px */
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 14px; /* Reduced from 16px */
  width: fit-content;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.industry-card:hover .industry-card-pill {
  background: rgba(255, 255, 255, 0.3);
}

/* Title */
.industry-card-title {
  font-family: var(--font-body);
  font-size: 1.5rem; /* Reduced from 1.75rem */
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 10px; /* Reduced from 12px */
  letter-spacing: -0.02em;
  text-align: left;
}

/* Description */
.industry-card-description {
  font-family: var(--font-body);
  font-size: 0.875rem; /* Reduced from 0.9375rem */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 56px; /* Reduced from 64px */
  text-align: left;
}

/* CTA Arrow Button - Bottom Left */
.industry-card-cta {
  position: absolute;
  bottom: 28px; /* Reduced from 32px */
  left: 28px; /* Reduced from 32px */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; /* Reduced from 52px */
  height: 48px; /* Reduced from 52px */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #FFFFFF;
  transition: all 0.3s ease;
  z-index: 3;
}

.industry-card:hover .industry-card-cta {
  background: #3B82F6;
  border-color: #3B82F6;
  transform: translateX(4px);
}

.industry-card-cta svg {
  width: 18px; /* Reduced from 20px */
  height: 18px; /* Reduced from 20px */
}

/* ── RESPONSIVE DESIGN ── */

/* Large Desktop - 2 cards per row */
@media (min-width: 1400px) {
  .industry-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Desktop - 2 cards per row */
@media (min-width: 1024px) and (max-width: 1399px) {
  .industry-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
  
  .industry-card {
    height: 380px;
  }
}

/* Tablet - 2 cards per row */
@media (min-width: 768px) and (max-width: 1023px) {
  .industry-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  .industry-card {
    height: 360px;
  }

  .industry-card-content {
    padding: 24px;
  }

  .industry-card-title {
    font-size: 1.35rem;
  }

  .industry-card-description {
    font-size: 0.8125rem;
    margin-bottom: 48px;
  }

  .industry-card-cta {
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
  }
  
  .industry-card-cta svg {
    width: 16px;
    height: 16px;
  }
}

/* Mobile - 1 card per row */
@media (max-width: 767px) {
  .industry-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin: 32px 0 0;
  }

  .industry-card {
    height: 340px;
  }

  .industry-card-content {
    padding: 20px;
  }

  .industry-card-title {
    font-size: 1.25rem;
  }

  .industry-card-description {
    font-size: 0.8125rem;
    margin-bottom: 44px;
  }

  .industry-card-cta {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .industry-card-cta svg {
    width: 16px;
    height: 16px;
  }
  
  .industry-card-pill {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}

/* Small Mobile - Further optimizations */
@media (max-width: 480px) {
  .industry-cards-grid {
    gap: 16px;
    margin: 24px 0 0;
  }

  .industry-card {
    height: 320px;
  }

  .industry-card-content {
    padding: 18px;
  }

  .industry-card-title {
    font-size: 1.15rem;
  }

  .industry-card-description {
    font-size: 0.75rem;
    margin-bottom: 40px;
  }

  .industry-card-cta {
    bottom: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
  }
}


/* ========================================
   WHY REVALABS - COMPARISON SECTION
   ======================================== */

.comparison-table-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Table Wrapper with Outer Border */
.comparison-table-wrapper-new {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

/* Header Row */
.comparison-table-header {
  display: grid;
  grid-template-columns: 160px 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  position: relative;
}

.header-col {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280;
  padding: 32px 0 24px 0;
  position: relative;
}

.header-revalabs {
  background: linear-gradient(
    90deg,
    #EC4899 0%,
    #60A5FA 25%,
    #60A5FA 75%,
    #FFFFFF 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.125rem;
  font-weight: 800;
  padding: 32px 32px 24px 20px;
  margin: 0 -32px 0 0;
  position: relative;
  z-index: 2;
}

/* Table Body */
.comparison-table-body {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Each Row */
.comparison-table-row {
  display: grid;
  grid-template-columns: 160px 1fr 1.3fr;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.comparison-table-row:last-child {
  border-bottom: none;
}

/* Feature Column */
.col-feature h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Traditional Column */
.col-traditional h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #D1D5DB;
  margin-bottom: 6px;
  line-height: 1.5;
}

.col-traditional p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* RevaLabs Column - Highlighted with Gradient Border */
.col-revalabs-new {
  position: relative;
  padding: 24px 28px 24px 20px;
  margin: -24px -32px -24px 0;
}

/* Gradient Border for Entire RevaLabs Column INCLUDING HEADER */
.comparison-table-wrapper-new::after {
  content: '';
  position: absolute;
  right: 40px;
  top: 40px;
  bottom: 40px;
  width: calc(((100% - 160px - 60px - 80px) / 2.3) * 1.3 + 32px);
  background: rgba(10, 31, 68, 0.3);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.comparison-table-wrapper-new::before {
  content: '';
  position: absolute;
  right: 40px;
  top: 40px;
  bottom: 40px;
  width: calc(((100% - 160px - 60px - 80px) / 2.3) * 1.3 + 32px);
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
  -webkit-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: 1;
}

.header-revalabs,
.col-revalabs-new {
  position: relative;
  z-index: 2;
}

/* RevaLabs Item */
.revalabs-item-new {
  display: flex;
  gap: 14px;
  align-items: start;
}

/* Check Icon */
.check-icon-new {
  width: 24px;
  height: 24px;
  background: #3B82F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon-new svg {
  width: 14px;
  height: 14px;
  color: #FFFFFF;
}

.revalabs-item-new h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5;
  background: linear-gradient(90deg, #22D3EE 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 280px;
}

.revalabs-item-new p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #9CA3AF;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 280px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .comparison-table-header,
  .comparison-table-row {
    grid-template-columns: 140px 1fr 1.3fr;
    gap: 24px;
  }
  
  .comparison-table-wrapper-new::after,
  .comparison-table-wrapper-new::before {
    width: calc(((100% - 140px - 48px - 64px) / 2.3) * 1.3 + 32px);
    right: 32px;
    top: 32px;
    bottom: 32px;
  }
  
  .header-revalabs {
    padding: 28px 28px 20px 18px;
    margin: 0 -28px 0 0;
  }
  
  .col-revalabs-new {
    padding: 20px 28px 20px 18px;
    margin: -20px -28px -20px 0;
  }
}

@media (max-width: 768px) {
  .comparison-table-wrapper-new {
    padding: 24px;
  }
  
  .comparison-table-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .header-traditional {
    display: none;
  }
  
  .comparison-table-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .col-traditional {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 8px;
  }
  
  .col-revalabs-new {
    margin: 0;
    padding: 20px;
  }
  
  .comparison-table-wrapper-new::after,
  .comparison-table-wrapper-new::before {
    display: none;
  }
  
  .header-revalabs {
    background: rgba(10, 31, 68, 0.3);
    border: 1.5px solid;
    border-image: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%) 1;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    margin: 0;
  }
  
  .col-revalabs-new {
    background: rgba(10, 31, 68, 0.3);
    border: 1.5px solid;
    border-image: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%) 1;
    border-radius: 0;
    padding: 20px;
    margin: 0;
  }
  
  .comparison-table-row:last-child .col-revalabs-new {
    border-radius: 0 0 12px 12px;
  }
}


/* ========================================
   AI RISK CALCULATOR SECTION - PREMIUM REDESIGN
   ======================================== */

/* Section Container */
.risk-calc-premium-section {
  position: relative;
  background: #F8FAFB;
  padding: 70px 24px;
  overflow: hidden;
}

/* Subtle Background Pattern */
.risk-calc-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/costcalculationBG.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Container */
.risk-calc-container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header Section */
.risk-calc-header {
  text-align: center;
  margin-bottom: 40px;
}

.risk-calc-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.risk-calc-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* Main Calculator Card */
.risk-calc-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Two Column Layout */
.risk-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Left Configuration Panel */
.risk-calc-config {
  position: relative;
  border-radius: 16px;
  padding: 28px;
  background: #FAFBFC;
  overflow: hidden;
}

/* Gradient border using pseudo-element */
.risk-calc-config::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Right Results Panel */
.risk-calc-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section Titles */
.risk-calc-section-title {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

/* Input Group */
.risk-calc-input-group {
  margin-bottom: 28px;
}

.risk-calc-input-group:last-child {
  margin-bottom: 0;
}

/* Label Row */
.risk-calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.risk-calc-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.risk-calc-value {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1E293B;
}

/* Premium Slider Styling */
.risk-calc-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
}

/* Webkit Slider Track - Filled portion */
.risk-calc-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
}

/* Webkit Slider Thumb */
.risk-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid #3B82F6;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
  margin-top: -5px;
}

.risk-calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
  border-color: #2563EB;
}

/* Firefox Slider Track */
.risk-calc-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
}

/* Firefox Slider Progress (filled portion) */
.risk-calc-slider::-moz-range-progress {
  height: 4px;
  background: linear-gradient(90deg, #3B82F6 0%, #6366F1 100%);
  border-radius: 2px;
}

/* Firefox Slider Thumb */
.risk-calc-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid #3B82F6;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.risk-calc-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
  border-color: #2563EB;
}

/* Range Labels */
.risk-calc-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Result Cards */
.risk-calc-result-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.risk-calc-result-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.risk-calc-result-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.risk-calc-result-number {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.risk-calc-orange {
  color: #F59E0B;
}

.risk-calc-red {
  color: #EF4444;
}

/* Premium CTA Button */
.risk-calc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glass overlay effect */
.risk-calc-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0) 100%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.risk-calc-cta-btn span {
  position: relative;
  z-index: 2;
}

.risk-calc-cta-btn svg {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.risk-calc-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
}

.risk-calc-cta-btn:hover svg {
  transform: translateY(2px);
}

.risk-calc-cta-btn:active {
  transform: translateY(0);
}

/* ── RESPONSIVE DESIGN ── */

@media (max-width: 1024px) {
  .risk-calc-card {
    padding: 36px;
  }

  .risk-calc-layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .risk-calc-premium-section {
    padding: 60px 20px;
  }

  .risk-calc-header {
    margin-bottom: 32px;
  }

  .risk-calc-card {
    padding: 28px 24px;
  }

  .risk-calc-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .risk-calc-config {
    padding: 24px;
  }

  .risk-calc-input-group {
    margin-bottom: 24px;
  }

  .risk-calc-result-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .risk-calc-premium-section {
    padding: 50px 16px;
  }

  .risk-calc-card {
    padding: 24px 20px;
  }

  .risk-calc-config {
    padding: 20px;
  }

  .risk-calc-title {
    font-size: 1.75rem;
  }

  .risk-calc-subtitle {
    font-size: 0.9rem;
  }

  .risk-calc-section-title {
    font-size: 1rem;
  }

  .risk-calc-result-number {
    font-size: 1.75rem;
  }

  .risk-calc-cta-btn {
    font-size: 0.875rem;
    padding: 12px 24px;
  }
}

/* ========================================
   PROCESS SECTION - FLOATING BOTTOM-RIGHT CARD
   ======================================== */

/* ══════════════════════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION - CINEMATIC VIDEO WITH FLOATING CARD
   ══════════════════════════════════════════════════════════════════════════════ */

/* Section Container */
.process-video-section {
  position: relative;
  min-height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  overflow: hidden;
  background: #000814;
}

/* Full-Width Video Background */
.process-fullwidth-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.process-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.process-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, 0.45);
  z-index: 1;
}

/* Floating Black Card - Positioned Center to Bottom-Right */
.process-floating-card {
  position: absolute;
  bottom: 10px;
  right: 15px;
  z-index: 10;
  width: 100%;
  max-width: 850px;
  background: rgba(3, 6, 11, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 60px 70px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* Badge */
.process-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* Heading */
.process-card-heading {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 40px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HORIZONTAL TIMELINE WITH VERTICAL CONNECTORS
   ══════════════════════════════════════════════════════════════════════════════ */

/* Horizontal Timeline Container */
.process-timeline-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
  position: relative;
  width: 100%;
  gap: 0;
}

/* Timeline Segment */
.timeline-segment {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

/* Horizontal Lines Container */
.timeline-line-left,
.timeline-line-right {
  position: absolute;
  top: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease;
  width: calc(50% + 45px);
  overflow: hidden;
}

/* Left line positioning */
.timeline-line-left {
  right: 50%;
  margin-right: 24px;
}

/* Right line positioning */
.timeline-line-right {
  left: 50%;
  margin-left: 24px;
}

/* Animated gradient fill for horizontal lines */
.timeline-line-left::after,
.timeline-line-right::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #0A1F44 0%,
    #3B82F6 25%,
    #EC4899 50%,
    #3B82F6 75%,
    #0A1F44 100%
  );
  background-size: 200% auto;
  animation: gradientShift 3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5), 0 0 16px rgba(236, 72, 153, 0.3);
  transition: width 0.4s ease;
}

/* Show blue on left line when hovering current segment */
.timeline-segment:hover .timeline-line-left::after {
  width: 100%;
}

/* Animate the previous segment's right line when hovering current segment */
.timeline-segment:hover + .timeline-segment .timeline-line-left::after,
.timeline-segment:has(+ .timeline-segment:hover) .timeline-line-right::after {
  width: 100%;
}

/* Do NOT show blue on right line when hovering - keep it default */
.timeline-segment:hover .timeline-line-right::after {
  width: 0%;
}

/* Remove the show-left-line and show-right-line automatic classes */
.timeline-segment.show-left-line .timeline-line-left::after {
  width: 0%;
}

.timeline-segment.show-right-line .timeline-line-right::after {
  width: 0%;
}

/* Hide left line on first segment */
.timeline-segment:first-child .timeline-line-left {
  display: none;
}

/* Hide right line on last segment */
.timeline-segment:last-child .timeline-line-right {
  display: none;
}

/* Step Circle Wrapper (contains circle + vertical line + dot) */
.step-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* Step Circle */
.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Vertical Downward Line */
.step-vertical-line {
  width: 2px;
  height: 68px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 1px;
  transition: background 0.4s ease;
}

/* Endpoint Dot */
.step-endpoint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  margin-left: 1px;
  transition: all 0.4s ease;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HOVER STATE - ANIMATED GRADIENT HIGHLIGHT (Same as Labs)
   ══════════════════════════════════════════════════════════════════════════════ */

/* Hover on Circle */
.step-circle-wrapper:hover .step-circle {
  background: linear-gradient(
    90deg,
    #0A1F44 0%,
    #3B82F6 25%,
    #EC4899 50%,
    #3B82F6 75%,
    #0A1F44 100%
  );
  background-size: 200% auto;
  animation: gradientShift 3s ease-in-out infinite;
  border-color: #3B82F6;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(236, 72, 153, 0.3);
}

/* Hover on Vertical Line */
.step-circle-wrapper:hover .step-vertical-line {
  background: linear-gradient(
    180deg,
    #0A1F44 0%,
    #3B82F6 25%,
    #EC4899 50%,
    #3B82F6 75%,
    #0A1F44 100%
  );
  background-size: auto 200%;
  animation: gradientShiftVertical 3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5), 0 0 16px rgba(236, 72, 153, 0.3);
}

/* Hover on Endpoint Dot */
.step-circle-wrapper:hover .step-endpoint-dot {
  background: linear-gradient(
    90deg,
    #0A1F44 0%,
    #3B82F6 25%,
    #EC4899 50%,
    #3B82F6 75%,
    #0A1F44 100%
  );
  background-size: 200% auto;
  animation: gradientShift 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7), 0 0 24px rgba(236, 72, 153, 0.4);
  transform: scale(1.3);
}

/* Keyframe for vertical gradient animation */
@keyframes gradientShiftVertical {
  0%, 100% {
    background-position: center 0%;
  }
  50% {
    background-position: center 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   CONTENT GRID BELOW TIMELINE
   ══════════════════════════════════════════════════════════════════════════════ */

.process-steps-content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
}

.process-step-content-item {
  transition: all 0.3s ease;
  opacity: 0.6;
  text-align: center;
  padding: 0 10px;
}

/* Content Title */
.step-content-title {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

/* Content Description */
.step-content-description {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  transition: color 0.3s ease;
}

/* Highlight content when hovering corresponding circle */
.process-step-content-item.highlight {
  opacity: 1;
}

.process-step-content-item.highlight .step-content-title {
  color: #FFFFFF;
}

.process-step-content-item.highlight .step-content-description {
  color: rgba(255, 255, 255, 0.75);
}

/* ── RESPONSIVE DESIGN ── */

/* Large Desktop */
@media (min-width: 1400px) {
  .process-floating-card {
    max-width: 900px;
    padding: 60px 70px;
  }

  .process-card-heading {
    font-size: 2rem;
    margin-bottom: 48px;
  }

  .process-steps-content-grid {
    gap: 40px;
  }

  .step-circle {
    width: 48px;
    height: 48px;
    font-size: 1.0625rem;
  }

  .step-content-title {
    font-size: 1.125rem;
  }

  .step-content-description {
    font-size: 0.875rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .process-video-section {
    padding: 60px 30px;
  }

  .process-floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 700px;
    margin: 0 auto;
    padding: 44px 50px;
  }

  .process-card-heading {
    font-size: 1.625rem;
    margin-bottom: 36px;
  }

  .process-steps-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 0.9375rem;
  }

  .step-vertical-line {
    height: 40px;
  }

  .step-content-title {
    font-size: 1rem;
  }

  .step-content-description {
    font-size: 0.8125rem;
  }

  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.9375rem;
  }

  .step-connector {
    left: 40px;
    width: calc(100% + 28px);
  }

  /* Hide connectors on 2nd and 4th items in 2x2 grid */
  .process-step-column:nth-child(2) .step-connector,
  .process-step-column:nth-child(4) .step-connector {
    display: none;
  }

  .step-title {
    font-size: 1rem;
  }

  .step-description {
    font-size: 0.8125rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .process-video-section {
    min-height: auto;
    padding: 60px 20px;
  }

  .process-floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 90%;
    padding: 36px 32px;
    margin: 0 auto;
  }

  .process-badge {
    font-size: 0.625rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .process-card-heading {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .process-timeline-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .timeline-segment {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .timeline-line-left,
  .timeline-line-right {
    display: none;
  }

  .process-steps-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-circle {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
  }

  .step-vertical-line {
    height: 35px;
  }

  .step-content-title {
    font-size: 0.9375rem;
    margin-bottom: 6px;
  }

  .step-content-description {
    font-size: 0.8125rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .process-floating-card {
    max-width: 85%;
    padding: 32px 24px;
  }

  .process-card-heading {
    font-size: 1.375rem;
    margin-bottom: 28px;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

  .step-vertical-line {
    height: 30px;
  }

  .step-content-title {
    font-size: 0.875rem;
  }

  .step-content-description {
    font-size: 0.75rem;
  }
}






/* ========================================
   PROBLEM SLIDER SECTION - Interactive Sliding Cards
   ======================================== */

.problem-slider-wrapper {
  margin: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

/* Centralized Progress Indicators Below Cards */
.problem-progress-indicators {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.problem-progress-bar {
  width: 80px;
  height: 4px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-progress-bar.active {
  width: 140px;
  background: rgba(148, 163, 184, 0.3);
}

.problem-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60A5FA 0%, #EC4899 50%, #8B5CF6 100%);
  background-size: 200% auto;
  border-radius: 2px;
  transition: width 5s linear;
  animation: gradientShift 3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.problem-progress-bar.active .problem-progress-bar-fill {
  width: 100%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

.problem-slider-container {
  position: relative;
  width: 97%;
  max-width: 1400px !important;
  height: 500px;
  background: #F8F9FA;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.problem-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.problem-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.problem-slide.exiting {
  opacity: 0;
  transform: translateX(-100%);
}

/* Left Panel - Content */
.problem-slide-content {
  width: 40%;
  background: #F8F4EE;
  border-radius: 28px;
  padding: 50px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 
              0 20px 60px rgba(0, 0, 0, 0.1),
              0 5px 15px rgba(0, 0, 0, 0.08);
}

.problem-slide-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2563EB;
  margin-bottom: 1rem;
  display: block;
}

.problem-slide-title {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 1rem;
  margin-top: 5px;
  letter-spacing: -0.02em;
}

.problem-slide-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #4B5563;
  margin-bottom: 1.5rem;
  margin-top: 5px;
  max-width: 90%;
}

.problem-slide-stat {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
}

.problem-slide-stat p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
  font-style: italic;
}

/* Right Panel - Image */
.problem-slide-image {
  width: 60%;
  height: calc(100% - 40px);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin: 20px 20px 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 
              0 20px 60px rgba(0, 0, 0, 0.1),
              0 5px 15px rgba(0, 0, 0, 0.08);
}

.problem-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 5s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-slide.active .problem-slide-image img {
  transform: scale(1.03);
}

/* Pause animation on hover */
.problem-slider-container:hover .progress-segment.active .progress-segment-fill {
  animation-play-state: paused;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .problem-slider-container {
    width: 90%;
    height: 480px;
  }

  .problem-slide-content {
    padding: 40px;
  }

  .problem-slide-title {
    font-size: 2.5rem;
  }

  .problem-slide-progress {
    bottom: 40px;
    left: 40px;
    right: 40px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .problem-slider-container {
    width: 95%;
    height: auto;
    min-height: 600px;
  }

  .problem-slide {
    flex-direction: column;
  }

  .problem-slide-content {
    width: calc(100% - 40px);
    padding: 36px;
    margin: 20px;
    border-radius: 24px;
  }

  .problem-slide-title {
    font-size: 2rem;
  }

  .problem-slide-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .problem-slide-image {
    width: calc(100% - 40px);
    height: 280px;
    margin: 0 20px 20px 20px;
    border-radius: 24px;
  }

  .problem-slide-progress {
    bottom: 36px;
    left: 36px;
    right: 36px;
  }

  .problem-slide.active .problem-slide-image img {
    transform: scale(1.05);
  }
}

/* ========================================
   INSIGHT BANNER - Dark Wave Pattern
   ======================================== */

.insight-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.insight-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  opacity: 0.5;
  z-index: 0;
  animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
}

.insight-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    linear-gradient(
      135deg,
      transparent 0%,
      transparent 45%,
      rgba(96, 165, 250, 0.12) 50%,
      transparent 55%,
      transparent 100%
    );
  background-size: 100% 100%, 100% 100%, 300% 300%;
  background-position: center, center, -100% -100%;
  animation: waveMove 15s ease-in-out infinite, lightSweep 5s ease-in-out infinite;
  z-index: 0;
}

@keyframes waveMove {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(5%, 5%) rotate(1deg);
  }
  66% {
    transform: translate(-5%, -5%) rotate(-1deg);
  }
}

@keyframes lightSweep {
  0% {
    background-position: center, center, -100% -100%;
  }
  50% {
    background-position: center, center, 100% 100%;
  }
  100% {
    background-position: center, center, -100% -100%;
  }
}

.insight-banner > * {
  position: relative;
  z-index: 1;
}

.insight-banner blockquote {
  color: #FFFFFF !important;
}

.insight-banner blockquote[style*="color"] {
  color: #FFFFFF !important;
}

.insight-banner cite {
  color: rgba(255, 255, 255, 0.7) !important;
}

.insight-banner .insight-stat strong {
  color: #FFFFFF !important;
}

.insight-banner .insight-stat span {
  color: rgba(255, 255, 255, 0.8) !important;
}


/* ========================================
   SOLUTION SECTION - Background Image
   ======================================== */

#solution {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  padding-bottom: 0;
}

#solution .solution-layout > div.fade-up {
  position: relative;
  border-radius: 12px;
  min-height: 1100px;
  width: 180%;
  padding: 0;
  overflow: visible;
}

#solution .solution-layout > div.fade-up::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -25%;
  right: -25%;
  bottom: -10%;
  background-image: url('../assets/solutionbg.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  z-index: -1;
  pointer-events: none;
}

/* Allow solution section image to overflow without being clipped */
#solution,
#solution .container,
#solution .solution-layout,
#solution .solution-layout > div:last-child,
#solution .solution-layout > div.fade-up {
  overflow: visible !important;
}

/* No full-section overlay needed - bg image moved to animation card */

#solution .container {
  position: relative;
  z-index: 1;
  overflow: visible;
}

#solution .solution-layout {
  min-height: 100vh;
  align-items: center;
}

/* Position the right card to fit inside laptop screen */
#solution .solution-layout > div:last-child {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 0%;
  padding-top: 0%;
  margin-top: -8%;
  transform: translate(calc(130px - 4rem), 10px);
  overflow: visible;
}

#solution .stripe-card {
  width: 70%;
  max-width: 500px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1rem !important;
  transform: scale(1) perspective(1000px) rotateY(-2deg) rotateX(2deg) translateX(1.5rem) translateY(-5rem) !important;
  transform-origin: center center;
  transition: none !important;
}

#solution .stripe-card:hover {
  transform: scale(1) perspective(1000px) rotateY(-2deg) rotateX(2deg) translateX(1.5rem) translateY(-5rem) !important;
  box-shadow: none !important;
  border-color: transparent !important;
  background: transparent !important;
}

/* Adjust card text for laptop screen */
#solution .stripe-card [style*="font-size:0.68rem"] {
  font-size: 0.55rem !important;
}

#solution .stripe-card [style*="font-size:0.6rem"] {
  font-size: 0.5rem !important;
}

#solution .stripe-card [style*="font-size:0.78rem"] {
  font-size: 0.65rem !important;
}

#solution .stripe-card svg {
  width: 18px !important;
  height: 18px !important;
}

#solution .audit-dot {
  width: 5px !important;
  height: 5px !important;
}


/* ========================================
   SOLUTION CARDS - PREMIUM STACKED DESIGN
   ======================================== */

.solution-cards-premium-stack {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: 5rem;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Dynamic Progress Indicators Container - Outside Left */
.solution-stack-indicators {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
  min-width: 4px;
  height: 200px;
  justify-content: space-evenly;
}

/* Individual Progress Indicator */
.solution-stack-indicator {
  width: 4px;
  height: 20px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Active Indicator State */
.solution-stack-indicator.active {
  height: 60px;
  background: rgba(148, 163, 184, 0.2);
}

/* Active Indicator Fill Animation */
.solution-stack-indicator.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6),
              0 0 24px rgba(99, 102, 241, 0.4);
  transition: height 5s linear;
}

/* Trigger the fill animation */
.solution-stack-indicator.active.loading::before {
  height: 100%;
}

/* Progress Bars Container - Outside Left */
.solution-stack-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 12px;
}

/* Individual Stacked Card */
.solution-stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(90deg, #000000 0%, #2a2a2a 50%, #000000 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0;
  overflow: visible;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
              0 4px 16px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  will-change: transform, opacity, z-index;
}

/* Glass reflection effect for all cards */
.solution-stack-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.02) 30%,
    transparent 50%,
    rgba(255, 255, 255, 0.02) 70%,
    rgba(255, 255, 255, 0.08) 100%);
  border-radius: 12px;
  pointer-events: none;
  opacity: 1;
}

/* Layered Stacking Effect - Cards Stack BACKWARD with Reducing Width (Package Effect) */
.solution-stack-card:nth-child(1) {
  z-index: 4;
  transform: translateY(0px) translateX(0px);
  width: 100%;
  opacity: 1;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7),
              0 6px 20px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.15),
              0 0 0 2px rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.solution-stack-card:nth-child(2) {
  z-index: 3;
  transform: translateY(-18px) translateX(0px);
  width: 94%;
  left: 3%;
  opacity: 0.95;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.65),
              0 5px 18px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.12),
              0 0 0 2px rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.solution-stack-card:nth-child(3) {
  z-index: 2;
  transform: translateY(-36px) translateX(0px);
  width: 88%;
  left: 6%;
  opacity: 0.92;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
              0 4px 16px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 0 0 2px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.solution-stack-card:nth-child(4) {
  z-index: 1;
  transform: translateY(-54px) translateX(0px);
  width: 82%;
  left: 9%;
  opacity: 0.88;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55),
              0 3px 14px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.08),
              0 0 0 2px rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

/* Active Card State - Front Position */
.solution-stack-card.active {
  z-index: 10 !important;
  transform: translateY(0) translateX(0) rotateX(0deg) !important;
  opacity: 1 !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8),
              0 8px 24px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(59, 130, 246, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Exiting Card Animation - Slides DOWN and OUT */
.solution-stack-card.exiting {
  transform: translateY(280px) translateX(0) rotateX(5deg) scale(0.95) !important;
  opacity: 0 !important;
  z-index: 0 !important;
  transition: all 0.9s cubic-bezier(0.6, 0, 0.4, 1);
  pointer-events: none;
}

/* Moving Forward Animation - Card Coming to Front */
.solution-stack-card.moving-forward {
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s !important;
}

/* Card Content */
.solution-stack-content {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Icon Styling */
.solution-stack-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.solution-stack-card.active .solution-stack-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Title Styling */
.solution-stack-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Description Styling */
.solution-stack-description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Subtle top highlight for all cards */
.solution-stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  opacity: 0.8;
  z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
  .solution-cards-premium-stack {
    height: 260px;
  }
  
  .solution-stack-card {
    height: 220px;
  }
  
  .solution-stack-content {
    padding: 1.5rem;
  }
  
  .solution-stack-title {
    font-size: 1rem;
  }
  
  .solution-stack-description {
    font-size: 0.8125rem;
  }
  
  .solution-stack-icon {
    width: 40px;
    height: 40px;
  }
  
  .solution-stack-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .solution-stack-progress {
    left: -20px;
  }
}

@media (max-width: 480px) {
  .solution-cards-premium-stack {
    height: 280px;
  }
  
  .solution-stack-card {
    height: 240px;
  }
  
  .solution-stack-content {
    padding: 1.25rem;
  }
  
  .solution-stack-title {
    font-size: 0.9375rem;
  }
  
  .solution-stack-description {
    font-size: 0.8rem;
  }
}


/* ========================================
   PREMIUM CTA SECTION - REFERENCE IMAGE MATCH
   ======================================== */

.cta-premium-section {
  position: relative;
  background: #000000;
  padding: 80px 24px;
  overflow: hidden;
  z-index: 1;
}

/* Background pattern overlay using Backgroundlayer.png */
.cta-premium-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/Backgroundlayer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.cta-premium-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cta-premium-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Eyebrow text - thin, elegant */
.cta-premium-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0;
}

/* Main headline - very large, bold, cinematic */
.cta-premium-headline {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
  max-width: 800px;
}

/* Description text - centered, smaller, softer */
.cta-premium-description {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0;
  max-width: 620px;
}

/* Premium gradient CTA button - pill-shaped with glass/neon feel */
.cta-premium-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  margin-top: 12px;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35),
              0 0 40px rgba(99, 102, 241, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glass overlay effect */
.cta-premium-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0) 100%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.cta-premium-button span {
  position: relative;
  z-index: 2;
}

.cta-premium-button svg {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Hover state - enhanced glow and lift */
.cta-premium-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5),
              0 0 60px rgba(99, 102, 241, 0.35),
              0 0 80px rgba(139, 92, 246, 0.15);
}

.cta-premium-button:hover svg {
  transform: translateY(2px);
}

/* Active/pressed state */
.cta-premium-button:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-premium-section {
    padding: 60px 20px;
  }

  .cta-premium-content {
    gap: 16px;
  }

  .cta-premium-button {
    padding: 12px 28px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .cta-premium-section {
    padding: 50px 16px;
  }

  .cta-premium-eyebrow {
    font-size: 0.875rem;
  }

  .cta-premium-headline {
    font-size: 1.75rem;
  }

  .cta-premium-description {
    font-size: 0.9rem;
  }

  .cta-premium-button {
    padding: 11px 24px;
    font-size: 0.875rem;
  }
}

/* Hide all social icons except LinkedIn */
.social-icon[aria-label="X (Twitter)"],
.social-icon[aria-label="Facebook"],
.social-icon[aria-label="Instagram"],
.social-icon[aria-label="YouTube"] {
  display: none !important;
}
