﻿  /* =========================
   HASCALS â€” Global Styles
   ========================= */

  body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1a1a2e;
    /* Ensure a good default text color */
  }

  /* =========================
   LOCOMOTIVE SCROLL STYLES
   ========================= */

  /* Loading Screen - Light Theme Stunning */
  .loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 30%, #f5f3ff 60%, #ede9fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    overflow: hidden;
    contain: strict;
  }

  .loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Loading Container - Light Premium */
  .loading-container {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #f5f3ff 100%);
    isolation: isolate;
  }

  /* Static noise texture (no animation for performance) */
  .loading-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    pointer-events: none;
  }

  /* Aurora wave effect */
  .loading-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 60%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(99, 102, 241, 0.04) 20%,
        rgba(139, 92, 246, 0.05) 40%,
        rgba(244, 114, 182, 0.04) 60%,
        rgba(251, 113, 133, 0.03) 80%,
        transparent 100%);
    z-index: 2;
    animation: auroraWave 8s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes auroraWave {

    0%,
    100% {
      transform: translateX(0) skewX(-5deg);
      opacity: 0.6;
    }

    50% {
      transform: translateX(10%) skewX(5deg);
      opacity: 1;
    }
  }

  /* Particle Canvas */
  .loading-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  /* Animated gradient orbs background */
  .loading-orbs {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background:
      radial-gradient(ellipse 50% 50% at 20% 30%, rgba(99, 102, 241, 0.35), transparent 50%),
      radial-gradient(ellipse 45% 45% at 80% 20%, rgba(244, 114, 182, 0.3), transparent 50%),
      radial-gradient(ellipse 50% 50% at 75% 75%, rgba(139, 92, 246, 0.25), transparent 50%),
      radial-gradient(ellipse 40% 40% at 10% 65%, rgba(251, 113, 133, 0.3), transparent 50%);
    filter: blur(60px);
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
    animation: orbDance 20s ease-in-out infinite;
  }

  @keyframes orbDance {
    0% {
      transform: translate(0, 0) rotate(0deg) scale(1);
    }

    20% {
      transform: translate(-3%, 5%) rotate(3deg) scale(1.08);
    }

    40% {
      transform: translate(5%, -3%) rotate(-2deg) scale(0.95);
    }

    60% {
      transform: translate(-5%, -5%) rotate(2deg) scale(1.05);
    }

    80% {
      transform: translate(3%, 3%) rotate(-1deg) scale(0.98);
    }

    100% {
      transform: translate(0, 0) rotate(0deg) scale(1);
    }
  }

  /* Morphing blob shapes - GPU optimized */
  .loading-container .blob-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.45;
    mix-blend-mode: multiply;
    z-index: 2;
    will-change: transform, border-radius;
    transform: translateZ(0);
  }

  .loading-container .blob-1 {
    width: 450px;
    height: 450px;
    background: rgba(99, 102, 241, 0.4);
    top: -15%;
    right: -10%;
    animation: blobMorph1 16s ease-in-out infinite;
  }

  .loading-container .blob-2 {
    width: 350px;
    height: 350px;
    background: rgba(244, 114, 182, 0.35);
    bottom: -10%;
    left: -10%;
    animation: blobMorph2 14s ease-in-out infinite;
  }

  /* blob-3 removed for performance */

  @keyframes blobMorph1 {

    0%,
    100% {
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      transform: translate(0, 0) rotate(0deg);
    }

    33% {
      border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
      transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
      border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%;
      transform: translate(-20px, 20px) rotate(-5deg);
    }
  }

  @keyframes blobMorph2 {

    0%,
    100% {
      border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
      transform: translate(0, 0) rotate(0deg);
    }

    50% {
      border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%;
      transform: translate(40px, -20px) rotate(-8deg);
    }
  }

  /* blobMorph3 removed for performance */

  /* Floating particles overlay */
  .loading-container .floating-particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
  }

  .loading-container .floating-particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    will-change: transform, opacity;
    animation: floatParticle 12s linear infinite;
  }

  @keyframes floatParticle {
    0% {
      transform: translateY(0) scale(0);
      opacity: 0;
    }

    5% {
      opacity: 0.7;
      transform: translateY(-10vh) scale(1);
    }

    85% {
      opacity: 0.7;
      transform: translateY(-85vh) scale(1);
    }

    100% {
      transform: translateY(-95vh) scale(0);
      opacity: 0;
    }
  }

  /* Sparkle/shimmer effect */
  .loading-container .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    z-index: 6;
    animation: sparkle 2s ease-in-out infinite;
  }

  @keyframes sparkle {

    0%,
    100% {
      transform: scale(0);
      opacity: 0;
    }

    50% {
      transform: scale(1);
      opacity: 1;
      box-shadow: 0 0 10px 5px rgba(99, 102, 241, 0.5), 0 0 20px 10px rgba(199, 210, 254, 0.3);
    }
  }

  /* Lens flare accent */
  .loading-container .lens-flare {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(99, 102, 241, 0.2) 40%,
        transparent 60%);
    border-radius: 50%;
    z-index: 7;
    animation: lensFlare 4s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes lensFlare {

    0%,
    100% {
      transform: scale(0.8) translate(0, 0);
      opacity: 0.3;
    }

    50% {
      transform: scale(1.2) translate(-10px, 10px);
      opacity: 0.8;
    }
  }

  /* Central spotlight for text focus */
  .loading-container .spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 30%,
        transparent 60%);
    z-index: 8;
    animation: spotlightBreath 3s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes spotlightBreath {

    0%,
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.7;
    }

    50% {
      transform: translate(-50%, -50%) scale(1.1);
      opacity: 1;
    }
  }

  /* Animated ring pulse */
  .loading-container .ring-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    z-index: 4;
    animation: ringExpand 3s ease-out infinite;
    pointer-events: none;
  }

  .loading-container .ring-pulse:nth-child(2) {
    animation-delay: 1s;
  }

  .loading-container .ring-pulse:nth-child(3) {
    animation-delay: 2s;
  }

  @keyframes ringExpand {
    0% {
      transform: translate(-50%, -50%) scale(0.5);
      opacity: 1;
      border-color: rgba(99, 102, 241, 0.5);
    }

    100% {
      transform: translate(-50%, -50%) scale(2);
      opacity: 0;
      border-color: rgba(199, 210, 254, 0.1);
    }
  }

  .matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'MS Gothic', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    animation: matrixFall linear infinite;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .rain-char {
    display: block;
    color: #00aa30;
    text-shadow: 0 0 8px #00ff41;
    transition: color 0.1s, text-shadow 0.1s;
  }

  .rain-char.bright {
    color: #00dd50;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41;
  }

  .rain-char.brightest {
    color: #ffffff;
    text-shadow:
      0 0 5px #ffffff,
      0 0 10px #00ff41,
      0 0 20px #00ff41,
      0 0 40px #00ff41;
  }

  @keyframes matrixFall {
    0% {
      transform: translateY(-100%);
      opacity: 0;
    }

    5% {
      opacity: 1;
    }

    95% {
      opacity: 1;
    }

    100% {
      transform: translateY(100vh);
      opacity: 0;
    }
  }

  /* Matrix Content - Enhanced */
  .loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: loadingContentFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }

  @keyframes loadingContentFadeIn {
    from {
      opacity: 0;
      transform: scale(0.8) translateY(20px);
      filter: blur(10px);
    }

    to {
      opacity: 1;
      transform: scale(1) translateY(0);
      filter: blur(0);
    }
  }

  /* Matrix Text (Scrambling Letters) - Enhanced */
  /* Matrix Text (Scrambling Letters) - Redesigned */
  .loading-text {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    justify-content: center;
    gap: 0;
    perspective: 1000px;
  }

  /* Letter Wrapper for Glitch Effect */
  .loading-letter-wrapper {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
  }

  .loading-letter-wrapper.revealed {
    animation: letterFlash 0.4s ease;
  }

  @keyframes letterFlash {
    0% {
      filter: brightness(1);
      transform: scale(1);
    }

    50% {
      filter: brightness(1.2);
      transform: scale(1.05);
    }

    100% {
      filter: brightness(1);
      transform: scale(1);
    }
  }

  .loading-letter {
    display: inline-block;
    color: rgba(99, 102, 241, 0.5);
    opacity: 0.7;
    transition: all 0.05s ease;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    /* Keep monospace for glitching letters */
  }

  /* Glitch Overlay */
  .loading-letter-glitch {
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    pointer-events: none;
  }

  .loading-letter-wrapper:not(.revealed) .loading-letter-glitch {
    animation: glitchOverlay 0.08s infinite;
  }

  @keyframes glitchOverlay {
    0% {
      color: rgba(199, 210, 254, 0.5);
      transform: translate(-2px, 0);
      text-shadow: 0 0 10px rgba(199, 210, 254, 0.8);
    }

    25% {
      color: transparent;
    }

    50% {
      color: rgba(79, 172, 254, 0.6);
      transform: translate(1px, 0);
      text-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
    }

    75% {
      color: transparent;
    }

    100% {
      color: rgba(199, 210, 254, 0.5);
      transform: translate(-2px, 0);
      text-shadow: 0 0 10px rgba(199, 210, 254, 0.8);
    }
  }

  .loading-letter.revealed {
    animation: letterReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    color: #1a1a2e;
    opacity: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Switch to brand font on reveal */
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(79, 70, 229, 0.3);
  }

  @keyframes letterGlitch {

    0%,
    90% {
      opacity: 1;
      transform: translateX(0);
    }

    91% {
      opacity: 0.9;
      transform: translateX(-1px);
    }

    93% {
      opacity: 1;
      transform: translateX(1px);
    }

    95% {
      opacity: 0.95;
      transform: translateX(0);
    }
  }

  @keyframes letterReveal {
    0% {
      transform: scale(1.4) translateY(15px) rotateX(-10deg);
      opacity: 0;
      color: #4facfe;
      text-shadow: 0 0 40px rgba(79, 172, 254, 0.8), 0 0 80px rgba(79, 172, 254, 0.5);
    }

    30% {
      transform: scale(1.2) translateY(0) rotateX(0deg);
      opacity: 1;
      color: #86efac;
      text-shadow: 0 0 35px rgba(199, 210, 254, 0.7);
    }

    60% {
      transform: scale(1.05);
      color: #6366f1;
      text-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
    }

    100% {
      transform: scale(1);
      color: #1a1a2e;
      text-shadow: 0 0 15px rgba(99, 102, 241, 0.3), 0 0 30px rgba(79, 70, 229, 0.2);
    }
  }

  /* Matrix Text Complete State */
  .loading-text.complete {
    animation: loadingComplete 1.5s ease forwards;
  }

  @keyframes loadingComplete {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.02);
    }

    100% {
      transform: scale(1);
    }
  }

  /* Screen Flash on Complete - Enhanced for dark theme */
  .loading-container.completing::after {
    animation: spotlightBurst 0.6s ease-out forwards;
  }

  @keyframes spotlightBurst {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.8;
    }

    50% {
      transform: translate(-50%, -50%) scale(2);
      opacity: 1;
      background: radial-gradient(ellipse at center,
          rgba(255, 255, 255, 0.3) 0%,
          rgba(99, 102, 241, 0.5) 20%,
          rgba(199, 210, 254, 0.3) 40%,
          transparent 60%);
    }

    100% {
      transform: translate(-50%, -50%) scale(3);
      opacity: 0;
    }
  }

  /* Bengali to English Transition */
  .loading-text.transitioning {
    animation: languageTransition 0.3s ease;
  }

  @keyframes languageTransition {
    0% {
      opacity: 1;
      transform: scale(1);
    }

    50% {
      opacity: 0.5;
      transform: scale(0.95);
      filter: blur(2px);
    }

    100% {
      opacity: 1;
      transform: scale(1);
      filter: blur(0);
    }
  }

  /* English text styling - Completed with gradient glow */
  .loading-letter-wrapper.english .loading-letter {
    font-weight: 800;
    background: linear-gradient(135deg, #1e1b4b 0%, #6366f1 25%, #8b5cf6 50%, #f472b6 75%, #fb7185 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGradientShift 5s ease infinite;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 30px rgba(79, 70, 229, 0.25));
  }

  @keyframes textGradientShift {

    0%,
    100% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }
  }

  /* Unrevealed text styling */
  .loading-letter-wrapper:not(.english) .loading-letter.revealed {
    font-size: 1.1em;
    color: #6366f1;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  }

  /* Matrix Tagline - Light theme */
  .loading-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(26, 26, 46, 0.6);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 2rem;
    opacity: 0;
    animation: taglineFade 0.6s ease forwards 0.8s;
    font-weight: 500;
  }

  @keyframes taglineFade {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 0.8;
      transform: translateY(0);
    }
  }

  /* Matrix Scanline Effect - Removed */
  .loading-scanline {
    display: none;
  }

  .loading-scanline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 255, 65, 0.03) 50%,
        transparent 100%);
    height: 100px;
    animation: matrixScanlineMove 3s linear infinite;
  }

  @keyframes matrixScanlineMove {
    0% {
      transform: translateY(-100px);
    }

    100% {
      transform: translateY(100vh);
    }
  }

  /* Body loading state */
  body.loading {
    overflow: hidden;
  }

  body.loaded [data-scroll-container] {
    opacity: 1;
  }

  /* Scroll Container */
  [data-scroll-container] {
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
  }

  body.loaded [data-scroll-container] {
    opacity: 1;
  }

  /* ============================================= */
  /* LIGHT THEME HERO BANNER - STUNNING DESIGN    */
  /* ============================================= */

  .hero-light {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #f5f3ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 6rem 1rem 4rem;
  }

  /* Animated Background Shapes */
  .hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatShape 20s ease-in-out infinite;
  }

  .shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
  }

  .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
  }

  .shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
  }

  .shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    top: 20%;
    right: 30%;
    animation-delay: -15s;
  }

  .shape-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #fb7185 0%, #fda4af 100%);
    bottom: 20%;
    right: -50px;
    animation-delay: -7s;
  }

  @keyframes floatShape {

    0%,
    100% {
      transform: translate(0, 0) scale(1);
    }

    25% {
      transform: translate(30px, -30px) scale(1.05);
    }

    50% {
      transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
      transform: translate(20px, 10px) scale(1.02);
    }
  }

  /* Hero Content */
  .hero-content-centered {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
  }

  /* Hero Badge */
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
  }

  .hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
  }

  .badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {

    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }

    50% {
      opacity: 0.7;
      transform: scale(1.2);
    }
  }

  /* Hero Title */
  .hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
  }

  .title-line {
    display: block;
  }

  .title-word-highlight {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
  }

  .title-word-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f472b6 100%);
    border-radius: 4px;
    opacity: 0.3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }

  .hero-title:hover .title-word-highlight::after {
    transform: scaleX(1);
  }

  @keyframes gradientShift {

    0%,
    100% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }
  }

  .brand-text {
    font-weight: 900;
    background: linear-gradient(135deg, #1e1b4b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    pointer-events: auto;
    z-index: 1001;
  }

  .brand-text::before {
    content: 'HASCALS';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .hero-title:hover .brand-text::before {
    opacity: 1;
  }

  /* Title Hover Glow Effect */
  .hero-title {
    transition: text-shadow 0.4s ease;
  }

  .hero-title:hover {
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
  }

  /* Each title line hover effect */
  .title-line {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .hero-title:hover .title-line:nth-child(1) {
    transform: translateX(-5px);
  }

  .hero-title:hover .title-line:nth-child(2) {
    transform: scale(1.02);
  }

  .hero-title:hover .title-line:nth-child(3) {
    transform: translateX(5px);
  }

  /* Hero Subtitle */
  .hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #4a5568;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    transition: all 0.4s ease;
  }

  .hero-subtitle:hover {
    color: #2d3748;
    transform: scale(1.01);
  }

  /* Background Shapes React to Content Hover */
  .hero-content-centered:hover~.hero-bg-shapes .shape-1,
  .hero-content-centered:hover+.hero-bg-shapes .shape-1 {
    transform: translate(50px, -50px) scale(1.1);
  }

  .hero-light:hover .shape {
    opacity: 0.7;
    filter: blur(60px);
  }

  /* Hero CTA Buttons */
  .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
  }

  .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
  }

  .hero-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  }

  .hero-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .hero-btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
  }

  .hero-btn.primary:hover::before {
    left: 100%;
  }

  .hero-btn.primary svg {
    transition: transform 0.3s ease;
  }

  .hero-btn.primary:hover svg {
    transform: translateX(4px);
  }

  .hero-btn-outline {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #6366f1;
    border: 2px solid rgba(99, 102, 241, 0.3);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .button.hero-btn-outline:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
  }

  /* Trust Indicators */
  .hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  }

  .trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.3s ease;
  }

  .trust-item:hover {
    transform: translateY(-3px);
  }

  .trust-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .trust-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
  }

  .trust-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.3), transparent);
  }

  /* Scroll Indicator - Enhanced */
  .hero-light .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease 1s backwards;
  }

  .scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    position: relative;
  }

  .scroll-wheel {
    width: 4px;
    height: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
  }

  @keyframes scrollWheel {

    0%,
    100% {
      opacity: 1;
      top: 8px;
    }

    50% {
      opacity: 0.5;
      top: 20px;
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero-light {
      padding: 5rem 1rem 3rem;
    }

    .hero-trust {
      gap: 1.5rem;
      padding: 1.25rem 1.5rem;
    }

    .trust-divider {
      display: none;
    }

    .hero-cta-group {
      flex-direction: column;
      align-items: center;
    }

    .hero-btn,
    .hero-btn-outline {
      width: 100%;
      max-width: 280px;
      justify-content: center;
    }
  }

  /* Locomotive Scroll Reveal Animations */
  [data-scroll] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
  }

  [data-scroll].is-inview {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delays */
  [data-scroll][data-scroll-delay="0.1"] {
    transition-delay: 0.1s;
  }

  [data-scroll][data-scroll-delay="0.2"] {
    transition-delay: 0.2s;
  }

  [data-scroll][data-scroll-delay="0.3"] {
    transition-delay: 0.3s;
  }

  [data-scroll][data-scroll-delay="0.4"] {
    transition-delay: 0.4s;
  }

  [data-scroll][data-scroll-delay="0.5"] {
    transition-delay: 0.5s;
  }

  /* Scale-up variant */
  [data-scroll-scale] {
    transform: translateY(40px) scale(0.95);
  }

  [data-scroll-scale].is-inview {
    transform: translateY(0) scale(1);
  }

  /* Fade from left */
  [data-scroll-direction="left"] {
    transform: translateX(-40px);
  }

  [data-scroll-direction="left"].is-inview {
    transform: translateX(0);
  }

  /* Fade from right */
  [data-scroll-direction="right"] {
    transform: translateX(40px);
  }

  [data-scroll-direction="right"].is-inview {
    transform: translateX(0);
  }

  /* Parallax elements */
  [data-scroll-speed] {
    will-change: transform;
  }

  .has-parallax {
    transition: transform 0.1s linear;
  }

  /* Smooth scrollbar for webkit (optional enhancement) */
  html.has-scroll-smooth {
    overflow: hidden;
  }

  html.has-scroll-smooth body {
    overflow: hidden;
  }

  /* Progress-based animations */
  [data-scroll-progress] {
    --progress: 0;
  }

  /* Scroll progress indicator in header */
  .nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: calc(var(--scroll-progress, 0) * 100%);
    background: linear-gradient(90deg, #6ee7f9, #a78bfa);
    transition: width 0.1s linear;
  }

  /* Header scroll state */
  .header.scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  /* Reduce motion support */
  @media (prefers-reduced-motion: reduce) {
    [data-scroll] {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .loading-screen {
      transition: none;
    }

    .loading-content .brand-badge {
      animation: none;
    }
  }

  /* =========================
   ORIGINAL STYLES
   ========================= */
  :root {
    --bg: #fafafa;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #1e1b4b;
    --muted: #6b7280;
    --brand: #6366f1;
    --brand-2: #4f46e5;
    --accent: #f472b6;
    --accent-2: #ec4899;
    --coral: #fb7185;
    --violet: #8b5cf6;
    --ok: #10b981;
    --warn: #f59e0b;
    --error: #ef4444;
    --shadow: 0 10px 40px rgba(99, 102, 241, .12);
    --radius: 16px;
    --ease-out-3: cubic-bezier(0.33, 1, 0.68, 1);
  }

  /* Page Index â€” CTA glamorization */
  .page-index .cta-bar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(139, 92, 246, .18));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .35), 0 8px 28px rgba(99, 102, 241, .18);
    transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3), border-color .35s var(--ease-out-3);
    backdrop-filter: blur(6px) saturate(130%);
  }

  .page-index .cta-bar:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 14px 34px rgba(139, 92, 246, .22);
    border-color: rgba(255, 255, 255, .22);
  }

  /* Gradient ring border */
  .page-index .cta-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), var(--brand-2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .55;
    pointer-events: none;
    transition: opacity .35s var(--ease-out-3);
  }

  .page-index .cta-bar:hover::before {
    opacity: .9;
  }

  /* Shine sweep */
  .page-index .cta-bar::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -30%;
    width: 36%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 55%);
    transform: skewX(-18deg);
    border-radius: 20px;
    filter: blur(1px);
    opacity: 0;
    pointer-events: none;
  }

  .page-index .cta-bar:hover::after {
    opacity: 1;
    animation: ctaSweep 1.4s ease-out forwards;
  }

  /* CTA content subtle lift */
  .page-index .cta-bar>* {
    position: relative;
    z-index: 1;
  }

  .page-index .cta-bar strong,
  .page-index .cta-bar b {
    text-shadow: 0 2px 12px rgba(99, 102, 241, .22);
  }

  /* Button glam in CTA */
  .page-index .cta-bar .button.primary {
    position: relative;
    box-shadow: 0 12px 30px rgba(99, 102, 241, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transition: transform .3s var(--ease-out-3), box-shadow .3s var(--ease-out-3);
  }

  .page-index .cta-bar .button.primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 40px rgba(99, 102, 241, .45), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  }

  .page-index .cta-bar .button.primary::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(60% 60% at 50% -20%, rgba(255, 255, 255, .35), transparent 60%);
    opacity: .0;
    transition: opacity .25s var(--ease-out-3);
  }

  .page-index .cta-bar .button.primary:hover::after {
    opacity: .6;
  }

  /* Keyframes */
  @keyframes ctaSweep {
    0% {
      left: -30%;
    }

    100% {
      left: 130%;
    }
  }

  /* =========================
   Index Page Hero Animations
   ========================= */
  .page-index .hero {
    position: relative;
  }

  .page-index .hero .hero-glow {
    z-index: 0;
    will-change: transform;
  }

  .page-index .hero .hero-glow[data-parallax] {
    animation: none;
  }

  .page-index .hero .container {
    position: relative;
    z-index: 1;
  }

  /* Animated gradient shine on key phrase */
  .page-index .hero h1 em {
    background: linear-gradient(90deg, var(--accent), var(--brand-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: textGradient 3.6s linear infinite;
  }

  @keyframes textGradient {
    to {
      background-position: 200% 0;
    }
  }

  /* Badge shimmer sweep on hover */
  .page-index .badges {
    position: relative;
  }

  .page-index .badge {
    position: relative;
    overflow: hidden;
  }

  .page-index .badge::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 55%);
    transform: translateX(-140%) skewX(-20deg);
    opacity: 0;
  }

  .page-index .badge:hover::after {
    opacity: .9;
    animation: badgeSweep 1.2s ease-out;
  }

  @keyframes badgeSweep {
    to {
      transform: translateX(140%) skewX(-20deg);
    }
  }

  /* Hero card: premium hover ring + shine */
  .page-index .hero-card {
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3);
  }

  .page-index .hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .45), rgba(139, 92, 246, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s var(--ease-out-3);
  }

  .page-index .hero-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, 0) 55%);
    background-size: 220% 100%;
    background-position: -120% 0%;
    opacity: 0;
    transition: opacity .2s var(--ease-out-3);
  }

  .page-index .hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .40);
  }

  .page-index .hero-card:hover::before {
    opacity: 1;
  }

  .page-index .hero-card:hover::after {
    opacity: 1;
    animation: shineSweep 1.6s ease-out;
  }

  /* Hero stats micro-motion */
  .page-index .hero-stats .stat {
    transition: transform .3s var(--ease-out-3), box-shadow .3s var(--ease-out-3);
  }

  .page-index .hero-stats .stat:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(99, 102, 241, .2);
  }

  /* Cards icon micro-motion (index only) */
  .page-index .cards .card .icon {
    transition: transform .4s var(--ease-out-3), box-shadow .4s var(--ease-out-3);
  }

  .page-index .cards .card:hover .icon {
    transform: translateY(-4px) scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .25);
  }

  /* Index cards: gradient ring + shine on hover */
  .page-index .cards .card {
    position: relative;
    overflow: hidden;
  }

  .page-index .cards .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(139, 92, 246, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease-out-3);
  }

  .page-index .cards .card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 55%);
    background-size: 220% 100%;
    background-position: -120% 0%;
    opacity: 0;
    transition: opacity .2s var(--ease-out-3);
  }

  .page-index .cards .card:hover::before {
    opacity: 1;
  }

  .page-index .cards .card:hover::after {
    opacity: 1;
    animation: shineSweep 1.5s ease-out;
  }

  /* Hero floating orbs */
  .page-index .hero::before,
  .page-index .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .35;
    pointer-events: none;
    animation: orbFloat var(--dur-slow) ease-in-out infinite alternate;
  }

  .page-index .hero::before {
    width: 280px;
    height: 280px;
    top: -40px;
    left: -60px;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, .4), transparent 70%);
    animation-duration: 12s;
  }

  .page-index .hero::after {
    width: 220px;
    height: 220px;
    bottom: -30px;
    right: -40px;
    background: radial-gradient(circle at 70% 70%, rgba(139, 92, 246, .35), transparent 70%);
    animation-duration: 14s;
  }

  @keyframes orbFloat {
    to {
      transform: translate(12px, 10px) scale(1.04);
    }
  }

  /* Scroll indicator */
  .page-index .scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .35);
    opacity: .65;
  }

  .page-index .scroll-indicator::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .8);
    animation: bounceY 1.6s ease-in-out infinite;
  }

  @keyframes bounceY {

    0%,
    100% {
      transform: translate(-50%, 0);
      opacity: .9;
    }

    50% {
      transform: translate(-50%, 8px);
      opacity: .4;
    }
  }

  /* Interactive glow area for elements marked with [data-glow] */
  .page-index [data-glow] {
    position: relative;
    overflow: hidden;
  }

  .page-index [data-glow]::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    mix-blend-mode: screen;
    background:
      radial-gradient(28rem 28rem at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .14), transparent 60%),
      radial-gradient(22rem 22rem at calc(100% - var(--mx, 50%)) calc(100% - var(--my, 50%)), rgba(99, 102, 241, .12), transparent 60%);
    filter: blur(2px);
    opacity: .55;
    transition: opacity .3s var(--ease-out-3);
  }

  .page-index [data-glow]:hover::before {
    opacity: .85;
  }

  /* --- Fade animation --- */

  * {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(199, 210, 254, 0.25), transparent 55%),
      radial-gradient(ellipse 60% 40% at 0% 50%, rgba(244, 114, 182, 0.10), transparent 50%),
      radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.10), transparent 50%),
      linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #f5f3ff 100%);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    scroll-behavior: smooth;
  }

  .container {
    width: min(1200px, 90vw);
    margin: 0 auto;
  }

  .page-team .container {
    width: min(1200px, 90vw);
  }

  .page-team .nav {
    width: min(1200px, 90vw);
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img {
    max-width: 100%;
    display: block;
  }

  /* Header / Nav — see improved version below in "Improved Navbar" section */

  .button,
  .btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.1rem;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(99, 102, 241, .2);
    color: #1a1a2e;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    will-change: transform;
  }

  .button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  }

  .button.primary {
    background: linear-gradient(135deg, var(--accent), var(--brand-2));
    color: #071018;
    border: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, .35);
  }

  .button.primary:hover {
    transform: translateY(-2px) scale(1.02);
  }

  /* Hero */
  .hero {
    position: relative;
    padding: clamp(3rem, 8vw, 8rem) 0 clamp(2rem, 6vw, 5rem);
    overflow: hidden;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(1rem, 4vw, 3rem);
  }

  @media (max-width: 900px) {
    .grid-2 {
      grid-template-columns: 1fr;
    }
  }

  .kicker {
    color: var(--brand);
    letter-spacing: .24em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .8rem;
  }

  h1 {
    font-size: clamp(2rem, 3.5vw + 1rem, 4rem);
    line-height: 1.1;
    margin: .4rem 0 1rem;
  }

  .sublead {
    font-size: clamp(1rem, 1vw + .9rem, 1.25rem);
    color: var(--muted);
    max-width: 60ch;
  }

  .hero-card {
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(99, 102, 241, .1);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
  }

  .stat {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(99, 102, 241, .1);
    border-radius: 14px;
    padding: .8rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  }

  .stat b {
    font-size: 1.3rem;
    display: block;
  }

  .hero-glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(90px);
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .35) 0, rgba(110, 231, 249, .25) 35%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    animation: float 12s ease-in-out infinite alternate;
  }

  @keyframes float {
    to {
      transform: translate(-4%, 2%) rotate(8deg);
    }
  }

  .badges {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .badge {
    font-size: .85rem;
    color: #0b0f14;
    font-weight: 700;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 6px 18px rgba(99, 102, 241, .25);
  }

  /* Sections */
  .section {
    padding: clamp(2rem, 5vw, 4rem) 0;
  }

  .section h2 {
    font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem);
    margin: 0 0 1rem;
  }

  .lead {
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 68ch;
  }

  .page-pricing .lead {
    text-align: center !important;
  }

  /* Cards grid */
  .cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
  }

  .card {
    grid-column: span 4;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(99, 102, 241, .1);
    border-radius: var(--radius);
    padding: 1.2rem;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
  }

  .card h3 {
    margin-top: .4rem;
  }

  .card p {
    color: var(--muted);
  }

  @media (max-width: 1000px) {
    .card {
      grid-column: span 6;
    }
  }

  @media (max-width: 640px) {
    .card {
      grid-column: span 12;
    }
  }

  /* Marquee styles defined in MARQUEE DIVIDER section below */

  /* Footer */
  .footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(99, 102, 241, .1);
    padding: 2rem 0 0;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }

  .footer small {
    color: var(--muted);
  }

  .footer a {
    color: #1a1a2e;
    transition: color 0.2s ease;
  }

  .footer a:hover {
    color: var(--brand);
  }

  .footer strong {
    color: #1a1a2e;
  }

  @media (max-width: 900px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 600px) {
    .footer-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Newsletter Section */
  .newsletter-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(79, 70, 229, .08));
    border-top: 1px solid rgba(99, 102, 241, .1);
    padding: 2rem 0;
  }

  .newsletter-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
  }

  .newsletter-content h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
  }

  .newsletter-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 40ch;
  }

  .lead-magnets {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .magnet-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    align-items: center;
  }

  .magnet-icon {
    font-size: 1.5rem;
  }

  .newsletter-form {
    min-width: 300px;
  }

  .newsletter-form form {
    display: grid;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  @media (max-width: 900px) {
    .newsletter-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }

    .newsletter-form {
      min-width: auto;
    }
  }

  /* Trust Badges — see refined version below */

  /* FAQ Section */
  .faq-section {
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    border: 1px solid rgba(99, 102, 241, .15);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 250, 252, .95));
    box-shadow: 0 2px 8px rgba(99, 102, 241, .06);
    transition: all 0.3s ease;
  }

  .faq-item:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, .12);
    border-color: rgba(99, 102, 241, .25);
  }

  .faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    position: relative;
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--brand);
    transition: transform .3s ease;
  }

  .faq-item[open] summary::after {
    content: "âˆ’";
    transform: rotate(0deg);
  }

  .faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
  }

  /* Trust Badges - Light Theme */
  .trust-badges {
    border-top: 1px solid rgba(99, 102, 241, .15);
    padding: 1.2rem 0 1.5rem;
    background: #f1f5f9;
  }

  .trust-badges .container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
  }

  .badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-weight: 500;
  }

  .badge-icon {
    font-size: 1.3rem;
  }

  @media (max-width: 600px) {
    .trust-badges .container {
      flex-direction: column;
      gap: 0.5rem;
    }
  }

  /* Reveal on scroll */
  .reveal {
    opacity: 0;
    transform: translateY(20px) scale(.98);
    transition: opacity .6s ease, transform .6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* Utilities */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .text-center {
    text-align: center !important;
  }

  @media (max-width: 900px) {

    .grid-3,
    .grid-4 {
      grid-template-columns: 1fr;
    }
  }

  .kpi {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .5px;
  }

  .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(199, 210, 254, .35), rgba(99, 102, 241, .25));
    display: grid;
    place-items: center;
    font-weight: 900;
    border: 1px solid rgba(99, 102, 241, .2);
    box-shadow: 0 2px 8px rgba(99, 102, 241, .1);
  }

  /* Forms */
  .input,
  textarea {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    color: #1a1a2e;
    border: 1px solid rgba(99, 102, 241, .2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  }

  .input:focus,
  textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, .5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
  }

  textarea {
    min-height: 180px;
    resize: vertical;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  @media (max-width: 700px) {
    .form-row {
      grid-template-columns: 1fr;
    }
  }

  /* Table-like features list */
  .features {
    display: grid;
    gap: .8rem;
  }

  .feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  /* Index page hero features - checkmark and title inline */
  .page-index .hero-card .features .feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .page-index .hero-card .features .feature:last-child {
    margin-bottom: 0;
  }

  .page-index .hero-card .features .feature .tick {
    flex-shrink: 0;
    margin-top: 0.1rem;
  }

  .page-index .hero-card .features .feature>div:last-child {
    flex: 1;
  }

  .step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #c7d2fe 0%, #6366f1 50%, #4f46e5 100%);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 900;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(99, 102, 241, .25);
  }

  .tick {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c7d2fe 0%, #6366f1 50%, #4f46e5 100%);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(99, 102, 241, .3);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.2rem;
  }

  /* Pricing */
  .pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .tier {
    position: relative;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(99, 102, 241, .15);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  }

  .tier.best {
    border: 1px solid rgba(139, 92, 246, .6);
    box-shadow: 0 10px 30px rgba(139, 92, 246, .25);
    transform: translateY(-6px);
  }

  .tier-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--brand-2));
    color: #071018;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
  }

  .tier-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, .1);
    margin-bottom: 1.5rem;
  }

  .tier h3 {
    margin: .5rem 0;
    font-size: 1.4rem;
  }

  .tier .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
  }

  .tier-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
    color: var(--text);
    font-size: 0.95rem;
  }

  .tier-features .tick {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #071018;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
  }

  .tier .button {
    width: 100%;
    justify-content: center;
    margin-top: auto;
  }

  /* Mobile optimization for pricing */
  @media (max-width: 768px) {
    .pricing {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .tier {
      padding: 1.5rem;
      text-align: center;
    }

    .tier.best {
      transform: none;
      order: -1;
      /* Move best tier to top on mobile */
    }

    .tier h3 {
      font-size: 1.2rem;
    }

    .tier .price {
      font-size: 1.8rem;
    }

    .tier ul {
      text-align: left;
      padding-left: 1.5rem;
    }
  }

  /* Enhanced Mobile Experience */
  @media (max-width: 768px) {

    /* Touch-friendly buttons */
    .button {
      min-height: 44px;
      padding: 0.75rem 1.25rem;
      font-size: 1rem;
    }

    /* Better mobile navigation */
    .nav-toggle {
      width: 48px;
      height: 48px;
    }

    /* Improved mobile cards */
    .card {
      padding: 1.25rem;
    }

    /* Mobile-optimized hero */
    .hero {
      padding: clamp(2rem, 6vw, 4rem) 0 clamp(1rem, 4vw, 3rem);
    }

    .grid-2 {
      gap: clamp(1.5rem, 6vw, 2rem);
    }

    /* Better mobile form inputs */
    .input {
      font-size: 16px;
      /* Prevents zoom on iOS */
      padding: 1rem;
    }

    /* Mobile newsletter section */
    .newsletter-content {
      gap: 2rem;
    }

    .newsletter-form form {
      gap: 0.75rem;
    }
  }

  /* img max-width already set globally above */

  /* Reduce motion for accessibility */
  @media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* ===========================
     Enhanced Responsive System
     =========================== */

  /* Grid-3: 2-col on tablet, 1-col on small mobile */
  @media (max-width: 768px) {
    .grid-3 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {

    .grid-3,
    .grid-4 {
      grid-template-columns: 1fr;
    }
  }

  /* Pricing: 2-col on tablet before 1-col on mobile */
  @media (max-width: 980px) and (min-width: 769px) {
    .pricing {
      grid-template-columns: repeat(2, 1fr);
    }

    .tier.best {
      grid-column: 1 / -1;
      max-width: 480px;
      margin: 0 auto;
    }
  }

  /* CTA bar: center text on mobile */
  @media (max-width: 700px) {
    .cta-bar {
      text-align: center;
      justify-items: center;
    }

    .cta-bar .button {
      width: 100%;
      max-width: 280px;
      justify-content: center;
    }
  }

  /* Hero trust section: stack on very small screens */
  @media (max-width: 480px) {
    .hero-trust {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }

    .trust-divider {
      display: none;
    }

    /* Ensure touch targets are accessible */
    .button,
    .btn {
      min-height: 48px;
      min-width: 48px;
    }

    /* Better section spacing on mobile */
    .section {
      padding: clamp(1.5rem, 4vw, 3rem) 0;
    }

    h1 {
      font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .section h2 {
      font-size: clamp(1.3rem, 5vw, 2rem);
    }
  }

  /* Optimize for high DPI displays */
  @media (-webkit-min-device-pixel-ratio: 2),
  (min-resolution: 192dpi) {
    .brand-badge {
      transform: scale(0.9);
    }
  }

  /* Custom Scrollbar - Light Theme Design */
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c7d2fe, #6366f1, #4f46e5);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5, #4338ca);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  }

  ::-webkit-scrollbar-corner {
    background: #f1f5f9;
  }

  /* Firefox scrollbar */
  * {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #f5f3ff;
  }

  /* CTA bar */
  .cta-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, .15), rgba(139, 92, 246, .15));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
  }

  @media (max-width: 700px) {
    .cta-bar {
      grid-template-columns: 1fr;
    }
  }

  /* Bread */
  .breadcrumbs {
    color: var(--muted);
    font-size: .9rem;
    margin: .6rem 0 1rem;
  }

  .breadcrumbs a {
    color: var(--brand);
  }

  /* Footer copyright */
  .copy {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--muted);
  }


  /* ===== Improved Navbar ===== */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Header shell: glass with subtle gradient border + shadow on scroll */
  .header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: saturate(140%) blur(10px);
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid rgba(99, 102, 241, .1);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .05) inset;
  }

  .header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08), 0 0 0 1px rgba(99, 102, 241, .1) inset;
    background: rgba(255, 255, 255, .95);
  }

  /* Layout: brand | nav | cta / toggle */
  .nav {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: .6rem 0;
  }

  .nav-cta {
    margin-left: .5rem;
  }

  .nav-panel {
    display: flex;
    align-items: center;
    gap: .4rem;
  }

  /* Links: minimalist pills with animated underline */
  .nav-link {
    position: relative;
    padding: .6rem .9rem;
    border-radius: 10px;
    color: var(--text);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--brand-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 1px;
  }

  .nav-link:hover::after {
    transform: scaleX(1);
  }

  .nav-link[aria-current="page"],
  .nav-link.active {
    background: linear-gradient(180deg, rgba(99, 102, 241, .1), rgba(99, 102, 241, .05));
    border: 1px solid rgba(99, 102, 241, .15);
    color: #16a34a;
  }

  .nav-link[aria-current="page"]::after,
  .nav-link.active::after {
    transform: scaleX(1);
  }

  /* CTA in nav aligns nicely on desktop; stacks on mobile */
  .nav-cta {
    margin-left: .6rem;
  }

  /* Mobile toggle */
  .nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, .2);
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
    cursor: pointer;
  }

  .nav-toggle .bar {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
  }

  .nav-toggle .bar:nth-child(2) {
    top: 12px;
  }

  .nav-toggle .bar:nth-child(3) {
    top: 19px;
  }

  .nav-toggle .bar:nth-child(4) {
    top: 26px;
  }

  /* When menu is open -> "X" */
  .header.open .nav-toggle .bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .header.open .nav-toggle .bar:nth-child(3) {
    opacity: 0;
  }

  .header.open .nav-toggle .bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Scroll progress bar */
  .nav-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
    transition: width .15s ease-out;
    opacity: .9;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 980px) {
    .nav {
      grid-template-columns: 1fr auto;
    }

    .nav-toggle {
      display: inline-block;
    }

    .nav-panel {
      position: fixed;
      left: 6vw;
      right: 6vw;
      top: 72px;
      display: grid;
      gap: .6rem;
      padding: .8rem;
      background: rgba(255, 255, 255, .98);
      border: 1px solid rgba(99, 102, 241, .2);
      border-radius: 16px;
      transform: translateY(-8px) scale(.98);
      opacity: 0;
      pointer-events: none;
      box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
      backdrop-filter: blur(10px) saturate(140%);
    }

    .header.open .nav-panel {
      transform: none;
      opacity: 1;
      pointer-events: auto;
    }

    .nav-cta {
      margin-top: .2rem;
    }
  }

  /* Wider hover target on desktop */
  @media (min-width: 981px) {
    .nav-panel {
      gap: .2rem;
    }

    .nav-link {
      padding: .55rem .8rem;
    }
  }


  /* =========================
     MARQUEE DIVIDER
     ========================= */
  .marquee {
    overflow: hidden;
    padding: 1.2rem 0;
    background: linear-gradient(135deg, #f8f9fc, #eef0f7);
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }

  .marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
    will-change: transform;
  }

  .marquee-track b {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
    padding: 0 1.5rem;
    position: relative;
  }

  .marquee-track b::after {
    content: "✦";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 0.7rem;
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
  }

  @keyframes marqueeScroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  /* =========================
   TEAM PAGE — REDESIGN
   ========================= */

  /* ── Hero ─────────────────────────── */
  .team-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1rem 2rem;
    position: relative;
  }

  /* Subtle floating orb behind hero */
  .team-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    border-radius: 50%;
    top: -60px;
    right: -100px;
    pointer-events: none;
    animation: heroOrb 8s ease-in-out infinite;
    z-index: 0;
  }

  .team-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.1), transparent 70%);
    border-radius: 50%;
    bottom: -40px;
    left: -80px;
    pointer-events: none;
    animation: heroOrb 8s ease-in-out infinite reverse;
    z-index: 0;
  }

  @keyframes heroOrb {

    0%,
    100% {
      transform: translate(0, 0) scale(1);
    }

    50% {
      transform: translate(20px, -15px) scale(1.1);
    }
  }

  .team-hero .kicker {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: default;
  }

  .team-hero .kicker:hover {
    letter-spacing: 0.25em;
    color: #6366f1;
  }

  .team-hero__title {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0.5rem 0 1rem;
    transition: text-shadow 0.4s ease;
  }

  .team-hero__title:hover {
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
  }

  .team-hero__gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #f472b6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: heroGradShift 4s ease infinite;
    transition: filter 0.3s ease;
  }

  .team-hero__gradient:hover {
    filter: brightness(1.2) drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
  }

  @keyframes heroGradShift {

    0%,
    100% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }
  }

  .team-hero .lead {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    transition: color 0.3s ease;
  }

  .team-hero .lead:hover {
    color: var(--text);
  }

  /* ── Breadcrumbs hover ────────────── */
  .page-team .breadcrumbs a {
    position: relative;
    transition: color 0.3s ease;
  }

  .page-team .breadcrumbs a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .page-team .breadcrumbs a:hover::after {
    width: 100%;
  }

  .page-team .breadcrumbs a:hover {
    color: #6366f1;
  }

  /* ── Team Grid ────────────────────── */
  .team-section {
    padding: 1rem 0 3rem;
  }

  .team-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    perspective: 1200px;
    overflow: visible;
  }

  /* ── Flip Card Container ──────────── */
  .team-card {
    position: relative;
    height: 480px;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 20px;
    overflow: visible;
    min-width: 0;
    will-change: transform, opacity;
  }

  /* Animated spinning gradient border */
  .team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: conic-gradient(from var(--border-angle, 0deg), #6366f1, #8b5cf6, #f472b6, #6366f1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    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.5s ease;
    animation: spinBorder 4s linear infinite;
    pointer-events: none;
    z-index: 2;
  }

  @keyframes spinBorder {
    to {
      --border-angle: 360deg;
    }
  }

  @property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }

  .team-card:hover::before {
    opacity: 1;
  }

  /* Soft outer glow on hover */
  .team-card::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    background: conic-gradient(from var(--border-angle, 0deg), rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1), rgba(244, 114, 182, 0.08), rgba(99, 102, 241, 0.15));
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
    animation: spinBorder 4s linear infinite;
  }

  .team-card:hover::after {
    opacity: 1;
  }

  /* Dim siblings when one card is hovered */
  .team-row:hover .team-card:not(:hover) {
    opacity: 0.55;
    transform: scale(0.97);
  }

  .team-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
  }

  .team-card:hover .team-card__inner {
    transform: rotateY(180deg);
  }

  /* ── Front & Back shared ──────────── */
  .team-card__front,
  .team-card__back {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: box-shadow 0.5s ease, border-color 0.4s ease;
  }

  .team-card:hover .team-card__front {
    box-shadow:
      0 20px 60px rgba(99, 102, 241, 0.2),
      0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
  }

  .team-card:hover .team-card__back {
    box-shadow:
      0 24px 70px rgba(99, 102, 241, 0.3),
      0 0 30px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
  }

  /* ── Front Face ───────────────────── */
  .team-card__front {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
  }

  /* Cursor-following glow overlay */
  .team-card__front::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle 180px at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(99, 102, 241, 0.12),
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
  }

  .team-card:hover .team-card__front::before {
    opacity: 1;
  }

  .team-card__img-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
  }

  .team-card__img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
  }

  .team-card:hover .team-card__img-wrap img {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.02);
  }

  /* Shimmer sweep on hover */
  .team-card__img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.3) 45%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.3) 55%, transparent 60%);
    background-size: 250% 100%;
    background-position: 200% 0;
    pointer-events: none;
    z-index: 2;
  }

  .team-card:hover .team-card__img-wrap::after {
    animation: cardShimmer 0.8s ease forwards;
  }

  @keyframes cardShimmer {
    to {
      background-position: -200% 0;
    }
  }

  .team-card__info {
    padding: 1rem 1.2rem;
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    transition: background 0.3s ease;
  }

  /* Gradient accent line at top of info */
  .team-card__info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .team-card:hover .team-card__info::before {
    opacity: 1;
    transform: scaleX(1);
  }

  .team-card__info h3 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.3s ease;
  }

  .team-card:hover .team-card__info h3 {
    color: #4f46e5;
  }

  .team-card__info small {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: letter-spacing 0.3s ease;
  }

  .team-card:hover .team-card__info small {
    letter-spacing: 0.12em;
  }

  .team-card__hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
  }

  .team-card:hover .team-card__hint {
    opacity: 0.6;
    transform: translateY(0);
  }

  /* ── Back Face ────────────────────── */
  .team-card__back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #0d1b3e 70%, #0a0a20 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
  }

  /* Aurora / mesh gradient overlay */
  .team-card__back::before {
    content: "";
    position: absolute;
    inset: -50%;
    background:
      radial-gradient(ellipse 300px 200px at 30% 20%, rgba(99, 102, 241, 0.2), transparent),
      radial-gradient(ellipse 250px 250px at 70% 80%, rgba(139, 92, 246, 0.15), transparent),
      radial-gradient(ellipse 200px 150px at 50% 50%, rgba(244, 114, 182, 0.08), transparent);
    pointer-events: none;
    animation: auroraShift 8s ease-in-out infinite;
  }

  @keyframes auroraShift {

    0%,
    100% {
      transform: translate(0, 0) rotate(0deg);
    }

    33% {
      transform: translate(10px, -10px) rotate(2deg);
    }

    66% {
      transform: translate(-10px, 5px) rotate(-1deg);
    }
  }

  /* Subtle scanline effect */
  .team-card__back::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    pointer-events: none;
  }

  .team-card__back h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }

  .team-card__role-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    animation: roleTagPulse 3s ease-in-out infinite;
  }

  @keyframes roleTagPulse {

    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }

    50% {
      box-shadow: 0 0 12px 2px rgba(99, 102, 241, 0.2);
    }
  }

  .team-card__role-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
  }

  .team-card__back p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #94a3b8;
    position: relative;
    z-index: 1;
  }

  .team-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    position: relative;
    z-index: 1;
  }

  .team-card__skills span {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
  }

  .team-card__skills span:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.6);
    color: #fff;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }

  .team-card__socials {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
  }

  .team-card__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
  }

  .team-card__socials a:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transform: translateY(-4px) scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  }

  .team-card__socials a:active {
    transform: translateY(-1px) scale(0.95);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }

  .team-card__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    background-size: 200% 200%;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: btnGradient 3s ease infinite, btnGlow 2s ease-in-out infinite;
  }

  @keyframes btnGradient {

    0%,
    100% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }
  }

  @keyframes btnGlow {

    0%,
    100% {
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    }

    50% {
      box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55), 0 0 12px rgba(139, 92, 246, 0.2);
    }
  }

  /* Button shine sweep */
  .team-card__view-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
  }

  .team-card__view-btn:hover::after {
    left: 120%;
  }

  .team-card__view-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 32px rgba(99, 102, 241, 0.55);
    letter-spacing: 0.03em;
  }

  .team-card__view-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }

  /* ── Fullscreen Modal ─────────────── */
  .team-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
  }

  .team-modal.active {
    display: flex;
  }

  .team-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .team-modal__content {
    position: relative;
    display: flex;
    max-width: 900px;
    width: 92%;
    max-height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f23, #1a1a3e);
    box-shadow:
      0 40px 100px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(99, 102, 241, 0.2),
      0 0 80px rgba(99, 102, 241, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .team-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(12px);
  }

  .team-modal__close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  }

  .team-modal__img-col {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
  }

  .team-modal__img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
  }

  /* Slow cinematic zoom on modal image */
  .team-modal.active .team-modal__img-col img {
    transform: scale(1.08);
  }

  .team-modal__img-col img:hover {
    filter: saturate(1.15) contrast(1.03);
  }

  /* Gradient overlay on modal image */
  .team-modal__img-col::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, #1a1a2e 100%);
    pointer-events: none;
  }

  .team-modal__detail-col {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    color: #e2e8f0;
  }

  .team-modal__detail-col h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .team-modal__detail-col p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
  }

  .team-modal__detail-col h4 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
  }

  .team-modal__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .team-modal__skills span {
    font-size: 0.78rem;
    padding: 0.3rem 0.9rem;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
  }

  .team-modal__skills span:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: #6366f1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  }

  .team-modal__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    margin: 0.4rem 0;
  }

  /* ── Responsive ───────────────────── */
  @media (max-width: 900px) {
    .team-row {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }

    .team-row .team-card:last-child {
      grid-column: 1 / -1;
      max-width: 400px;
      margin: 0 auto;
    }
  }

  @media (max-width: 768px) {
    .team-row {
      grid-template-columns: 1fr;
      max-width: 400px;
      margin: 0 auto;
    }

    .team-row .team-card:last-child {
      max-width: none;
    }

    .team-hero {
      padding: 2.5rem 1rem 1.5rem;
    }

    .team-modal__content {
      flex-direction: column;
      max-height: 90vh;
      overflow-y: auto;
    }

    .team-modal__img-col {
      flex: 0 0 auto;
      height: 260px;
    }

    .team-modal__img-col::after {
      background: linear-gradient(180deg, transparent 50%, #1a1a2e 100%);
    }

    .team-modal__detail-col {
      padding: 1.5rem;
    }
  }

  /* =========================
   Services Page Animations
   ========================= */
  .page-services .section:first-of-type {
    position: relative;
    overflow: hidden;
  }

  .page-services .section:first-of-type::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 60vmin;
    background: radial-gradient(50% 60% at 65% 10%, rgba(139, 92, 246, .18), transparent 60%),
      radial-gradient(50% 60% at 20% 30%, rgba(99, 102, 241, .16), transparent 60%);
    filter: blur(80px);
    opacity: .35;
    pointer-events: none;
    animation: float 16s ease-in-out infinite alternate;
  }

  .page-services .cards .card {
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3);
  }

  .page-services .cards .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .45), rgba(139, 92, 246, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s var(--ease-out-3);
  }

  .page-services .cards .card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, 0) 55%);
    background-size: 220% 100%;
    background-position: -120% 0%;
    opacity: 0;
    transition: opacity .2s var(--ease-out-3);
  }

  .page-services .cards .card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 10px 30px rgba(99, 102, 241, .18);
  }

  .page-services .cards .card:hover::before {
    opacity: 1;
  }

  .page-services .cards .card:hover::after {
    opacity: 1;
    animation: shineSweep 1.4s ease-out;
  }

  .page-services .cards .card .icon {
    transition: transform .4s var(--ease-out-3), box-shadow .4s var(--ease-out-3);
  }

  .page-services .cards .card:hover .icon {
    transform: translateY(-4px) scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .25);
  }

  .page-services .features .feature {
    transition: transform .3s var(--ease-out-3);
  }

  .page-services .features .feature:hover {
    transform: translateX(3px);
  }

  .page-services .features .feature .tick {
    transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3);
  }

  .page-services .features .feature:hover .tick {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 12px 28px rgba(99, 102, 241, .35);
  }

  /* Fix scroll jumping on contact page */
  .page-contact .reveal {
    filter: none !important;
  }

  .page-contact .features .feature .tick {
    transition: transform .35s var(--ease-out-3);
  }

  .page-contact .features .feature:hover .tick {
    transform: scale(1.08) rotate(-6deg);
  }

  /* Page Services â€” CTA glamorization */
  .page-services .cta-bar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(139, 92, 246, .18));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .35), 0 8px 28px rgba(99, 102, 241, .18);
    transition: transform .35s var(--ease-out-3), box-shadow .35s var(--ease-out-3), border-color .35s var(--ease-out-3);
    backdrop-filter: blur(6px) saturate(130%);
  }

  .page-services .cta-bar:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 14px 34px rgba(139, 92, 246, .22);
    border-color: rgba(255, 255, 255, .22);
  }

  /* Gradient ring border */
  .page-services .cta-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), var(--brand-2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .55;
    pointer-events: none;
    transition: opacity .35s var(--ease-out-3);
  }

  .page-services .cta-bar:hover::before {
    opacity: .9;
  }

  /* Shine sweep */
  .page-services .cta-bar::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -30%;
    width: 36%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 55%);
    transform: skewX(-18deg);
    border-radius: 20px;
    filter: blur(1px);
    opacity: 0;
    pointer-events: none;
  }

  .page-services .cta-bar:hover::after {
    opacity: 1;
    animation: ctaSweep 1.4s ease-out forwards;
  }

  /* CTA content subtle lift */
  .page-services .cta-bar>* {
    position: relative;
    z-index: 1;
  }

  .page-services .cta-bar strong,
  .page-services .cta-bar b {
    text-shadow: 0 2px 12px rgba(99, 102, 241, .22);
  }

  /* Button glam in CTA */
  .page-services .cta-bar .button.primary {
    position: relative;
    box-shadow: 0 12px 30px rgba(99, 102, 241, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transition: transform .3s var(--ease-out-3), box-shadow .3s var(--ease-out-3);
  }

  .page-services .cta-bar .button.primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 40px rgba(99, 102, 241, .45), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  }

  .page-services .cta-bar .button.primary::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(60% 60% at 50% -20%, rgba(255, 255, 255, .35), transparent 60%);
    opacity: .0;
    transition: opacity .25s var(--ease-out-3);
  }

  .page-services .cta-bar .button.primary:hover::after {
    opacity: .6;
  }

  /* Keyframes */
  @keyframes ctaSweep {
    0% {
      left: -30%;
    }

    100% {
      left: 130%;
    }
  }

  /* --- Fade animation --- */
  .fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .delay-1 {
    transition-delay: 0.15s;
  }

  .delay-2 {
    transition-delay: 0.3s;
  }

  .delay-3 {
    transition-delay: 0.45s;
  }

  /* =========================
   Modern Motion Utilities
   ========================= */
  :root {
    --ease-out-3: cubic-bezier(.22, .61, .36, 1);
    --ease-spring-1: cubic-bezier(.2, .8, .2, 1);
    --dur-fast: 180ms;
    --dur: 320ms;
    --dur-slow: 600ms;
  }

  /* Page fade-in */
  body {
    opacity: 0;
  }

  body.ready {
    opacity: 1;
    transition: opacity .45s var(--ease-out-3);
  }

  body.loading {
    opacity: 1;
    overflow: hidden;
    /* Hide scrollbar during loading */
  }

  /* Reveal variants + stagger support */
  .reveal {
    opacity: 0;
    transform: translateY(14px) scale(.985);
    filter: blur(.4px);
    transition: opacity .6s var(--ease-out-3), transform .6s var(--ease-out-3), filter .6s var(--ease-out-3);
    transition-delay: var(--delay, 0ms);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .reveal-up {
    transform: translateY(18px) scale(.985);
  }

  .reveal-left {
    transform: translateX(18px);
  }

  .reveal-right {
    transform: translateX(-18px);
  }

  .reveal-zoom {
    transform: scale(.94);
  }

  .reveal-blur {
    filter: blur(8px);
    transform: translateY(6px);
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible,
  .reveal-zoom.visible,
  .reveal-blur.visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Any container can opt-in to automatic stagger */
  [data-stagger]>* {
    transition-delay: var(--delay, 0ms);
  }

  /* Buttons: water droplet ripple + elevated glow */
  .button {
    position: relative;
    overflow: hidden;
  }

  .button::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 60% at 50% -10%, rgba(99, 102, 241, .15), transparent 60%);
    opacity: .0;
    transition: opacity .25s var(--ease-out-3);
  }

  .button:hover::after {
    opacity: .8;
  }

  .button .ripple {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    transform: scale(0);
    opacity: .7;
    background:
      radial-gradient(25% 25% at var(--x) var(--y), rgba(99, 102, 241, .6), transparent 50%),
      radial-gradient(15% 15% at calc(var(--x) + 8px) calc(var(--y) + 8px), rgba(139, 92, 246, .4), transparent 40%),
      radial-gradient(20% 20% at calc(var(--x) - 6px) calc(var(--y) - 6px), rgba(110, 231, 249, .5), transparent 45%);
    animation: waterRipple .8s ease-out forwards;
  }

  @keyframes waterRipple {
    0% {
      transform: scale(0);
      opacity: .9;
    }

    50% {
      transform: scale(1.2);
      opacity: .6;
    }

    100% {
      transform: scale(2.5);
      opacity: 0;
    }
  }

  /* Cards: subtle 3D tilt feedback */
  .card {
    will-change: transform;
    transform-style: preserve-3d;
  }

  /* Brand badge gentle motion */
  @keyframes badgePulse {
    to {
      transform: rotate(3deg);
      filter: saturate(1.15);
    }
  }

  .brand-badge {
    animation: badgePulse 16s ease-in-out infinite alternate;
  }

  /* Back-to-top button */
  #toTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, #1b2333, #121a27);
    color: var(--text);
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease-out-3), opacity .3s var(--ease-out-3), visibility 0s linear .3s;
    z-index: 70;
  }

  #toTop.show {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  #toTop:hover {
    transform: translateY(-2px);
  }

  /* =========================
   Fullscreen Loader Overlay
   ========================= */
  #loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background:
      radial-gradient(1200px 800px at 70% -10%, #1f2a44 0%, transparent 60%),
      radial-gradient(800px 600px at -10% 30%, #1b243b 0%, transparent 50%),
      var(--bg);
    z-index: 1000;
    transition: opacity .5s var(--ease-out-3), visibility 0s linear .5s;
  }

  #loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Special Home Page Loader */
  #loader.loader-home {
    background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0f1520 100%);
  }

  #loader.loader-home .loader-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #loader.loader-home .loader-content {
    text-align: center;
  }

  #loader.loader-home .loader-text-animated {
    display: flex;
    gap: 0.2rem;
    justify-content: center;
    margin-bottom: 1rem;
  }

  #loader.loader-home .letter {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text);
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotateX(90deg);
    animation: letterEpicEntrance 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: calc(var(--i) * 0.08s);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    text-shadow: 0 0 20px rgba(110, 231, 249, 0.5);
    filter: blur(2px);
  }

  #loader.loader-home .loader-tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out 0.3s forwards;
  }

  @keyframes letterEpicEntrance {
    0% {
      opacity: 0;
      transform: translateY(50px) scale(0.8) rotateX(90deg);
      filter: blur(2px);
    }

    50% {
      opacity: 0.7;
      transform: translateY(10px) scale(1.1) rotateX(0deg);
      filter: blur(0px);
    }

    100% {
      opacity: 1;
      transform: translateY(0) scale(1) rotateX(0deg);
      filter: blur(0px);
    }
  }

  @keyframes letterSlide {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .loader-wrap {
    display: grid;
    gap: .9rem;
    place-items: center;
    text-align: center;
    padding: 1rem 1.4rem;
  }

  /* Special home page loader styling */
  .page-index .loader-wrap {
    gap: 1.2rem;
    padding: 1.5rem 2rem;
  }

  .page-index .loader-text {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
  }

  .page-index .loader-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 400px;
    line-height: 1.4;
    opacity: 0.9;
  }

  @keyframes textGlow {
    to {
      filter: brightness(1.2) saturate(1.1);
    }
  }

  /* Brand badge with halo + spinner ring */
  .loader-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    position: relative;
    background: conic-gradient(from 180deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
    box-shadow: inset 0 0 28px rgba(255, 255, 255, .35), 0 14px 40px rgba(0, 0, 0, .45);
    animation: loaderPulse 1.6s ease-in-out infinite alternate;
  }

  .loader-badge::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, rgba(110, 231, 249, .0), rgba(110, 231, 249, .6), rgba(139, 92, 246, .0) 70%);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 45%, #000 46%);
    mask: radial-gradient(circle at 50% 50%, transparent 45%, #000 46%);
    animation: spin 1.2s linear infinite;
    filter: blur(.3px);
  }

  /* Label + shimmer subtext */
  .loader-text {
    font-weight: 800;
    letter-spacing: .3px;
  }

  .loader-sub {
    font-size: .9rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .85), rgba(255, 255, 255, .4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
  }

  /* Indeterminate bar */
  .loader-bar {
    position: relative;
    width: 220px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
  }

  .loader-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 249, .7), rgba(139, 92, 246, .7), transparent);
    transform: translateX(-60%);
    animation: indeterminate 1.3s var(--ease-spring-1) infinite;
  }

  /* Keyframes */
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes shimmer {
    to {
      background-position: 200% 0;
    }
  }

  @keyframes indeterminate {
    0% {
      transform: translateX(-60%);
    }

    100% {
      transform: translateX(200%);
    }
  }

  @keyframes loaderPulse {
    to {
      transform: translateY(-2px) scale(1.04);
      filter: saturate(1.15);
    }
  }

  @keyframes shineSweep {
    0% {
      background-position: 50% 0%, 50% 100%, -120% 0%;
    }

    100% {
      background-position: 50% 0%, 50% 100%, 220% 0%;
    }
  }

  @keyframes slideOut {
    to {
      opacity: 0;
      transform: translateX(100%);
    }
  }

  /* Accessibility: reduce motion */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      scroll-behavior: auto !important;
    }

    .marquee-track {
      animation: none !important;
    }
  }

  /* ===== HOME PAGE MOBILE OPTIMIZATION ===== */
  @media (max-width: 768px) {
    .page-index .hero {
      padding: clamp(2rem, 10vw, 4rem) 0 clamp(2rem, 8vw, 3rem);
    }

    .page-index h1 {
      font-size: clamp(1.75rem, 8vw, 3rem);
      line-height: 1.15;
    }

    .page-index .sublead {
      font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .page-index .badges {
      justify-content: center;
    }

    .page-index .badge {
      font-size: 0.8rem;
      padding: 0.35rem 0.6rem;
    }

    .page-index .hero-card {
      padding: 1rem;
    }

    .page-index .hero-stats {
      gap: 0.6rem;
    }

    .page-index .stat {
      padding: 0.6rem;
    }

    .page-index .stat b {
      font-size: 1.1rem;
    }

    .page-index .cards .card {
      padding: 1rem;
    }

    .page-index .cards .card h3 {
      font-size: 1.1rem;
    }

    .page-index .cards .card p {
      font-size: 0.9rem;
    }

    .page-index .hero-glow {
      width: 80vmax;
      height: 80vmax;
    }
  }

  .loader-text {
    font-weight: 600;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
  }

  .page-index .loader-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 400px;
    line-height: 1.4;
    opacity: 0.9;
  }

  @keyframes textGlow {
    to {
      filter: brightness(1.2) saturate(1.1);
    }
  }

  /* Brand badge with halo + spinner ring */
  .loader-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    position: relative;
    background: conic-gradient(from 180deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
    box-shadow: inset 0 0 28px rgba(255, 255, 255, .35), 0 14px 40px rgba(0, 0, 0, .45);
    animation: loaderPulse 1.6s ease-in-out infinite alternate;
  }

  .loader-badge::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, rgba(110, 231, 249, .0), rgba(110, 231, 249, .6), rgba(139, 92, 246, .0) 70%);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 45%, #000 46%);
    mask: radial-gradient(circle at 50% 50%, transparent 45%, #000 46%);
    animation: spin 1.2s linear infinite;
    filter: blur(.3px);
  }

  /* Label + shimmer subtext */
  .loader-text {
    font-weight: 800;
    letter-spacing: .3px;
  }

  .loader-sub {
    font-size: .9rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .85), rgba(255, 255, 255, .4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
  }

  /* Indeterminate bar */
  .loader-bar {
    position: relative;
    width: 220px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
  }

  .loader-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 249, .7), rgba(139, 92, 246, .7), transparent);
    transform: translateX(-60%);
    animation: indeterminate 1.3s var(--ease-spring-1) infinite;
  }

  /* Keyframes */
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes shimmer {
    to {
      background-position: 200% 0;
    }
  }

  @keyframes indeterminate {
    0% {
      transform: translateX(-60%);
    }

    100% {
      transform: translateX(200%);
    }
  }

  @keyframes loaderPulse {
    to {
      transform: translateY(-2px) scale(1.04);
      filter: saturate(1.15);
    }
  }

  @keyframes shineSweep {
    0% {
      background-position: 50% 0%, 50% 100%, -120% 0%;
    }

    100% {
      background-position: 50% 0%, 50% 100%, 220% 0%;
    }
  }

  @keyframes slideOut {
    to {
      opacity: 0;
      transform: translateX(100%);
    }
  }

  /* Accessibility: reduce motion */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      scroll-behavior: auto !important;
    }

    .marquee-track {
      animation: none !important;
    }
  }

  /* ===== HOME PAGE MOBILE OPTIMIZATION ===== */
  @media (max-width: 768px) {
    .page-index .hero {
      padding: clamp(2rem, 10vw, 4rem) 0 clamp(2rem, 8vw, 3rem);
    }

    .page-index h1 {
      font-size: clamp(1.75rem, 8vw, 3rem);
      line-height: 1.15;
    }

    .page-index .sublead {
      font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .page-index .badges {
      justify-content: center;
    }

    .page-index .badge {
      font-size: 0.8rem;
      padding: 0.35rem 0.6rem;
    }

    .page-index .hero-card {
      padding: 1rem;
    }

    .page-index .hero-stats {
      gap: 0.6rem;
    }

    .page-index .stat {
      padding: 0.6rem;
    }

    .page-index .stat b {
      font-size: 1.1rem;
    }

    .page-index .cards .card {
      padding: 1rem;
    }

    .page-index .cards .card h3 {
      font-size: 1.1rem;
    }

    .page-index .cards .card p {
      font-size: 0.9rem;
    }

    .page-index .hero-glow {
      width: 80vmax;
      height: 80vmax;
    }

  }


  /* =========================
   Custom Cursor
   ========================= */
  .js-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--brand, #22c55e);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.25s cubic-bezier(0.23, 1, 0.32, 1),
      height 0.25s cubic-bezier(0.23, 1, 0.32, 1),
      background-color 0.25s ease,
      opacity 0.2s ease;
    will-change: transform;
    contain: layout style;
  }

  .js-cursor.is-hover {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.4);
    backdrop-filter: blur(2px);
    mix-blend-mode: normal;
    border: 1px solid var(--brand, #22c55e);
  }

  .js-cursor.is-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  body.has-cursor * {
    cursor: none !important;
  }

  /* =========================
   Glassmorphism Utilities
   ========================= */
  .glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  }

  .glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* GSAP Scroll Reveal Defaults */
  .gsap-reveal {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
  }

  /* =========================
   Team Page Styles
   ========================= */

  /* Team Section Layout */
  .team-section {
    padding: 2rem 0;
  }

  .team-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Team Card */
  .team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .team-info {
    margin-top: 1.5rem;
  }

  .team-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #1a1a2e);
  }

  .team-info small {
    display: block;
    font-size: 0.85rem;
    color: var(--brand, #22c55e);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* =========================
   Team Image Stack Effect
   (Polaroid Card Stack)
   ========================= */

  .team-image-stack {
    width: 100%;
    max-width: 280px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .team-image-stack:hover {
    transform: rotate(4deg);
  }

  .team-image-stack:hover .team-image-card::before {
    transform: translateY(-2%) rotate(-4deg);
  }

  .team-image-stack:hover .team-image-card::after {
    transform: translateY(2%) rotate(4deg);
  }

  /* Main Image Card (Polaroid Style) */
  .team-image-card {
    aspect-ratio: 3 / 3.5;
    border: 3px solid rgba(26, 26, 46, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    cursor: pointer;
    padding: 6% 6% 18% 6%;
    border-radius: 4px;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.1),
      0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .team-image-card:hover {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.12),
      0 16px 48px rgba(0, 0, 0, 0.1);
  }

  /* Stacked Cards Behind (::before and ::after) */
  .team-image-card::before,
  .team-image-card::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    border: 3px solid rgba(26, 26, 46, 0.7);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 4px;
    transform-origin: center center;
    z-index: -1;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    top: 0;
    left: 0;
  }

  .team-image-card::before {
    transform: translateY(-2%) rotate(-5deg);
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    border-color: rgba(26, 26, 46, 0.5);
  }

  .team-image-card::after {
    transform: translateY(2%) rotate(5deg);
    background: linear-gradient(180deg, #f8f8f8 0%, #ebebeb 100%);
    border-color: rgba(26, 26, 46, 0.4);
  }

  /* Image Frame Inside Card */
  .team-image-frame {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(26, 26, 46, 0.15);
    background-color: #eee;
    overflow: hidden;
    border-radius: 2px;
  }

  .team-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .team-image-stack:hover .team-image-frame img {
    transform: scale(1.05);
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .team-row {
      gap: 2rem;
    }

    .team-image-stack {
      max-width: 240px;
    }

    .team-image-card {
      border-width: 2px;
    }

    .team-image-card::before,
    .team-image-card::after {
      border-width: 2px;
    }
  }