/* ── UNIFIED BACKGROUND ── */
body {
  background-image: url('../assets/blog_bg2.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* ── RIPPLE EFFECT ── */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  color: var(--text-on-white);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid var(--border-light);
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

/* Button variants for different sections */
.section-navy .btn-primary {
  background: var(--white);
  color: #000000;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.section-navy .btn-primary:hover {
  background: var(--white);
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.section-navy .btn-ghost {
  border-color: var(--border-navy);
  color: var(--white);
}

.section-navy .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section-black .btn-primary {
  background: var(--accent-blue);
  color: var(--white);
}

.section-black .btn-ghost {
  border-color: var(--border-black);
  color: var(--text-on-black);
}

.section-black .btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

/* ── EYEBROW PILL ── */
.eyebrow-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.section-navy .eyebrow-pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--border-navy);
}

.section-black .eyebrow-pill {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-light);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ── SECTION STYLES ── */
section {
  position: relative;
  padding: var(--space-24) 0;
  z-index: 1;
}

.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%;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  /* Disable animations for print */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}



/* ── BLOG HERO SECTION ── */
.blog-hero {
  background: transparent;
  padding: 120px var(--space-8) 40px;
  position: relative;
  overflow: visible;
  z-index: 100;
}

.blog-hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.blog-hero-left {
  flex: 1;
}

.blog-hero-left h1 {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.blog-hero-left p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 450px;
}

.blog-hero-right {
  flex-shrink: 0;
}

.blog-subscribe-form {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 500px;
}

.blog-email-input {
  padding: 1rem 10rem 1rem 1.75rem;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.blog-email-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.blog-email-input:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.blog-subscribe-btn {
  position: absolute;
  right: 0.375rem;
  padding: 0.75rem 2rem;
  background: #414D71;
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.blog-subscribe-btn:hover {
  background: #4f5d87;
  transform: translateY(-1px);
}

/* Horizontal separator */
.blog-hero-separator {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 2rem;
}

/* ── SEARCH AND FILTER ── */
.blog-search-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 500px;
  position: relative;
  z-index: 1000;
}

.blog-search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 320px;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s ease;
}

.blog-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.blog-search-input:focus {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.blog-category-dropdown {
  flex-shrink: 0;
  position: relative;
}

.blog-category-btn {
  padding: 0.75rem 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.blog-category-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.blog-category-btn svg {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.blog-category-btn.active svg {
  transform: rotate(180deg);
}

.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(13, 27, 62, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.category-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.category-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ── BLOG CARDS SECTION ── */
.blog-cards-section {
  background: transparent;
  padding: 3rem var(--space-8) 3rem;
  position: relative;
  z-index: 0;
}

/* ── BLOG CARDS SECTION WITH GRADIENT ── */
.blog-cards-section-gradient {
  background: transparent;
  padding: 0 var(--space-8) 6rem;
  position: relative;
  z-index: 0;
}

.blog-cards-section-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.blog-cards-container,
.blog-cards-row {
  position: relative;
  z-index: 1;
}

.blog-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.blog-cards-row {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.blog-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  padding: 1rem;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.3) 0%, rgba(10, 14, 39, 0.7) 100%);
  z-index: 1;
}

.blog-cards-container .blog-card-large .blog-card-image,
.blog-cards-container .blog-card-small .blog-card-image {
  height: 320px;
  aspect-ratio: auto;
  max-width: 100%;
  width: 100%;
}

.blog-card-large .blog-card-image {
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.blog-card-small .blog-card-image {
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.blog-card-equal .blog-card-image {
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.625rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ffffff;
  z-index: 2;
  letter-spacing: 0.02em;
}

.blog-card-content {
  padding: 1.75rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.blog-card-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.blog-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.blog-card-large .blog-card-title {
  font-size: 1.5rem;
}

.blog-card-small .blog-card-title {
  font-size: 1.125rem;
}

.blog-card-equal .blog-card-title {
  font-size: 1.125rem;
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
}

.blog-card-author {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.blog-card-date::before {
  content: "•";
  margin-right: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  .blog-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .blog-hero-left p {
    max-width: 100%;
  }

  .blog-subscribe-form {
    width: 100%;
  }

  .blog-email-input {
    flex: 1;
    min-width: auto;
  }

  .blog-cards-container {
    grid-template-columns: 1fr;
  }

  .blog-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 100px var(--space-4) 30px;
  }

  .blog-cards-section {
    padding: 2rem var(--space-4) 4rem;
  }

  .blog-search-wrapper {
    flex-direction: column;
  }

  .blog-category-btn {
    width: 100%;
    justify-content: center;
  }

  .blog-hero-left h1 {
    font-size: 2rem;
  }

  .blog-subscribe-form {
    flex-direction: column;
  }

  .blog-subscribe-btn {
    width: 100%;
  }

  .blog-cards-row {
    grid-template-columns: 1fr;
  }
}


/* ── LOAD MORE BUTTON ── */
.blog-load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.blog-load-more-btn {
  padding: 1rem 3.5rem;
  background: linear-gradient(90deg, #3A9DD3 0%, #2E5CDE 50%, #5E42D2 100%);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(58, 157, 211, 0.3);
  letter-spacing: 0.02em;
}

.blog-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(58, 157, 211, 0.4);
  background: linear-gradient(90deg, #4AADD8 0%, #3E6CE8 50%, #6E52DC 100%);
}

.blog-load-more-btn:active {
  transform: translateY(0);
}

/* Hidden rows */
.blog-cards-row-hidden {
  display: none;
  animation: fadeInUp 0.6s ease forwards;
}

.blog-cards-row-hidden.show {
  display: grid;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── BLOG SEARCH RESULTS ── */
.blog-search-results {
  padding: 2rem 0 4rem;
}

.blog-search-results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-search-results-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.blog-search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1023px) {
  .blog-search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-search-results-grid {
    grid-template-columns: 1fr;
  }
}
