/* =========================================================
   BestCRM.ai — Design System v2
   Ultra-modern Glassmorphism + 3D Interactive
   ========================================================= */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;600;700&family=Syne:wght@700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────── */
:root {
  /* Brand */
  --clr-primary:        #5D04CC;
  --clr-primary-light:  #7B2FE8;
  --clr-primary-glow:   #9B5FFF;
  --clr-primary-soft:   rgba(93, 4, 204, 0.18);
  --clr-accent:         #C084FC;

  /* Dark Backgrounds */
  --clr-bg-base:        #07020F;
  --clr-bg-mid:         #0D0520;
  --clr-bg-card:        rgba(255, 255, 255, 0.04);
  --clr-bg-card-hover:  rgba(255, 255, 255, 0.08);

  /* Glassmorphism */
  --glass-bg:           rgba(255, 255, 255, 0.055);
  --glass-bg-strong:    rgba(255, 255, 255, 0.10);
  --glass-border:       rgba(255, 255, 255, 0.11);
  --glass-border-hover: rgba(155, 95, 255, 0.45);
  --glass-blur:         18px;
  --glass-blur-heavy:   32px;

  /* Text Scale */
  --clr-text-primary:   #F0EBFF;
  --clr-text-secondary: #A89CC8;
  --clr-text-muted:     #6B5F88;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #5D04CC 0%, #9B5FFF 100%);
  --grad-bg:       radial-gradient(ellipse 90% 60% at 50% -5%,
                     rgba(93,4,204,0.40) 0%, transparent 65%),
                   radial-gradient(ellipse 55% 50% at 85% 85%,
                     rgba(155,95,255,0.10) 0%, transparent 60%),
                   linear-gradient(180deg, #07020F 0%, #0D0520 100%);

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow:   0 0 40px rgba(93, 4, 204, 0.35);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.40);
  --shadow-navbar: 0 4px 24px rgba(0, 0, 0, 0.50);

  /* Typography — Poppins primary */
  --font-body:    'Poppins', 'Inter', system-ui, sans-serif;
  --font-display: 'Syne', 'Poppins', sans-serif;

  /* Motion */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    150ms;
  --dur-base:    280ms;
  --dur-slow:    500ms;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--grad-bg);
  background-attachment: fixed;
  color: var(--clr-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Utility ──────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.hidden { display: none !important; }

/* =========================================================
   NAVBAR
   ========================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition:
    background var(--dur-slow) var(--ease-smooth),
    box-shadow var(--dur-slow) var(--ease-smooth);
}
#navbar.scrolled {
  background: rgba(7, 2, 15, 0.76);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-navbar);
  /* Promote navbar to its own GPU layer when glass is active */
  will-change: transform;
  transform: translateZ(0);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: 72px;
}

/* Logo */
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: brightness(1) drop-shadow(0 0 8px rgba(93,4,204,0.22));
  transition:
    filter    var(--dur-base) var(--ease-smooth),
    transform var(--dur-base) var(--ease-smooth);
}
.navbar-logo:hover .navbar-logo-img {
  filter: brightness(1.08) drop-shadow(0 0 16px rgba(155,95,255,0.45));
  transform: scale(1.03);
}

/* Nav Menu */
.navbar-menu { display: flex; align-items: center; gap: var(--space-xs); list-style: none; }
.navbar-menu a {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  border-radius: var(--radius-full);
  transition:
    color      var(--dur-base) var(--ease-smooth),
    background var(--dur-base) var(--ease-smooth);
  position: relative;
  white-space: nowrap;
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px; height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: transform var(--dur-base) var(--ease-spring);
}
.navbar-menu a:hover { color: var(--clr-text-primary); background: rgba(255,255,255,0.06); }
.navbar-menu a:hover::after { transform: translateX(-50%) scaleX(1); }

/* Right Controls */
.navbar-controls { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 3px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  gap: 2px;
}
.lang-btn {
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-smooth);
  cursor: pointer;
  font-family: var(--font-body);
}
.lang-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(93,4,204,0.5);
}
.lang-btn:not(.active):hover { color: var(--clr-text-primary); }

/* Navbar Login Button */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 9px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  border: 1px solid rgba(155,95,255,0.4);
  box-shadow: 0 0 20px rgba(93,4,204,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all var(--dur-base) var(--ease-smooth);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-login::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-smooth);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(93,4,204,0.65), 0 4px 20px rgba(0,0,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-login:hover::before { opacity: 1; }
.btn-login:active { transform: translateY(0); }
.btn-login svg {
  width: 15px; height: 15px;
  transition: transform var(--dur-base) var(--ease-spring);
}
.btn-login:hover svg { transform: translateX(2px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background var(--dur-base);
}
.hamburger:hover { background: var(--glass-bg-strong); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text-primary);
  border-radius: 2px;
  transition:
    transform var(--dur-base) var(--ease-smooth),
    opacity   var(--dur-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 999;
  background: rgba(7, 2, 15, 0.94);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition:
    opacity   var(--dur-slow) var(--ease-smooth),
    transform var(--dur-slow) var(--ease-smooth);
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: scale(1); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--clr-text-secondary);
  transition: color var(--dur-base);
}
.mobile-menu a:hover { color: var(--clr-text-primary); }
.mobile-menu .mobile-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* =========================================================
   HERO — Full-screen Video Background
   ========================================================= */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #07020F; /* video fallback */
}

/* HD video — GPU-promoted layer for smooth playback */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Force hardware-accelerated compositing layer */
  transform: translate3d(0, 0, 0) scale(1.02);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Multi-layer dark overlay */
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(7, 2, 15, 0.60) 0%,
      rgba(7, 2, 15, 0.35) 40%,
      rgba(7, 2, 15, 0.85) 100%),
    radial-gradient(ellipse 65% 55% at 12% 82%,
      rgba(93,4,204,0.28) 0%, transparent 68%);
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-lg);
  max-width: 880px;
  margin-inline: auto;
}

/* Eyebrow chip */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  animation: fade-up 0.6s 0.1s var(--ease-smooth) both;
}
.hero-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-primary-glow);
  box-shadow: 0 0 10px var(--clr-primary-glow);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* H1 */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: var(--space-lg);
  animation: fade-up 0.7s 0.22s var(--ease-smooth) both;
  text-shadow: 0 2px 48px rgba(0,0,0,0.5);
}
.hero-title mark {
  background: linear-gradient(95deg, var(--clr-primary-glow) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(240, 235, 255, 0.76);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  animation: fade-up 0.7s 0.36s var(--ease-smooth) both;
}

/* CTA Group */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  animation: fade-up 0.7s 0.52s var(--ease-smooth) both;
}

/* Primary — gradient + glow */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  border: 1px solid rgba(155,95,255,0.5);
  border-radius: var(--radius-full);
  box-shadow:
    0 0 26px rgba(93,4,204,0.55),
    0 4px 24px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform  var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-smooth);
}
.btn-hero-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-smooth);
}
.btn-hero-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 54px rgba(93,4,204,0.80),
    0 10px 36px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-hero-primary:hover::before { opacity: 1; }
.btn-hero-primary:active { transform: translateY(0) scale(0.985); }
.btn-hero-primary svg {
  width: 18px; height: 18px;
  transition: transform var(--dur-base) var(--ease-spring);
}
.btn-hero-primary:hover svg { transform: translateX(4px); }

/* Secondary — glass ghost */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background    var(--dur-base) var(--ease-smooth),
    border-color  var(--dur-base) var(--ease-smooth),
    transform     var(--dur-base) var(--ease-spring),
    box-shadow    var(--dur-base) var(--ease-smooth);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(155,95,255,0.55);
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 28px rgba(93,4,204,0.30),
    0 6px 22px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-hero-secondary:active { transform: translateY(0) scale(0.985); }

/* =========================================================
   ALLIES SECTION — Two Dual-Direction 3D Carousels
   =========================================================
   DOM tree per carousel:
     .carousel-block          ← position:relative (contains fades)
       .container > .carousel-label
       .carousel-stage-wrapper ← clips horizontal overflow
         .allies-perspective-wrapper ← CSS perspective
           .allies-stage     ← JS: mouse tilt (rotateX/Y)
             .allies-track   ← JS: translateX scroll
               .ally-item ×N ← JS: 3D per-item transforms
         .allies-fade-left / .allies-fade-right
   ========================================================= */
.allies-section {
  position: relative;
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg,
    var(--clr-bg-base)  0%,
    var(--clr-bg-mid)  50%,
    var(--clr-bg-base) 100%);
  overflow: hidden; /* clip the scrolling tracks */
}

/* Carousel block — wraps label + stage + fades */
.carousel-block {
  position: relative;
  padding: var(--space-lg) 0 var(--space-xl);
}

/* Divider between the two carousel blocks */
.carousel-block + .carousel-block {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-2xl);
}

/* Small label above each carousel */
.carousel-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
  opacity: 0.85;
}

/* Wrapper that clips horizontal overflow WITHOUT breaking
   preserve-3d (perspective is on the child, not this element) */
.carousel-stage-wrapper {
  position: relative; /* anchor for fade masks */
  overflow: hidden;   /* clip items leaving left/right */
}

/* Subtle dot-grid background decoration */
.allies-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(93,4,204,0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%,
    black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%,
    black 10%, transparent 100%);
}

/* Dot-grid decoration (carried over) */
/* .allies-section::before already defined above */

/* ── 3D Stack ─────────────────────────────────────────── *
 *  .allies-perspective-wrapper   ← CSS perspective context
 *    .allies-stage               ← JS: rotateX / rotateY (mouse tilt)
 *      .allies-track             ← JS: translateX (scroll)
 *        .ally-item × 33         ← JS: rotateY + translateZ + scale
 * ─────────────────────────────────────────────────────── */

/* Perspective parent — no overflow so preserve-3d works */
.allies-perspective-wrapper {
  width: 100%;
  padding: 80px 0;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  position: relative;
  z-index: 1;
}

/* Stage — receives global mouse tilt */
.allies-stage {
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Scrolling track */
.allies-track {
  display: flex;
  align-items: center;
  gap: 40px;       /* ← must match JS ITEM_GAP = 40 */
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;  /* gives items a stable offsetParent */
}

/* Individual logo card */
.ally-item {
  /* ← width/gap must match JS constants: ITEM_W=160, GAP=40 */
  width: 160px;
  height: 94px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
  /* Only box-shadow transitions — transforms are set instantly via JS */
  transition: box-shadow 60ms linear;
  cursor: default;
  user-select: none;
  /* Inset highlight shimmer */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.18);
}

.ally-logo {
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: grayscale(15%); /* light desaturation; JS corrects brightness */
}

/* Edge gradient masks — rendered OVER the 3D stage */
.allies-fade-left,
.allies-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}
.allies-fade-left  { left: 0;  background: linear-gradient(to right, var(--clr-bg-mid), transparent); }
.allies-fade-right { right: 0; background: linear-gradient(to left,  var(--clr-bg-mid), transparent); }


/* =========================================================
   GLOBAL ANIMATIONS
   ========================================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.55; transform: scale(0.82); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* =========================================================
   SHARED SECTION UTILITIES
   ========================================================= */

/* Section wrappers */
.solutions-section,
.testimonials-section {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}
.solutions-section {
  background: linear-gradient(180deg,
    var(--clr-bg-base) 0%,
    var(--clr-bg-mid)  60%,
    var(--clr-bg-base) 100%);
}
.testimonials-section {
  background: var(--clr-bg-base);
}

/* Placeholder sections (team, pricing, contact — not yet built) */
.placeholder-section { min-height: 4rem; }

/* Section header block — centered */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-md);
}
.section-subheading {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.8;
  color: var(--clr-text-secondary);
}

/* CTA row centred below grids */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* =========================================================
   SOLUTIONS / SERVICES
   ========================================================= */

/* Ambient decorative orb */
.solutions-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,4,204,0.13) 0%, transparent 68%);
  top: -120px; right: -200px;
  pointer-events: none;
  z-index: 0;
}

/* 3-column auto-fit grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ── Card ── */
.solution-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition:
    transform    var(--dur-base) var(--ease-spring),
    border-color var(--dur-base) var(--ease-smooth),
    box-shadow   var(--dur-base) var(--ease-smooth);
  will-change: transform;
}

/* Shimmer overlay — reveals on hover */
.solution-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(93,4,204,0.00) 0%,
    rgba(155,95,255,0.06) 50%,
    rgba(93,4,204,0.00) 100%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth);
  pointer-events: none;
}

/* Purple accent line animates in at top edge */
.solution-card::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%; height: 2px;
  background: var(--grad-primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-spring);
}

/* Hover: elevate + glow border */
.solution-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(93,4,204,0.55);
  box-shadow:
    0 0 0 1px rgba(93,4,204,0.22),
    0 0 40px rgba(93,4,204,0.28),
    0 20px 50px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.solution-card:hover::before { opacity: 1; }
.solution-card:hover::after  { transform: translateX(-50%) scaleX(1); }

/* Wide card — 7th item spans full row */
.solution-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.solution-card--wide .solution-card-title,
.solution-card--wide .solution-card-desc { flex: 1 1 260px; }
.solution-card--wide .solution-card-tags { width: 100%; }

/* Icon container */
.solution-card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--clr-primary-soft);
  color: var(--clr-primary-glow);
  flex-shrink: 0;
  transition:
    background var(--dur-base) var(--ease-smooth),
    color      var(--dur-base) var(--ease-smooth),
    box-shadow var(--dur-base) var(--ease-smooth);
}
.solution-card-icon svg { width: 24px; height: 24px; }
.solution-card:hover .solution-card-icon {
  background: rgba(93,4,204,0.30);
  color: #fff;
  box-shadow: 0 0 18px rgba(93,4,204,0.44);
}

/* Text */
.solution-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1.3;
}
.solution-card-desc {
  font-size: 0.895rem;
  line-height: 1.72;
  color: var(--clr-text-secondary);
  flex-grow: 1;
}

/* Platform pills */
.solution-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.solution-tag {
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--clr-accent);
  background: rgba(192,132,252,0.10);
  border: 1px solid rgba(192,132,252,0.22);
  transition: background var(--dur-base), border-color var(--dur-base);
}
.solution-card:hover .solution-tag {
  background: rgba(192,132,252,0.18);
  border-color: rgba(192,132,252,0.42);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

/* 3-column grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ── */
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
  transition:
    transform    var(--dur-base) var(--ease-spring),
    border-color var(--dur-base) var(--ease-smooth),
    box-shadow   var(--dur-base) var(--ease-smooth);
  will-change: transform;
}
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.016);
  border-color: rgba(93,4,204,0.50);
  box-shadow:
    0 0 36px rgba(93,4,204,0.22),
    0 20px 46px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* ── Video Placeholder ── */
.testimonial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060212;
  cursor: pointer;
}

/* Abstract studio backdrop */
.testimonial-video-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%,
      rgba(93,4,204,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%,
      rgba(155,95,255,0.09) 0%, transparent 60%),
    linear-gradient(180deg, #0e0720 0%, #04020e 100%);
}
.testimonial-video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Bottom gradient for readability */
.testimonial-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(4,2,14,0.08) 55%,
    rgba(4,2,14,0.82) 100%);
  pointer-events: none;
}

/* Company badge bottom-left */
.testimonial-company-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  background: rgba(93,4,204,0.55);
  border: 1px solid rgba(155,95,255,0.35);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

/* ── Play Button ── */
.testimonial-play-btn {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.testimonial-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,0.11);
  border: 2px solid rgba(255,255,255,0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  animation: play-pulse 2.8s ease-in-out infinite;
  transition:
    transform  var(--dur-base) var(--ease-spring),
    background var(--dur-base) var(--ease-smooth),
    box-shadow var(--dur-base) var(--ease-smooth);
}
.testimonial-play-icon svg {
  width: 22px; height: 22px;
  margin-left: 3px; /* optical centre for triangle */
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(93,4,204,0.55), 0 4px 24px rgba(0,0,0,0.42); }
  50%       { box-shadow: 0 0 0 16px rgba(93,4,204,0.00), 0 4px 24px rgba(0,0,0,0.42); }
}

.testimonial-play-btn:hover .testimonial-play-icon {
  transform: scale(1.14);
  background: var(--grad-primary);
  border-color: rgba(155,95,255,0.60);
  box-shadow: 0 0 32px rgba(93,4,204,0.65), 0 4px 24px rgba(0,0,0,0.42);
  animation-play-state: paused;
}

/* ── Client Info Bar ── */
.testimonial-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-top: 1px solid var(--glass-border);
}

/* Avatar initials */
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: 2px solid rgba(155,95,255,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(93,4,204,0.36);
}

/* Name + role */
.testimonial-meta { flex: 1; min-width: 0; }
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testimonial-role {
  font-size: 0.74rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stars */
.testimonial-stars {
  font-size: 0.82rem;
  color: #FFB82E;
  letter-spacing: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255,184,46,0.36));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .allies-fade-left,
  .allies-fade-right { width: 100px; }

  /* Solutions: 2 columns on tablet */
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-card--wide { grid-column: 1 / -1; }

  /* Testimonials: 2 columns on tablet, last card centred */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar-menu,
  .navbar-controls { display: none; }
  .hamburger        { display: flex; }
  .navbar-inner     { height: 64px; }

  /* Hero CTAs stack on mobile */
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; max-width: 320px; justify-content: center; }

  /* Allies — smaller cards, reduced perspective padding */
  /* JS reads window.innerWidth to switch to mobile metrics */
  .allies-track      { gap: 24px; }    /* ← JS ITEM_GAP_MOBILE = 24 */
  .ally-item         { width: 130px; height: 78px; padding: 12px 16px; } /* ← JS ITEM_W_MOBILE = 130 */
  .ally-logo         { max-height: 44px; }
  .allies-perspective-wrapper { padding: 50px 0; }
  .allies-fade-left,
  .allies-fade-right { width: 60px; }
  /* Solutions + Testimonials: 1 column on mobile */
  .solutions-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .solution-card--wide {
    flex-direction: column; /* stack vertically on mobile */
  }
  .solution-card--wide .solution-card-title,
  .solution-card--wide .solution-card-desc { flex: unset; }

  /* Last testimonial: no longer needs to be centred in 1-col layout */
  .testimonials-grid .testimonial-card:last-child {
    grid-column: unset;
    max-width: unset;
    justify-self: unset;
  }

  .solution-card:hover,
  .testimonial-card:hover {
    /* Reduce elevation on touch devices */
    transform: translateY(-4px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-md); }
  .navbar-logo-img   { height: 30px; max-width: 140px; }
  .section-heading    { font-size: 1.4rem; }
  .solution-card      { padding: 24px 20px; }
  .solution-card-icon { width: 44px; height: 44px; }
  .solution-card-icon svg { width: 20px; height: 20px; }
}

/* =========================================================
   TESTIMONIAL VIDEO — REAL <video> ELEMENT
   ========================================================= */

/* Fills the .testimonial-video container absolutely */
.testimonial-vid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  will-change: opacity;
  transition: opacity 0.45s ease;
}

/* Play button fades out when video is actively playing */
.testimonial-play-btn.is-playing .testimonial-play-icon {
  opacity: 0;
  transform: scale(0.65);
  pointer-events: none;
  animation-play-state: paused;
}
.testimonial-play-btn.is-playing {
  pointer-events: none;
}

/* =========================================================
   PRICING SECTION
   ========================================================= */

.pricing-section {
  position: relative;
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 40px);
  background: linear-gradient(180deg,
    var(--clr-bg-base) 0%,
    #0a0418 50%,
    var(--clr-bg-base) 100%);
  overflow: hidden;
}

/* Background orb centred behind the grid */
.pricing-section::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(93,4,204,0.12) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* 3-column pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Card base ──────────────────────────────────────────── */
.pricing-card {
  --mx: 50%;
  --my: 50%;

  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
  transition:
    transform    300ms var(--ease-spring),
    border-color 300ms var(--ease-smooth),
    box-shadow   300ms var(--ease-smooth);
  will-change: transform;
}
.pricing-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(93,4,204,0.44);
  box-shadow:
    0 0 60px rgba(93,4,204,0.18),
    0 24px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* ── Mouse-tracking glow layer ──────────────────────────── */
.pricing-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(93,4,204,0.18),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.pricing-card:hover .pricing-glow { opacity: 1; }

/* ── Featured card (Most Popular) ──────────────────────── */
.pricing-card--featured {
  border-color: rgba(93,4,204,0.50);
  box-shadow:
    0 0 0 1px rgba(93,4,204,0.35),
    0 0 50px rgba(93,4,204,0.22),
    var(--shadow-card),
    inset 0 1px 0 rgba(155,95,255,0.18);
  margin-top: -12px;
}
.pricing-card--featured:hover {
  border-color: rgba(155,95,255,0.70);
  box-shadow:
    0 0 0 1px rgba(155,95,255,0.45),
    0 0 80px rgba(93,4,204,0.40),
    0 28px 65px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(155,95,255,0.22);
}

/* ── Most Popular animated badge ───────────────────────── */
.pricing-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 24px 24px 0;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg,
    #5d04cc 0%, #9b5fff 40%, #c084fc 60%, #5d04cc 100%);
  background-size: 200% auto;
  animation: badge-shimmer 2.4s linear infinite;
  box-shadow: 0 0 18px rgba(93,4,204,0.55), 0 0 6px rgba(192,132,252,0.40);
}
@keyframes badge-shimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

/* ── Card inner sections ────────────────────────────────── */
.pricing-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 20px;
}
.pricing-plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
}
.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1;
  margin-top: 4px;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--clr-text-primary);
}
/* Shimmer text on featured card amount */
.pricing-card--featured .pricing-amount {
  background: linear-gradient(135deg, #fff 30%, #c084fc 70%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: badge-shimmer 3s linear infinite reverse;
}
.pricing-period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  margin-left: 2px;
}
.pricing-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--clr-text-secondary);
}

/* Enterprise custom price */
.pricing-price-row--custom { align-items: center; }
.pricing-amount-custom {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-text-primary);
}

/* ── Features list ──────────────────────────────────────── */
.pricing-features {
  list-style: none;
  position: relative;
  z-index: 1;
  padding: 4px 24px 0;
  margin: 0;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  transition: color 200ms;
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-card:hover .pricing-feature { color: rgba(255,255,255,0.88); }

/* Group header ("Everything in X, plus:") */
.pricing-feature--group {
  font-weight: 700;
  color: var(--clr-accent);
  padding-top: 14px;
  padding-bottom: 6px;
  border-bottom: none;
}
.pricing-feature--group .pricing-check--all::before { content: '✦'; }

/* Checkmark badge */
.pricing-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(93,4,204,0.18);
  border: 1px solid rgba(93,4,204,0.40);
  flex-shrink: 0;
  font-size: 0.62rem;
  color: var(--clr-accent);
  transition: background 200ms, border-color 200ms;
}
.pricing-check::before { content: '✓'; font-weight: 700; }
.pricing-card:hover .pricing-check {
  background: rgba(93,4,204,0.30);
  border-color: rgba(155,95,255,0.60);
}
.pricing-card--featured .pricing-check {
  background: rgba(93,4,204,0.28);
  border-color: rgba(155,95,255,0.55);
}

/* WhatsApp asterisk */
.pricing-asterisk { color: var(--clr-accent); font-weight: 700; }

/* ── CTA Buttons ────────────────────────────────────────── */
.btn-pricing {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 24px 24px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform  220ms var(--ease-spring),
    box-shadow 220ms var(--ease-smooth),
    background 220ms var(--ease-smooth),
    filter     220ms var(--ease-smooth);
  will-change: transform;
}
.btn-pricing svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Primary — featured card */
.btn-pricing--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(93,4,204,0.45),
              0 0 0 1px rgba(155,95,255,0.30);
}
.btn-pricing--primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 40px rgba(93,4,204,0.65),
              0 0 0 1px rgba(155,95,255,0.55);
  filter: brightness(1.12);
}
.btn-pricing--primary:active { transform: scale(0.97); }

/* Secondary — pro card */
.btn-pricing--secondary {
  background: rgba(93,4,204,0.14);
  color: var(--clr-text-primary);
  border: 1px solid rgba(93,4,204,0.40);
}
.btn-pricing--secondary:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(93,4,204,0.50);
  color: #fff;
}
.btn-pricing--secondary:active { transform: scale(0.97); }

/* Enterprise */
.btn-pricing--enterprise {
  background: rgba(255,255,255,0.06);
  color: var(--clr-text-primary);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-pricing--enterprise:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.btn-pricing--enterprise:active { transform: scale(0.97); }

/* ── Enterprise card decorations ────────────────────────── */
.pricing-card--enterprise {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.04) 0%,
    rgba(93,4,204,0.06)   55%,
    rgba(255,255,255,0.025) 100%);
}
.pricing-enterprise-orb {
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(93,4,204,0.20) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.pricing-enterprise-note {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
  padding: 0 24px 20px;
  opacity: 0.60;
}

/* ── Responsive Pricing ─────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--enterprise {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }
  .pricing-card--featured { margin-top: 0; }
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--enterprise {
    grid-column: unset;
    max-width: unset;
    justify-self: unset;
  }
  .btn-pricing { margin-inline: 20px; }
}


/* =========================================================
   TESTIMONIAL — UNMUTE BUTTON
   ========================================================= */

/* Muted indicator / unmute button — bottom-right of video */
.testimonial-unmute-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.80);
  cursor: pointer;
  transition: background 220ms, color 220ms, transform 220ms var(--ease-spring);
}
.testimonial-unmute-btn:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: scale(1.12);
  border-color: rgba(155,95,255,0.55);
}
.testimonial-unmute-btn svg { width: 16px; height: 16px; }
/* Hide the slash lines when unmuted */
.testimonial-unmute-btn.is-unmuted .unmute-slash { display: none; }
/* Show a speaker wave when unmuted */
.testimonial-unmute-btn.is-unmuted {
  background: var(--grad-primary);
  color: #fff;
  border-color: rgba(155,95,255,0.55);
}
/* Hide unmute button while video is paused */
.testimonial-play-btn:not(.is-playing) ~ .testimonial-unmute-btn {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   SOLUTION CARDS — MODAL TRIGGER CURSOR
   ========================================================= */
.solution-card[data-modal-key] {
  cursor: pointer;
}
.solution-card[data-modal-key]::after {
  /* Reuse the top accent line; also add a subtle "click me" hint */
}
/* "Click to learn more" badge on bottom right of card */
.solution-card[data-modal-key] .solution-card-desc::after {
  content: "Ver más →";
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--clr-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms, transform 220ms;
}
.solution-card[data-modal-key]:hover .solution-card-desc::after {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(4, 2, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms var(--ease-smooth), visibility 350ms;
  overscroll-behavior: contain;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal card */
.modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid rgba(155,95,255,0.28);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(93,4,204,0.30),
    0 0 60px rgba(93,4,204,0.22),
    0 32px 80px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 350ms var(--ease-spring);
  scrollbar-width: thin;
  scrollbar-color: rgba(93,4,204,0.4) transparent;
}
.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.80);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 200ms, color 200ms, transform 200ms var(--ease-spring);
}
.modal-close:hover {
  background: rgba(220,50,50,0.22);
  color: #ff6b6b;
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(220,50,50,0.38);
}

/* Modal image */
.modal-img-wrap {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #0a0215;
  flex-shrink: 0;
}
.modal-img-wrap:empty { display: none; }
.modal-img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Modal body */
.modal-body {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--clr-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-glow);
}
.modal-icon-wrap svg { width: 24px; height: 24px; }
.modal-title {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-text-primary);
  line-height: 1.25;
}
.modal-desc {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--clr-text-secondary);
}

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* =========================================================
   APPS SECTION
   ========================================================= */

.apps-section {
  position: relative;
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg,
    var(--clr-bg-base) 0%,
    #0b0320 50%,
    var(--clr-bg-base) 100%);
  overflow: hidden;
}

.apps-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.apps-text { max-width: 520px; }

.apps-desc {
  font-size: 1.02rem;
  line-height: 1.80;
  color: var(--clr-text-secondary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Store badges */
.apps-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 220ms, box-shadow 220ms, transform 220ms var(--ease-spring);
  cursor: default;
}
.store-badge:hover {
  border-color: rgba(93,4,204,0.45);
  box-shadow: 0 0 24px rgba(93,4,204,0.22);
  transform: translateY(-3px);
}
.store-icon {
  width: 24px; height: 24px;
  color: var(--clr-accent);
  flex-shrink: 0;
}
.store-info { display: flex; flex-direction: column; }
.store-label {
  font-size: 0.65rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.store-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1.4;
}

/* Device mockup */
.apps-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apps-device--desktop {
  position: absolute;
  width: 260px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.apps-device-screen {
  background: linear-gradient(145deg, #160630, #0a0215);
  border: 2px solid rgba(155,95,255,0.30);
  border-radius: 8px 8px 0 0;
  padding: 14px 14px 10px;
  box-shadow: 0 0 40px rgba(93,4,204,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}
.apps-screen-bar {
  width: 30px; height: 6px;
  border-radius: 3px;
  background: rgba(93,4,204,0.50);
  margin-bottom: 12px;
}
.apps-screen-content { display: flex; flex-direction: column; gap: 8px; }
.apps-screen-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.10);
}
.apps-screen-line.w70 { width: 70%; }
.apps-screen-line.w50 { width: 50%; }
.apps-screen-line.w85 { width: 85%; }
.apps-screen-line.w80 { width: 80%; }
.apps-screen-line.w60 { width: 60%; }
.apps-screen-pill {
  margin-top: 4px;
  width: 60px; height: 18px;
  border-radius: 9px;
  background: rgba(93,4,204,0.40);
}
.apps-screen-pill.small { width: 45px; height: 14px; }
.apps-device-base {
  height: 8px;
  background: linear-gradient(180deg, rgba(155,95,255,0.25), rgba(93,4,204,0.12));
  border-radius: 0 0 2px 2px;
  border: 1px solid rgba(155,95,255,0.20);
  border-top: none;
}

/* Mobile mockup */
.apps-device--mobile {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 80px;
}
.apps-mobile-screen {
  background: linear-gradient(145deg, #200848, #0a0215);
  border: 2px solid rgba(155,95,255,0.35);
  border-radius: 14px;
  padding: 10px 8px;
  box-shadow: 0 0 24px rgba(93,4,204,0.22), inset 0 1px 0 rgba(255,255,255,0.10);
  height: 130px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apps-mobile-bar {
  width: 20px; height: 4px;
  border-radius: 2px;
  background: rgba(93,4,204,0.55);
  margin: 0 auto 4px;
}
.apps-mobile-content { display: flex; flex-direction: column; gap: 7px; }

/* Platform pills floating */
.apps-pill {
  position: absolute;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: float-pill 3s ease-in-out infinite alternate;
}
.apps-pill.win  {
  background: rgba(0,120,212,0.55);
  border: 1px solid rgba(0,158,255,0.35);
  top: 8%; left: 2%;
  animation-delay: 0s;
}
.apps-pill.mac  {
  background: rgba(93,4,204,0.55);
  border: 1px solid rgba(155,95,255,0.35);
  top: 10%; right: 4%;
  animation-delay: 0.7s;
}
.apps-pill.ios  {
  background: rgba(0,169,224,0.50);
  border: 1px solid rgba(0,169,224,0.35);
  bottom: 22%; left: 4%;
  animation-delay: 1.4s;
}
.apps-pill.android {
  background: rgba(61,220,132,0.35);
  border: 1px solid rgba(61,220,132,0.30);
  bottom: 5%; right: 2%;
  animation-delay: 0.4s;
}
@keyframes float-pill {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
  position: relative;
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg,
    var(--clr-bg-base) 0%,
    #080118 50%,
    var(--clr-bg-base) 100%);
  overflow: hidden;
}
/* Ambient orb */
.contact-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,4,204,0.14) 0%, transparent 68%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--clr-text-secondary);
  margin: var(--space-md) 0 var(--space-lg);
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--clr-text-secondary);
}
.contact-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(93,4,204,0.22);
  border: 1px solid rgba(93,4,204,0.40);
  color: var(--clr-accent);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Form wrapper glassmorphism */
.contact-form-wrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.07);
  padding: 36px 32px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-secondary);
}

.form-input {
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--clr-text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 220ms, box-shadow 220ms, background 220ms;
}
.form-input::placeholder { color: var(--clr-text-muted); }
.form-input:focus {
  border-color: rgba(93,4,204,0.65);
  box-shadow: 0 0 0 3px rgba(93,4,204,0.18);
  background: rgba(93,4,204,0.06);
}
.form-input.has-error {
  border-color: rgba(220,60,60,0.65);
  box-shadow: 0 0 0 3px rgba(220,60,60,0.14);
}
.form-textarea { resize: vertical; min-height: 110px; }

/* Validation errors */
.form-error {
  font-size: 0.76rem;
  color: #ff6b6b;
  min-height: 18px;
  line-height: 1.4;
}

/* Submit button */
.btn-contact-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(93,4,204,0.45);
  transition:
    transform  220ms var(--ease-spring),
    box-shadow 220ms var(--ease-smooth),
    filter     220ms var(--ease-smooth),
    opacity    220ms;
  will-change: transform;
  overflow: hidden;
}
.btn-contact-submit:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(93,4,204,0.65);
  filter: brightness(1.12);
}
.btn-contact-submit:active { transform: scale(0.97); }
.btn-contact-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-submit-arrow { width: 18px; height: 18px; flex-shrink: 0; }

/* Spinner */
.btn-submit-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.30);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-contact-submit.is-loading .btn-submit-text,
.btn-contact-submit.is-loading .btn-submit-arrow { display: none; }
.btn-contact-submit.is-loading .btn-submit-spinner { display: block; }

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

/* Success state */
.form-success {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(50,200,100,0.08);
  border: 1px solid rgba(50,200,100,0.28);
  animation: fade-in-up 0.5s var(--ease-spring) both;
}
.form-success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(50,200,100,0.18);
  border: 2px solid rgba(50,200,100,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #4ade80;
  margin: 0 auto 12px;
}
.form-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4ade80;
}
.form-success-sub {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  margin-top: 6px;
}

/* Server error */
.form-server-error {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(220,50,50,0.10);
  border: 1px solid rgba(220,50,50,0.30);
  font-size: 0.88rem;
  color: #ff6b6b;
  text-align: center;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #050010;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-logo {
  height: auto;
  max-height: 36px;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}
.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  max-width: 260px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-nav-group { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-secondary);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms;
  display: block;
}
.footer-link:hover { color: var(--clr-accent); }

/* Injected contact items */
#footer-email a,
#footer-phone a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 200ms;
}
#footer-email a:hover,
#footer-phone a:hover { color: var(--clr-accent); }

.footer-divider {
  height: 1px;
  background: var(--glass-border);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.80rem;
  color: var(--clr-text-muted);
}
.footer-legal { display: flex; align-items: center; gap: 12px; }
.footer-legal-link {
  font-size: 0.80rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color 200ms;
}
.footer-legal-link:hover { color: var(--clr-accent); }

/* =========================================================
   RESPONSIVE — APPS / CONTACT / FOOTER / MODAL
   ========================================================= */

@media (max-width: 1024px) {
  .apps-inner       { grid-template-columns: 1fr; gap: 48px; }
  .apps-visual      { height: 280px; }
  .contact-inner    { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner     { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav       { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .form-row         { grid-template-columns: 1fr; }
  .footer-nav       { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom    { flex-direction: column; align-items: flex-start; }
  .apps-visual      { display: none; }  /* Hide mockup on mobile */
  .modal-card       { max-height: 92vh; }
  .modal-body       { padding: 20px 20px 28px; }
}

@media (max-width: 480px) {
  .contact-form-wrap { padding: 24px 18px; }
  .footer-nav        { grid-template-columns: 1fr; }
  .apps-stores       { flex-direction: column; }
}

/* =========================================================
   PRICING DISCLAIMER (below all 3 cards)
   ========================================================= */
.pricing-disclaimer {
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  opacity: 0.65;
  margin-top: 20px;
  padding: 0 16px;
  font-style: italic;
}

/* =========================================================
   TEAM SECTION
   ========================================================= */
.team-section {
  position: relative;
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg,
    var(--clr-bg-base) 0%,
    #0c0220 50%,
    var(--clr-bg-base) 100%);
  overflow: hidden;
}

/* Subtle ambient orb */
.team-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,4,204,0.10) 0%, transparent 70%);
  top: -100px; right: -150px;
  pointer-events: none;
}

/* 3-column responsive grid of team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* ── Team Card ──────────────────────────────────────────── */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transition:
    transform    300ms var(--ease-spring),
    border-color 300ms var(--ease-smooth),
    box-shadow   300ms var(--ease-smooth);
  will-change: transform;
}
.team-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(93,4,204,0.55);
  box-shadow:
    0 0 0 1px rgba(93,4,204,0.28),
    0 0 50px rgba(93,4,204,0.30),
    0 22px 54px rgba(0,0,0,0.52),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ── Photo area ─────────────────────────────────────────── */
.team-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0215;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Greyscale + slightly dimmed by default */
  filter: grayscale(85%) brightness(0.75) contrast(1.05);
  transform: scale(1);
  transition:
    filter    400ms var(--ease-smooth),
    transform 400ms var(--ease-spring);
}
.team-card:hover .team-photo {
  filter: grayscale(0%) brightness(1) contrast(1);
  transform: scale(1.06);
}

/* Purple glow overlay on hover */
.team-photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(93,4,204,0.00) 40%,
    rgba(93,4,204,0.55) 100%
  );
  opacity: 0;
  transition: opacity 350ms var(--ease-smooth);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.team-card:hover .team-photo-glow { opacity: 1; }

/* Bottom vignette so text is always readable */
.team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(6, 1, 18, 0.85) 100%
  );
  pointer-events: none;
}

/* ── Info panel ─────────────────────────────────────────── */
.team-info {
  width: 100%;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.team-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--clr-text-primary);
}
.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-accent);
  opacity: 0.90;
}
.team-bio {
  font-size: 0.825rem;
  line-height: 1.68;
  color: var(--clr-text-secondary);
  margin-top: 6px;
}

/* ── Responsive Team ────────────────────────────────────── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card:hover { transform: translateY(-4px) scale(1.01); }
}
