/* ── 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 ── */
.service-hero-cta {
  color: #FFFFFF !important;
}

.service-hero-cta span {
  color: #FFFFFF !important;
}

.service-hero-cta * {
  color: #FFFFFF !important;
}

.service-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;
}

.service-hero-cta .hero-arrow-icon {
  transition: transform 0.4s ease, stroke 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-hero-cta:hover .hero-cta-icon {
  background: white;
}

.service-hero-cta:hover .hero-arrow-icon {
  stroke: #A855F7;
  stroke-width: 2.5;
  animation: arrowSlide 0.8s ease infinite;
}

.service-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;
}

/* Exception for scorecard violation type spans */
.section-white span.scorecard-violation-phi {
  color: #FF0000 !important;
}

.section-white span.scorecard-violation-empathy {
  color: #FFB690 !important;
}

.section-white span.scorecard-violation-time {
  color: #94A3B8 !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;
}

/* Hero gradient button animation */
@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

.hero-gradient-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(96,165,250,0.5);
}

/* Risk card hover effects */
.risk-card {
  position: relative;
}

.risk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    #FFFFFF 0%,
    #60A5FA 25%,
    #EC4899 50%,
    #60A5FA 75%,
    #FFFFFF 100%
  );
  background-size: 200% auto;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientShift 3s ease-in-out infinite;
}

.risk-card:hover::before {
  opacity: 1;
}

.risk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(96,165,250,0.2);
}

/* Gradient definition for SVG icons */
.risk-icon svg {
  stroke: #6B7280;
  transition: all 0.3s ease;
}

/* Rotating blob animation for image background */
@keyframes blobRotate {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    transform: rotate(90deg);
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: rotate(180deg);
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    transform: rotate(270deg);
  }
}

/* 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);
  }

  /* New responsive styles for restructured sections */
  section > div > div[style*="grid-template-columns:1fr 1fr"],
  section > div > div[style*="grid-template-columns:repeat(3,1fr)"],
  section > div > div[style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Adjust stat display for mobile */
  section div[style*="grid-template-columns:repeat(2,1fr)"] > div[style*="font-size:5rem"] {
    font-size: 3.5rem !important;
  }
}

/* ── 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%;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  /* Disable animations for print */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   SCORECARD STYLES
   ======================================== */

.scorecard-container {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.scorecard-header {
  margin-bottom: 2rem;
}

.scorecard-report-id {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scorecard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.scorecard-top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Overall Score Semi-Circle */
.scorecard-score-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scorecard-label {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
  text-align: center;
}

.scorecard-semicircle-container {
  position: relative;
  width: 200px;
  height: 110px;
}

.scorecard-semicircle-svg {
  display: block;
}

.scorecard-progress-arc {
  stroke-dashoffset: 251.3;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scorecard-container.visible .scorecard-progress-arc {
  stroke-dashoffset: 70;
}

.scorecard-percentage {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  font-weight: 800;
  color: #F97316;
  line-height: 1;
}

/* Risk Cards */
.scorecard-risk-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.scorecard-risk-card {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scorecard-container.visible .scorecard-risk-card {
  opacity: 1;
  transform: translateX(0);
}

.scorecard-container.visible .scorecard-risk-card:first-child {
  transition-delay: 2s;
}

.scorecard-container.visible .scorecard-risk-card:last-child {
  transition-delay: 2.2s;
}

.scorecard-risk-label {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.scorecard-risk-value {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.scorecard-risk-high .scorecard-risk-value {
  color: #DC2626 !important;
  animation: blink-high-exposure 0.8s ease-in-out infinite;
}

@keyframes blink-high-exposure {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.scorecard-risk-marginal .scorecard-risk-value {
  color: #F97316 !important;
}

/* Timestamped Violations */
.scorecard-violations {
  background: #1E293B;
  border-radius: 12px;
  padding: 1.5rem;
}

.scorecard-violations-title {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scorecard-violation-wrapper {
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scorecard-violation-wrapper:last-child {
  margin-bottom: 0;
}

.scorecard-violations:not(.visible) .scorecard-violation-wrapper {
  opacity: 0;
  transform: translateY(30px);
}

.scorecard-violations.visible .scorecard-violation-wrapper:first-child {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.scorecard-violations.visible .scorecard-violation-wrapper:last-child {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.5s;
}

.scorecard-violation-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.scorecard-violation-item {
  background: #3B4A5C;
  border-radius: 8px;
  padding: 1rem;
  margin-left: 4.25rem;
}

.scorecard-violation-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.scorecard-violation-time {
  font-size: 0.875rem;
  color: #94A3B8;
  font-family: monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  display: inline-block;
}

.scorecard-violation-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scorecard-violation-phi {
  color: #FF0000;
}

.scorecard-violation-empathy {
  color: #FFB690;
}

.scorecard-violation-text {
  font-size: 0.875rem;
  color: #FFFFFF !important;
  line-height: 1.5;
  margin: 0;
}

/* Override section-white paragraph color for violation cards */
.section-white .scorecard-violations p,
.section-white .scorecard-violation-item p,
.section-white .scorecard-violation-text {
  color: #FFFFFF !important;
}

.section-white .scorecard-violations-title {
  color: #94A3B8 !important;
}

.section-white .scorecard-violation-time {
  color: #94A3B8 !important;
}

.section-white span.scorecard-violation-phi {
  color: #FF0000 !important;
}

.section-white span.scorecard-violation-empathy {
  color: #FFB690 !important;
}

/* Responsive adjustments for scorecard */
@media (max-width: 768px) {
  .scorecard-top-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .scorecard-semicircle-container {
    margin: 0 auto;
  }
}

/* ========================================
   COMPARISON TABLE STYLES
   ======================================== */

.comparison-table {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-cell:last-child {
  border-right: none;
}

/* Header Row */
.comparison-header {
  background: rgba(255, 255, 255, 0.05);
}

.comparison-feature-header {
  color: #FFFFFF;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.comparison-standard-header {
  color: #FFFFFF;
  font-weight: 600;
  text-align: center;
}

.comparison-revalabs-header {
  color: #FFFFFF;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(90deg, #60A5FA 0%, #EC4899 100%);
}

/* Data Cells */
.comparison-feature {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-standard {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-revalabs {
  color: #FFFFFF;
  text-align: center;
  background: rgba(96, 165, 250, 0.1);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1fr;
  }
  
  .comparison-cell {
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .comparison-cell:last-child {
    border-bottom: none;
  }
  
  .comparison-header .comparison-cell:not(.comparison-feature-header) {
    display: none;
  }
}

/* ========================================
   CTA CARD INLINE STYLES
   ======================================== */

.cta-card-overlap-wrapper {
  position: relative;
  z-index: 10;
  background: #000000;
  padding: 0;
  margin: 0;
}

.cta-card-overlap-wrapper .container {
  position: relative;
  transform: translateY(-50%);
}

.cta-card-inline {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cta-card-content {
  flex: 1;
}

.cta-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111111 !important;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cta-card-text {
  font-size: 1rem;
  color: #6B7280 !important;
  line-height: 1.6;
  margin: 0;
}

/* Override section-navy text color for CTA card */
.section-navy .cta-card-title {
  color: #111111 !important;
}

.section-navy .cta-card-text {
  color: #6B7280 !important;
}

.cta-card-button {
  flex-shrink: 0;
}

.btn-cta-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #60A5FA 0%, #A855F7 100%);
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.4);
  white-space: nowrap;
}

.btn-cta-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
  color: #FFFFFF !important;
}

/* Responsive */
@media (max-width: 968px) {
  .cta-card-inline {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .cta-card-button {
    width: 100%;
  }
  
  .btn-cta-gradient {
    display: block;
    width: 100%;
  }
}

/* ========================================
   SCROLL ANIMATIONS FOR ALL SECTIONS
   ======================================== */

/* Hero Section Animation - Only first section-navy */
.section-navy:first-of-type .container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-navy:first-of-type .container.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Risk Cards Section Animation */
.risk-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.risk-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Methodology Section Animation */
.methodology-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.methodology-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Scorecard Container Animation - Removed, container stays static */
.scorecard-container.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Comparison Table Animation */
.comparison-table {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.comparison-table.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Card Animation */
.cta-card-inline {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-card-inline.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   FEATURE CARDS HOVER EFFECT
   ======================================== */

/* Target feature cards in "See Exactly Where Your Bots Fail" section */
.section-white div[style*="display:flex;flex-direction:column;gap:2rem"] > div[style*="background:#FFFFFF;border:1px solid #E5E7EB"] {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-white div[style*="display:flex;flex-direction:column;gap:2rem"] > div[style*="background:#FFFFFF;border:1px solid #E5E7EB"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(96, 165, 250, 0.2), 0 0 20px rgba(96, 165, 250, 0.3);
  border-color: #60A5FA;
}


/* ========================================
   UNCOVER HIDDEN RISKS - MOBILE FIX
   Image on top with animation, cards below
   ======================================== */

/* Tablet View (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Section title */
  .section-white h2[style*="clamp(2rem,4vw,3rem)"] {
    font-size: 2rem !important;
  }

  /* Reorder: Image first, cards below */
  .section-white > div > div[style*="grid-template-columns:1fr 1fr"][style*="gap:4rem"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 3rem !important;
  }

  /* Image column */
  .uncover-risks-image-col {
    margin-left: 0 !important;
  }

  /* Risk cards - slightly reduced */
  .risk-card {
    padding: 1.5rem !important;
  }

  .risk-card h3 {
    font-size: 1.125rem !important;
  }

  .risk-card p {
    font-size: 0.9rem !important;
  }
}

/* Mobile View (≤768px) */
@media (max-width: 768px) {
  /* Section title */
  .section-white h2[style*="clamp(2rem,4vw,3rem)"] {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  /* Reorder: Image first, cards below */
  .section-white > div > div[style*="grid-template-columns:1fr 1fr"][style*="gap:4rem"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 2rem !important;
  }

  /* Image column - keep animation */
  .uncover-risks-image-col {
    margin-left: 0 !important;
    position: relative !important;
  }

  /* Keep the rotating blob animation but make it smaller */
  .uncover-risks-image-col .rotating-blob {
    display: block !important;
    position: absolute !important;
    top: -5% !important;
    left: -5% !important;
    width: 110% !important;
    height: 110% !important;
    opacity: 0.3 !important;
  }

  /* Image frame - maintain organic shape */
  .uncover-risks-image-frame {
    aspect-ratio: 1 !important;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% !important;
    overflow: hidden !important;
  }

  /* Image scales properly */
  .uncover-risks-image-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Cards column */
  .section-white div[style*="display:flex;flex-direction:column;gap:1.5rem"] {
    gap: 1.25rem !important;
  }

  /* Risk cards - reduce padding and text */
  .risk-card {
    padding: 1.25rem !important;
    gap: 1rem !important;
  }

  .risk-card .risk-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .risk-card .risk-icon img,
  .risk-card .risk-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .risk-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.375rem !important;
  }

  .risk-card p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
}

/* ========================================
   WHY AUTOMATED QA - MOBILE ACCORDION
   Accordion-style comparison for mobile
   ======================================== */

@media (max-width: 768px) {
  /* Hide desktop table on mobile */
  .section-navy .comparison-table {
    display: none !important;
  }

  /* Section heading */
  .section-navy h2[style*="Why Automated QA"] {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Mobile Accordion Container */
  .mobile-comparison-accordion {
    display: block !important;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Subtitle */
  .mobile-comparison-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-weight: 400;
  }

  /* Accordion Card */
  .mobile-comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
  }

  /* Accordion Header (clickable) */
  .mobile-comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
  }

  /* Icon circle */
  .mobile-comparison-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-comparison-icon svg {
    width: 24px;
    height: 24px;
    color: #60A5FA;
  }

  /* Title */
  .mobile-comparison-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
  }

  /* Chevron */
  .mobile-comparison-chevron {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .mobile-comparison-card.expanded .mobile-comparison-chevron {
    transform: rotate(180deg);
  }

  /* Accordion Content (expandable) */
  .mobile-comparison-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
  }

  .mobile-comparison-card.expanded .mobile-comparison-content {
    max-height: 400px;
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  /* Two-column comparison inside */
  .mobile-comparison-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* Standard QA Box (left) */
  .mobile-standard-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-standard-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-standard-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-x-icon {
    display: none !important;
  }

  .mobile-standard-text {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
  }

  /* RevaLabs Box (right) - with gradient */
  .mobile-revalabs-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-revalabs-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #60A5FA;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-revalabs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-check-icon-qa {
    display: none !important;
  }

  .mobile-revalabs-text {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #FFFFFF;
    font-weight: 500;
  }
}

/* ========================================
   SEE EXACTLY WHERE YOUR BOTS FAIL - MOBILE
   Scorecard on top, feature cards below
   ======================================== */

/* Tablet View (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Section title */
  .section-white h2[style*="See Exactly Where Your Bots Fail"] {
    font-size: 2rem !important;
  }

  /* Reorder: Scorecard first, features below */
  .section-white > div > div[style*="grid-template-columns:1fr 1fr"][style*="gap:3rem"][style*="align-items:start"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 3rem !important;
  }

  /* Feature cards - slightly reduced */
  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] {
    padding: 1.5rem !important;
  }

  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] h3 {
    font-size: 1.125rem !important;
  }

  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] p {
    font-size: 0.9rem !important;
  }
}

/* Mobile View (≤768px) */
@media (max-width: 768px) {
  /* Section title */
  .section-white h2[style*="See Exactly Where Your Bots Fail"] {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  /* Reorder: Scorecard first, features below */
  .section-white > div > div[style*="grid-template-columns:1fr 1fr"][style*="gap:3rem"][style*="align-items:start"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 2rem !important;
  }

  /* Feature cards - reduce padding and text */
  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] {
    padding: 1.25rem !important;
    gap: 1rem !important;
  }

  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] div[style*="width:48px;height:48px"] {
    width: 36px !important;
    height: 36px !important;
  }

  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] svg {
    width: 24px !important;
    height: 24px !important;
  }

  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] h3 {
    font-size: 1rem !important;
    margin-bottom: 0.375rem !important;
  }

  .section-white div[style*="background:#FFFFFF;border:1px solid #E5E7EB;border-radius:16px;padding:2rem"] p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  /* Scorecard Container */
  .scorecard-container {
    padding: 1.5rem !important;
  }

  /* Scorecard Header */
  .scorecard-report-id {
    font-size: 0.625rem !important;
  }

  .scorecard-title {
    font-size: 1.125rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Top Section - Overall Score & Risk Cards */
  .scorecard-top-section {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Semi-Circle Score */
  .scorecard-semicircle-container {
    width: 160px !important;
    height: 90px !important;
    margin: 0 auto !important;
  }

  .scorecard-semicircle-svg {
    width: 160px !important;
    height: 90px !important;
  }

  .scorecard-percentage {
    font-size: 2rem !important;
    bottom: 5px !important;
  }

  .scorecard-label {
    font-size: 0.75rem !important;
  }

  /* Risk Cards */
  .scorecard-risk-cards {
    gap: 0.75rem !important;
  }

  .scorecard-risk-card {
    padding: 0.75rem !important;
  }

  .scorecard-risk-label {
    font-size: 0.625rem !important;
    margin-bottom: 0.25rem !important;
  }

  .scorecard-risk-value {
    font-size: 0.9rem !important;
  }

  /* Violations Section */
  .scorecard-violations {
    padding: 1rem !important;
    border-radius: 8px !important;
  }

  .scorecard-violations-title {
    font-size: 0.625rem !important;
    margin-bottom: 0.75rem !important;
  }

  .scorecard-violation-wrapper {
    margin-bottom: 1rem !important;
  }

  .scorecard-violation-time {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
  }

  .scorecard-violation-type {
    font-size: 0.625rem !important;
  }

  .scorecard-violation-item {
    padding: 0.75rem !important;
    margin-left: 0 !important;
    border-radius: 6px !important;
  }

  .scorecard-violation-text {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
}

/* ========================================
   REVALABS METHODOLOGY - MOBILE FIX
   Image with gradient border on top, steps below
   ======================================== */

/* Tablet View (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Section title */
  #methodology h2 {
    font-size: 2rem !important;
  }

  /* Reorder: Image first, steps below */
  #methodology div[style*="grid-template-columns:1fr 1fr"][style*="gap:4rem"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 3rem !important;
  }

  /* Remove scale and margin from image column */
  .methodology-image-col {
    transform: scale(1) !important;
    margin-left: 0 !important;
  }

  /* Adjust inner box height */
  .methodology-inner-box {
    min-height: 400px !important;
  }

  .methodology-img {
    height: 400px !important;
  }

  /* Steps - slightly reduced */
  .methodology-card {
    padding: 1.25rem !important;
  }

  .methodology-card .card-number {
    font-size: 2.5rem !important;
  }

  .methodology-card h3 {
    font-size: 1.125rem !important;
  }

  .methodology-card p {
    font-size: 0.9rem !important;
  }
}

/* Mobile View (≤768px) */
@media (max-width: 768px) {
  /* Section title */
  #methodology h2 {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  /* Reorder: Image first, steps below */
  #methodology div[style*="grid-template-columns:1fr 1fr"][style*="gap:4rem"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 2rem !important;
  }

  /* Image column - remove scale and margin */
  .methodology-image-col {
    transform: scale(1) !important;
    margin-left: 0 !important;
  }

  /* Gradient border - REDUCE to 2px for same visual weight as desktop */
  /* Target inline styled div directly */
  #methodology div[style*="padding:3px"][style*="linear-gradient"] {
    padding: 2px !important;
    border-radius: 24px !important;
  }
  
  .methodology-gradient-border {
    padding: 2px !important;
    border-radius: 24px !important;
  }

  /* Inner box - reduce padding and height for mobile */
  /* Target inline styled div directly */
  #methodology div[style*="background:#1A1A1A"][style*="border-radius:29px"] {
    min-height: 300px !important;
    padding: 1rem !important;
    border-radius: 22px !important;
  }
  
  .methodology-inner-box {
    min-height: 300px !important;
    padding: 1rem !important;
    border-radius: 22px !important;
  }

  /* Image - reduce height */
  /* Target inline styled img directly */
  #methodology img[style*="height:500px"] {
    height: 300px !important;
    border-radius: 12px !important;
  }
  
  .methodology-img {
    height: 300px !important;
    border-radius: 12px !important;
  }

  /* Steps column - reduce left padding */
  .methodology-steps-col {
    padding-left: 2rem !important;
    gap: 1.25rem !important;
  }

  /* Timeline line */
  .timeline-line {
    width: 1.5px !important;
    left: 6px !important;
  }

  .timeline-line-segment {
    width: 1.5px !important;
    left: 6px !important;
  }

  /* Timeline dots */
  #methodology div[style*="left:9.09px"] {
    left: 7px !important;
  }

  /* Timeline circles */
  .timeline-circle {
    width: 14px !important;
    height: 14px !important;
    left: -2.03rem !important;
    border-width: 2px !important;
  }

  /* Step cards */
  .methodology-card {
    padding: 1rem !important;
    gap: 1rem !important;
  }

  .methodology-card .card-number {
    font-size: 2rem !important;
  }

  .methodology-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.375rem !important;
  }

  .methodology-card p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
}
