/* ── 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;
  }
}


/* ── CAREERS PAGE COMPONENTS ── */

.page-hero {
  background: linear-gradient(135deg, rgba(10,20,50,0.65) 0%, rgba(15,42,86,0.65) 60%, rgba(10,20,50,0.7) 100%), url('../assets/career-herobg.png') center/cover no-repeat;
  padding: 120px var(--space-8) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.page-hero h1 span {
  background: linear-gradient(90deg, #00d4ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── JOB FILTERS ── */
.jobs-filters {
  max-width: 1084px;
  margin: 0 auto;
  padding: 2rem var(--space-8) 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-blue);
}

.filter-select {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--text-on-white);
  transition: border-color 0.2s ease;
  min-width: 160px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-search-group {
  flex: 1;
  min-width: 200px;
}

.filter-search {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-on-white);
  transition: border-color 0.2s ease;
  width: 100%;
}

.filter-search:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (max-width: 640px) {
  .jobs-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--space-4) 0;
  }
  .filter-select {
    width: 100%;
  }
}

.jobs-wrap {
  max-width: 1084px;
  margin: 0 auto;
  padding: 4rem var(--space-8) 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(10, 31, 68, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: visible;
}

.job-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #1E3A8A, #1E40AF, #3B82F6, #60A5FA, #DBEAFE, #ffffff, #DBEAFE, #60A5FA, #3B82F6, #1E40AF, #1E3A8A);
  background-size: 200% 100%;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.job-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.15);
}

.job-card:hover::before {
  opacity: 1;
  animation: job-card-border-move 3s linear infinite;
}

@keyframes job-card-border-move {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0;
}

a.job-card .job-header {
  margin-bottom: 0;
}

.job-title {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-blue);
  margin-bottom: 1.25rem;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.job-tag {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag-loc {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-id {
  background: rgba(10, 31, 68, 0.04);
  color: var(--navy-blue);
  border: 1px solid rgba(10, 31, 68, 0.15);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.job-id-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.tag-exp {
  background: rgba(10, 31, 68, 0.06);
  color: var(--navy-blue);
  border: 1px solid rgba(10, 31, 68, 0.12);
}

.tag-type {
  background: rgba(0, 212, 255, 0.08);
  color: #0066cc;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.apply-btn {
  flex-shrink: 0;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.apply-btn:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.view-role-btn {
  flex-shrink: 0;
  background: linear-gradient(90deg, #60A5FA 0%, #EC4899 50%, #60A5FA 100%);
  background-size: 200% auto;
  animation: gradientShift 3s ease-in-out infinite;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.job-card:hover .view-role-btn {
  background: linear-gradient(90deg, #60A5FA 0%, #EC4899 50%, #60A5FA 100%);
  background-size: 200% auto;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}

.job-section {
  margin-bottom: 1.25rem;
}

.job-section h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-blue);
  margin-bottom: 0.5rem;
}

.job-section p {
  font-size: 0.9rem;
  color: var(--text-muted-on-white);
  line-height: 1.7;
}

.job-section ul {
  padding-left: 1.25rem;
}

.job-section ul li {
  font-size: 0.9rem;
  color: var(--text-muted-on-white);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

/* Apply Modal */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 31, 68, 0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-bg.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.modal-box h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-blue);
  margin-bottom: 0.25rem;
}

.modal-job-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.mf-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted-on-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.mf-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-on-white);
}

.mf-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.mf-file {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.mf-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mf-submit:hover {
  background: var(--accent-blue-hover);
}

.mf-success {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #059669;
  text-align: center;
}

.mf-error {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #dc2626;
  text-align: center;
}

@media (max-width: 640px) {
  .job-header {
    flex-direction: column;
  }
  .apply-btn {
    width: 100%;
  }
  .jobs-wrap {
    padding: 2rem var(--space-4) 4rem;
  }
}
