/* ==========================================================================
   SISTEMA GENIO — TOP 1% MOBILE-FIRST CSS
   Design System + Premium Visual Language
   ========================================================================== */

/* ─── 0. DESIGN TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Color Palette (HSL for easy manipulation) */
  --clr-bg-deep:    hsl(222, 47%, 11%);   /* #0f172a */
  --clr-bg-blue:    hsl(224, 64%, 33%);   /* #1e3a8a */
  --clr-primary:    hsl(199, 92%, 56%);   /* #38bdf8 */
  --clr-primary-light: hsl(199, 92%, 72%); /* #7dd3fc */
  --clr-accent:     hsl(234, 89%, 74%);   /* #818cf8 indigo */
  --clr-success:    hsl(142, 71%, 45%);   /* #22c55e */
  --clr-danger:     hsl(0, 84%, 60%);     /* #ef4444 */
  --clr-warning:    hsl(38, 92%, 50%);    /* #f59e0b */
  --clr-gold:       hsl(43, 96%, 56%);    /* #fbbf24 */

  --clr-text-primary: hsl(210, 40%, 98%); /* #f8fafc */
  --clr-text-secondary: hsl(215, 20%, 77%); /* #cbd5e1 */
  --clr-text-muted: hsl(215, 16%, 57%);   /* #94a3b8 */
  --clr-text-dark:  hsl(222, 47%, 11%);   /* #0f172a */
  --clr-text-dark-secondary: hsl(215, 19%, 35%); /* #475569 */

  --clr-border-glass: hsla(0, 0%, 100%, 0.08);
  --clr-border-glass-strong: hsla(0, 0%, 100%, 0.15);
  --clr-surface-glass: hsla(0, 0%, 100%, 0.03);
  --clr-surface-glass-hover: hsla(0, 0%, 100%, 0.06);
  
  /* Light section tokens */
  --clr-light-bg: #ffffff;
  --clr-light-bg-subtle: #f8fafc;
  --clr-light-border: #e2e8f0;

  /* Typography */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Grotesk', monospace;

  /* Type Scale (fluid) */
  --fs-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --fs-sm:   clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-md:   clamp(1.05rem, 1rem + 0.3vw, 1.15rem);
  --fs-lg:   clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl:  clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-3xl:  clamp(2.2rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-hero: clamp(2.5rem, 2rem + 3vw, 4rem);

  /* Spacing Scale */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

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

  /* Shadows */
  --shadow-sm:   0 2px 8px hsla(0, 0%, 0%, 0.12);
  --shadow-md:   0 8px 24px hsla(0, 0%, 0%, 0.2);
  --shadow-lg:   0 20px 50px hsla(0, 0%, 0%, 0.3);
  --shadow-xl:   0 30px 60px hsla(0, 0%, 0%, 0.4);
  --shadow-glow: 0 0 30px hsla(199, 92%, 56%, 0.25);
  --shadow-glow-strong: 0 0 50px hsla(199, 92%, 56%, 0.4);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* ─── 1. RESET & BASE (Mobile-First) ───────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.dark-theme {
  font-family: var(--font-body);
  background: var(--clr-bg-deep);
  color: var(--clr-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input { font-family: inherit; }

/* ─── 2. ANIMATED BACKGROUND ────────────────────────────────────────────── */

/* Gradient Mesh — 3-color animated background */
body.dark-theme::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, hsla(224, 64%, 33%, 0.6), transparent),
    radial-gradient(ellipse 70% 50% at 80% 30%, hsla(199, 92%, 56%, 0.12), transparent),
    radial-gradient(ellipse 60% 70% at 50% 80%, hsla(234, 89%, 74%, 0.08), transparent);
  z-index: -2;
  pointer-events: none;
  animation: meshRotate 30s ease-in-out infinite alternate;
}

/* Floating gradient orb */
body.dark-theme::after {
  content: '';
  position: fixed;
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  top: 10%;
  right: -10%;
  background: radial-gradient(circle, hsla(199, 92%, 56%, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

@keyframes meshRotate {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(15deg); }
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-5%, 10%) scale(1.1); }
  100% { transform: translate(5%, -5%) scale(0.95); }
}

/* Noise texture overlay for depth */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── 3. TYPOGRAPHY & UTILITIES ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.font-light { font-weight: 300 !important; }
.font-bold  { font-weight: 800 !important; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md); /* Reclaimed padding on mobile (16px) */
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg); /* Standard padding on tablet/desktop (24px) */
  }
}

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

.section-title {
  font-size: var(--fs-2xl);
  line-height: 1.15;
  margin-bottom: var(--space-2xl);
  color: var(--clr-text-primary);
}

.section-subtitle {
  color: var(--clr-text-secondary);
  font-size: var(--fs-md);
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 40%, var(--clr-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 6s ease infinite;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@keyframes gradientShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── 4. SCROLL REVEAL SYSTEM ───────────────────────────────────────────── */

/* CSS-native scroll-driven animation (progressive enhancement) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .reveal-on-scroll {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  @keyframes revealUp {
    from {
      opacity: 0;
      transform: translateY(40px);
      filter: blur(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
}

/* Fallback: IntersectionObserver driven (.active class toggled by JS) */
/* Fallback: IntersectionObserver driven (.active class toggled by JS) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(3px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-blur {
  opacity: 0;
  transform: scale(0.97) translateY(30px);
  filter: blur(15px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.active { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up,
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ─── 5. NAVIGATION ────────────────────────────────────────────────────── */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: hsla(222, 47%, 11%, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--clr-border-glass);
  transition: transform 0.4s var(--ease-out-expo),
              background 0.3s ease;
}

.glass-nav.nav-hidden {
  transform: translateY(-100%);
}

.glass-nav.nav-scrolled {
  background: hsla(222, 47%, 11%, 0.95);
  box-shadow: 0 4px 30px hsla(0, 0%, 0%, 0.3);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
}

.logo-link {
  display: inline-block;
  position: relative;
  height: 48px;
  width: 150px;
}

.nav-logo {
  height: 85px !important; /* Huge logo that overflows the navbar */
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1005;
  transition: transform var(--transition-fast);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  background: hsla(199, 92%, 56%, 0.1);
  border: 1px solid hsla(199, 92%, 56%, 0.3);
  color: var(--clr-primary);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
  background: hsla(199, 92%, 56%, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .logo-link {
    height: 54px;
    width: 200px;
  }
  .nav-logo {
    height: 120px !important; /* Massive logo on desktop */
  }
  .nav-content {
    padding: 6px var(--space-lg); /* Less padding vertically to make the bar thinner */
  }
}

/* ─── 6. BUTTONS — Animated Border Pill ─────────────────────────────────── */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(199, 92%, 56%, 0.3); }
  50%      { box-shadow: 0 0 20px 5px hsla(199, 92%, 56%, 0.15); }
}

.star-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-bg-blue);
  font-weight: 700;
  font-size: var(--fs-base);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.3s var(--ease-spring),
              box-shadow 0.3s ease;
  animation: ctaPulse 3s ease-in-out infinite;
}

.star-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--angle), transparent 60%, #ffffff 80%, var(--clr-primary) 100%);
  border-radius: inherit;
  z-index: -2;
  animation: rotateBorder 4s linear infinite;
}

.star-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: inherit;
  z-index: -1;
  transition: background var(--transition-fast);
}

.star-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px hsla(199, 92%, 56%, 0.35);
  animation: none;
}

.star-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.star-btn span {
  position: relative;
  z-index: 2;
}

.star-btn.lg-btn {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--fs-md);
}

.star-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  animation: none;
}

.star-btn.full-width { width: 100%; }

/* ─── 7. HERO SECTION ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

/* Mobile: vertical stack */
.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-content {
  display: contents;
}

/* Hero Badge */
.hero-badge {
  order: 1;
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background: hsla(199, 92%, 56%, 0.1);
  border: 1px solid hsla(199, 92%, 56%, 0.2);
  border-radius: var(--radius-full);
  color: var(--clr-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: none;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on badge */
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(199, 92%, 56%, 0.15), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ─── HERO CINEMATIC ENTRANCE ANIMATIONS ──────────────────────────────────── */
@keyframes heroWordIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(16px);
    letter-spacing: 0.15em;
  }
  60% {
    letter-spacing: normal;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    letter-spacing: normal;
  }
}

@keyframes heroGradientIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scaleX(0.9);
    filter: blur(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleX(1);
    filter: blur(0);
  }
}

@keyframes heroSubtleIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes gradientScan {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes heroAmbientPulse {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50%       { transform: scale(1.15); opacity: 0.2; }
}

.hero-title {
  order: 2;
  font-size: var(--fs-hero);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  font-weight: 600;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

/* Each line of hero title animates independently */
.hero-title .hero-line-1 {
  display: block;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(16px);
  animation: heroWordIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-title .hero-line-gradient {
  display: block;
  opacity: 0;
  transform: translateY(50px) scaleX(0.9);
  filter: blur(24px);
  animation: heroGradientIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  /* Animated gradient scan after reveal */
  background-size: 300% auto;
}

.hero-title .hero-line-3 {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  animation: heroSubtleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

.hero-title .font-light {
  display: inline;
}

.hero-title-small {
  font-size: 0.65em;
  font-weight: 300 !important;
}

/* Hero ambient orb — glowing circle behind the title */
.hero-ambient-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, hsla(199, 92%, 56%, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: heroAmbientPulse 6s ease-in-out infinite;
}

.hero-subtitle {
  order: 4;
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-weight: 300;
  text-align: center;
  width: 100%;
  max-width: 600px;
  /* Cascaded entrance */
  opacity: 0;
  animation: heroSubtleIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

/* CTA wrapper */
.cta-wrapper {
  order: 5;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  width: 100%;
}

.cta-wrapper .star-btn {
  width: 100%;
  max-width: 340px;
  justify-content: center;
}

.sub-cta {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
  text-align: center; /* Centered by default on mobile */
}

.sub-cta .price-range {
  opacity: 0.6;
  font-size: var(--fs-xs);
}

/* Social Proof in Hero */
.social-proof-hero {
  display: flex;
  align-items: center;
  justify-content: center; /* Centered by default on mobile */
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.social-proof-hero .stars {
  color: var(--clr-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.social-proof-hero .proof-text {
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  line-height: 1.3;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
  order: 3; /* Video below titles on mobile */
  margin-bottom: var(--space-lg);
}

.video-glass {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--clr-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border-glass-strong);
  box-shadow: var(--shadow-xl), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Animated gradient ring around video */
.video-glass::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--angle),
    transparent 50%,
    hsla(199, 92%, 56%, 0.3) 70%,
    hsla(234, 89%, 74%, 0.3) 85%,
    transparent 100%);
  border-radius: inherit;
  z-index: -1;
  animation: rotateBorder 8s linear infinite;
}

.product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.15s ease-in-out;
  opacity: 1;
}

.product-video.video-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: hsla(0, 0%, 100%, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(0, 0%, 100%, 1);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.15),
              0 0 20px hsla(199, 92%, 56%, 0.1);
  color: var(--clr-text-dark);
  font-weight: 700;
  font-size: var(--fs-xs);
  animation: floatBadge 6s ease-in-out infinite;
}

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

.badge-top-right {
  top: -5%;
  right: -3%;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 5%;
  left: -5%;
  animation-delay: 3s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Hero Benefits Bar */
.hero-benefits-bar {
  width: 100%;
  max-width: 1200px;
  margin: var(--space-3xl) auto 0;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 10;
}

.benefits-glass {
  background: var(--clr-surface-glass);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--fs-base);
  color: var(--clr-text-primary);
  line-height: 1.4;
}

.benefit-icon {
  background: hsla(199, 92%, 56%, 0.15);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-text strong {
  display: block;
}

.benefit-text span {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  font-weight: 300;
}

/* Hero Desktop Layout */
@media (min-width: 768px) {
  .benefits-list {
    flex-direction: row;
    justify-content: space-between;
  }

  .benefit-item {
    flex: 1;
    min-width: 200px;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 140px;
    padding-bottom: var(--space-4xl);
  }

  .hero-split {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-3xl);
  }

  .hero-content {
    display: block;
    text-align: left;
    max-width: 550px;
    order: 1;
  }

  .hero-title,
  .hero-subtitle {
    text-align: left;
  }

  .hero-visual {
    order: 2;
    max-width: 500px;
    margin-bottom: 0;
  }

  .cta-wrapper {
    align-items: flex-start;
  }

  .sub-cta {
    text-align: left; /* Left-aligned on desktop */
  }

  .social-proof-hero {
    margin: 0;
    justify-content: flex-start; /* Left-aligned on desktop */
  }

  .badge-top-right { right: -5%; }
  .badge-bottom-left { left: -10%; }
}

/* ─── 8. HOW IT WORKS — Light Section ──────────────────────────────────── */
.how-it-works-section {
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
  overflow: hidden;
  background: var(--clr-light-bg);
}

.how-it-works-section .section-title {
  color: var(--clr-text-dark);
}

.how-it-works-section .section-subtitle {
  color: var(--clr-text-dark-secondary);
}

.components-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.component-card-light {
  background: var(--clr-light-bg);
  border: 1px solid hsla(199, 92%, 56%, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.04);
  transition: all 0.5s var(--ease-out-expo);
}

.component-card-light:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px hsla(0, 0%, 0%, 0.08),
              0 0 40px hsla(199, 92%, 56%, 0.08);
  border-color: hsla(199, 92%, 56%, 0.35);
}

.component-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.component-image.bg-light {
  background: var(--clr-light-bg-subtle);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 0%, 0.05);
}

.component-image.bg-dark {
  background: var(--clr-bg-deep);
}

.component-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md);
}

.component-image.bg-dark img {
  object-fit: contain;
  padding: var(--space-sm);
  opacity: 0.95;
}

.component-card-light:hover .component-image {
  box-shadow: inset 0 0 0 1px hsla(199, 92%, 56%, 0.2);
}

.component-heading {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.component-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: hsla(199, 92%, 56%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.component-desc {
  color: var(--clr-text-dark-secondary);
  font-size: var(--fs-base);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .how-it-works-section {
    padding: var(--space-5xl) var(--space-lg);
  }

  .components-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .component-image {
    height: 260px;
  }
}

/* ─── 9. PROBLEM / COMPARISON SECTION ──────────────────────────────────── */
.problem-section {
  padding: var(--space-4xl) var(--space-lg);
}

.problem-section .section-heading {
  font-size: var(--fs-2xl);
  color: var(--clr-text-primary);
  margin-bottom: var(--space-lg);
}

.problem-section .section-desc {
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.compare-card {
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: left;
  transition: transform var(--transition-base);
}

.compare-card:hover {
  transform: translateY(-4px);
}

.compare-card.bad {
  background: hsla(0, 84%, 60%, 0.05);
  border: 1px solid hsla(0, 84%, 60%, 0.2);
}

.compare-card.good {
  background: hsla(199, 92%, 56%, 0.08);
  border: 1px solid hsla(199, 92%, 56%, 0.4);
  box-shadow: 0 10px 30px hsla(199, 92%, 56%, 0.1);
}

.compare-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.compare-card.bad .compare-title { color: #fca5a5; }
.compare-card.good .compare-title { color: var(--clr-primary); }

.compare-list {
  list-style: none;
  color: var(--clr-text-secondary);
  font-size: var(--fs-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.compare-list li {
  display: flex;
  gap: var(--space-sm);
  line-height: 1.5;
}

.compare-list .icon-bad  { color: var(--clr-danger); flex-shrink: 0; }
.compare-list .icon-good { color: var(--clr-primary); flex-shrink: 0; }

.compare-card.good .compare-list { color: var(--clr-text-primary); }

@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── 10. SOFTWARE DEMO SECTION ─────────────────────────────────────────── */
.software-demo-section {
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}

.software-demo-section .section-title {
  color: var(--clr-text-primary);
}

/* Premium Display Mockup */
.premium-display-mockup {
  max-width: 400px;
  margin: var(--space-2xl) auto 0;
  position: relative;
  aspect-ratio: 1 / 1;
  transition: transform 0.5s var(--ease-spring);
}

.premium-display-mockup:hover {
  transform: scale(1.02);
}

/* Glow behind display */
.display-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 50%, hsla(199, 92%, 56%, 0.15) 0%, transparent 60%);
  z-index: 0;
  filter: blur(50px);
}

/* Glass bezel */
.display-bezel {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0.5rem;
  background: hsla(0, 0%, 100%, 0.03);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.1),
              var(--shadow-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.display-screen {
  background: var(--clr-bg-deep);
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, 0.05);
}

/* macOS-style dots */
.display-topbar {
  height: 24px;
  background: hsla(0, 0%, 100%, 0.02);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.2);
}

/* Card Swap Carousel */
.card-swap-container {
  height: calc(100% - 24px);
  margin: 0;
  padding: 0;
}

.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.swap-card {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--clr-bg-deep);
}

.card-pos-0 { transform: scale(1) translateY(0) translateZ(0px); z-index: 3; opacity: 1; }
.card-pos-1 { transform: scale(0.92) translateY(-15px) translateZ(-50px); z-index: 2; opacity: 0.7; }
.card-pos-2 { transform: scale(0.84) translateY(-30px) translateZ(-100px); z-index: 1; opacity: 0.4; }

.software-demo-caption {
  color: var(--clr-text-muted);
  margin-top: var(--space-2xl);
  font-size: var(--fs-base);
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .premium-display-mockup {
    max-width: 550px;
  }

  .software-demo-section {
    padding: var(--space-4xl) var(--space-lg);
  }
}

/* ─── 11. ROI / BENEFITS SECTION ────────────────────────────────────────── */
.roi-section {
  padding: var(--space-4xl) var(--space-lg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

/* Premium Glass Card */
.premium-glass-card {
  background: hsla(0, 0%, 100%, 0.02);
  border: 1px solid hsla(0, 0%, 100%, 0.05);
  border-top: 1px solid hsla(0, 0%, 100%, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 hsla(0, 0%, 100%, 0.08);
  transition: all 0.5s var(--ease-spring);
}

.premium-glass-card:hover {
  transform: translateY(-8px);
  border-color: hsla(199, 92%, 56%, 0.3);
  box-shadow: 0 40px 80px hsla(199, 92%, 56%, 0.12),
              inset 0 1px 0 hsla(0, 0%, 100%, 0.15);
}

.card-glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, hsla(199, 92%, 56%, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.premium-glass-card:hover .card-glow-bg {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.minimal-icon {
  background: hsla(222, 47%, 11%, 0.5);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 20px hsla(0, 0%, 0%, 0.4),
              inset 0 1px 0 hsla(0, 0%, 100%, 0.08);
  transition: transform var(--transition-fast);
}

.premium-glass-card:hover .minimal-icon {
  transform: scale(1.05) rotate(-3deg);
}

.premium-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.premium-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

/* SVG Gradient reusable */
.svg-defs {
  width: 0;
  height: 0;
  position: absolute;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .premium-glass-card {
    padding: var(--space-2xl);
  }
}

/* ─── 12. ROI CALCULATOR ────────────────────────────────────────────────── */
.roi-calculator-section {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--clr-bg-deep);
  position: relative;
}

.roi-calculator-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, hsla(199, 92%, 56%, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: var(--space-xl) auto 0;
  width: 100%;
}

.calc-controls-col,
.calc-results-col {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.calc-results-col {
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 
              inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.calc-result-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  top: -60px;
  right: -60px;
  pointer-events: none;
  z-index: 1;
}

.calc-input-group {
  width: 100%;
  text-align: left;
}

.calc-label {
  color: var(--clr-text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
  display: block;
  font-weight: 500;
}

.calc-input-wrapper {
  display: flex;
  align-items: center;
  background: hsla(222, 47%, 7%, 0.6);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 12px;
  padding: var(--space-sm) var(--space-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.calc-input-wrapper:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px hsla(199, 92%, 56%, 0.2);
}

.calc-currency {
  color: var(--clr-primary);
  font-weight: 700;
  font-size: var(--fs-md);
  margin-right: 8px;
}

.calc-input {
  background: transparent;
  border: none;
  color: var(--clr-text-primary);
  font-size: var(--fs-md);
  font-weight: 600;
  width: 100%;
  outline: none;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.calc-slider-header .calc-label {
  margin-bottom: 0;
}

.calc-value {
  color: var(--clr-primary);
  font-weight: 700;
  font-size: var(--fs-sm);
  background: hsla(199, 92%, 56%, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid hsla(199, 92%, 56%, 0.2);
}

/* Custom range slider */
.calc-range {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8), 0 4px 8px rgba(0,0,0,0.4);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #7dd3fc;
}

.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
  transition: transform var(--transition-fast);
}

.calc-range::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Result styles */
.calc-result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  z-index: 2;
}

.calc-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-result-label {
  color: var(--clr-text-secondary);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calc-result-value {
  color: #ffffff;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  margin-bottom: var(--space-md);
  font-variant-numeric: tabular-nums;
  z-index: 2;
}

.calc-roi-progress {
  z-index: 2;
  margin-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
}

.calc-roi-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.calc-roi-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 50px;
  width: 50%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.calc-result-roi {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.calc-result-roi strong {
  color: #38bdf8;
  font-weight: 700;
}

@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-2xl);
  }
  
  .calc-controls-col,
  .calc-results-col {
    padding: var(--space-2xl);
  }
}

/* ─── 13. AUTHORITY / TESTIMONIALS ──────────────────────────────────────── */
.authority-section {
  padding: var(--space-4xl) var(--space-lg);
  border-top: 1px solid var(--clr-light-border);
  border-bottom: 1px solid var(--clr-light-border);
}

/* Flags Grid */
.flags-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) auto;
  flex-wrap: wrap;
}

.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flag-circle {
  width: 64px;
  height: 64px;
  background: var(--clr-light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px hsla(0, 0%, 0%, 0.05);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--clr-light-border);
  transition: transform var(--transition-fast);
}

.flag-circle:hover {
  transform: scale(1.1) rotate(-5deg);
}

.flag-name {
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--clr-text-dark-secondary);
}

/* Testimonials — Horizontal scroll on mobile */
.testimonials-grid {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-lg) var(--space-xs);
  margin: var(--space-2xl) auto 0;
  max-width: 1100px;
  scrollbar-width: none;
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 300px;
  max-width: 350px;
  flex-shrink: 0;
  scroll-snap-align: center;
  background: var(--clr-surface-glass);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: hsla(199, 92%, 56%, 0.3);
  background: var(--clr-surface-glass-hover);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--clr-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-quote {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--clr-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsla(222, 47%, 15%, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--clr-primary);
  font-size: var(--fs-sm);
  border: 1px solid hsla(199, 92%, 56%, 0.25);
  flex-shrink: 0;
}

.author-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid hsla(199, 92%, 56%, 0.35);
  box-shadow: 0 0 0 3px hsla(199, 92%, 56%, 0.08);
  flex-shrink: 0;
}

.author-name {
  color: var(--clr-text-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.author-role {
  color: var(--clr-text-muted);
  font-size: var(--fs-xs);
}

/* Scroll indicator dots */
.scroll-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-lg);
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.15);
  transition: all var(--transition-fast);
}

.scroll-dot.active {
  background: var(--clr-primary);
  width: 24px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .flag-circle {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .flag-name {
    font-size: var(--fs-sm);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    padding: var(--space-lg) 0;
  }

  .testimonial-card {
    min-width: unset;
    max-width: unset;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ─── 14. ECOSYSTEM / BENTO GRID ────────────────────────────────────────── */
.pillars-section {
  padding: var(--space-4xl) var(--space-lg);
}

.ecosystem-subtitle {
  color: var(--clr-text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  font-size: var(--fs-md);
}

.premium-tags-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.premium-tag {
  background: var(--clr-surface-glass);
  border: 1px solid var(--clr-border-glass);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.premium-tag:hover {
  background: var(--clr-surface-glass-hover);
  border-color: hsla(0, 0%, 100%, 0.18);
  transform: translateY(-5px);
}

.premium-tag.glow-tag {
  border-color: hsla(199, 92%, 56%, 0.3);
  background: hsla(199, 92%, 56%, 0.05);
}

.premium-tag.glow-tag:hover {
  box-shadow: var(--shadow-glow);
}

.tag-icon {
  width: 48px;
  height: 48px;
  background: hsla(199, 92%, 56%, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  transition: transform var(--transition-fast);
}

.premium-tag:hover .tag-icon {
  transform: rotate(-5deg) scale(1.08);
}

.tag-title {
  color: var(--clr-text-primary);
  font-size: var(--fs-md);
  font-weight: 600;
}

.tag-desc {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* Center CTA */
.center-cta {
  margin-top: var(--space-3xl);
  text-align: center;
}

.center-cta .price-note {
  color: var(--clr-text-muted);
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
}

/* Desktop Bento Layout */
@media (min-width: 768px) {
  .premium-tags-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .premium-tags-grid > :nth-child(2) {
    grid-column: span 2;
  }

  .premium-tags-grid > :nth-child(3) {
    grid-column: span 2;
  }

  .premium-tags-grid > :nth-child(6) {
    grid-column: span 2;
  }
}

/* ─── 15. FAQ SECTION ───────────────────────────────────────────────────── */
.faq-section {
  padding: var(--space-4xl) var(--space-lg);
}

.faq-grid {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--clr-surface-glass);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: hsla(199, 92%, 56%, 0.2);
  background: var(--clr-surface-glass-hover);
}

.faq-question {
  color: var(--clr-text-primary);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.faq-answer {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ─── 16. TIMELINE / STEPPER ────────────────────────────────────────────── */
.timeline-section {
  padding: var(--space-4xl) var(--space-lg);
}

.stepper-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: flex-start;
  padding-left: 10px;
  position: relative;
  margin-top: var(--space-2xl);
}

/* Vertical line on mobile */
.stepper-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 35px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    var(--clr-primary),
    hsla(234, 89%, 74%, 0.5),
    hsla(199, 92%, 56%, 0.2));
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  text-align: left;
  align-items: flex-start;
  gap: var(--space-lg);
}

.step-num {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--clr-bg-blue), var(--clr-primary));
  border: 2px solid var(--clr-text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--clr-text-primary);
  box-shadow: 0 5px 20px hsla(199, 92%, 56%, 0.2);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.step-item:hover .step-num {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.step-item h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
  color: var(--clr-text-primary);
}

.step-item p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

/* Desktop: horizontal stepper */
@media (min-width: 768px) {
  .stepper-wrapper {
    flex-direction: row;
    justify-content: space-between;
    padding-left: 0;
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
  }

  .stepper-wrapper::before {
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
  }

  .step-item {
    width: 22%;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--space-md);
  }
}

/* ─── 17. FOOTER ────────────────────────────────────────────────────────── */
.qualify-footer {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--clr-bg-deep);
}

.footer-heading {
  margin-bottom: var(--space-xl);
}

.disclaimer {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: var(--space-2xl);
  max-width: 600px;
  margin-inline: auto;
  opacity: 0.7;
  line-height: 1.5;
}

/* ─── 18. MODAL ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(222, 47%, 11%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--space-lg);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 450px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid var(--clr-border-glass-strong);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-title {
  margin-bottom: var(--space-md);
  color: var(--clr-text-primary);
  font-size: var(--fs-xl);
}

.modal-desc {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.close-modal {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--clr-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast),
              transform var(--transition-fast);
  padding: var(--space-xs);
}

.close-modal:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--clr-text-primary);
  user-select: none;
  transition: color var(--transition-fast);
}

.custom-checkbox:hover {
  color: var(--clr-primary);
}

.custom-checkbox input { display: none; }

.checkmark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid hsla(0, 0%, 100%, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: hsla(0, 0%, 0%, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  box-shadow: 0 0 12px hsla(199, 92%, 56%, 0.4);
}

.custom-checkbox input:checked ~ .checkmark::after {
  content: '✓';
  color: var(--clr-bg-deep);
  font-weight: 800;
  font-size: 14px;
}

.modal-proceed-btn {
  margin-top: var(--space-xl);
  width: 100%;
}

/* Loader */
.loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid hsla(0, 0%, 100%, 0.2);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: var(--space-md) auto 0;
}

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

/* ─── 19. LIGHT SECTION OVERRIDES ───────────────────────────────────────── */
.light-section {
  background-color: var(--clr-light-bg);
  color: var(--clr-text-dark);
}

.light-section .section-title {
  color: var(--clr-bg-blue);
}

/* Light section - FAQ */
.light-section .faq-item {
  background: var(--clr-light-bg);
  border: 1px solid var(--clr-light-border);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.03);
}

.light-section .faq-item:hover {
  border-color: hsla(199, 92%, 56%, 0.3);
  box-shadow: 0 8px 24px hsla(199, 92%, 56%, 0.08);
}

.light-section .faq-question {
  color: var(--clr-bg-blue);
}

.light-section .faq-answer {
  color: var(--clr-text-dark-secondary);
}

/* Light section - Timeline */
.light-section .stepper-wrapper::before {
  background: linear-gradient(to bottom,
    var(--clr-primary),
    hsla(199, 92%, 56%, 0.3));
}

.light-section .step-item h4 {
  color: var(--clr-bg-blue);
}

.light-section .step-item p {
  color: var(--clr-text-dark-secondary);
}

/* Light section premium cards */
.light-section .premium-glass-card {
  background: hsla(0, 0%, 100%, 0.9);
  border: 1px solid var(--clr-light-border);
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.04);
  backdrop-filter: none;
}

.light-section .premium-glass-card:hover {
  border-color: hsla(199, 92%, 56%, 0.4);
  box-shadow: 0 20px 40px hsla(199, 92%, 56%, 0.12);
}

.light-section .premium-title {
  color: var(--clr-bg-blue) !important;
}

.light-section .premium-desc {
  color: var(--clr-text-dark-secondary);
}

.light-section .minimal-icon {
  background: hsla(199, 92%, 56%, 0.08);
  border: 1px solid hsla(199, 92%, 56%, 0.15);
  box-shadow: none;
}

/* Light section - Premium tags */
.light-section .premium-tag {
  background: var(--clr-light-bg-subtle);
  color: var(--clr-text-dark);
  border-color: var(--clr-light-border);
  backdrop-filter: none;
}

.light-section .premium-tag:hover {
  background: var(--clr-light-bg);
  border-color: hsla(199, 92%, 56%, 0.3);
}

.light-section .premium-tag.glow-tag {
  background: hsla(199, 100%, 93%, 1);
  border-color: var(--clr-primary-light);
  color: hsl(201, 96%, 32%);
}

.light-section .tag-title {
  color: var(--clr-text-dark);
}

.light-section .tag-desc {
  color: var(--clr-text-dark-secondary);
}

/* Light section - Display mockup */
.light-section .display-bezel {
  background: hsla(0, 0%, 100%, 0.6);
  border: 1px solid hsla(0, 0%, 0%, 0.1);
  box-shadow: 0 25px 50px hsla(0, 0%, 0%, 0.1);
}

/* Light section - Testimonials */
.light-section .testimonial-card {
  background: var(--clr-light-bg);
  border: 1px solid var(--clr-light-border);
}

.light-section .testimonial-card:hover {
  border-color: hsla(199, 92%, 56%, 0.3);
}

.light-section .testimonial-quote {
  color: var(--clr-text-dark);
}

.light-section .author-name {
  color: var(--clr-text-dark);
}

/* Light section - Process Tabs */
.light-section .process-tab-btn {
  background: var(--clr-light-bg-subtle);
  border: 1px solid var(--clr-light-border);
  color: var(--clr-text-dark-secondary);
}

.light-section .process-tab-btn:hover {
  background: #f1f5f9;
  color: var(--clr-text-dark);
  border-color: #cbd5e1;
}

.light-section .process-tab-btn.active {
  background: hsla(199, 92%, 56%, 0.1);
  color: #0284c7;
  border-color: hsla(199, 92%, 56%, 0.5);
  box-shadow: 0 4px 12px hsla(199, 92%, 56%, 0.15);
}

.light-section .step-num-badge {
  background: #cbd5e1;
  color: var(--clr-text-dark);
}

.light-section .process-tab-btn.active .step-num-badge {
  background: var(--clr-primary);
  color: var(--clr-text-dark);
}

/* Light section - Process Showcase Cards */
.light-section .process-showcase-card {
  background: var(--clr-light-bg);
  border: 1px solid var(--clr-light-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.light-section .stage-tag {
  color: #0284c7;
}

.light-section .card-right-info h3 {
  color: var(--clr-text-dark);
}

.light-section .stage-desc {
  color: var(--clr-text-dark-secondary);
}

.light-section .stage-features li {
  color: var(--clr-text-dark-secondary);
}

.light-section .feature-bullet {
  color: #0284c7;
}

.light-section .software-demo-caption {
  color: var(--clr-text-dark-secondary) !important;
}

@media (min-width: 768px) {
  .stepper-wrapper::before {
    background: linear-gradient(to right,
      var(--clr-primary),
      hsla(234, 89%, 74%, 0.5),
      hsla(199, 92%, 56%, 0.2));
  }

  .light-section .stepper-wrapper::before {
    background: linear-gradient(to right,
      var(--clr-primary),
      hsla(199, 92%, 56%, 0.3));
  }
}

/* ─── 20. SECTION SPACING DESKTOP ───────────────────────────────────────── */
@media (min-width: 1024px) {
  .how-it-works-section,
  .problem-section,
  .roi-section,
  .roi-calculator-section,
  .authority-section,
  .faq-section,
  .timeline-section,
  .qualify-footer {
    padding: var(--space-5xl) var(--space-lg);
  }

  .pillars-section {
    padding: var(--space-3xl) var(--space-lg);
  }

  .section-title {
    font-size: var(--fs-3xl);
  }
}

/* ==========================================================================
   21. PROCESS SHOWCASE TABS & CARDS (Three stages)
   ========================================================================== */
.process-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.process-tab-btn {
  background: var(--clr-surface-glass);
  border: 1px solid var(--clr-border-glass);
  color: var(--clr-text-secondary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-fast);
}

.process-tab-btn:hover {
  background: var(--clr-surface-glass-hover);
  color: var(--clr-text-primary);
  border-color: hsla(0, 0%, 100%, 0.15);
}

.process-tab-btn.active {
  background: hsla(199, 92%, 56%, 0.12);
  color: var(--clr-primary);
  border-color: hsla(199, 92%, 56%, 0.3);
  box-shadow: var(--shadow-glow);
}

.step-num-badge {
  background: var(--clr-border-glass-strong);
  color: var(--clr-text-primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  transition: all var(--transition-fast);
}

.process-tab-btn.active .step-num-badge {
  background: var(--clr-primary);
  color: var(--clr-bg-deep);
}

/* Process Showcase Cards */
.process-showcase-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.process-showcase-card {
  display: none;
  grid-template-columns: 1fr;
  gap: var(--space-md); /* Reclaimed vertical gap on mobile */
  background: var(--clr-surface-glass);
  border: 1px solid var(--clr-border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-md); /* Reclaimed padding on mobile (16px) */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: left;
  box-shadow: var(--shadow-lg);
  animation: cardReveal 0.4s var(--ease-out-expo) forwards;
}

.process-showcase-card.active {
  display: grid;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-left-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card-right-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--clr-primary);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.card-right-info h3 {
  font-size: var(--fs-xl);
  color: var(--clr-text-primary);
  margin-bottom: var(--space-md);
}

.stage-desc {
  color: var(--clr-text-secondary);
  font-size: var(--fs-base);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

.stage-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stage-features li {
  display: flex;
  gap: var(--space-xs);
  color: var(--clr-text-primary);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.feature-bullet {
  color: var(--clr-primary);
  font-weight: bold;
}

/* Redefined Display Mockup in Showcase Card */
.process-showcase-card .display-bezel {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.3 / 1;
  background: hsla(0, 0%, 100%, 0.02);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.08), var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.process-showcase-card .display-screen {
  background: #080c14 !important;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-sm);
  position: relative;
  color: #ffffff !important;
}

.display-screen h4,
.display-screen .scanner-status-text,
.display-screen .metric-title,
.display-screen .scanner-timer {
  color: #ffffff !important;
}

.display-screen .data-label,
.display-screen .metric-pct,
.display-screen .therapy-note {
  color: #94a3b8 !important;
}

/* Display mock layout elements */
.display-topbar {
  height: 20px;
  background: hsla(0, 0%, 100%, 0.02);
  display: flex;
  align-items: center;
  padding: 0 var(--space-xs);
  gap: 4px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.2);
}

.scanner-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.scanner-silhouette {
  width: 130px;
  height: 150px;
  position: relative;
  border: 1px dashed hsla(199, 92%, 56%, 0.15);
  border-radius: var(--radius-sm);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: hsla(0, 0%, 0%, 0.15);
}

.human-hologram-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scanner-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  box-shadow: 0 0 6px var(--clr-primary);
  animation: laserScan 2.5s infinite ease-in-out;
}

@keyframes laserScan {
  0%, 100% { top: 5%; }
  50% { top: 95%; }
}

.scanner-data {
  text-align: center;
}

.scanner-status-text {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1.2;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease-in-out;
}

.data-label {
  font-size: 9px;
  color: var(--clr-text-muted);
}

/* Chakra energy nodes */
.chakra-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: chakraPulse 1.8s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 3px currentColor);
}

.chakra-node.crown  { fill: hsl(280, 100%, 75%); color: hsl(280, 100%, 75%); animation-delay: 0s; }
.chakra-node.throat { fill: hsl(190, 100%, 70%); color: hsl(190, 100%, 70%); animation-delay: 0.3s; }
.chakra-node.heart  { fill: hsl(120, 85%, 70%);  color: hsl(120, 85%, 70%);  animation-delay: 0.6s; }
.chakra-node.solar  { fill: hsl(55, 100%, 65%);  color: hsl(55, 100%, 65%);  animation-delay: 0.9s; }
.chakra-node.sacral { fill: hsl(28, 100%, 65%);  color: hsl(28, 100%, 65%);  animation-delay: 1.2s; }
.chakra-node.root   { fill: hsl(0, 100%, 65%);   color: hsl(0, 100%, 65%);   animation-delay: 1.5s; }

@keyframes chakraPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Report body */
.report-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  flex-grow: 1;
}

.metric-progress-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-title {
  font-size: 10px;
  color: var(--clr-text-secondary);
  font-weight: 600;
}

.progress-bar-wrapper {
  height: 5px;
  background: hsla(0, 0%, 100%, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.green { background: var(--clr-success); }
.progress-bar-fill.yellow { background: var(--clr-warning); }
.progress-bar-fill.red { background: var(--clr-danger); }

.metric-pct {
  font-size: 9px;
  color: var(--clr-text-muted);
}

/* Therapy tab */
.therapy-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.wave-visualizer {
  width: 100%;
  height: 60px;
  background: hsla(0, 0%, 0%, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.animated-wave {
  width: 100%;
  height: 100%;
}

.animated-wave path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}

.animated-wave.active path {
  animation: waveScroll 4s linear infinite;
}

@keyframes waveScroll {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.therapy-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.therapy-btn {
  background: var(--clr-primary);
  color: var(--clr-bg-deep);
  border: none;
  padding: 4px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: var(--fs-xs);
  cursor: pointer;
  box-shadow: 0 4px 10px hsla(199, 92%, 56%, 0.2);
  transition: all var(--transition-fast);
}

.therapy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px hsla(199, 92%, 56%, 0.35);
}

.therapy-btn.active {
  background: var(--clr-success);
  color: #fff;
  box-shadow: 0 4px 10px hsla(142, 71%, 45%, 0.25);
}

.therapy-note {
  font-size: 9px;
  color: var(--clr-text-muted);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .process-showcase-card {
    grid-template-columns: 1.1fr 1fr;
    padding: var(--space-2xl);
    gap: var(--space-2xl);
  }
  .display-topbar {
    height: 24px;
    gap: 6px;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
  .scanner-silhouette {
    width: 160px;
    height: 190px;
  }
  .wave-visualizer {
    height: 80px;
  }
}

/* Screen Content Wrapper & Hologram Backdrops */
.screen-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.screen-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

/* Glass panel floating inside simulated screen */
.screen-overlay-panel {
  position: relative;
  z-index: 5;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  width: 85%;
  max-width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.screen-overlay-panel.therapy-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  padding: var(--space-md);
}

/* Timeline Stepper SVG Icons styling */
.step-icon-container {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: #ffffff !important; /* Solid background to block the line */
  border: 1.5px solid hsla(199, 92%, 56%, 0.25); /* Cyan border */
  border-radius: 50%; /* Clean circles! */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.08);
  color: var(--clr-primary); /* Cyan colored SVG lines */
  position: relative; /* Enable z-index positioning */
  z-index: 3; /* Render on top of the line */
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.timeline-svg-icon {
  width: 22px;
  height: 22px;
  stroke: var(--clr-primary);
  stroke-width: 1.8;
  transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.step-item:hover .step-icon-container {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px hsla(199, 92%, 56%, 0.25);
  border-color: hsla(199, 92%, 56%, 0.6);
  background: #ffffff !important; /* Keep solid background on hover */
}

.step-item:hover .timeline-svg-icon {
  transform: scale(1.05);
  stroke: var(--clr-primary-light);
}

@media (min-width: 768px) {
  .step-icon-container {
    width: 60px;
    height: 60px;
  }
  .timeline-svg-icon {
    width: 26px;
    height: 26px;
  }
}

/* Unified System Card styling */
.unified-system-card {
  background: var(--clr-light-bg);
  border: 1px solid hsla(199, 92%, 56%, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  text-align: left;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.03);
  overflow: hidden;
  align-items: center;
}

.unified-system-image-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.unified-system-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.unified-system-content {
  padding: var(--space-sm);
}

.unified-system-title {
  font-size: var(--fs-xl);
  color: var(--clr-bg-deep);
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.unified-system-intro {
  font-size: var(--fs-base);
  color: var(--clr-text-dark-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.unified-system-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.unified-system-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.list-bullet {
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
}

.list-text {
  font-size: var(--fs-base);
  color: var(--clr-text-dark-secondary);
  line-height: 1.5;
}

.list-text strong {
  color: var(--clr-bg-deep);
}

@media (min-width: 768px) {
  .unified-system-card {
    grid-template-columns: 1fr 1fr; /* Two equal columns on desktop */
    padding: var(--space-xl);
    gap: var(--space-2xl);
  }
}

/* Layered Product Mockup CSS */
.unified-mockup-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: radial-gradient(circle at center, #1e293b, #0f172a);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.mockup-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--clr-primary);
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}

.mockup-laptop {
  width: 70%;
  height: auto;
  object-fit: contain;
  z-index: 1;
  transform: translate(-12%, -5%);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-fast);
}

.mockup-device {
  width: 48%;
  height: auto;
  object-fit: contain;
  position: absolute;
  bottom: 8%;
  right: 6%;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition-fast);
}

/* Hover effects to make it feel alive and premium - Desktop/Mouse only */
@media (hover: hover) and (min-width: 768px) {
  .unified-system-card:hover .mockup-laptop {
    transform: translate(-10%, -8%) scale(1.02);
  }

  .unified-system-card:hover .mockup-device {
    transform: translateY(-8px) scale(1.04);
  }
}

@media (min-width: 768px) {
  .unified-mockup-container {
    height: 340px;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 99999;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  background-color: #20ba5a;
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  z-index: -1;
  animation: waPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ─── 15. AVISO LEGAL & REGISTROS ────────────────────────────────────────── */
.legal-section {
  padding: var(--space-4xl) var(--space-lg);
  border-top: 1px solid var(--clr-light-border);
  background: radial-gradient(circle at 100% 0%, hsla(199, 92%, 56%, 0.03) 0%, transparent 50%);
}

.legal-card {
  max-width: 950px;
  margin: 0 auto;
  padding: var(--space-2xl);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.015) !important;
  backdrop-filter: blur(24px);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.legal-text-side {
  text-align: left;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.legal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.legal-heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  font-family: var(--font-title);
  letter-spacing: normal;
  text-transform: none;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.legal-item-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-paragraph {
  color: var(--clr-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.legal-paragraph strong {
  color: #ffffff;
  font-weight: 600;
}

.legal-badge-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: var(--space-xl);
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #25d366;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25d366;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cert-logo-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cert-logo-container .invima-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.cert-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-country {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cert-number {
  font-size: var(--fs-xs);
  color: #38bdf8;
  font-weight: 600;
}

@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-3xl);
  }
}
