/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand colors */
  --dark:        #0F1221;
  --dark-2:      #161929;
  --dark-3:      #1D2135;
  --purple:      #A788FA;
  --purple-dim:  rgba(167, 136, 250, 0.15);
  --purple-glow: rgba(167, 136, 250, 0.35);
  --lila-light:  #EDE6FE;
  --gray-light:  #F5F6F8;
  --white:       #FFFFFF;
  --ink:         #1A1C2E;
  --ink-soft:    #3D4166;
  --ink-mute:    #6B6E8A;

  /* Typography */
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --gutter:  clamp(1.25rem, 4vw, 2rem);
  --section: clamp(5rem, 10vw, 8rem);

  /* Container */
  --max-w: 1160px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4, h5 {
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
}
::selection { background: var(--purple); color: var(--white); }
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--white); color: var(--dark);
  z-index: 9999; border-radius: var(--r-sm); font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================================
   4. Custom cursor
   ============================================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(167, 136, 250, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width .2s var(--ease-out), height .2s var(--ease-out), border-color .2s;
}
.cursor.is-hovering .cursor-ring {
  width: 48px; height: 48px;
  border-color: var(--purple);
  background: var(--purple-dim);
}
@media (hover: none) {
  .cursor { display: none; }
}

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease-out), backdrop-filter .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(15, 18, 33, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(167,136,250,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}
.logo-mark--sm { width: 32px; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-brand-nexora {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--white);
}
.nav-brand-energy {
  font-size: .55rem;
  font-weight: 300;
  letter-spacing: .22em;
  color: var(--purple);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.75);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: .5rem 1.25rem;
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 100px;
  font-weight: 500 !important;
  font-size: .82rem !important;
  transition: background .2s, transform .2s var(--ease-bounce) !important;
}
.nav-cta:hover {
  background: #b8a0fb;
  transform: translateY(-1px);
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 1.5rem;
  background: rgba(15,18,33,0.97);
  border-top: 1px solid rgba(167,136,250,0.1);
}
.nav-mobile.is-open {
  display: flex;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: .2rem; }
.nav-mobile a {
  display: block;
  padding: .75rem 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .03em;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--purple); }

/* =============================================================
   6. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: transform .25s var(--ease-bounce), box-shadow .25s, background .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(167,136,250,0.3);
}
.btn-primary:hover {
  background: #b8a0fb;
  box-shadow: 0 8px 32px rgba(167,136,250,0.45);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(167,136,250,0.3);
}

.btn-full { width: 100%; }

/* Form submit states */
.btn-submit .btn-sending-text { display: none; }
.btn-submit.is-sending .btn-default-text { display: none; }
.btn-submit.is-sending .btn-sending-text { display: block; }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* WhatsApp button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.5rem;
  background: #25D366;
  color: var(--white);
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
}
.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.35);
}

/* =============================================================
   7. Section shared
   ============================================================= */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header--light { /* inherits center */ }

.section-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .85rem;
}
.section-kicker--light { color: rgba(167,136,250,0.8); }

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-header--light h2 { color: var(--white); }

.section-sub {
  font-size: .95rem;
  color: var(--ink-mute);
  line-height: 1.7;
}
.section-sub--light { color: rgba(255,255,255,0.6); }

/* =============================================================
   8. Scroll reveal
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* Safety: elements with data-split must never be invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   9. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Canvas particles */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-orb-1 {
  width: clamp(400px, 60vw, 800px);
  height: clamp(400px, 60vw, 800px);
  background: radial-gradient(circle, rgba(167,136,250,0.18) 0%, transparent 70%);
  top: -20%;
  right: -15%;
  animation: orbDrift1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: clamp(300px, 40vw, 560px);
  height: clamp(300px, 40vw, 560px);
  background: radial-gradient(circle, rgba(167,136,250,0.12) 0%, transparent 70%);
  bottom: 10%;
  left: -10%;
  animation: orbDrift2 22s ease-in-out infinite;
}
.hero-orb-3 {
  width: clamp(200px, 25vw, 360px);
  height: clamp(200px, 25vw, 360px);
  background: radial-gradient(circle, rgba(167,136,250,0.22) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: orbDrift3 15s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-3%, 4%) scale(1.05); }
  66%       { transform: translate(4%, -3%) scale(0.97); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(5%, -4%) scale(1.08); }
  70%       { transform: translate(-2%, 6%) scale(0.95); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%       { transform: translate(3%, 3%) scale(1.1) rotate(180deg); }
}

/* Mouse-reactive glow */
.hero-mouse-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,136,250,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transition: left .6s var(--ease-soft), top .6s var(--ease-soft);
  will-change: left, top;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  padding-block: calc(72px + 3rem) 5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero-green-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .9rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #4ade80;
  margin-bottom: 1rem;
  animation: fadeUp .8s var(--ease-out) .1s both;
}
.hero-green-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

.hero-kicker {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(167,136,250,0.7);
  margin-bottom: 1.25rem;
  animation: fadeUp .8s var(--ease-out) .2s both;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.25rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 16ch;
  animation: fadeUp .8s var(--ease-out) .35s both;
}
.hero-title em {
  font-style: italic;
  color: var(--purple);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.6);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  animation: fadeUp .8s var(--ease-out) .5s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  animation: fadeUp .8s var(--ease-out) .65s both;
  margin-bottom: 3.5rem;
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  animation: fadeUp .8s var(--ease-out) .8s both;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.hero-stat-num {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}
.hero-stat-label {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  align-self: center;
}

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  z-index: 5;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

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

/* =============================================================
   10. Problem section
   ============================================================= */
.problem {
  background: var(--gray-light);
  padding-block: var(--section);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.problem-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid rgba(15,18,33,0.06);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,18,33,0.08);
}
.problem-icon {
  width: 52px; height: 52px;
  background: var(--lila-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.problem-icon svg { width: 28px; height: 28px; }
.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .65rem;
  line-height: 1.25;
}
.problem-card p {
  font-size: .9rem;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* =============================================================
   11. Savings section
   ============================================================= */
.savings {
  background: var(--dark);
  padding-block: var(--section);
  position: relative;
  overflow: hidden;
}
.savings-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.savings-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,136,250,0.13) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: orbDrift1 20s ease-in-out infinite;
}
.savings-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(167,136,250,0.09) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  animation: orbDrift2 24s ease-in-out infinite;
}
.savings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.savings-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-xl);
  padding: 2.25rem 2.5rem;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.savings-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,136,250,0.3);
  box-shadow: 0 12px 40px rgba(167,136,250,0.15);
}
.savings-card--highlight {
  background: var(--purple);
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(167,136,250,0.3);
}
.savings-card--highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(167,136,250,0.45);
  border-color: transparent;
}
.savings-card-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.25rem;
}
.savings-card--highlight .savings-card-label {
  color: rgba(15,18,33,0.7);
}
.savings-card-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.savings-amount {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin-bottom: .5rem;
  line-height: 1;
}
.savings-num {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1;
}
.savings-card--highlight .savings-num { color: var(--dark); }
.savings-currency {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.02em;
}
.savings-card--highlight .savings-currency { color: var(--dark); }
.savings-period {
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-left: .15rem;
}
.savings-card--highlight .savings-period { color: rgba(15,18,33,0.5); }
.savings-desc {
  font-size: .85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.75rem;
  font-weight: 400;
}
.savings-card--highlight .savings-desc { color: rgba(15,18,33,0.55); }
.savings-breakdown {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.savings-breakdown--dark {
  border-color: rgba(15,18,33,0.12);
}
.savings-breakdown li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
}
.savings-card--highlight .savings-breakdown li { color: rgba(15,18,33,0.65); }
.savings-breakdown li strong { color: var(--white); font-weight: 600; }
.savings-card--highlight .savings-breakdown li strong { color: var(--dark); }
.savings-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}
.savings-dot--dark { background: var(--dark); opacity: .5; }
.savings-disclaimer {
  text-align: center;
  font-size: .72rem;
  color: rgba(255,255,255,0.25);
  max-width: 600px;
  margin: 2rem auto 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* =============================================================
   12. Steps
   ============================================================= */
.steps {
  background: var(--white);
  padding-block: var(--section);
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  position: relative;
}
.step-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--lila-light);
  letter-spacing: -.04em;
  line-height: 1;
  padding-top: .25rem;
  transition: color .3s;
}
.step:hover .step-num { color: var(--purple); }
.step-body {
  padding-bottom: 3rem;
}
.step-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .65rem;
  line-height: 1.25;
}
.step-body p {
  font-size: .92rem;
  color: var(--ink-mute);
  line-height: 1.72;
  max-width: 52ch;
}
.step-line {
  position: absolute;
  left: 36px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--purple) 0%, var(--lila-light) 100%);
  opacity: .35;
}

/* =============================================================
   13. Managed — "Lo gestionamos todo"
   ============================================================= */
.managed {
  background: var(--dark);
  padding-block: var(--section);
  overflow: hidden;
}
.managed-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.managed-text .section-kicker { color: rgba(167,136,250,0.75); }
.managed-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.managed-text h2 em {
  font-style: italic;
  color: var(--purple);
  font-weight: 400;
}
.managed-text p {
  font-size: .95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 2rem;
}
.managed-tasks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.managed-task {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  transition: border-color .25s, background .25s;
}
.managed-task:hover {
  border-color: rgba(167,136,250,0.3);
  background: rgba(167,136,250,0.06);
}
.managed-task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(167,136,250,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}
.managed-task-icon svg { width: 20px; height: 20px; }
.managed-task div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.managed-task strong {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.managed-task span {
  font-size: .82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}

/* =============================================================
   15. Services
   ============================================================= */
.services {
  background: var(--gray-light);
  padding-block: var(--section);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 920px;
  margin-inline: auto;
}
.service-card {
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.service-card:hover { transform: translateY(-5px); }

.service-card--dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(15,18,33,0.18);
}
.service-card--dark:hover {
  box-shadow: 0 12px 48px rgba(167,136,250,0.25), 0 4px 24px rgba(15,18,33,0.2);
}

.service-card--light {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--lila-light);
  box-shadow: 0 2px 16px rgba(15,18,33,0.05);
}
.service-card--light:hover {
  border-color: var(--purple);
  box-shadow: 0 12px 40px rgba(167,136,250,0.18), 0 2px 16px rgba(15,18,33,0.05);
}

/* Card glow overlay */
.service-card-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(167,136,250,0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  transition: opacity .3s;
}
.service-card--dark:hover .service-card-glow { opacity: 1.5; }

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  background: rgba(167,136,250,0.15);
  border: 1px solid rgba(167,136,250,0.3);
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--purple);
  margin-bottom: 1.25rem;
}
.service-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.service-badge--purple {
  background: var(--lila-light);
  border-color: rgba(167,136,250,0.25);
}

.service-card h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  margin-bottom: .5rem;
}
.service-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.service-card--light .service-tagline { color: var(--ink-mute); }

.service-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 2rem;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.service-list--dark li { color: var(--ink-soft); }
.check {
  color: var(--purple);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05em;
}
.check--purple { color: var(--purple); }
.check--green  { color: #4ade80; }

/* =============================================================
   14. Comparison / Why Delta
   ============================================================= */
.comparison {
  background: var(--dark);
  padding-block: var(--section);
  color: var(--white);
}
.comparison-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}
.comparison-col {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.comparison-col--bad {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.comparison-col--good {
  background: rgba(167,136,250,0.07);
  border: 1px solid rgba(167,136,250,0.2);
}
.comparison-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.comparison-header--good {
  border-color: rgba(167,136,250,0.15);
}
.comparison-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}
.comparison-logo-text {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.comp-logo-n {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}
.comp-logo-e {
  font-size: .7em;
  color: var(--purple);
  font-weight: 300;
}
.comp-logo-svg {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}
.comp-logo-name {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--white);
}
.comparison-list {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.comp-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .9rem 0;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}
.comp-item:last-child { border-bottom: none; }
.comp-item--bad { color: rgba(255,255,255,0.45); }
.comp-item--good { color: rgba(255,255,255,0.85); }
.comp-icon {
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1em;
}
.comp-item--bad .comp-icon { color: rgba(255,100,100,0.5); }
.comp-icon--good { color: var(--purple); }

/* =============================================================
   17. Values
   ============================================================= */
.values {
  background: var(--white);
  padding-block: var(--section);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.value-card {
  background: var(--gray-light);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  border: 1px solid transparent;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,136,250,0.25);
  box-shadow: 0 8px 32px rgba(167,136,250,0.1);
}
.value-icon {
  width: 56px; height: 56px;
  background: var(--lila-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.value-icon svg { width: 30px; height: 30px; }
.value-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .5rem;
  line-height: 1.2;
}
.value-card p {
  font-size: .85rem;
  color: var(--ink-mute);
  line-height: 1.65;
}

/* =============================================================
   18. FAQ
   ============================================================= */
.faq {
  background: var(--gray-light);
  padding-block: var(--section);
}
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid rgba(15, 18, 33, 0.08);
}
.faq-item:first-child {
  border-top: 1px solid rgba(15, 18, 33, 0.08);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.35rem 0;
  text-align: left;
  font-size: clamp(.9rem, 1.5vw, 1.02rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--purple); }
.faq-q[aria-expanded="true"] { color: var(--purple); }

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lila-light);
  transition: background .25s, transform .35s var(--ease-out);
}
.faq-icon svg {
  width: 14px;
  height: 14px;
  color: var(--purple);
  display: block;
  transition: transform .35s var(--ease-out);
}
.faq-q[aria-expanded="true"] .faq-icon {
  background: var(--purple);
}
.faq-q[aria-expanded="true"] .faq-icon svg {
  color: var(--white);
  transform: rotate(180deg);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease-out), opacity .35s var(--ease-out);
  opacity: 0;
}
.faq-a.is-open {
  opacity: 1;
}
.faq-a p {
  padding-bottom: 1.5rem;
  font-size: .92rem;
  color: var(--ink-mute);
  line-height: 1.75;
  max-width: 65ch;
}

/* =============================================================
   19. Contact section
   ============================================================= */
.contact-section {
  background: var(--dark);
  padding-block: var(--section);
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,136,250,0.14) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: orbDrift1 20s ease-in-out infinite;
}
.cta-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,136,250,0.1) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: orbDrift2 25s ease-in-out infinite;
}
.cta-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
}

/* Form */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-xl);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-field:last-child { margin-bottom: 0; }
.form-field label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.6);
}
.form-optional {
  font-weight: 400;
  color: rgba(255,255,255,0.3);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  font: 400 .9rem/1.4 var(--sans);
  color: var(--white);
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(167,136,250,0.06);
}
.form-field select {
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='rgba(167,136,250,0.6)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}
.form-field select option { background: var(--dark-2); }
.form-field textarea { resize: vertical; min-height: 90px; }

/* File upload */
.form-file-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(167,136,250,0.3);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .85rem;
  color: rgba(167,136,250,0.8);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-file-label:hover {
  border-color: var(--purple);
  background: rgba(167,136,250,0.06);
  color: var(--purple);
}
.form-file-label svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-file-input {
  position: absolute;
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  overflow: hidden;
}
.form-file-name {
  font-size: .78rem;
  color: rgba(167,136,250,0.7);
  margin-top: .35rem;
  display: block;
}
.form-pledge {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .85rem;
  margin-top: .9rem;
  justify-content: center;
}
.form-pledge-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: .02em;
}
.form-pledge-item svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
}
.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.25rem;
  background: rgba(167,136,250,0.1);
  border: 1px solid rgba(167,136,250,0.25);
  border-radius: var(--r-md);
  color: var(--white);
  font-size: .9rem;
  text-align: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.form-success svg { width: 24px; height: 24px; flex-shrink: 0; }
.form-success.is-visible { display: flex; }

.form-bill-hint {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.form-bill-hint svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: .15em; }
.form-bill-hint a { color: var(--purple); text-decoration: none; }
.form-bill-hint a:hover { text-decoration: underline; }

.form-error-msg:not(:empty) {
  color: #f87171;
  font-size: .82rem;
  margin-bottom: .75rem;
  padding: .6rem .9rem;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: var(--r-sm);
}

/* Email contact button */
.btn-email-contact {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.5rem;
  background: rgba(167,136,250,0.1);
  border: 1.5px solid rgba(167,136,250,0.35);
  color: var(--purple);
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: transform .25s var(--ease-bounce), box-shadow .25s, background .2s;
  text-decoration: none;
}
.btn-email-contact svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-email-contact:hover {
  transform: translateY(-2px);
  background: rgba(167,136,250,0.18);
  box-shadow: 0 8px 28px rgba(167,136,250,0.25);
  border-color: var(--purple);
}

/* Contact aside */
.contact-aside-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-xl);
  padding: 2rem;
  height: 100%;
}
.contact-aside-inner h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .65rem;
  line-height: 1.3;
}
.contact-aside-inner > p {
  font-size: .9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}
.contact-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
.contact-feature svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================================
   20. Footer
   ============================================================= */
.footer {
  background: #090D1A;
  color: var(--white);
  padding-top: 3.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.footer-brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.footer-brand-nexora {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--white);
}
.footer-brand-energy {
  font-size: .55rem;
  font-weight: 300;
  letter-spacing: .22em;
  color: var(--purple);
}
.footer-tagline {
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .16em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav-col strong {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: .2rem;
}
.footer-nav-col a {
  font-size: .85rem;
  color: rgba(255,255,255,0.55);
  transition: color .2s;
  line-height: 1.5;
}
.footer-nav-col a:hover { color: var(--purple); }
.footer-bottom {
  padding-block: 1.25rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  text-align: center;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,0.3);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: .78rem;
  color: rgba(255,255,255,0.3);
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* =============================================================
   21. Responsive — tablet (min 720px)
   ============================================================= */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }

  .savings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .managed-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
  }
  .step {
    grid-template-columns: 1fr;
    gap: .75rem 0;
  }
  .step-line {
    display: none;
  }
  .step-body { padding-bottom: 0; }
  .step-num {
    font-size: 3.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-table {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-brand { max-width: 220px; }
  .footer-nav {
    flex-direction: row;
    gap: 3rem;
  }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =============================================================
   22. Responsive — desktop (min 960px)
   ============================================================= */
@media (min-width: 960px) {
  .problem-card {
    padding: 2.25rem;
  }
  .service-card {
    padding: 3rem;
  }
}

/* =============================================================
   23. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
  .cta-orb  { animation: none; }
  .hero-canvas { display: none; }
  .hero-mouse-glow { transition: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
