:root {
  --brand: #0c34ff;
  --brand-light: #4d6aff;
  --brand-dark: #0820a3;
  --accent: #f1a900;
  --accent-warm: #f1a900b2;
  --radius: 16px;
  --radius-sm: 10px;
}

/* Dark mode (default) */
[data-theme="dark"] {
  --dark: #0a0a1a;
  --dark-soft: #141430;
  --surface: #0f0f1f;
  --surface-alt: #1a1a2e;
  --text: #e2e0f0;
  --text-muted: #9997ab;
  --white: #161628;
  --gradient-hero: linear-gradient(135deg, #0a1860 0%, #0c34ff 100%);
  --gradient-card: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(11,47,229,0.15), transparent 60%);
  --shadow-soft: 0 4px 30px rgba(0,0,0,0.2);
  --shadow-elevated: 0 20px 60px rgba(0,0,0,0.3);
  --nav-scrolled-bg: rgba(15,14,23,0.85);
  --nav-scrolled-border: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.06);
  --card-hover-border: rgba(11,47,229,0.3);
  --input-bg: rgba(255,255,255,0.06);
  --input-border: rgba(255,255,255,0.1);
  --input-text: white;
}

/* Light mode */
[data-theme="light"] {
  --dark: #0a0a1a;
  --dark-soft: #141430;
  --surface: #F8F7FF;
  --surface-alt: #EEEDFA;
  --text: #2E2B3A;
  --text-muted: #6B6880;
  --white: #FFFFFF;
  --gradient-hero: linear-gradient(135deg, #0a1860 0%, #0c34ff 100%);
  --gradient-card: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(11,47,229,0.15), transparent 60%);
  --shadow-soft: 0 4px 30px rgba(0,0,0,0.06);
  --shadow-elevated: 0 20px 60px rgba(0,0,0,0.1);
  --nav-scrolled-bg: rgba(255,255,255,0.85);
  --nav-scrolled-border: rgba(0,0,0,0.06);
  --card-border: rgba(0,0,0,0.06);
  --card-hover-border: rgba(11,47,229,0.15);
  --input-bg: white;
  --input-border: rgba(0,0,0,0.12);
  --input-text: var(--text);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(11,47,229,0.3); }
  50% { box-shadow: 0 0 40px rgba(11,47,229,0.6); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); }
  30% { transform: translate(3%,5%); }
  50% { transform: translate(-2%,8%); }
  70% { transform: translate(7%,-3%); }
  90% { transform: translate(-4%,2%); }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--nav-scrolled-border);
  padding: 10px 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: white; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-light);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 20px rgba(11,47,229,0.4);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11,47,229,0.5);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--brand-light);
  background: rgba(11,47,229,0.1);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.btn-accent {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,120,5,0.4);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,120,5,0.5);
}

.nav-mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  position: relative;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  position: absolute;
  left: 6px;
  transition: all 0.3s;
}
.nav-mobile-toggle span:nth-child(1) { top: 10px; }
.nav-mobile-toggle span:nth-child(2) { top: 17px; }
.nav-mobile-toggle span:nth-child(3) { top: 24px; }

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 160px 0 120px;
  min-height: 100vh;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: grain 8s steps(10) infinite;
  pointer-events: none;
}
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(11,47,229,0.3);
  top: -10%; right: -5%;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(168,85,247,0.25);
  bottom: -10%; left: -5%;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(255,120,5,0.2);
  top: 30%; left: 40%;
  animation: float 6s ease-in-out infinite 2s;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-content {
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s both;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.hero-badge span {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: white;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -2px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 35%,
    #ffe08a 50%,
    var(--accent) 65%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  padding-right: 2px;
}
.hero-description {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 64px;
  justify-content: center;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 36px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.hero-stat:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.hero-stat:hover::before { opacity: 1; }
.hero-stat-number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===== SECTIONS ===== */
section { padding: 100px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

/* ===== VIDEO SECTION ===== */
.video-section { background: var(--white); padding: 100px 0 80px; }
.video-section-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin-bottom: 36px;
  aspect-ratio: 16 / 9;
  background: var(--dark);
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== MODULES ===== */
.modules { background: var(--white); }
.modules-header { text-align: center; margin-bottom: 60px; }
.modules-header .section-subtitle { margin: 0 auto; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--brand);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s;
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(11,47,229,0.4);
  background: var(--brand-dark);
}
.module-card:hover::before { opacity: 1; }
.module-card > * { position: relative; z-index: 1; }

.module-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.module-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.module-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}
.module-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.module-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 16px;
}

/* Module colors */
.module-talent .module-icon { background: transparent; }
.module-talent .module-tag { background: var(--brand); color: #ffffff; }
.module-training .module-icon { background: transparent; }
.module-training .module-tag { background: var(--brand); color: #ffffff; }
.module-org .module-icon { background: transparent; }
.module-org .module-tag { background: var(--brand); color: #ffffff; }
.module-performance .module-icon { background: transparent; }
.module-performance .module-tag { background: var(--brand); color: #ffffff; }
.module-engagement .module-icon { background: transparent; }
.module-engagement .module-tag { background: var(--brand); color: #ffffff; }
.module-analytics .module-icon { background: transparent; }
.module-analytics .module-tag { background: var(--brand); color: #ffffff; }

/* Module card active state */
.module-card.active {
  transform: translateY(-6px);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow-elevated);
  border-color: transparent;
}
.module-card.active::before { opacity: 1; }

/* ===== MODULE DETAIL PANEL ===== */
.module-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16,1,0.3,1), margin 0.5s cubic-bezier(0.16,1,0.3,1);
  margin-top: 0;
}
.module-detail.open {
  max-height: 1200px;
  margin-top: 32px;
}
.module-detail-inner {
  background: var(--surface-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
  animation: fadeUp 0.4s ease-out;
}
.module-detail-header {
  margin-bottom: 28px;
}
.module-detail-header h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.module-detail-header > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
}

/* Sub-tool tabs */
.module-subtool-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.subtool-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Open Sans', sans-serif;
}
.subtool-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.subtool-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.subtool-tab img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(16%) sepia(90%) saturate(5000%) hue-rotate(230deg);
}
.subtool-tab.active img {
  filter: brightness(0) invert(1);
}

/* Sub-tool content */
.module-subtool-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.subtool-info h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.subtool-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.subtool-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subtool-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.subtool-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.subtool-image {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}
.subtool-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.lightbox.open img {
  transform: scale(1);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--surface);
  position: relative;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}
.testimonials-header .section-subtitle {
  margin: 0 auto;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 16px;
}
.testimonial-card blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-author-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.testimonial-author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== BENEFITS ===== */
.benefits {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.benefits .section-label { color: var(--brand-light); }
.benefits .section-label::before { background: var(--brand-light); }
.benefits .section-title { color: white; }
.benefits .section-subtitle { color: rgba(255,255,255,0.55); }
.benefits-header { text-align: center; margin-bottom: 60px; position: relative; z-index: 1; }
.benefits-header .section-subtitle { margin: 0 auto; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(10px);
}
.benefit-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.benefit-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
}
.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ===== LOGOS ===== */
.logos-section {
  background: var(--dark);
  padding: 100px 0;
  overflow: hidden;
}
.logos-title {
  text-align: center;
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 60px;
}
.logos-track {
  display: flex;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 80px;
  margin: 0 30px;
  opacity: 0.5;
  transition: all 0.3s;
}
.logo-item:hover { opacity: 1; }
.logo-item img {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 0;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-card {
  border-radius: 28px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
}
.cta-card::before {
  display: none;
}
.cta-card::after {
  display: none;
}
.cta-card .section-title { margin-bottom: 16px; color: var(--dark); }
.cta-card .section-subtitle {
  margin: 0 auto 36px;
  max-width: 480px;
  color: rgba(10,10,26,0.65);
}
.cta-card .section-label { color: var(--dark); opacity: 0.7; }
.cta-card .section-label::before { background: var(--dark); }
.cta-actions { display: flex; gap: 16px; justify-content: center; }
.cta-actions .btn-primary {
  background: var(--dark);
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.cta-actions .btn-primary:hover {
  background: var(--brand);
  box-shadow: 0 8px 30px rgba(11,47,229,0.4);
}

/* ===== FORM ===== */
.demo-section {
  background: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.demo-section::before {
  display: none;
}
.demo-section::after {
  display: none;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.demo-text .section-label { color: var(--brand); }
.demo-text .section-label::before { background: var(--brand); }
.demo-text .section-title { color: var(--text); }
.demo-text .section-subtitle { color: var(--text-muted); margin-bottom: 32px; }
.demo-perks { display: flex; flex-direction: column; gap: 16px; }
.demo-perk {
  display: flex; align-items: center; gap: 14px;
}
.demo-perk-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 10px;
  background: rgba(11,47,229,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.demo-perk span {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.demo-form {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
}
.demo-form h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.demo-form p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--input-text);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--brand);
  background: rgba(11,47,229,0.04);
}
.form-group select option { background: var(--white); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none; border-radius: var(--radius-sm);
  background: var(--brand);
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.form-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11,47,229,0.4);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(160deg, #0c34ff 0%, #0820a3 40%, #061570 100%);
  border-top: none;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 280px;
}
.footer-social {
  display: flex; gap: 10px; margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.2);
}
.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.5);
  transition: fill 0.3s;
}
.footer-social a:hover svg {
  fill: white;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container,
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .modules-grid, .benefits-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .module-detail-inner { padding: 32px; }
  .module-subtool-content { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero h1 { font-size: 2.4rem; letter-spacing: -1px; }
  .hero-stats { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .hero-stat { padding: 20px 24px; }
  .hero-stat-number { font-size: 28px; }
  section { padding: 60px 0; }
  .modules-grid, .benefits-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .module-detail-inner { padding: 24px; }
  .module-subtool-content { grid-template-columns: 1fr; gap: 24px; }
  .subtool-image { order: -1; }
  .subtool-tab { padding: 8px 14px; font-size: 12px; }
  .module-detail-header h3 { font-size: 1.2rem; }
  .cta-card { padding: 40px 24px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

/* ===== THEME TOGGLE ===== */
.theme-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-switch input { display: none; }
.theme-switch-track {
  position: relative;
  width: 60px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  transition: background 0.3s;
  overflow: hidden;
}
.theme-switch-track::before,
.theme-switch-track::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 1;
  z-index: 1;
  transition: opacity 0.3s;
}
.theme-switch-track::before {
  content: '🌙';
  left: 6px;
  opacity: 1;
}
.theme-switch-track::after {
  content: '☀️';
  right: 5px;
  opacity: 0.4;
}
.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  transition: left 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  z-index: 2;
}
[data-theme="light"] .theme-switch-track {
  background: rgba(0,0,0,0.1);
}
[data-theme="light"] .theme-switch-track::before {
  opacity: 0.4;
}
[data-theme="light"] .theme-switch-track::after {
  opacity: 1;
}
[data-theme="light"] .theme-switch-thumb {
  left: 35px;
}

/* ===== LIGHT MODE OVERRIDES ===== */
[data-theme="light"] nav.scrolled .nav-links a { color: rgba(0,0,0,0.6); }
[data-theme="light"] nav.scrolled .nav-links a:hover { color: var(--brand); }
[data-theme="light"] nav.scrolled .nav-links .btn-primary { color: white; }
/* Nav logo: show white by default, dark when light mode + scrolled */
.nav-logo .logo-dark { display: none; }
[data-theme="light"] nav.scrolled .nav-logo .logo-white { display: none; }
[data-theme="light"] nav.scrolled .nav-logo .logo-dark { display: block; }

[data-theme="light"] .module-detail-inner {
  background: var(--white);
  border-color: var(--card-border);
}

[data-theme="light"] .btn-outline {
  color: var(--brand);
  border-color: var(--brand);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(11,47,229,0.06);
  border-color: var(--brand);
}
/* Hero siempre tiene fondo oscuro: mantener btn-outline blanco */
[data-theme="light"] .hero .btn-outline {
  color: white;
  border-color: rgba(255,255,255,0.25);
}
[data-theme="light"] .hero .btn-outline:hover {
  border-color: var(--brand-light);
  background: rgba(11,47,229,0.1);
}

[data-theme="light"] .cta-card {
  background: transparent;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Dark sections (hero, benefits, demo, footer) stay dark in both modes */

/* ===== CHATBOT ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(11,47,229,0.4);
  z-index: 9999;
  transition: all 0.3s;
}
.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(11,47,229,0.5);
}
.chatbot-toggle svg { width: 26px; height: 26px; fill: white; }
.chatbot-toggle .icon-close { display: none; }
.chatbot-toggle.open .icon-chat { display: none; }
.chatbot-toggle.open .icon-close { display: block; }

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  background: var(--brand);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-header-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.chatbot-header-info h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
}
.chatbot-header-info span {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 320px;
}
.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  animation: fadeUp 0.3s ease-out;
}
.chat-msg.bot {
  background: var(--surface-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-msg a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}
.chat-msg.user a {
  color: rgba(255,255,255,0.9);
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 12px;
}
.chat-quick-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--white);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.2s;
}
.chat-quick-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.chatbot-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--card-border);
}
.chatbot-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  outline: none;
}
.chatbot-input input::placeholder {
  color: var(--text-muted);
}
.chatbot-input button {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chatbot-input button:hover {
  background: var(--brand-dark);
}
.chatbot-input button svg {
  width: 16px; height: 16px; fill: white;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .chatbot-window {
    right: 12px;
    left: 12px;
    bottom: 90px;
    width: auto;
    max-height: 70vh;
  }
  .chatbot-toggle { bottom: 20px; right: 20px; }
}
