/* ============================================================
   01-BASE.CSS
   Fuentes, reset, variables globales y utilidades compartidas
   (botones, títulos de sección, contenedor .shell, etc.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --background: 240 44% 4%;
  --foreground: 0 0% 100%;
  --card: 240 29% 9%;
  --card-foreground: 0 0% 100%;
  --popover: 240 29% 9%;
  --popover-foreground: 0 0% 100%;
  --primary: 263 83% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 29% 9%;
  --secondary-foreground: 0 0% 100%;
  --muted: 240 29% 9%;
  --muted-foreground: 220 13% 82%;
  --accent: 263 83% 58%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 70% 50%;
  --destructive-foreground: 0 0% 100%;
  --border: 250 20% 20%;
  --input: 250 20% 20%;
  --ring: 263 83% 58%;
  --radius: .6rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #070712;
  color: #fff;
  font-family: Manrope, sans-serif;
  overflow-x: hidden;
}

::selection { background: #7c3aed; color: white; }

a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
svg { display: block; }

/* Contenedor central */
.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.purple { color: #a78bfa; }

/* Bloques de sección */
.section { padding: 128px 0; }

.section-label, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.6;
}

.section h2, .landing h2 {
  font-size: clamp(35px, 4.6vw, 64px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.055em;
  margin: 22px 0 24px;
}

.section-intro {
  color: #a6a6b5;
  line-height: 1.85;
  max-width: 580px;
  font-size: 16px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 54px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > p {
  color: #a6a6b5;
  max-width: 295px;
  line-height: 1.8;
  margin-bottom: 7px;
}

/* Botones */
.btn {
  min-height: 54px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: linear-gradient(110deg, #6d28d9, #8b5cf6);
  color: white;
  box-shadow: 0 12px 35px #6d28d933;
}
.btn-primary:hover { box-shadow: 0 16px 40px #6d28d966; }

.btn-outline {
  border-color: #39374c;
  color: #fff;
  background: #ffffff08;
}
.btn-outline:hover { border-color: #8b5cf6; background: #8b5cf611; }

.btn-light { background: #fff; color: #171020; }
.btn-light:hover { background: #eee8ff; }

.text-link {
  color: #c4adff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: gap .2s;
}
.text-link:hover { gap: 23px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ===================== Scroll Animations ===================== */
.will-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s cubic-bezier(.2,.9,.3,1), transform .62s cubic-bezier(.2,.9,.3,1);
  will-change: opacity, transform;
}
.will-animate.fade-left { transform: translateX(-18px); }
.will-animate.fade-right { transform: translateX(18px); }
.will-animate.zoom-in { transform: scale(.98); }
.in-view { opacity: 1; transform: none; }

.will-animate[data-delay] { transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  .will-animate, .in-view { transition: none !important; transform: none !important; opacity: 1 !important; }
}
