/* ═══════════════════════════════════════════
   Colnubex — Apple-inspired One Pager
   Light/Dark via prefers-color-scheme
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Light theme (default) */
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(0, 0, 0, 0.06);
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --accent-1: #4F46E5;
  --accent-2: #06B6D4;
  --gradient: linear-gradient(135deg, #4F46E5, #06B6D4);
  --card-bg: rgba(245, 245, 247, 0.6);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(0, 0, 0, 0.08);
  --footer-bg: #F5F5F7;
  --quote-bg: rgba(79, 70, 229, 0.04);
  --dot-color: #4F46E5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1C;
    --bg-alt: #111827;
    --surface: rgba(17, 24, 39, 0.72);
    --surface-border: rgba(255, 255, 255, 0.06);
    --text: #F8FAFC;
    --text-secondary: #94A3B8;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(10, 15, 28, 0.82);
    --nav-border: rgba(255, 255, 255, 0.06);
    --footer-bg: #111827;
    --quote-bg: rgba(79, 70, 229, 0.08);
    --dot-color: #06B6D4;
  }
}

/* Manual dark theme override */
[data-theme="dark"] {
  --bg: #0A0F1C;
  --bg-alt: #111827;
  --surface: rgba(17, 24, 39, 0.72);
  --surface-border: rgba(255, 255, 255, 0.06);
  --text: #F8FAFC;
  --text-secondary: #94A3B8;
  --card-bg: rgba(30, 41, 59, 0.5);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 15, 28, 0.82);
  --nav-border: rgba(255, 255, 255, 0.06);
  --footer-bg: #111827;
  --quote-bg: rgba(79, 70, 229, 0.08);
  --dot-color: #06B6D4;
}

/* Manual light theme override */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(0, 0, 0, 0.06);
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --card-bg: rgba(245, 245, 247, 0.6);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(0, 0, 0, 0.08);
  --footer-bg: #F5F5F7;
  --quote-bg: rgba(79, 70, 229, 0.04);
  --dot-color: #4F46E5;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #4F46E5, #06B6D4, #8B5CF6, #4F46E5);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--nav-border);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav__logo-svg {
  height: 22px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 8px 20px !important;
  border-radius: 980px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600 !important;
  transition: opacity 0.3s !important;
}

.nav__cta:hover {
  opacity: 0.88;
  color: #fff !important;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Theme Toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent-1);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

/* Show/hide icons based on theme */
.theme-toggle__moon { display: none; }
.theme-toggle__sun  { display: block; }

[data-theme="dark"] .theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun  { display: none; }

/* When following system (no data-theme), use media query */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__sun  { display: none; }
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--card-border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

/* ═══ Background Variants ═══
   Switch by adding data-bg="orbs|grid|noise|topo|minimal" to <body>
   Default: grid
*/

.hero__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ── Variant: ORBS (Apple-style mesh) ── */
[data-bg="orbs"] .hero__bg::before,
[data-bg="orbs"] .hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
  animation: meshFloat 14s ease-in-out infinite alternate;
}
[data-bg="orbs"] .hero__bg::before {
  width: 55vw; height: 55vh; top: 5%; left: 10%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
}
[data-bg="orbs"] .hero__bg::after {
  width: 45vw; height: 45vh; top: 30%; right: 5%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  animation-name: meshFloat2; animation-delay: -5s;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-bg="orbs"] .hero__bg::before {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, transparent 70%);
  }
  :root:not([data-theme="light"]) [data-bg="orbs"] .hero__bg::after {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  }
}
[data-theme="dark"] [data-bg="orbs"] .hero__bg::before {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, transparent 70%);
}
[data-theme="dark"] [data-bg="orbs"] .hero__bg::after {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(5%, -8%) scale(1.1); }
  66%  { transform: translate(-4%, 5%) scale(0.95); }
  100% { transform: translate(2%, -3%) scale(1.05); }
}
@keyframes meshFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-6%, 6%) scale(1.12); }
  66%  { transform: translate(4%, -4%) scale(0.9); }
  100% { transform: translate(-2%, 3%) scale(1.08); }
}

/* ── Variant: GRID (blueprint / engineering precision) ── */
[data-bg="grid"] .hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--accent-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-1) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.04;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite alternate;
}
[data-bg="grid"] .hero__bg::after {
  content: '';
  position: absolute;
  width: 50vw; height: 50vh;
  top: 15%; left: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  animation: meshFloat 14s ease-in-out infinite alternate;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-bg="grid"] .hero__bg::before { opacity: 0.06; }
  :root:not([data-theme="light"]) [data-bg="grid"] .hero__bg::after {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
  }
}
[data-theme="dark"] [data-bg="grid"] .hero__bg::before { opacity: 0.06; }
[data-theme="dark"] [data-bg="grid"] .hero__bg::after {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
}

@keyframes gridPulse {
  0%   { opacity: 0.03; background-size: 64px 64px; }
  100% { opacity: 0.06; background-size: 68px 68px; }
}

/* ── Variant: NOISE (Linear/Vercel grain) ── */
[data-bg="noise"] .hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.035;
  animation: noiseShift 0.5s steps(3) infinite;
}
[data-bg="noise"] .hero__bg::after {
  content: '';
  position: absolute;
  width: 60vw; height: 50vh;
  top: 10%; left: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
  filter: blur(80px);
  animation: meshFloat 14s ease-in-out infinite alternate;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-bg="noise"] .hero__bg::before { opacity: 0.06; }
  :root:not([data-theme="light"]) [data-bg="noise"] .hero__bg::after {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
  }
}
[data-theme="dark"] [data-bg="noise"] .hero__bg::before { opacity: 0.06; }
[data-theme="dark"] [data-bg="noise"] .hero__bg::after {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
}

@keyframes noiseShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2px, 1px); }
  66%  { transform: translate(1px, -2px); }
  100% { transform: translate(0, 0); }
}

/* ── Variant: TOPO (topographic contour lines) ── */
[data-bg="topo"] .hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='600' height='600' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='600' y2='600'%3E%3Cstop offset='0' stop-color='%234F46E5'/%3E%3Cstop offset='1' stop-color='%2306B6D4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='1'%3E%3Cellipse cx='300' cy='300' rx='60' ry='40'/%3E%3Cellipse cx='300' cy='300' rx='110' ry='75'/%3E%3Cellipse cx='300' cy='300' rx='165' ry='115'/%3E%3Cellipse cx='300' cy='300' rx='225' ry='160'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='210'/%3E%3Cellipse cx='150' cy='450' rx='80' ry='55'/%3E%3Cellipse cx='150' cy='450' rx='140' ry='100'/%3E%3Cellipse cx='480' cy='150' rx='65' ry='45'/%3E%3Cellipse cx='480' cy='150' rx='120' ry='85'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
  background-position: center;
  opacity: 0.05;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 70%);
  animation: topoFloat 20s ease-in-out infinite alternate;
}
[data-bg="topo"] .hero__bg::after {
  content: '';
  position: absolute;
  width: 50vw; height: 50vh;
  top: 10%; left: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  filter: blur(80px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-bg="topo"] .hero__bg::before { opacity: 0.08; }
  :root:not([data-theme="light"]) [data-bg="topo"] .hero__bg::after {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  }
}
[data-theme="dark"] [data-bg="topo"] .hero__bg::before { opacity: 0.08; }
[data-theme="dark"] [data-bg="topo"] .hero__bg::after {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
}

@keyframes topoFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(3%, -2%) rotate(3deg) scale(1.05); }
}

/* ── Variant: HYBRID (subtle orbs, less Apple-like) ── */
[data-bg="hybrid"] .hero__bg::before,
[data-bg="hybrid"] .hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
[data-bg="hybrid"] .hero__bg::before {
  width: 45vw; height: 40vh;
  top: 5%; left: 10%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
  animation: hybridFloat 12s ease-in-out infinite;
}
[data-bg="hybrid"] .hero__bg::after {
  width: 35vw; height: 30vh;
  top: 30%; right: 8%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: hybridFloat2 14s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-bg="hybrid"] .hero__bg::before {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 70%);
  }
  :root:not([data-theme="light"]) [data-bg="hybrid"] .hero__bg::after {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  }
}
[data-theme="dark"] [data-bg="hybrid"] .hero__bg::before {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 70%);
}
[data-theme="dark"] [data-bg="hybrid"] .hero__bg::after {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}

@keyframes hybridFloat {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(15%, -18%) scale(1.12); }
  50%  { transform: translate(-8%, -6%) scale(0.92); }
  75%  { transform: translate(-14%, 15%) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes hybridFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-18%, 12%) scale(1.15); }
  50%  { transform: translate(8%, 8%) scale(0.88); }
  75%  { transform: translate(14%, -14%) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Variant: MINIMAL (subtle static gradient only) ── */
[data-bg="minimal"] .hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-bg="minimal"] .hero__bg::before {
    background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  }
}
[data-theme="dark"] [data-bg="minimal"] .hero__bg::before {
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Staggered hero entrance */
.hero__content .hero__eyebrow,
.hero__content .hero__title,
.hero__content .hero__subtitle,
.hero__content .hero__actions {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-enter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__content .hero__title    { animation-delay: 0.3s; }
.hero__content .hero__eyebrow  { animation-delay: 1.0s; }
.hero__content .hero__subtitle { animation-delay: 2.2s; }
.hero__content .hero__actions  { animation-delay: 3.2s; }

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 14px;
  position: relative;
  opacity: 0.4;
}

.hero__scroll-hint span::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 4px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ── Ecosystem Pills ── */
.ecosystem {
  padding: 80px 0;
  overflow: hidden;
}

.eco-track {
  position: relative;
  width: 100%;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.eco-track__inner {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.eco-track:hover .eco-track__inner {
  animation-play-state: paused;
}

.eco-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 980px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
  user-select: none;
}

.eco-pill:hover {
  color: var(--text);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

.eco-pill--more {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.eco-pill--more:hover {
  color: #fff;
  opacity: 0.88;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Sections ── */
.section {
  padding: 140px 0;
  position: relative;
}

.section + .section::before,
.stats-section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 30%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* No separator on first section after hero */
.hero + .section::before,
.hero + .ecosystem::before {
  display: none;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
  text-align: center;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: 40px 32px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(79, 70, 229, 0.15), 0 0 60px rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.service-card__label {
  font-size: 0.85rem;
  color: var(--accent-1);
  font-weight: 600;
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ── Pillars ── */
.pilares {
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  text-align: center;
  padding: 48px 32px;
}

.pillar__number {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}

.pillar__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pillar__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Value Proposition ── */
.value-prop__card {
  background: var(--quote-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.value-prop__quote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Modelo (Timeline) ── */
.modelo-steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.modelo-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  position: relative;
}

.modelo-step__line {
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}

.modelo-step:first-child .modelo-step__line {
  top: 50%;
}

.modelo-step:last-child .modelo-step__line {
  bottom: 50%;
}

.modelo-step__dot {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--dot-color);
  position: relative;
  z-index: 1;
  transition: background 0.3s, transform 0.3s;
}

.modelo-step:hover .modelo-step__dot {
  background: var(--dot-color);
  transform: scale(1.15);
}

.modelo-step__content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.modelo-step__content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ── Contacto ── */
.contacto {
}

.contacto__form {
  max-width: 600px;
  margin: 0 auto;
}

.tally-placeholder {
  text-align: center;
  padding: 64px 32px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 2px dashed var(--card-border);
}

.tally-placeholder p:first-child {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tally-placeholder__hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.tally-placeholder__hint a {
  color: var(--accent-1);
}

/* ── Footer ── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--card-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Stats ── */
.stats-section {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat__suffix {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* (wave dividers removed — using line separators on .section::before) */

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }

.pillars-grid .pillar:nth-child(2) { transition-delay: 0.1s; }
.pillars-grid .pillar:nth-child(3) { transition-delay: 0.2s; }

.modelo-step:nth-child(2) { transition-delay: 0.1s; }
.modelo-step:nth-child(3) { transition-delay: 0.2s; }
.modelo-step:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 998;
    animation: menuFadeIn 0.3s ease;
  }

  @keyframes menuFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav__links.open a {
    font-size: 1.5rem;
    color: var(--text);
  }

  /* Burger always above the overlay */
  .nav__burger {
    display: flex;
    position: relative;
    z-index: 999;
  }

  .nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Keep nav above overlay when menu is open */
  .nav:has(.nav__links.open) {
    z-index: 999;
  }

  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid  { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }

  .section { padding: 100px 0; }

  .value-prop__card { padding: 40px 24px; }

  .hero__title { font-size: 2.25rem; }

  .btn { padding: 12px 24px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .service-card { padding: 28px 20px; }
  .pillar { padding: 32px 16px; }
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

/* Entrance animation */
.whatsapp-fab {
  animation: fabIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s both;
}

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

/* ── Selection ── */
::selection {
  background: rgba(79, 70, 229, 0.2);
  color: var(--text);
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
