/* ── 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;
  }
}

/* ── HERO CTA BUTTON ARROW ANIMATION ── */
.healthcare-hero-cta {
  color: #FFFFFF !important;
}

.healthcare-hero-cta span {
  color: #FFFFFF !important;
}

.healthcare-hero-cta * {
  color: #FFFFFF !important;
}

.section-navy .healthcare-hero-cta span,
.section-navy .healthcare-hero-cta * {
  color: #FFFFFF !important;
}

.healthcare-hero-cta .hero-cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.healthcare-hero-cta .hero-arrow-icon {
  transition: transform 0.4s ease, stroke 0.3s ease;
  position: relative;
  z-index: 1;
}

.healthcare-hero-cta:hover .hero-cta-icon {
  background: white;
}

.healthcare-hero-cta:hover .hero-arrow-icon {
  stroke: #A855F7;
  stroke-width: 2.5;
  animation: arrowSlide 0.8s ease infinite;
}

.healthcare-hero-cta:hover span {
  color: #FFFFFF !important;
}

@keyframes arrowSlide {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  45% {
    transform: translateX(10px);
    opacity: 0;
  }
  55% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── 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;
}

.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) {
  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;
}

.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;
}

/* ── 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;
}

/* 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%;
}

/* ========================================
   HEALTHCARE HERO SECTION
   ======================================== */

.healthcare-hero {
  padding: calc(70px + 6rem) 2rem calc(6rem + 8rem);
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  padding-top: calc(70px + 4rem);
  background-color: #000000;
  background-image: url('../assets/healthcarebg.jpg');
  background-size: calc(50% + 5rem) auto;
  background-position: calc(100% + 5rem) bottom;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.healthcare-hero .container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.healthcare-hero-content {
  max-width: 750px;
  position: relative;
  z-index: 2;
  text-align: left;
  padding-right: 4rem;
  padding-top: 3rem;
}

.healthcare-hero-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.healthcare-hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem 0;
  color: #FFFFFF;
}

.healthcare-hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.healthcare-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, #60A5FA 0%, #A855F7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.4);
  border-radius: 50px;
  padding: 0.875rem 1.5rem 0.875rem 2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.healthcare-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
}

.healthcare-hero-cta svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .healthcare-hero {
    padding: calc(60px + 4rem) 1.5rem calc(4rem + 8rem);
    min-height: 70vh;
  }
  
  .healthcare-hero-content {
    max-width: 100%;
  }

  .healthcare-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .healthcare-hero-title span {
    white-space: normal !important;
  }
}

/* ========================================
   HEALTHCARE HERO ANIMATION
   ======================================== */

.healthcare-hero .container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.healthcare-hero .container.animate-in {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   FAILURE MODES SECTION
   ======================================== */

.failure-modes-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f0f5 0%, #e0e0f0 50%, #f5e8f5 100%);
  color: #111;
}

.failure-modes-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: #111;
  text-align: center;
}

.failure-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.failure-mode-card {
  background: #fff;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #60A5FA 0%, #EC4899 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  transform-origin: center;
}

.failure-mode-card:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(96, 165, 250, 0.4);
  z-index: 10;
  position: relative;
}

.failure-mode-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.failure-mode-icon img {
  width: 48px;
  height: 48px;
}

.failure-mode-icon-blue {
  background: transparent;
}

.failure-mode-icon-purple {
  background: transparent;
}

.failure-mode-icon-green {
  background: transparent;
}

.failure-mode-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

.failure-mode-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* Failure modes section animations */
.failure-modes-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.failure-modes-title.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for failure mode cards */
.failure-mode-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.failure-mode-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.failure-mode-card.animate-in:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(96, 165, 250, 0.4);
  z-index: 10;
}

/* ========================================
   THE AUTOPSY SECTION
   ======================================== */

.autopsy-section {
  padding: 6rem 0;
  background: #0A1F44;
  background-image: url('../assets/bfsi_autopsybg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 900px;
}

.autopsy-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: #fff;
  text-align: center;
}

.autopsy-layout {
  display: grid;
  grid-template-columns: 35% 47%;
  gap: 18%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  min-height: 700px;
}

.autopsy-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.autopsy-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.autopsy-left .autopsy-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.autopsy-right .autopsy-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.autopsy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.autopsy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 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;
}

.autopsy-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.autopsy-message-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 1px 0 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

.autopsy-message-box:last-of-type {
  margin-bottom: 0;
}

.autopsy-message-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 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;
}

.autopsy-message-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.autopsy-message-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.autopsy-alert-box {
  background: rgba(220, 38, 38, 0.15);
  border: 2px solid rgba(220, 38, 38, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.autopsy-alert-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.autopsy-alert-content {
  flex: 1;
}

.autopsy-alert-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.autopsy-info-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 1px 0 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

.autopsy-info-box:last-of-type {
  margin-bottom: 0;
}

.autopsy-info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 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;
}

.autopsy-info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.autopsy-info-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Connector Lines */
.autopsy-connector-lines {
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  transform: translateX(-50%);
}

.connector-line {
  opacity: 0;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.connector-dot {
  opacity: 0;
  transform-origin: center;
}

.connector-dot-1-end,
.connector-dot-2-end,
.connector-dot-3-end,
.connector-dot-4-end {
  opacity: 0;
}

@media (max-width: 968px) {
  .autopsy-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .autopsy-connector-lines {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .autopsy-section {
    padding: 3rem 0;
  }
  
  .autopsy-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .autopsy-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }
  
  .autopsy-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .autopsy-left {
    gap: 1rem;
  }

  .autopsy-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .autopsy-message-box {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
  }

  .autopsy-message-label {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }

  .autopsy-message-text {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .autopsy-right-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .autopsy-alert-box {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    gap: 0.5rem;
  }

  .autopsy-alert-icon {
    width: 24px;
    height: 24px;
  }

  .autopsy-alert-title {
    font-size: 0.75rem;
  }

  .autopsy-info-box {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
  }

  .autopsy-info-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .autopsy-info-text {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Hide SVG connection lines on mobile */
  .autopsy-connections {
    display: none;
  }
}

/* Autopsy Section Title */
.autopsy-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
}

/* Right Card Container */
.autopsy-right-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(220, 38, 38, 0.6);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.2);
  position: relative;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.autopsy-right-card.animate-in {
  opacity: 1;
  transform: scale(1);
}

.autopsy-right-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.6) 0%, rgba(220, 38, 38, 0.4) 50%, rgba(220, 38, 38, 0.3) 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;
}

/* Connection Lines */
.autopsy-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connection-line {
  opacity: 0;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.connection-dot {
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.8));
}

.connection-dot.glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.8));
  }
  50% {
    opacity: 0.6;
    filter: drop-shadow(0 0 12px rgba(96, 165, 250, 1));
  }
}

.vertical-line {
  stroke-width: 2;
  stroke: url(#connectionGradient);
}

.horizontal-line {
  stroke-width: 2;
  stroke: url(#connectionGradient);
}

/* Autopsy Animation States */
.autopsy-message-box {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.autopsy-message-box.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.autopsy-right-card {
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.autopsy-alert-box,
.autopsy-info-box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.autopsy-alert-box.animate-in,
.autopsy-info-box.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Alert box blinking animation */
@keyframes alert-blink {
  0%, 100% {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
  }
  50% {
    background: rgba(220, 38, 38, 0.35);
    border-color: rgba(220, 38, 38, 0.7);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
  }
}

.autopsy-alert-box.blink-animation {
  animation: alert-blink 0.8s ease-in-out infinite;
}

/* ========================================
   FRAMEWORKS COMPLIANCE SECTION
   ======================================== */

.frameworks-compliance-section {
  padding: 6rem 0;
  background: radial-gradient(circle at bottom right, #E4E7FF 0%, #FFFFFF 50%);
  background-image: url('../assets/bfsi_framework.png');
  background-size: cover;
  background-position: center calc(100% + 32.5rem);
  background-repeat: no-repeat;
  color: #111;
  position: relative;
  overflow: hidden;
}

.frameworks-compliance-wrapper {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.frameworks-compliance-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4) 0%, rgba(236, 72, 153, 0.4) 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;
}

.frameworks-compliance-wrapper.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.frameworks-compliance-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: #111;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.frameworks-compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.framework-compliance-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.framework-compliance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4) 0%, rgba(236, 72, 153, 0.4) 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;
}

.framework-compliance-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.framework-compliance-icon-wrapper {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.framework-compliance-icon-wrapper img {
  width: 48px;
  height: 48px;
}

.framework-compliance-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #111;
}

.framework-compliance-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.framework-compliance-card:last-child {
  grid-column: 1 / -1;
  width: calc((1000px - 2rem) / 2);
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .frameworks-compliance-grid {
    grid-template-columns: 1fr;
  }
  
  .framework-compliance-card:last-child {
    grid-column: 1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .frameworks-compliance-section {
    padding: 3rem 0;
  }

  .frameworks-compliance-wrapper {
    padding: 1.5rem;
    border-radius: 16px;
    margin: 0 1rem;
  }

  .frameworks-compliance-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.3;
  }

  .frameworks-compliance-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .framework-compliance-card {
    padding: 1.25rem;
    border-radius: 12px;
    gap: 1rem;
  }

  .framework-compliance-card:last-child {
    width: 100%;
  }

  .framework-compliance-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .framework-compliance-icon-wrapper img {
    width: 32px;
    height: 32px;
  }

  .framework-compliance-content h3 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
  }

  .framework-compliance-content p {
    font-size: 0.8rem;
  }
}

/* ========================================
   LLM LIMITATIONS SECTION
   ======================================== */

.llm-limitations-section {
  padding: 8rem 0;
  background: #0A1F44;
  background-image: url('../assets/bfsi5.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.llm-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.llm-content-wrapper.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.llm-main-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #fff;
}

.llm-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.llm-cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #60A5FA 0%, #A855F7 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.4);
  margin-top: 2rem;
}

.llm-cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
  background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
}

/* ========================================
   AI PROMISE SECTION
   ======================================== */

.ai-promise-section {
  padding: 6rem 0;
  background: #172443;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ai-promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.ai-promise-content {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ai-promise-content.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.ai-promise-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: #fff;
}

.ai-promise-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.ai-promise-cta {
  display: inline-block;
  background: linear-gradient(90deg, #60A5FA 0%, #A855F7 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.4);
}

.ai-promise-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
}

.ai-promise-image {
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  padding-right: 2rem;
  margin-left: 3rem;
}

.ai-promise-image.animate-in {
  opacity: 1;
}

.ai-promise-image::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(96, 165, 250, 0.3) 30%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: siri-wave 4s ease-in-out infinite;
  filter: blur(40px);
}

.ai-promise-image img {
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  animation: rotate-sphere 20s linear infinite;
  transform-origin: center center;
  margin-right: -2rem;
  margin-top: -1rem;
}

@keyframes rotate-sphere {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes siri-wave {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

@media (max-width: 968px) {
  .ai-promise-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .ai-promise-content {
    transform: translateY(30px);
  }
  
  .ai-promise-content.animate-in {
    transform: translateY(0);
  }
  
  .ai-promise-image {
    margin-left: 0;
    padding-right: 0;
    justify-content: center;
  }
}
