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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
/* ── DARK theme (default) ── */
:root,
[data-theme="dark"] {
  /* Backgrounds */
  --color-bg:            #0A0A0C;
  --color-bg-alt:        #131316;
  --color-bg-card:       #1A1A1F;
  --color-bg-overlay:    rgba(255, 90, 31, 0.05);

  /* Text */
  --color-text:          #FFFFFF;
  --color-text-muted:    #A8A8B0;
  --color-text-dim:      #6B6B72;

  /* Brand orange — never changes */
  --color-primary:       #FF5A1F;
  --color-primary-hover: #FF7A3F;
  --color-primary-soft:  rgba(255, 90, 31, 0.15);
  --color-primary-glow:  rgba(255, 90, 31, 0.40);

  /* Borders */
  --color-border:        rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-border-orange: rgba(255, 90, 31, 0.30);

  /* Component-specific (scrolled header, menus, glass cards) */
  --color-header-scrolled: rgba(10, 10, 12, 0.85);
  --color-menu-bg:          rgba(10, 10, 12, 0.96);
  --color-bg-glass:         rgba(26, 26, 31, 0.60);
  --color-hover-overlay:    rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container:     1280px;
  --container-pad: 32px;

  /* Radii */
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Duration scale */
  --duration-fast:   150ms;
  --duration-base:   300ms;
  --duration-slow:   500ms;
}

/* ── LIGHT theme ── */
[data-theme="light"] {
  --color-bg:            #F5F3F0;
  --color-bg-alt:        #EAE7E2;
  --color-bg-card:       #FFFFFF;
  --color-bg-overlay:    rgba(255, 90, 31, 0.04);

  --color-text:          #1A1A1F;
  --color-text-muted:    #5A5A62;
  --color-text-dim:      #909096;

  --color-primary:       #FF5A1F;
  --color-primary-hover: #E04A10;
  --color-primary-soft:  rgba(255, 90, 31, 0.10);
  --color-primary-glow:  rgba(255, 90, 31, 0.20);

  --color-border:        rgba(0, 0, 0, 0.09);
  --color-border-strong: rgba(0, 0, 0, 0.16);
  --color-border-orange: rgba(255, 90, 31, 0.22);

  --color-header-scrolled: rgba(240, 238, 234, 0.92);
  --color-menu-bg:          rgba(238, 235, 230, 0.98);
  --color-bg-glass:         rgba(255, 255, 255, 0.75);
  --color-hover-overlay:    rgba(0, 0, 0, 0.04);
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   GLOBAL CONTAINER (mobile-first)
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
}

/* ============================================================
   SCROLL ANIMATION SYSTEM — [data-animate]
   ============================================================ */
[data-animate] {
  opacity: 0;
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

[data-animate="fade-up"]   { transform: translateY(24px); }
[data-animate="fade-in"]   { /* opacity only */ }
[data-animate="scale-in"]  { transform: scale(0.95); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate-delay="100"] { transition-delay: 100ms; }
[data-animate-delay="200"] { transition-delay: 200ms; }
[data-animate-delay="300"] { transition-delay: 300ms; }
[data-animate-delay="400"] { transition-delay: 400ms; }
[data-animate-delay="150"] { transition-delay: 150ms; }
[data-animate-delay="500"] { transition-delay: 500ms; }

[data-animate="slide-left"]  { transform: translateX(-32px); }
[data-animate="slide-right"] { transform: translateX(32px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 200ms,
    border-color 200ms,
    color 200ms;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

/* Arrow shifts right on hover for all buttons */
.btn svg {
  flex-shrink: 0;
  transition: transform 220ms var(--ease-out);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* Primary — solid orange */
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.35);
  position: relative;
  overflow: hidden;
}

/* Shine sweep passes left→right on hover */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 600ms var(--ease-out);
  pointer-events: none;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 40px rgba(255, 90, 31, 0.55);
}
.btn--primary:hover::before { left: 140%; }
.btn--primary:hover svg    { transform: translateX(4px); }
.btn--primary:active       { transform: translateY(0) scale(1); }

/* Ghost — transparent outline */
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
  padding: 17.5px 32px; /* compensate for border */
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* Header outline button */
.btn--outline-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-text);
  padding: 11.5px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 200ms, background 200ms;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn--outline-header:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* Theme toggle (sun/moon) */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 200ms, background 200ms, color 200ms;
}
.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

/* Show sun in dark → click goes to light; moon in light → click goes to dark */
[data-theme="dark"]  .theme-toggle__sun  { display: block; }
[data-theme="dark"]  .theme-toggle__moon { display: none;  }
[data-theme="light"] .theme-toggle__sun  { display: none;  }
[data-theme="light"] .theme-toggle__moon { display: block; }

/* Play icon circle for ghost button */
.btn__play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 2px; /* optical centering of triangle */
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition:
    padding 300ms var(--ease-smooth),
    background 300ms var(--ease-smooth),
    border-color 300ms var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 16px 0;
  background: var(--color-header-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}

.header__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header__logo img {
  height: 40px;
  width: auto;
  transition: height 300ms var(--ease-smooth);
}

.header.scrolled .header__logo img {
  height: 32px;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__nav-link {
  position: relative;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 200ms;
}
.header__nav-link:hover {
  color: var(--color-primary);
}
.header__nav-link--active {
  font-weight: 600;
}
.header__nav-link--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background 200ms;
}
.hamburger:hover { background: var(--color-hover-overlay); }

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 350ms var(--ease-out), opacity 250ms;
  transform-origin: center;
}

.hamburger.is-open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-menu-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 400ms var(--ease-out);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 20px;
  padding: 10px;
  border-radius: 10px;
  color: var(--color-text-muted);
  transition: color 200ms, background 200ms;
}
.mobile-menu__close:hover {
  color: var(--color-text);
  background: var(--color-hover-overlay);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
}

.mobile-menu__link {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  padding: 12px 32px;
  border-radius: var(--radius-md);
  transition: color 200ms, background 200ms;
  display: block;
}
.mobile-menu__link:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.mobile-menu__cta {
  font-size: 15px;
}

/* ============================================================
   HERO — SECTION
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: flex-start;
  overflow-x: clip;
}

/* Particles overlay (covers full hero section) */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-top: 120px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: center;
  width: 100%;
}

/* ── Slogan bar ── */
.hero__slogan {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero__slogan-line {
  width: 100px;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(to right, transparent, rgba(255, 90, 31, 0.35));
}

.hero__slogan-line:last-child {
  background: linear-gradient(to left, transparent, rgba(255, 90, 31, 0.35));
}

.hero__slogan-text {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.hero__slogan-accent {
  color: var(--color-primary);
}

/* ============================================================
   HERO — LEFT COLUMN
   ============================================================ */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

/* Eyebrow pill */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero__eyebrow-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Headline */
.hero__headline {
  font-size: 80px;
  font-weight: 800;
  line-height: 1.05;
  overflow: visible;
  letter-spacing: -2.5px;
  color: var(--color-text);
  margin-top: 24px;
}

.hero__headline--accent {
  color: var(--color-primary);
  white-space: nowrap;
}

/* Subtitle */
.hero__subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-top: 24px;
}

/* CTAs row */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ============================================================
   HERO — RIGHT COLUMN (VISUAL)
   ============================================================ */
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
  isolation: isolate;
}

/* Subtle ambient glow from ring area */
.hero__visual::before {
  content: '';
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 90, 31, 0.08) 0%,
    rgba(255, 90, 31, 0.04) 40%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HERO RING
   ============================================================ */
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 1;
}

/* Warm radial glow — continuous, no visible banding */
.hero-ring__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 90, 31, 0.45) 0%,
    rgba(255, 90, 31, 0.30) 15%,
    rgba(255, 90, 31, 0.18) 35%,
    rgba(255, 90, 31, 0.08) 55%,
    rgba(255, 90, 31, 0.02) 75%,
    transparent 90%);
  filter: blur(60px);
}

/* Ghost ring — very subtle, just a hint of shape */
.hero-ring__outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 31, 0.12);
  box-shadow:
    0 0 30px rgba(255, 90, 31, 0.08),
    0 0 60px rgba(255, 90, 31, 0.04);
}

/* Two subtle concentric arcs — very slow rotation */
.hero-ring__inner-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  animation: ring-rotate 120s linear infinite;
  opacity: 0.7;
}
.hero-ring__inner-lines svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   HERO ENERGY WAVES (concentric rings behind couple)
   ============================================================ */
.hero-curves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  z-index: 2;
  pointer-events: none;
}

.hero-curves svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   HERO — BACKGROUND SPHERES
   All positioned relative to .hero section (position: relative).
   z-index: 0 everywhere — always behind .hero__container (z-index: 1)
   and behind all text, slogan, couple, and pillar cards.
   ============================================================ */
.sphere-bg {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* ── Left side (text column area) — lower opacity, behind text ── */
.sphere-bg-1 {
  width: 70px;
  top: 4%;
  left: -1%;
  opacity: 0.30;
  animation: float-sphere 6.5s ease-in-out infinite 0.0s;
}

.sphere-bg-2 {
  width: 22px;
  top: 24%;
  left: 15%;
  opacity: 0.40;
  animation: float-sphere 4.8s ease-in-out infinite 1.3s;
}

.sphere-bg-3 {
  width: 44px;
  top: 52%;
  left: 3%;
  opacity: 0.55;
  animation: float-sphere 5.8s ease-in-out infinite 2.7s;
}

.sphere-bg-4 {
  width: 26px;
  bottom: 18%;
  left: 7%;
  opacity: 0.60;
  animation: float-sphere 7.1s ease-in-out infinite 0.6s;
}

/* ── Center area ── */
.sphere-bg-5 {
  width: 18px;
  top: 9%;
  left: 45%;
  opacity: 0.45;
  animation: float-sphere 4.4s ease-in-out infinite 3.2s;
}

.sphere-bg-6 {
  width: 32px;
  bottom: 25%;
  left: 37%;
  opacity: 0.45;
  animation: float-sphere 6.0s ease-in-out infinite 1.8s;
}

/* ── Right side (visual column area) ── */
.sphere-bg-7 {
  width: 80px;
  top: 3%;
  right: 4%;
  opacity: 0.60;
  animation: float-sphere 6.2s ease-in-out infinite 0.2s;
}

.sphere-bg-8 {
  width: 52px;
  top: 32%;
  right: -2%;
  opacity: 0.55;
  animation: float-sphere 5.1s ease-in-out infinite 1.1s;
}

.sphere-bg-9 {
  width: 64px;
  bottom: 8%;
  right: 6%;
  opacity: 0.55;
  animation: float-sphere 7.3s ease-in-out infinite 2.2s;
}

.sphere-bg-10 {
  width: 30px;
  top: 22%;
  right: 23%;
  opacity: 0.50;
  animation: float-sphere 4.9s ease-in-out infinite 3.5s;
}

.sphere-bg-11 {
  width: 20px;
  bottom: 28%;
  right: 17%;
  opacity: 0.50;
  animation: float-sphere 5.5s ease-in-out infinite 1.4s;
}

/* ============================================================
   HERO COUPLE IMAGE
   ============================================================ */
.hero__couple {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__couple-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  max-width: 700px;
  transform: scale(1.32);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

/* ============================================================
   PARTICLES
   ============================================================ */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  will-change: transform, opacity;
  animation: particle-float ease-in-out infinite;
  filter: blur(0.5px);
  pointer-events: none;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes ring-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float-sphere {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-15px); }
}

@keyframes pillar-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}


@keyframes particle-float {
  0%   { opacity: 0;    transform: translateY(0) translateX(0); }
  8%   { opacity: 0.65; }
  50%  { opacity: 0.85; }
  92%  { opacity: 0.50; }
  100% { opacity: 0;    transform: translateY(var(--py, -60px)) translateX(var(--px, 0px)); }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Disable all infinite decorative animations */
  .hero-ring__inner-lines,
  .sphere-bg,
  .particle,
  .pillar__icon-wrap {
    animation: none !important;
    transition: none !important;
  }

  .hero-ring__inner-lines {
    transform: translate(-50%, -50%);
  }

  /* Instant transitions on scroll animations */
  [data-animate] {
    transition-duration: 0.01ms !important;
  }

  /* Disable hover transforms — keep only color/border transitions */
  .btn--primary::before { display: none; }
  .btn svg              { transition: none; }
  .pillar               { transition: border-color var(--duration-fast); }
  .platform__feature-icon { transition: none; }
  .products__img        { transition: none; }
  .footer__social-link  {
    transition:
      color var(--duration-fast),
      border-color var(--duration-fast),
      background var(--duration-fast);
  }
}

/* ============================================================
   PILLARS (mobile-first)
   ============================================================ */
.pillars {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}

.pillars__bar {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 40px rgba(255, 90, 31, 0.03),
    0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: visible;
}

/* Individual pillar */
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  cursor: default;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-orange);
}

/* Icon wrapper handles subtle float animation */
.pillar__icon-wrap {
  margin-bottom: 18px;
}

.pillar:nth-child(1) .pillar__icon-wrap { animation: pillar-float 4.5s ease-in-out infinite 0s; }
.pillar:nth-child(2) .pillar__icon-wrap { animation: pillar-float 4.5s ease-in-out infinite -1.1s; }
.pillar:nth-child(3) .pillar__icon-wrap { animation: pillar-float 4.5s ease-in-out infinite -2.2s; }
.pillar:nth-child(4) .pillar__icon-wrap { animation: pillar-float 4.5s ease-in-out infinite -3.4s; }

.pillar__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(255, 90, 31, 0.35));
  transition: transform var(--duration-base) var(--ease-out),
              filter var(--duration-base) var(--ease-out);
}

.pillar:hover .pillar__icon {
  transform: scale(1.1);
  filter: drop-shadow(0 14px 32px rgba(255, 90, 31, 0.65));
}

.pillar__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.pillar__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 160px;
}

/* Vertical dividers — hidden mobile, shown at desktop */
.pillar::after { content: none; }

/* Pillars: 2×2 on larger phones — keeps section compact */
@media (min-width: 480px) and (max-width: 767px) {
  .pillars__bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }
}

/* Pillars responsive — tablet: 2×2 */
@media (min-width: 768px) {
  .pillars {
    padding-bottom: 100px;
  }

  .pillars__bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 32px;
    gap: 40px 32px;
  }

  .pillar__icon { width: 72px; height: 72px; }
}

/* Pillars responsive — desktop: 4 col + dividers */
@media (min-width: 1024px) {
  .pillars {
    padding-bottom: 80px;
  }

  .pillars__bar {
    grid-template-columns: repeat(4, 1fr);
    padding: 44px 32px;
    gap: 0;
  }

  .pillar { padding: 8px 24px; }

  .pillar__icon { width: 80px; height: 80px; }

  .pillar__desc { max-width: 180px; }

  /* Gradient vertical dividers between pillars */
  .pillar:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(255, 90, 31, 0.30),
      transparent
    );
  }
}

/* ≥1280px desktop: hero becomes content-height (no 100vh minimum) so the
   couple image bottom sits close to .pillars top. The -100px negative margin
   on pillars creates the "standing on cards" effect by overlapping the
   bottom 20px of the couple image (inside the mask fade zone 656–760px). */
@media (min-width: 1280px) {
  .hero    { min-height: auto; }
  .pillars { margin-top: -100px; }
}

/* Short viewports ≤850px: shrink headline so content fits without crowding */
@media (min-width: 1024px) and (max-height: 850px) {
  .hero__headline { font-size: 68px; }
  .hero__container { padding-bottom: 80px; }
}

/* Very short viewports ≤760px: shrink headline further */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero__headline { font-size: 64px; }
}

/* ============================================================
   RESPONSIVE — TABLET (768px – 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__headline {
    font-size: 60px;
    letter-spacing: -1.5px;
  }

  /* Scale ring down */
  .hero-ring          { width: 480px; height: 480px; }
  .hero-ring__outer   { width: 480px; height: 480px; }
  .hero-ring__inner-lines { width: 480px; height: 480px; }
  .hero-ring__glow    { width: 580px; height: 580px; }

  /* Scale largest spheres slightly down on tablet */
  .sphere-bg-1 { width: 58px; }
  .sphere-bg-7 { width: 66px; }
  .sphere-bg-8 { width: 42px; }
  .sphere-bg-9 { width: 54px; }

  /* Couple: proportional scale-down vs desktop */
  .hero__couple-img {
    transform: scale(1.24);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --container-pad: 20px; }

  /* Header: hide nav + CTA, show hamburger */
  .header__nav,
  .btn--outline-header { display: none; }
  .hamburger { display: flex; }
  .header__logo img { height: 36px; }
  .header.scrolled .header__logo img { height: 30px; }

  /* Hero: stack vertically (content → visual) */
  .hero {
    align-items: flex-start;
  }

  .hero__container {
    grid-template-columns: 1fr;
    padding-top: 88px;
    padding-bottom: 60px;
    gap: 36px;
  }

  /* Slogan: hide decorative lines, they overflow at narrow widths */
  .hero__slogan-line { display: none; }

  .hero__slogan-text {
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* Headline */
  .hero__headline {
    font-size: 44px;
    letter-spacing: -1px;
  }

  /* Remove nowrap so "CAMBIA TU VIDA." can wrap at 44px on narrow screens */
  .hero__headline--accent { white-space: normal; }

  .hero__subtitle { font-size: 15px; }

  /* CTAs: stack full-width */
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  /* Visual column */
  .hero__visual {
    width: 100%;
    max-height: 420px;
  }

  /* Couple: no scale on mobile, center alignment */
  .hero__couple { align-items: center; }
  .hero__couple-img {
    object-position: center;
    transform: none;
    transform-origin: center;
  }

  /* Ring scaled to mobile */
  .hero-ring          { width: 340px; height: 340px; }
  .hero-ring__outer   { width: 340px; height: 340px; }
  .hero-ring__inner-lines { width: 340px; height: 340px; }
  .hero-ring__glow    { width: 460px; height: 460px; filter: blur(24px); }
  .hero-curves        { display: none; }

  /* Mobile spheres: show 5, hide the rest to avoid saturation */
  .sphere-bg-2,
  .sphere-bg-5,
  .sphere-bg-6,
  .sphere-bg-8,
  .sphere-bg-10,
  .sphere-bg-11 { display: none; }

  .sphere-bg-1  { width: 46px; top: 3%;    left: -1%;  }
  .sphere-bg-3  { width: 30px; top: 52%;   left: 3%;   }
  .sphere-bg-4  { width: 20px; bottom: 20%; left: 6%;  }
  .sphere-bg-7  { width: 50px; top: 3%;    right: 3%;  }
  .sphere-bg-9  { width: 42px; bottom: 10%; right: 5%; }

  /* Float distance reduced on mobile */
  @keyframes float-sphere {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-9px); }
  }
}

/* ============================================================
   RESPONSIVE — VERY SMALL (< 400px)
   ============================================================ */
@media (max-width: 399px) {
  .hero__headline { font-size: 38px; }

  .hero-ring          { width: 280px; height: 280px; }
  .hero-ring__outer   { width: 280px; height: 280px; }
  .hero-ring__inner-lines { width: 280px; height: 280px; }
  .hero-ring__glow    { width: 380px; height: 380px; filter: blur(20px); }

  .hero__visual { max-height: 340px; }
}

/* ============================================================
   PLATFORM — BENEFICIOS
   ============================================================ */
.platform {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Ambient glow — fills section, percentage-based, ends in true rgba(0) to avoid ring */
.platform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 30% at 50% 45%,
    rgba(255, 90, 31, 0.18) 0%,
    rgba(255, 90, 31, 0.10) 28%,
    rgba(255, 90, 31, 0.04) 50%,
    rgba(255, 90, 31, 0)    70%
  );
  pointer-events: none;
}

/* Top/bottom edge fades — wide enough to guarantee pure #0A0A0C at each seam */
.platform::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-bg)  0%,
    transparent     26%,
    transparent     74%,
    var(--color-bg) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Grid layout (mobile-first: 1 col) ── */
.platform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

/* ── Eyebrow ── */
.platform__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.platform__eyebrow-icon { flex-shrink: 0; }

/* ── Title ── */
.platform__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.platform__title--accent { color: var(--color-primary); }

/* ── Subtitle ── */
.platform__subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Mini-features 2×2 ── */
.platform__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.platform__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.platform__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.platform__feature:hover .platform__feature-icon {
  background: rgba(255, 90, 31, 0.25);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.platform__feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.platform__feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.platform__feature-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── Features bar — cohesive container ── */
.platform__features-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* ── Mockup column ── */
.platform__col--mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.platform__mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: visible;
}

/* Glow naranja concentrado — exactamente detrás del teléfono */
.platform__mockup-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(255, 90, 31, 0.55) 0%,
    rgba(255, 90, 31, 0.30) 25%,
    rgba(255, 90, 31, 0.12) 50%,
    rgba(255, 90, 31, 0)   100%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Glow suave — capa piso, luz desde abajo */
.platform__mockup-wrap::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 220px;
  background: radial-gradient(ellipse at center,
    rgba(255, 90, 31, 0.35) 0%,
    rgba(255, 90, 31, 0.12) 50%,
    rgba(255, 90, 31, 0)   100%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.platform__mockup-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 370px;
  height: auto;
  animation: mockup-float 6s ease-in-out infinite;
}

/* ── Right cards stack — foto full + texto superpuesto ── */
.platform__col--cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform__card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-base) var(--ease-out);
}

.platform__card:hover {
  border-color: var(--color-border-orange);
}

/* Full-bleed photo */
.platform__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.platform__card:hover .platform__card-img {
  transform: scale(1.05);
}

/* Dark gradient overlay for text legibility */
.platform__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.40) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Text pinned to bottom */
.platform__card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  z-index: 2;
}

.platform__card-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.platform__card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── Keyframe — phone float ── */
@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Tablet (768px+): text|mockup side-by-side, cards row below ── */
@media (min-width: 768px) {
  .platform { padding: 100px 0; }

  .platform__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text mockup"
      "cards cards";
    gap: 48px;
    align-items: center;
  }

  .platform__col--text   { grid-area: text; }
  .platform__col--mockup { grid-area: mockup; }

  .platform__col--cards {
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .platform__title { font-size: 34px; }
  .platform__mockup-img { max-width: 440px; }

  /* 4-col horizontal icon row — left-aligned with orange separators */
  .platform__features {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .platform__feature {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 10px;
    position: relative;
  }

  .platform__feature:first-child { padding-left: 0; }
  .platform__feature:last-child  { padding-right: 0; }

  /* Bar: no horizontal padding — features control their own inset */
  .platform__features-bar { padding-left: 0; padding-right: 0; }

  .platform__feature:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 90, 31, 0.30);
  }

  .platform__feature-text {
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
  }

  .platform__feature-sub { display: block; }
}

/* ── Desktop (1024px+): 2-column — text column wider for readable title ── */
@media (min-width: 1024px) {
  .platform { padding: 120px 0; }

  .platform__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text mockup"
      "cards cards";
    align-items: center;
    gap: 48px;
  }

  /* Cards remain a 3-col horizontal row below */
  .platform__col--cards {
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .platform__card { height: 200px; }

  .platform__title { font-size: 36px; }
  .platform__mockup-img { max-width: 520px; }

  .platform__feature-icon {
    width: 36px;
    height: 36px;
  }

  .platform__mockup-wrap::before {
    width: 600px;
    height: 900px;
  }

  .platform__mockup-wrap::after {
    width: 680px;
    height: 260px;
  }
}

/* ── Wide (1280px+): 3-column side-by-side ── */
@media (min-width: 1280px) {
  .platform__grid {
    grid-template-columns: 1.5fr 1.1fr 0.9fr;
    grid-template-areas: "text mockup cards";
    align-items: center;
  }

  /* Cards stack vertically in the right column */
  .platform__col--cards {
    grid-area: cards;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
  }

  .platform__card {
    flex: 1;
    height: auto;
    min-height: 120px;
  }

  .platform__title { font-size: 38px; }
  .platform__mockup-img { max-width: 600px; }

  .platform__mockup-wrap::before {
    width: 640px;
    height: 940px;
  }

  .platform__mockup-wrap::after {
    width: 720px;
    height: 270px;
  }
}

/* Ensure content stack above background */
.platform .container {
  max-width: 1440px;
  position: relative;
  z-index: 1;
}

/* ── Decorative sphere near mockup base ── */
.platform__mockup-sphere {
  position: absolute;
  bottom: -14px;
  left: calc(50% - 20px);
  width: 40px;
  height: 40px;
  z-index: 2;
  animation: float-sphere 5s ease-in-out infinite -1.5s;
  pointer-events: none;
}

/* ── Mobile (<768px) — 1-col stack, tamed sizes ── */
@media (max-width: 767px) {
  .platform { padding: 64px 0; }
  .platform__grid { gap: 36px; }
  .platform__title { font-size: 26px; letter-spacing: -0.5px; }

  /* Phone mockup: sized for mobile column */
  .platform__mockup-img { max-width: 220px; }

  /* Glow behind phone: scale down to match smaller image */
  .platform__mockup-wrap::before {
    width: 200px;
    height: 340px;
  }
  .platform__mockup-wrap::after {
    width: 240px;
    height: 120px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .platform__mockup-img,
  .platform__mockup-sphere { animation: none; }
  .platform__card-img { transition: none; }
}

/* ============================================================
   PRODUCTS — SUPLEMENTOS
   Dark section. Text centered above + full-width image protagonist.
   Blends into surrounding dark sections via gradient masks.
   ============================================================ */
.products {
  position: relative;
  background: transparent;
  padding-top: 80px;
  padding-bottom: 40px;
  overflow: hidden;
}

/* Ambient top-left glow */
.products::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 90, 31, 0.07) 0%,
    transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ── Text header: centered, max-width capped ── */
.products__header {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Eyebrow */
.products__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.products__eyebrow-icon { flex-shrink: 0; }

/* Title */
.products__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.products__title--accent { color: var(--color-primary); }

/* Subtitle */
.products__subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
}

/* CTA */
.products__cta {
  margin-top: 4px;
}

/* ── Protagonist image: full section width, outside container ── */
.products__visual {
  position: relative;
  margin-top: 56px;
  height: 260px; /* mobile base — overridden upward at wider breakpoints */
}

/* Top fade: image emerges from dark background */
.products__visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2; /* above dust canvas so particles fade at edges */
}

/* Bottom fade: image dissolves back into dark background */
.products__visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2; /* above dust canvas so particles fade at edges */
}

/* Dust particle canvas — sits above image (z:0) but below fades (z:2) */
.products__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.products__img {
  display: block;
  width: 100%;
  height: 100%; /* fills the controlled-height visual container */
  object-fit: contain;
  object-position: center;
  transition: transform 600ms var(--ease-out);
}

.products__visual:hover .products__img {
  transform: scale(1.025);
}

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .products { padding-top: 100px; }
  .products__title { font-size: 44px; letter-spacing: -1px; }
  .products__subtitle { font-size: 16px; }
  .products__visual { margin-top: 64px; height: 400px; }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .products { padding-top: 120px; }
  .products__title { font-size: 52px; letter-spacing: -1.5px; }
  .products__visual { margin-top: 72px; height: 540px; }
}

/* ── Wide (1280px+) ── */
@media (min-width: 1280px) {
  .products__title { font-size: 56px; }
  .products__visual { height: 600px; }
}

/* ── Mobile (<768px) ── */
@media (max-width: 767px) {
  .products { padding-top: 64px; padding-bottom: 0; }
  .products__title { font-size: 28px; }

  /* Let the image determine the container height — avoids empty space
     from fixed-height container with object-fit: contain on wide image */
  .products__visual {
    height: auto;
    min-height: 140px;
    margin-top: 32px;
  }
  .products__img {
    height: auto;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .products__img { transition: none; }
}

/* ============================================================
   AMBIENT CANVAS PARTICLES
   ============================================================ */

/* Reinforces the JS inline styles; ensures canvas never blocks interaction */
#ambientParticles {
  position: fixed !important;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* position: relative needed so footer stacks above canvas (z-index: 0)
   via DOM order rather than falling into the "block-level" stacking layer */
.footer {
  position: relative;
  z-index: 2;
}

/* Glow bridge: softens the hard cut between products section and footer banner */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 90, 31, 0.4) 50%, transparent 100%);
  box-shadow: 0 0 32px 12px rgba(255, 90, 31, 0.07);
  pointer-events: none;
  z-index: 1;
}

/* ── 1. Banner full bleed — natural proportions, no crop ── */
.footer__banner {
  position: relative;
}

.footer__banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dual-edge fade: top merges with products section, bottom into CTA block */
.footer__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-bg) 0%,
    transparent 18%,
    transparent 68%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

/* ── 2. CTA block (mobile-first) ── */
.footer__cta {
  background: var(--color-bg);
  padding: 64px 0;
  text-align: center;
}

.footer__cta-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.footer__cta-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 36px;
}

.footer__cta-btn {
  display: inline-flex;
}

.footer__cta-hint {
  font-size: 13px;
  color: var(--color-text-dim);
  margin-top: 20px;
}

/* ── 3. Footer main (mobile-first) ── */
.footer__main {
  background: var(--color-bg-alt);
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

/* Brand column */
.footer__col--brand {}

.footer__logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.footer__logo-link img {
  height: 36px;
  width: auto;
}

.footer__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Column titles */
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Link lists */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--color-primary);
}

/* Social icons row */
.footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.footer__social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-border-orange);
  background: var(--color-primary-soft);
  transform: scale(1.15);
}

/* ── Bottom bar ── */
.footer__bottom {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__copyright {
  font-size: 13px;
  color: var(--color-text-dim);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.footer__legal-link {
  color: var(--color-text-dim);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal-link:hover {
  color: var(--color-text-muted);
}

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .footer__cta {
    padding: 96px 0;
  }
  .footer__cta-title {
    font-size: 44px;
    letter-spacing: -1px;
  }
  .footer__cta-sub { font-size: 17px; }

  .footer__main { padding: 64px 0; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }

  .footer__brand-desc { max-width: 240px; }

  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .footer__cta { padding: 100px 0; }
  .footer__cta-title {
    font-size: 56px;
    letter-spacing: -2px;
  }

  .footer__main { padding: 80px 0; }

  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

/* ── Footer mobile (<768px) ── */
@media (max-width: 767px) {
  /* Banner: show full viewport-width strip instead of tiny sliver */
  .footer__banner-img {
    height: 200px;
    object-fit: cover;
    object-position: center top;
  }

  .footer__cta { padding: 48px 0; }
  .footer__cta-title { font-size: 26px; letter-spacing: -0.3px; }
  .footer__cta-sub { font-size: 14px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .footer__link,
  .footer__social-link,
  .footer__legal-link { transition: none; }
}

/* ============================================================
   PACKAGE 3B — PREMIUM MICROINTERACTIONS
   ============================================================ */

/* 1. Scroll progress bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #ff8c5a 100%);
  z-index: 200;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(255, 90, 31, 0.55);
}

/* 2. Slogan — potent shimmer sweep + ambient glow + neon accent */
@keyframes slogan-shine {
  0%, 20%  { background-position: 100% center; }
  75%      { background-position:   0% center; }
  100%     { background-position:   0% center; }
}

@keyframes slogan-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 0px  rgba(255, 90, 31, 0));    }
  50%      { filter: drop-shadow(0 0 14px rgba(255, 90, 31, 0.28)); }
}

@keyframes slogan-line-glow {
  0%, 20%  { opacity: 0.45; }
  55%      { opacity: 1;    }
  85%      { opacity: 0.45; }
  100%     { opacity: 0.45; }
}

@keyframes accent-neon {
  0%, 30%, 100% { filter: brightness(1);   }
  38%           { filter: brightness(1.5); }
  42%           { filter: brightness(0.9); }
  46%           { filter: brightness(1.6); }
  52%           { filter: brightness(1);   }
}

.hero__slogan {
  animation: slogan-glow-pulse 3s ease-in-out infinite 1.2s;
}

.hero__slogan-line {
  animation: slogan-line-glow 3s ease-in-out infinite;
}

.hero__slogan-line:last-child {
  animation-delay: 0.3s;
}

.hero__slogan-text {
  background: linear-gradient(
    90deg,
    var(--color-text-muted) 20%,
    rgba(255, 160, 80, 0.5) 38%,
    #ffffff 43%,
    rgba(255, 160, 80, 0.5) 48%,
    var(--color-text-muted) 65%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: slogan-shine 3s ease-in-out infinite;
}

/* Accent span: orange gradient + subtle neon flicker */
.hero__slogan-accent {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-primary) 0%, #ff7c48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: accent-neon 3s ease-in-out infinite 0.4s;
}

/* 3. Pulsating ambient glows */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.42; }
}

/* Variant for centered elements that have translate in their transform */
@keyframes pulse-glow-centered {
  0%, 100% { opacity: 1;    transform: translate(-50%, -50%) scale(1);    }
  50%       { opacity: 0.5;  transform: translate(-50%, -50%) scale(0.88); }
}

.hero-ring__glow   { animation: pulse-glow          8s ease-in-out infinite 2s;  }
.products::before  { animation: pulse-glow          9s ease-in-out infinite 1s;  }
.platform::before  { animation: pulse-glow          7s ease-in-out infinite 0s;  }

/* 4. Hero headline — longer, more premium entrance transition */
.hero__headline[data-animate] {
  transition:
    opacity   1000ms var(--ease-out),
    transform 1000ms var(--ease-out);
}

/* 5. H2 section titles — slightly extended transition for premium feel */
h2[data-animate] {
  transition:
    opacity  800ms var(--ease-out),
    transform 800ms var(--ease-out);
}

/* 6. 3D card tilt — js-tilt class added by JS to pillar elements */
.js-tilt { will-change: transform; }

/* Disable CSS hover lift so JS tilt owns the transform */
.pillar.js-tilt:hover { transform: none; }

/* 7. Package 3B — reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  #scrollProgress { display: none; }

  .hero__slogan { animation: none; filter: none; }

  .hero__slogan-line { animation: none; }

  .hero__slogan-text {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--color-text-muted);
    color: var(--color-text-muted);
  }

  .hero__slogan-accent {
    animation: none;
    filter: none;
    background: none;
    -webkit-text-fill-color: var(--color-primary);
    color: var(--color-primary);
  }

  .hero-ring__glow,
  .products::before  { animation: none; }

  .platform::before { animation: none; }

  .js-tilt { will-change: auto; }
}

/* ============================================================
   THEME SWITCHING — smooth color cross-fade
   Applied temporarily by JS when toggling theme
   ============================================================ */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition:
    background-color 300ms ease,
    color 300ms ease,
    border-color 300ms ease !important;
}

/* ============================================================
   LIGHT MODE — specific overrides
   ============================================================ */

/* Reduce orange glow intensity — less dramatic on light bg */
[data-theme="light"] .platform::before {
  opacity: 0.45;
}

/* Fix dirty gradient interpolation: ::after uses var(--color-bg) → transparent,
   which in light mode produces grayish midpoints (#F5F3F0 ≈ rgb(245,243,240)) */
[data-theme="light"] .platform::after {
  background: linear-gradient(
    to bottom,
    rgba(245, 243, 240, 1) 0%,
    rgba(245, 243, 240, 0) 22%,
    rgba(245, 243, 240, 0) 78%,
    rgba(245, 243, 240, 1) 100%
  );
}

[data-theme="light"] .products::before {
  opacity: 0.5;
}

/* Hero ring glow: subtle on light */
[data-theme="light"] .hero-ring__glow {
  opacity: 0.3;
}

/* Scroll progress bar: slightly softer glow */
[data-theme="light"] #scrollProgress {
  box-shadow: 0 0 6px rgba(255, 90, 31, 0.30);
}

/* Ambient constellation: very subtle on light background */
[data-theme="light"] #ambientParticles {
  opacity: 0.30;
}

/* Footer banner top-fade uses var(--color-bg) which in light mode is #F5F3F0.
   Over the dark neon-wall image this creates a visible white strip.
   In light mode we remove the top fade so the banner shows fully from its top edge. */
[data-theme="light"] .footer__banner-overlay {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 68%,
    rgba(245, 243, 240, 1) 100%
  );
}

/* Mobile theme toggle in menu: larger, centered */
.mobile-menu .theme-toggle {
  width: 48px;
  height: 48px;
  margin-top: 24px;
}
.mobile-menu .theme-toggle svg {
  width: 20px;
  height: 20px;
}
