/* ============================================
   Treevü — Premium Dark Luxe Fintech Design
   "Mercury/Stripe/Ramp level"
   ============================================ */

/* --- Type Scale (fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Glassmorphism tokens */
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur: 16px;
  --glass-bg-hover: rgba(255,255,255,0.07);
  --glass-border-hover: rgba(255,255,255,0.14);
}

/* --- DARK MODE (Default — the star) --- */
:root, [data-theme="dark"] {
  --color-bg:           #0A0F1C;
  --color-surface:      #0E1425;
  --color-surface-2:    #131A2E;
  --color-surface-offset: #171F35;
  --color-border:       rgba(255,255,255,0.08);
  --color-divider:      rgba(255,255,255,0.06);

  --color-text:         #E8ECF4;
  --color-text-muted:   #8B95A8;
  --color-text-faint:   #4F5B73;

  --color-primary:      #00BFA5;
  --color-primary-hover:#26D4BB;
  --color-primary-light:rgba(0, 191, 165, 0.12);
  --color-primary-glow: rgba(0, 191, 165, 0.25);

  --color-accent:       #FF6D3F;
  --color-accent-hover: #FF8A65;
  --color-accent-light: rgba(255, 109, 63, 0.12);
  --color-accent-glow:  rgba(255, 109, 63, 0.25);

  --color-navy:         #E8ECF4;

  --color-success:      #00BFA5;
  --color-success-light:rgba(0, 191, 165, 0.12);
  --color-warning:      #FFD54F;
  --color-warning-light:rgba(255, 213, 79, 0.12);
  --color-danger:       #EF5350;
  --color-danger-light: rgba(239, 83, 80, 0.12);

  /* Gradient presets */
  --gradient-primary:   linear-gradient(135deg, #00BFA5 0%, #26A69A 100%);
  --gradient-accent:    linear-gradient(135deg, #FF6D3F 0%, #FF8A65 100%);
  --gradient-hero:      linear-gradient(160deg, #0A0F1C 0%, #0E1425 50%, #0A0F1C 100%);
  --gradient-section:   linear-gradient(180deg, #0A0F1C 0%, #0E1425 100%);
  --gradient-card:      linear-gradient(135deg, rgba(0,191,165,0.03) 0%, rgba(255,109,63,0.03) 100%);
  --gradient-text:      linear-gradient(135deg, #00BFA5, #26D4BB, #FF6D3F);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
  --shadow-primary: 0 4px 24px rgba(0, 191, 165, 0.3);
  --shadow-accent:  0 4px 24px rgba(255, 109, 63, 0.3);

  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-bg-hover: rgba(255,255,255,0.07);
  --glass-border-hover: rgba(255,255,255,0.14);
}

/* Smooth theme transition */
body, .site-header, .section, .section-alt, .hero {
  transition: background-color 0.4s ease, color 0.3s ease;
}

/* --- LIGHT MODE --- */
[data-theme="light"] {
  --color-bg:           #F7F8FC;
  --color-surface:      #FFFFFF;
  --color-surface-2:    #F0F2F8;
  --color-surface-offset: #E8EBF3;
  --color-border:       #D4D9E6;
  --color-divider:      #E4E8F0;

  --color-text:         #0F1A2E;
  --color-text-muted:   #4A5568;
  --color-text-faint:   #8B95A8;

  --color-primary:      #00897B;
  --color-primary-hover:#00695C;
  --color-primary-light:#E0F2F1;
  --color-primary-glow: rgba(0, 137, 123, 0.15);

  --color-accent:       #F4511E;
  --color-accent-hover: #D84315;
  --color-accent-light: #FBE9E7;
  --color-accent-glow:  rgba(244, 81, 30, 0.15);

  --color-navy:         #0F1A2E;

  --color-success:      #00897B;
  --color-success-light:#E0F2F1;
  --color-warning:      #F9A825;
  --color-warning-light:#FFF8E1;
  --color-danger:       #E53935;
  --color-danger-light: #FFEBEE;

  --gradient-primary:   linear-gradient(135deg, #00897B 0%, #00BFA5 100%);
  --gradient-accent:    linear-gradient(135deg, #F4511E 0%, #FF8A65 100%);
  --gradient-hero:      linear-gradient(160deg, #F7F8FC 0%, #E0F2F1 40%, #FBE9E7 100%);
  --gradient-section:   linear-gradient(180deg, #F7F8FC 0%, #E0F2F1 100%);
  --gradient-card:      linear-gradient(135deg, rgba(0,137,123,0.04) 0%, rgba(244,81,30,0.04) 100%);
  --gradient-text:      linear-gradient(135deg, #00897B, #00BFA5, #F4511E);

  --shadow-sm: 0 1px 3px rgba(15, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 26, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 26, 46, 0.12);
  --shadow-xl: 0 20px 60px rgba(15, 26, 46, 0.16);
  --shadow-primary: 0 4px 20px rgba(0, 137, 123, 0.2);
  --shadow-accent:  0 4px 20px rgba(244, 81, 30, 0.2);

  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(0,0,0,0.08);
  --glass-bg-hover: rgba(255,255,255,0.85);
  --glass-border-hover: rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:           #0A0F1C;
    --color-surface:      #0E1425;
    --color-surface-2:    #131A2E;
    --color-surface-offset: #171F35;
    --color-border:       rgba(255,255,255,0.08);
    --color-divider:      rgba(255,255,255,0.06);
    --color-text:         #E8ECF4;
    --color-text-muted:   #8B95A8;
    --color-text-faint:   #4F5B73;
    --color-primary:      #00BFA5;
    --color-primary-hover:#26D4BB;
    --color-primary-light:rgba(0, 191, 165, 0.12);
    --color-primary-glow: rgba(0, 191, 165, 0.25);
    --color-accent:       #FF6D3F;
    --color-accent-hover: #FF8A65;
    --color-accent-light: rgba(255, 109, 63, 0.12);
    --color-accent-glow:  rgba(255, 109, 63, 0.25);
    --color-navy:         #E8ECF4;
    --color-success:      #00BFA5;
    --color-success-light:rgba(0, 191, 165, 0.12);
    --color-warning:      #FFD54F;
    --color-warning-light:rgba(255, 213, 79, 0.12);
    --color-danger:       #EF5350;
    --color-danger-light: rgba(239, 83, 80, 0.12);
    --gradient-primary:   linear-gradient(135deg, #00BFA5 0%, #26A69A 100%);
    --gradient-accent:    linear-gradient(135deg, #FF6D3F 0%, #FF8A65 100%);
    --gradient-hero:      linear-gradient(160deg, #0A0F1C 0%, #0E1425 50%, #0A0F1C 100%);
    --gradient-section:   linear-gradient(180deg, #0A0F1C 0%, #0E1425 100%);
    --gradient-card:      linear-gradient(135deg, rgba(0,191,165,0.03) 0%, rgba(255,109,63,0.03) 100%);
    --gradient-text:      linear-gradient(135deg, #00BFA5, #26D4BB, #FF6D3F);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
    --shadow-primary: 0 4px 24px rgba(0, 191, 165, 0.3);
    --shadow-accent:  0 4px 24px rgba(255, 109, 63, 0.3);
    --glass-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --glass-bg-hover: rgba(255,255,255,0.07);
    --glass-border-hover: rgba(255,255,255,0.14);
  }
}

/* ============================================
   ANIMATED MESH GRADIENT BLOBS
   ============================================ */
@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.1); }
  50% { transform: translate(-40px, 40px) scale(0.95); }
  75% { transform: translate(60px, 80px) scale(1.05); }
}
@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-100px, 50px) scale(1.15); }
  50% { transform: translate(60px, -30px) scale(0.9); }
  75% { transform: translate(-50px, -70px) scale(1.1); }
}
@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 90px) scale(1.08); }
  66% { transform: translate(-80px, -40px) scale(0.92); }
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.hero-blob--teal {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, rgba(0, 191, 165, 0.4) 0%, rgba(0, 191, 165, 0) 70%);
  top: -10%;
  left: -5%;
  animation: blob-drift-1 20s ease-in-out infinite;
}

.hero-blob--orange {
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: radial-gradient(circle, rgba(255, 109, 63, 0.3) 0%, rgba(255, 109, 63, 0) 70%);
  bottom: -15%;
  right: -5%;
  animation: blob-drift-2 25s ease-in-out infinite;
}

.hero-blob--purple {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0) 70%);
  top: 40%;
  left: 30%;
  animation: blob-drift-3 18s ease-in-out infinite;
}

/* Light mode: softer blobs */
[data-theme="light"] .hero-blob { opacity: 0.25; filter: blur(100px); }

/* ============================================
   ROTATING GRADIENT BORDER ANIMATION
   ============================================ */
@keyframes rotate-gradient {
  0% { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

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

/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
[data-theme="light"] .site-header {
  background: rgba(247, 248, 252, 0.8);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
[data-theme="light"] .site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.logo-link .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}
.nav-desktop a:hover {
  color: var(--color-primary);
}
.nav-desktop a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* WhatsApp header button */
.btn-whatsapp-header {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: #0088CC;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-interactive);
}
.btn-whatsapp-header:hover {
  background: #0077BB;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}
@media (min-width: 768px) {
  .btn-whatsapp-header { display: inline-flex; }
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.theme-toggle:hover {
  background: var(--glass-bg-hover);
  color: var(--color-text);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: var(--radius-md);
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle:hover {
  background: var(--glass-bg-hover);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-mobile.open { display: block; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-interactive);
  cursor: pointer;
  border: none;
  position: relative;
}

.btn-primary {
  background: var(--gradient-primary, var(--color-primary));
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.2);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(0, 191, 165, 0.4);
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-accent {
  background: var(--gradient-accent, var(--color-accent));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 109, 63, 0.2);
}
.btn-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(255, 109, 63, 0.4);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-whatsapp {
  background: #0088CC;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #0077BB;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}
[data-theme="dark"] .btn-white,
:root:not([data-theme]) .btn-white {
  background: rgba(255,255,255,0.95);
}
.btn-white:hover {
  background: #F0F0F0;
  color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(255,255,255,0.15);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
  position: relative;
}
.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.section-alt {
  background: var(--color-surface);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-light);
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: var(--radius-full);
}
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-6);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
}

/* Subtle grid pattern on the hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}
[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

/* Vignette overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary-glow), inset 0 0 20px rgba(0, 191, 165, 0.05);
  animation: badge-glow 3s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 20px var(--color-primary-glow), inset 0 0 20px rgba(0, 191, 165, 0.05); }
  50% { box-shadow: 0 0 30px var(--color-primary-glow), 0 0 60px rgba(0, 191, 165, 0.15), inset 0 0 20px rgba(0, 191, 165, 0.08); }
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}
.hero h1 .metric {
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero h1 .accent {
  color: var(--color-accent);
  text-shadow: 0 0 40px rgba(255, 109, 63, 0.3);
}
/* In dark mode, make accent use gradient text fill instead */
[data-theme="dark"] .hero h1 .accent,
:root:not([data-theme]) .hero h1 .accent {
  background: linear-gradient(135deg, #FF6D3F, #FFB347);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  position: relative;
}

.hero-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 48ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Hero trust badges */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}
.trust-badge:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}
.trust-badge svg {
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone mockup with animated gradient border */
.phone-mockup {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  position: relative;
}

.phone-frame {
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(0, 191, 165, 0.08);
  position: relative;
  overflow: hidden;
}

/* Animated gradient border on phone */
.phone-mockup::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-2xl) + 2px);
  padding: 2px;
  background: conic-gradient(
    from var(--gradient-angle, 0deg),
    #00BFA5,
    #26A69A,
    #8B5CF6,
    #FF6D3F,
    #FF8A65,
    #00BFA5
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-gradient 4s linear infinite;
  z-index: 1;
  opacity: 0.7;
}
[data-theme="light"] .phone-mockup::before {
  opacity: 0.4;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: var(--color-bg);
  border-radius: 0 0 14px 14px;
  margin: calc(-1 * var(--space-6)) auto var(--space-5);
  position: relative;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-2);
  margin-bottom: var(--space-4);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.phone-app-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.phone-app-header .logo-mini {
  width: 28px;
  height: 28px;
}
.phone-app-header span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.phone-greeting {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.phone-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.phone-balance-card {
  background: linear-gradient(135deg, #00695C 0%, #00897B 50%, #00BFA5 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: #fff;
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 20px rgba(0, 191, 165, 0.3);
}
.phone-balance-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.phone-balance-amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.phone-balance-btn {
  display: block;
  width: 100%;
  padding: var(--space-3);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
}

.phone-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-bottom: var(--space-3);
}
.phone-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--color-primary-light);
  min-height: 8px;
  transition: height 0.5s var(--ease-out);
}
.phone-chart-bar.active {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}
.phone-chart-label {
  font-size: 10px;
  color: var(--color-text-faint);
  text-align: center;
}

/* Dashboard mini — glassmorphism */
.dashboard-mini {
  position: absolute;
  right: -30px;
  top: 60%;
  transform: translateY(-50%);
  width: 180px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  display: none;
}
@media (min-width: 960px) {
  .dashboard-mini { display: block; }
}
.dashboard-mini-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.dashboard-mini-stat {
  margin-bottom: var(--space-3);
}
.dashboard-mini-stat .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--color-primary);
  text-shadow: 0 0 20px var(--color-primary-glow);
}
.dashboard-mini-stat .lbl {
  font-size: 10px;
  color: var(--color-text-faint);
}

/* ============================================
   STATS ROW — Glassmorphism
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.stat-item {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-out);
}
.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  background: var(--glass-bg-hover);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
  text-shadow: 0 0 30px var(--color-accent-glow);
}
[data-theme="light"] .stat-value {
  text-shadow: none;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.stat-source {
  font-size: 10px;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  font-style: italic;
}

/* ============================================
   STEPS / HOW IT WORKS
   ============================================ */
.steps-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}
@media (min-width: 768px) {
  .steps-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

/* Gradient connector line (desktop) */
@media (min-width: 768px) {
  .steps-flow::before {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 24px);
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0.3;
    z-index: 0;
  }
}

.step-item {
  position: relative;
  text-align: center;
  padding: var(--space-6);
  z-index: 1;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  position: relative;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary-glow);
}
/* Animated gradient ring around step number */
.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(
    from var(--gradient-angle, 0deg),
    var(--color-primary),
    var(--color-accent),
    var(--color-primary)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-gradient 6s linear infinite;
  opacity: 0.5;
}
.step-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Remove old arrow connector, replaced by gradient line */
@media (min-width: 768px) {
  .step-item:not(:last-child)::after {
    display: none;
  }
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-interactive);
}
.payment-badge:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

/* ============================================
   BENEFITS GRID — Glassmorphism Cards
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-col {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-out);
}
.benefit-col:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(0, 191, 165, 0.1);
}
.benefit-col h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.benefit-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: box-shadow 0.3s var(--ease-out);
}
.benefit-col:hover .benefit-icon {
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.benefit-list {
  list-style: none;
  padding: 0;
}
.benefit-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  line-height: 1.5;
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-check {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.section-calculator {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.section-calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0.6;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.calculator-inputs {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.calc-field {
  margin-bottom: var(--space-8);
}
.calc-field:last-child {
  margin-bottom: 0;
}
.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.calc-field-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.calc-field-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
  text-shadow: 0 0 16px var(--color-primary-glow);
}
[data-theme="light"] .calc-field-value {
  text-shadow: none;
}

/* Range slider */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-surface-offset) 0%);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 12px var(--color-primary-glow);
  cursor: pointer;
  transition: transform var(--transition-interactive);
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--color-primary-glow);
}
.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 12px var(--color-primary-glow);
  cursor: pointer;
}

.calculator-results {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
/* Animated gradient border on results */
.calculator-results::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: conic-gradient(
    from var(--gradient-angle, 0deg),
    var(--color-primary),
    var(--color-accent),
    var(--color-primary)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-gradient 5s linear infinite;
  opacity: 0.5;
  z-index: 0;
}
.calculator-results > * {
  position: relative;
  z-index: 1;
}

.calc-result-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.calc-result-item {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.calc-result-item:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.calc-result-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.calc-result-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-accent);
  line-height: 1.1;
  text-shadow: 0 0 24px var(--color-accent-glow);
}
[data-theme="light"] .calc-result-value {
  text-shadow: none;
}
.calc-result-value.primary {
  color: var(--color-primary);
  text-shadow: 0 0 24px var(--color-primary-glow);
}
[data-theme="light"] .calc-result-value.primary {
  text-shadow: none;
}

.calc-result-cta {
  margin-top: var(--space-8);
}

/* ============================================
   ML PREDICTIONS GRID
   ============================================ */
.ml-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .ml-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .ml-grid { grid-template-columns: repeat(3, 1fr); }
}

.ml-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.ml-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}
[data-theme="light"] .ml-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Unique top accent bar per ML card */
.ml-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00BFA5, #26D4BB);
  transition: opacity 0.3s;
}
.ml-card:hover::before {
  opacity: 1;
  height: 3px;
  box-shadow: 0 0 20px var(--color-primary-glow);
}
/* Card accent variations */
.ml-card:nth-child(2)::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.ml-card:nth-child(3)::before { background: linear-gradient(90deg, #FF6D3F, #FF8A65); }
.ml-card:nth-child(4)::before { background: linear-gradient(90deg, #06B6D4, #22D3EE); }
.ml-card:nth-child(5)::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }

/* Unique hover glow per card */
.ml-card:nth-child(2):hover { box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15); }
.ml-card:nth-child(3):hover { box-shadow: 0 12px 40px rgba(255, 109, 63, 0.15); }
.ml-card:nth-child(4):hover { box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15); }
.ml-card:nth-child(5):hover { box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15); }

.ml-card-number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.ml-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.ml-card .ml-card-en {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  margin-bottom: var(--space-3);
}
.ml-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.ml-card .for-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-3);
}

.ml-tech {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}
.ml-tech-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.ml-tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}
.ml-tech-dot.accent {
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
}
.ml-tech-plus {
  font-size: var(--text-lg);
  color: var(--color-text-faint);
}

/* ============================================
   COMPARISON TABLE — Dark with Treevü glow
   ============================================ */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: var(--color-surface);
}

.comparison-table thead th {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-divider);
  vertical-align: bottom;
}
.comparison-table thead th:first-child {
  text-align: left;
  min-width: 180px;
}
.comparison-table thead th.highlight {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  position: relative;
  font-weight: 800;
}
.comparison-table thead th.highlight::after {
  content: '★ Recomendado';
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-top: 4px;
}

.comparison-table tbody td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: middle;
}
.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}
.comparison-table tbody td.highlight {
  background: var(--color-primary-light);
  font-weight: 600;
  color: var(--color-text);
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.indicator-yes {
  background: var(--color-success-light);
  color: var(--color-success);
}
.indicator-no {
  background: var(--color-danger-light);
  color: var(--color-danger);
}
.indicator-partial {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--glass-border-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.card-icon-accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

/* ============================================
   PILOT PROGRAM — Premium gradient card
   ============================================ */
.pilot-card {
  background: linear-gradient(135deg, #00695C 0%, #00897B 30%, #00BFA5 60%, #00897B 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-16));
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 105, 92, 0.35);
}
/* Animated mesh overlay */
.pilot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,109,63,0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(139,92,246,0.06) 0%, transparent 40%);
  animation: pilot-mesh 12s ease-in-out infinite alternate;
}
@keyframes pilot-mesh {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}
.pilot-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 150%;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.pilot-card > * {
  position: relative;
  z-index: 1;
}
.pilot-card h2 {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.pilot-card .pilot-sub {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  max-width: 50ch;
}

.pilot-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px) {
  .pilot-features { grid-template-columns: repeat(2, 1fr); }
}
.pilot-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.pilot-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.9);
}
.pilot-feature strong {
  display: block;
  margin-bottom: var(--space-1);
}

/* ============================================
   FAQ ACCORDION — Dark glassmorphism
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: var(--space-8) auto 0;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.faq-item:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}
.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.1);
}

.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary, var(--color-primary-light));
  color: #fff;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient-accent, var(--color-accent));
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ============================================
   CONTACT FORM — Glassmorphism
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-detail-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-detail-text strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.btn-whatsapp-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: #0088CC;
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-interactive);
  margin-bottom: var(--space-8);
  width: fit-content;
}
.btn-whatsapp-contact:hover {
  background: #0077BB;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: all var(--transition-interactive);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow), 0 0 20px var(--color-primary-glow);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-group select {
  cursor: pointer;
}

/* ============================================
   FLOATING WHATSAPP BUTTON — Pulse + glow
   ============================================ */
.floating-whatsapp {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  background: #0088CC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4), 0 0 40px rgba(37, 211, 102, 0.2);
  z-index: 90;
  transition: all var(--transition-interactive);
  text-decoration: none;
  animation: pulse-whatsapp 2s ease-in-out infinite;
}
.floating-whatsapp:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6), 0 0 60px rgba(37, 211, 102, 0.3);
  color: #fff;
  animation: none;
}
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4), 0 0 0 0 rgba(0, 136, 204, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Mobile sticky CTA bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3) var(--space-4);
  z-index: 95;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@media (max-width: 767px) {
  .mobile-sticky-cta { display: flex; }
  .floating-whatsapp { display: none; }
  body { padding-bottom: 72px; }
}
.mobile-sticky-cta .btn {
  flex: 1;
  text-align: center;
}
.mobile-sticky-cta .btn-whatsapp-mini {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   FOOTER — Minimal with gradient separator
   ============================================ */
.site-footer {
  background: var(--color-bg);
  border-top: none;
  padding: var(--space-8) var(--space-6);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0.4;
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}
.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}
.footer-bottom a {
  color: var(--color-text-faint);
}
.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ============================================
   SCROLL REVEAL — Enhanced
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   HERO ANIMATION
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0% { r: 40; opacity: 0.3; }
  100% { r: 80; opacity: 0; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}
.hero-float { animation: float 6s ease-in-out infinite; }
.hero-float-delay { animation: float 6s ease-in-out infinite; animation-delay: -2s; }
.hero-float-delay2 { animation: float 6s ease-in-out infinite; animation-delay: -4s; }

/* ============================================
   NON-CUSTODIAL BADGE
   ============================================ */
.non-custodial-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-4);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-4 { gap: var(--space-4); }

/* Max width for centered text sections */
.text-container {
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   NOISE TEXTURE OVERLAY (subtle)
   ============================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.015;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
}
[data-theme="light"] body::after {
  opacity: 0.03;
}

/* ============================================
   SECTION BACKGROUND ACCENT GLOWS
   ============================================ */
#problema::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-divider), transparent);
}

/* Subtle ambient glow on ML section */
#ml-engine {
  overflow: hidden;
}
#ml-engine::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

/* Subtle ambient glow on calculator section */
.section-calculator::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.2;
}

/* Smooth scroll progress line at top of page */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Enhanced hover glow on CTA buttons */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,191,165,0.4), rgba(38,212,187,0.2));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.btn-primary:hover::before {
  opacity: 1;
}

/* Light mode adjustments for better glass cards */
[data-theme="light"] .stat-item,
[data-theme="light"] .benefit-col,
[data-theme="light"] .ml-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .card {
  background: var(--color-surface);
  border-color: var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .calculator-inputs,
[data-theme="light"] .calculator-results,
[data-theme="light"] .form-card {
  background: var(--color-surface);
  border-color: var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .trust-badge,
[data-theme="light"] .payment-badge {
  background: var(--color-surface);
  border-color: var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .dashboard-mini {
  background: var(--color-surface);
  border-color: var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .ml-tech {
  background: var(--color-surface);
  border-color: var(--color-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Light mode hero background */
[data-theme="light"] .hero {
  background: var(--gradient-hero);
}

/* Section separator for light mode */
[data-theme="light"] .section-alt {
  background: var(--color-surface);
}
