/* ==========================================================================
   LEGAMITY - OBSIDIAN & ELECTRIC VIOLET + CRIMSON ACCENT DESIGN SYSTEM
   ========================================================================== */

@import url('/fonts/fonts.css'); /* fuentes alojadas en el propio servidor (sin transferencia de IP a Google) */

:root {
  /* Core Obsidian Dark Palette */
  --bg-obsidian: #050608;
  --bg-surface: #0a0d14;
  --bg-card: rgba(14, 17, 26, 0.82);
  --bg-card-hover: rgba(22, 26, 40, 0.95);
  
  /* Primary & Accent Colors: Violet + Crimson */
  --primary-violet: #8b5cf6;
  /* aliases used by several pages/components (previously undefined) */
  --primary-cyan: #a78bfa;
  --primary-blue: #f43f5e;
  --accent-emerald: #34d399;
  --primary-violet-deep: #6d28d9;
  --primary-violet-glow: rgba(139, 92, 246, 0.35);
  
  --accent-red: #ff0055;
  --accent-crimson: #f43f5e;
  --accent-red-glow: rgba(255, 0, 85, 0.35);

  --gradient-main: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #f43f5e 100%);
  --gradient-red: linear-gradient(135deg, #f43f5e 0%, #ff0055 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(255, 0, 85, 0.25));

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(139, 92, 246, 0.45);

  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dimensions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-glow-violet: 0 0 35px rgba(139, 92, 246, 0.3);
  --shadow-glow-red: 0 0 35px rgba(255, 0, 85, 0.3);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.7);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 2. AMBIENT GLOW & TECH PARTICLES BACKGROUND */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow-violet {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(109, 40, 217, 0.08) 45%, transparent 75%);
  filter: blur(90px);
}

.ambient-glow-red {
  position: absolute;
  top: 30%;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 85, 0.12) 0%, transparent 70%);
  filter: blur(100px);
}

.ambient-grid {
  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: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #c084fc 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-red {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. LAYOUT & CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.section-spacing {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem) auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.15rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.section-title {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* 5. BUTTONS (VIOLET + CRIMSON ACCENT) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  outline: none;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--gradient-main);
  color: #ffffff;
  box-shadow: 0 4px 22px rgba(139, 92, 246, 0.4), 0 0 35px rgba(244, 63, 94, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6), 0 0 45px rgba(244, 63, 94, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
  border-color: rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--primary-violet);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.btn-accent {
  background: var(--gradient-red);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 0, 85, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 85, 0.6);
}

.btn-block {
  width: 100%;
}

/* 6. HEADER & NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-pure);
}

.logo-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-crimson);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Desktop navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-pure);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-violet);
  box-shadow: 0 0 10px var(--primary-violet);
}

.nav-cta-desktop {
  display: none;
}

@media (min-width: 960px) {
  .nav-cta-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

/* Mobile Menu Button */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  cursor: pointer;
  font-size: 1.35rem;
  transition: all var(--transition-fast);
}

@media (min-width: 960px) {
  .menu-btn {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  background: rgba(5, 6, 8, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 99;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:active, .mobile-nav-link.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

/* 7. HERO SECTION (IMPACTANTE & FUTURISTA) */
.hero-section {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.35rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-full);
  color: #c084fc;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
}

.hero-title {
  font-size: clamp(2.25rem, 6.5vw, 4.35rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto 2.75rem auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
  }
}

/* Hero Tech Graphic / Visual Frame */
.hero-visual-container {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--gradient-card-border);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.9), var(--shadow-glow-violet);
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hero-visual-frame {
  background: rgba(10, 13, 22, 0.96);
  border-radius: calc(var(--radius-xl) - 1px);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(5, 6, 8, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-window-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-dot-red {
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
}

.hero-dot-violet {
  background: var(--primary-violet);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.hero-dot-green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.hero-dashboard-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-dashboard-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c084fc;
}

.hero-status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-dashboard-body {
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-telemetry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.hero-telemetry-card {
  background: rgba(14, 17, 26, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.hero-telemetry-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(22, 26, 40, 0.85);
  transform: translateY(-2px);
}

.hero-telemetry-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}

.badge-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-red {
  background: rgba(255, 0, 85, 0.15);
  color: #fda4af;
  border: 1px solid rgba(255, 0, 85, 0.3);
}

.hero-telemetry-metric {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.15;
}

.hero-telemetry-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-pipeline-row {
  background: rgba(5, 6, 8, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.pipeline-tag {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.pipeline-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--text-pure);
  font-weight: 600;
}

.pipeline-arrow {
  color: var(--accent-red);
  font-weight: 800;
}

.hero-tech-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-tech-chip {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 8. SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.85rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-violet), var(--accent-red), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow-violet);
}

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

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.service-name {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c084fc;
  background: rgba(139, 92, 246, 0.08);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* 9. SECTION "¿QUÉ NECESITA TU NEGOCIO?" */
.need-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

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

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

.need-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.need-item:hover, .need-item:active {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary-violet);
  transform: translateY(-2px);
  color: var(--text-pure);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.need-icon {
  font-size: 2.15rem;
  flex-shrink: 0;
}

.need-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
}

.need-arrow {
  margin-left: auto;
  color: var(--accent-crimson);
  font-size: 1.35rem;
  transition: transform var(--transition-fast);
}

.need-item:hover .need-arrow {
  transform: translateX(4px);
}

/* 10. HOW IT WORKS (3 STEPS) */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-violet), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-title {
  font-size: 1.4rem;
}

.step-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 11. BENEFITS & RESULTS */
.benefits-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  justify-content: center;
  align-items: center;
}

.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text-pure);
  transition: all var(--transition-fast);
}

.benefit-badge:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}

/* 12. FORM SECTION */
.form-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-xl);
  padding: clamp(1.85rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-card), 0 0 35px rgba(139, 92, 246, 0.15);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-violet);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-select option {
  background: #0d111a;
  color: #fff;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* 13. FOOTER */
.site-footer {
  background: #030406;
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-brand p {
  max-width: 360px;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-pure);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #c084fc;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== Chat widget messages (chat.js) ===== */
.chat-msg { max-width: 85%; padding: 0.9rem 1.2rem; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg-user { align-self: flex-end; background: var(--gradient-main); color: #fff; font-weight: 600; }
.chat-msg-assistant { align-self: flex-start; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #fff; }
.chat-msg-typing { align-self: flex-start; background: rgba(255,255,255,0.04); color: var(--text-muted); }
.chat-msg-hint { border-color: rgba(0,242,254,0.35); }

/* ===== Form consent + honeypot ===== */
.consent-label { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; color: var(--text-muted); cursor: pointer; }
.consent-label input { margin-top: 0.2rem; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--primary-cyan); }
.consent-label a { color: var(--primary-cyan); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Legal pages ===== */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; margin: 0.5rem 0 1rem; }
.legal a { color: var(--primary-cyan); text-decoration: underline; }
.legal .todo { background: rgba(255, 200, 0, 0.12); border: 1px dashed rgba(255, 200, 0, 0.6); padding: 0 0.3rem; border-radius: 4px; color: #ffd866; }

/* ===== Motion: reveal, floating, intro video ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.intro-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.intro-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.intro-points li { position: relative; padding-left: 1.8rem; color: var(--text-muted); line-height: 1.5; }
.intro-points li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-cyan); font-weight: 700; }
.intro-video { display: flex; justify-content: center; }
.phone-frame { position: relative; width: min(100%, 320px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; border: 1px solid var(--border-subtle); background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(139,92,246,.25); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 0 rgba(139,92,246,.55); } 50% { box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 14px rgba(139,92,246,0); } }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

/* hero: moving ambient glows and drifting telemetry cards */
.ambient-glow-1 { animation: drift 18s ease-in-out infinite alternate; }
.ambient-glow-2 { animation: drift 24s ease-in-out infinite alternate-reverse; }
.hero-telemetry-card { animation: floaty 7s ease-in-out infinite; }
.hero-telemetry-card:nth-child(2) { animation-delay: -2.3s; }
.hero-telemetry-card:nth-child(3) { animation-delay: -4.6s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-frame, .ambient-glow-1, .ambient-glow-2, .hero-telemetry-card { animation: none; }
}

/* ===== Photo slideshow ===== */
.photo-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; transform: scale(1); }
.photo-slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
.photo-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.photo-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .3s; }
.photo-dots span.is-active { width: 22px; border-radius: 6px; background: #fff; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .photo-slide.is-active { animation: none; } .photo-slide { transition: none; } }

/* ===== Privacy notice on entry ===== */
.privacy-notice { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between;
  max-width: 880px; margin: 0 auto; padding: .9rem 1.2rem; background: rgba(14,17,26,.96); border: 1px solid var(--border-card-hover); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.6); animation: slideUp .5s ease both; }
.privacy-notice p { margin: 0; flex: 1 1 320px; font-size: .88rem; line-height: 1.5; color: var(--text-main); }
.privacy-notice a { color: var(--primary-violet); text-decoration: underline; }
.privacy-notice .btn { min-height: 40px; padding: .5rem 1.3rem; font-size: .9rem; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .privacy-notice { animation: none; } }
