/* ================================================================
   WIWO — Vision OS Light Design System
   Glassmorphism, spatial depth, ambient lighting, 3D transforms
   Light mode with frosted glass aesthetic
   ================================================================ */

:root {
  --blue: #4242ff;
  --blue-deep: #2a2ad4;
  --blue-10: rgba(66, 66, 255, 0.08);
  --blue-20: rgba(66, 66, 255, 0.15);
  --blue-glow: rgba(66, 66, 255, 0.20);
  --green: #3bff00;
  --green-deep: #2ecc00;
  --green-dark: #1a8a00;
  --green-glow: rgba(59, 255, 0, 0.15);
  --cream: #f8fad7;
  --ink: #111118;
  --text: #1a1a24;
  --text-secondary: #6b6b7b;
  --bg: #f5f5fa;
  --bg-soft: #eeeef5;
  --bg-white: #ffffff;
  --bg-card: rgba(255,255,255,0.65);
  --bg-glass: rgba(255,255,255,0.55);
  --bg-glass-hover: rgba(255,255,255,0.80);
  --bg-dark: #0f0f18;
  --bg-dark-2: #161625;
  --line: rgba(0,0,0,0.07);
  --line-light: rgba(0,0,0,0.10);
  --max-w: 1280px;
  --gutter: 2rem;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.10);
  --shadow-glow-blue: 0 8px 40px rgba(66,66,255,0.12);
  --shadow-glow-green: 0 8px 40px rgba(59,255,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ========== AMBIENT BACKGROUND ========== */
.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
  will-change: transform;
}

.ambient-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(66,66,255,0.15), transparent 70%);
  top: -15%;
  right: -8%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.ambient-orb--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,255,0,0.10), transparent 70%);
  bottom: 15%;
  left: -12%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.ambient-orb--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(66,66,255,0.08), transparent 70%);
  top: 45%;
  left: 35%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(1.1); }
  66% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.15); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -60px) scale(1.08); }
}

/* (cursor glow removed) */

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

/* ========== UTILITY ========== */
.section-inner {
  width: min(100% - var(--gutter) * 2, var(--max-w));
  margin-inline: auto;
}

/* ========== MASTHEAD ========== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,250,0.65);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  width: min(100% - var(--gutter) * 2, var(--max-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  height: 3.75rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  flex-shrink: 0;
}

.brand-logo { height: 1.75rem; width: auto; }
.brand-logo--footer { height: 2rem; }

.masthead-nav { display: flex; align-items: center; gap: 0; flex: 1; }
.nav-group { position: relative; }

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1rem;
  height: 3.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  border-radius: var(--radius-xs);
}

.nav-trigger:hover,
.nav-group.is-open .nav-trigger { color: var(--blue); }

.nav-chevron {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition);
}

.nav-group.is-open .nav-chevron { transform: rotate(180deg); }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  height: 3.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-link:hover { color: var(--blue); }

.masthead-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

.masthead-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(66,66,255,0.25);
}

.masthead-cta:hover {
  background: var(--blue-deep);
  box-shadow: 0 6px 24px rgba(66,66,255,0.35);
  transform: translateY(-1px);
}

.masthead-cta--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  box-shadow: 0 0 12px rgba(59,255,0,0.1);
  font-size: .75rem;
  letter-spacing: .04em;
  padding: 0.5rem 1.2rem;
  animation: pulseGlow 3s ease-in-out infinite, subtleBlink 4s ease-in-out infinite;
}
.masthead-cta--outline::before {
  content: "\26A0";
  font-size: .7rem;
  margin-right: .35rem;
  display: inline-block;
  animation: subtleBlink 4s ease-in-out infinite;
}
.masthead-cta--outline:hover {
  background: rgba(59,255,0,0.08);
  box-shadow: 0 0 20px rgba(59,255,0,0.25);
  transform: translateY(-1px);
  color: var(--green);
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(59,255,0,0.1); }
  50% { box-shadow: 0 0 20px rgba(59,255,0,0.3); }
}
@keyframes subtleBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
/* Index (home) keeps purple */
body.home .masthead-cta--outline {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(66,66,255,0.1);
  animation: pulseGlowHome 3s ease-in-out infinite, subtleBlink 4s ease-in-out infinite;
}
body.home .masthead-cta--outline:hover {
  background: rgba(66,66,255,0.08);
  box-shadow: 0 0 20px rgba(66,66,255,0.25);
  color: var(--blue);
}
@keyframes pulseGlowHome {
  0%, 100% { box-shadow: 0 0 12px rgba(66,66,255,0.1); }
  50% { box-shadow: 0 0 20px rgba(66,66,255,0.3); }
}
@media (max-width: 900px) {
  .masthead-cta--outline { display: none; }
}

.mobile-toggle { display: none; }

.hamburger {
  display: block; width: 20px; height: 2px;
  background: var(--ink); position: relative;
}

.hamburger::before, .hamburger::after {
  content: ""; position: absolute; width: 100%; height: 2px;
  background: var(--ink); left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* MEGA PANEL — Glassmorphic Light */
.mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -1rem;
  min-width: 44rem;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.5) inset;
  z-index: 50;
  animation: panelIn 0.3s var(--spring);
  overflow: hidden;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-group.is-open .mega-panel { display: block; }

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.mega-col {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-col:last-child { border-right: none; }

.mega-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.mega-col a {
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.mega-col a:hover { color: var(--blue); background: var(--blue-10); }

.mega-col-featured { background: rgba(66,66,255,0.03); }

.mega-feature-card {
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.mega-feature-img {
  width: 100%;
  height: 5rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-xs);
}

.mega-feature-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-radius: 50px;
}

.mega-feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.mega-feature-card p:last-child { font-size: 0.825rem; color: var(--text-secondary); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(66,66,255,0.25);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  border-radius: 50px;
}

.btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: 0 6px 30px rgba(66,66,255,0.35);
  transform: translateY(-2px);
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-tertiary {
  background: transparent;
  color: var(--blue);
  padding-left: 0;
  gap: 0.3rem;
}

.btn-tertiary:hover { color: var(--blue-deep); gap: 0.5rem; }

.btn-ghost {
  border: 1px solid var(--line-light);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: var(--line-light);
  box-shadow: var(--shadow-sm);
}

/* Buttons on dark backgrounds */
.btn--on-dark.btn-primary {
  background: var(--green);
  color: var(--bg-dark);
  box-shadow: 0 4px 24px var(--green-glow);
}
.btn--on-dark.btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 6px 36px rgba(59,255,0,0.3);
}
.btn--on-dark.btn-ghost { border-color: rgba(255,255,255,0.15); color: #fff; }
.btn--on-dark.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn--on-dark.btn-tertiary { color: var(--green); }

/* ========== INTRO ANIMATIONS ========== */
.anim-in {
  opacity: 0;
  transform: translateY(30px);
  animation: animIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes animIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== LEADSPACE (HERO) — Dark section ========== */
.leadspace {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.leadspace-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(66,66,255,0.1), transparent 70%),
              var(--bg-dark);
  z-index: 0;
}

.leadspace-gradient {
  position: absolute;
  width: 80%;
  height: 80%;
  right: -20%;
  top: -20%;
  background: radial-gradient(circle, rgba(66,66,255,0.2) 0%, transparent 60%);
  filter: blur(100px);
  animation: gradientDrift 16s ease-in-out infinite alternate;
}

.leadspace-gradient--2 {
  right: auto;
  left: -10%;
  top: auto;
  bottom: -30%;
  background: radial-gradient(circle, rgba(59,255,0,0.1) 0%, transparent 60%);
  animation: gradientDrift2 20s ease-in-out infinite alternate;
}

@keyframes gradientDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}

@keyframes gradientDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.2); }
}

.leadspace-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

/* Hero image (standalone, non-slider pages) */
.leadspace > .leadspace-hero-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(to left, black 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 95%);
}

.leadspace > .leadspace-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: heroImgIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: scale(1.06);
  filter: brightness(0.7) saturate(1.1);
}

@keyframes heroImgIn {
  to { opacity: 1; transform: scale(1); }
}

.leadspace > .leadspace-hero-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(15,15,24,0.4) 40%, transparent 70%);
}

.leadspace > .leadspace-hero-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  z-index: 1;
  background: linear-gradient(0deg, var(--bg-dark) 0%, transparent 100%);
}

.leadspace > .leadspace-inner {
  position: relative;
  z-index: 2;
  width: min(100% - var(--gutter) * 2, var(--max-w));
  margin-inline: auto;
  padding-bottom: 3rem;
}

.leadspace-content {
  max-width: 38rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.leadspace-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.leadspace-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--green-glow);
}
.leadspace-eyebrow:has(img)::before { display: none; }
.leadspace-eyebrow:has(img) { gap: 0; margin-bottom: .25rem; }

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

.leadspace h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  max-width: 18ch;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.leadspace h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green), var(--cream), var(--green));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

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

.leadspace-desc {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 48ch;
  line-height: 1.7;
}

.leadspace-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.leadspace-actions .btn-primary {
  background: var(--green);
  color: var(--bg-dark);
  box-shadow: 0 4px 24px var(--green-glow);
}

.leadspace-actions .btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 6px 36px rgba(59,255,0,0.3);
}

.leadspace-actions .btn-tertiary { color: rgba(255,255,255,0.6); }
.leadspace-actions .btn-tertiary:hover { color: #fff; }

/* ========== HERO SLIDER ========== */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s;
  z-index: 0;
}

.hero-slide .leadspace-hero-img,
.hero-slide .leadspace-inner {
  position: absolute;
}

.hero-slide .leadspace-hero-img {
  right: 0; bottom: 0; width: 45%; height: 100%;
  z-index: 1; overflow: hidden;
  mask-image: linear-gradient(to left, black 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 95%);
}

.hero-slide .leadspace-inner {
  z-index: 2;
  width: min(100% - var(--gutter) * 2, var(--max-w));
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding-bottom: 0;
}

.hero-slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide element animations */
.slide-el {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1),
              filter 0.7s cubic-bezier(0.16,1,0.3,1);
}

.hero-slide--active .slide-el {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-slide--active .slide-el[data-delay="0"] { transition-delay: 0.15s; }
.hero-slide--active .slide-el[data-delay="1"] { transition-delay: 0.3s; }
.hero-slide--active .slide-el[data-delay="2"] { transition-delay: 0.45s; }
.hero-slide--active .slide-el[data-delay="3"] { transition-delay: 0.6s; }

/* Leaving slide animates out */
.hero-slide--leaving .slide-el {
  opacity: 0;
  transform: translateY(-30px);
  filter: blur(4px);
  transition-delay: 0s !important;
  transition-duration: 0.4s;
}

/* Hero image within slides */
.hero-slide .leadspace-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  filter: brightness(0.7) saturate(1.1);
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.16,1,0.3,1);
  opacity: 0;
  transform: scale(1.08);
}

.hero-slide--active .leadspace-hero-img img {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.1s;
}

.hero-slide .leadspace-hero-img::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(15,15,24,0.4) 40%, transparent 70%);
}

.hero-slide .leadspace-hero-img::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%; z-index: 1;
  background: linear-gradient(0deg, var(--bg-dark) 0%, transparent 100%);
}

/* Slider Navigation */
.hero-slider-nav {
  position: absolute;
  bottom: 3rem;
  left: calc((100% - min(100% - var(--gutter) * 2, var(--max-w))) / 2);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-slider-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider-arrow:hover {
  border-color: var(--green);
  background: rgba(59,255,0,0.1);
  color: var(--green);
  transform: scale(1.08);
}

.hero-slider-counter {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
  text-align: center;
}

.hero-slider-sep { margin: 0 0.15rem; }

.hero-slider-dots {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.hero-slider-dot {
  width: 28px; height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.hero-slider-dot--active {
  background: var(--green);
  width: 44px;
  box-shadow: 0 0 10px var(--green-glow);
}

.hero-slider-dot:hover:not(.hero-slider-dot--active) {
  background: rgba(255,255,255,0.4);
}

/* Hero stats — glass cards (still on dark bg) */
.leadspace-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.leadspace-stat {
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: all 0.4s ease;
}

.leadspace-stat:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(66,66,255,0.12);
}

.leadspace-stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.leadspace-stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ========== TRUST BAR — light ========== */
.trust-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg-white);
  position: relative;
  z-index: 2;
}

.trust-inner {
  width: min(100% - var(--gutter) * 2, var(--max-w));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.trust-items { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}

.trust-badge:hover { color: var(--blue); }

.trust-dot { width: 8px; height: 8px; border-radius: 50%; transition: all 0.3s ease; }
.trust-dot--blue { background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.trust-dot--green { background: var(--green-deep); box-shadow: 0 0 8px var(--green-glow); }
.trust-dot--cream { background: var(--cream); border: 1px solid var(--line-light); }

.trust-badge:hover .trust-dot { transform: scale(1.5); }

/* ========== SECTIONS — Light ========== */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.section--white { background: transparent; }
.section--soft { background: rgba(255,255,255,0.5); }

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section--dark h2, .section--dark h3 { color: #fff; }

.section-header {
  margin-bottom: 3rem;
  max-width: 40rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.section-eyebrow--light { color: var(--green); }
.section--dark .section-eyebrow--light { color: var(--green); }

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--ink);
}

.section--dark .section-header h2 { color: #fff; }

/* ========== CAPABILITIES GRID — Light Glass ========== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .capabilities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

.capability-card {
  padding: 1.75rem;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(66,66,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.capability-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(66,66,255,0.15);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

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

.capability-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  padding: 0.4rem;
  background: var(--blue-10);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(66,66,255,0.1);
}

.capability-icon svg { width: 100%; height: 100%; }

.capability-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.capability-card h3 { font-size: 1.25rem; color: var(--ink); }
.capability-card > p { color: var(--text-secondary); font-size: 0.9rem; flex: 1; }

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.capability-tags span {
  padding: 0.3rem 0.7rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.capability-tags span:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(66,66,255,0.2);
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.75rem;
  transition: all var(--transition);
}

.card-link:hover { color: var(--blue-deep); }

/* ========== MANIFESTO DARK BAND ========== */
.manifesto-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.manifesto-left h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 14ch;
  color: #fff;
}

.manifesto-img {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.manifesto-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,15,24,0.6));
  border-radius: var(--radius);
  pointer-events: none;
}

.manifesto-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.manifesto-img:hover img { transform: scale(1.04); }

.manifesto-pillars { display: flex; flex-direction: column; gap: 0; }

.pillar {
  padding: 1.75rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xs);
  transition: all 0.35s ease;
}

.pillar:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }

.pillar:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(66,66,255,0.15);
  padding-left: 2rem;
}

.pillar-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
}

.pillar h3 { font-size: 1.15rem; margin-top: 0.5rem; color: #fff; }
.pillar p { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.55); }

/* ========== PLATFORM — Light Glass ========== */
.platform-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  border: 1px solid rgba(66,66,255,0.3);
  border-radius: var(--radius);
  color: #fff;
  min-height: 24rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.platform-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
  filter: blur(80px);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.platform-hero h3, .platform-hero p { color: #fff; }

.platform-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.platform-hero-content h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  max-width: 14ch;
}

.platform-hero-content > p {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.7);
  max-width: 36ch;
}

.product-pills {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-pills span {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.product-pills span:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

.platform-hero .btn { margin-top: 1.5rem; }

/* PLATFORM VISUAL */
.platform-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.platform-screenshot {
  width: 100%;
  max-width: 28rem;
  height: auto;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(66,66,255,0.15);
  animation: floatSoft 6s ease-in-out infinite;
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.platform-hero:hover .platform-screenshot {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

@keyframes floatSoft {
  0%, 100% { transform: perspective(800px) rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-5deg) rotateX(2deg) translateY(-12px); }
}

/* PLATFORM LAYERS — Light Glass */
.platform-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.layer-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.layer-card--cream { background: rgba(248,250,215,0.25); border-color: rgba(248,250,215,0.5); }
.layer-card--white { background: var(--bg-glass); }
.layer-card--green { background: rgba(59,255,0,0.04); border-color: rgba(59,255,0,0.12); }

.layer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(66,66,255,0.15);
}

.layer-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

a.layer-card { text-decoration: none; color: inherit; }
.layer-card h3 { font-size: 1.2rem; color: var(--ink); }
.layer-card > p { font-size: 0.88rem; color: var(--text-secondary); }

.layer-bar {
  margin-top: auto;
  padding-top: 1rem;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.layer-bar-fill {
  height: 100%;
  border-radius: 2px;
  animation: bar-grow 1.5s ease forwards;
  transform-origin: left;
  transform: scaleX(0);
}

.layer-bar-fill--1 { background: var(--blue); animation-delay: 0.2s; }
.layer-bar-fill--2 { background: var(--green-deep); animation-delay: 0.4s; }
.layer-bar-fill--3 { background: var(--blue-deep); animation-delay: 0.6s; }

@keyframes bar-grow { to { transform: scaleX(1); } }

/* ========== CASES TABS — Light Glass ========== */
.case-tabs { margin-top: 0; }

.tab-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.7);
  width: fit-content;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.tab-btn:hover { color: var(--ink); }

.tab-btn.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(66,66,255,0.25);
}

.tab-panel { display: none; }
.tab-panel.is-active {
  display: block;
  animation: tabFadeIn 0.4s ease;
}

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

.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.case-visual {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.case-visual:hover::after { border-color: var(--blue); }

.case-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-visual:hover .case-img { transform: scale(1.04); }

.case-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue-10);
  color: var(--blue);
  margin-bottom: 1rem;
  border-radius: 50px;
  border: 1px solid rgba(66,66,255,0.12);
}

.case-content h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 16ch;
  color: var(--ink);
}

.case-content > p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  max-width: 40ch;
}

.case-metric {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-left: 3px solid var(--green-deep);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

.case-metric-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.case-metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.case-content .btn { margin-top: 1.5rem; }

/* ========== INSIGHTS — Light Glass ========== */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.insight-card {
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.insight-card:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  border-color: rgba(66,66,255,0.15);
}

.insight-thumb {
  width: 100%;
  height: 10rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.insight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insight-card:hover .insight-thumb img {
  transform: scale(1.06);
}

.insight-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-stripe {
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green-deep));
  margin-bottom: 1rem;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.insight-card:hover .insight-stripe { width: 4rem; }

.insight-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.insight-card h3 { font-size: 1.05rem; line-height: 1.35; flex: 1; color: var(--ink); }
.insight-card .card-link { margin-top: 1rem; }

/* ========== CTA BAND — stays dark ========== */
.cta-band {
  position: relative;
  padding: 5.5rem 0;
  overflow: hidden;
  z-index: 2;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--bg-dark) 0%, var(--blue-deep) 100%);
  overflow: hidden;
}

.cta-band-bgimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: lighten;
  filter: blur(2px);
}

.cta-band-bg::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 100%;
  right: -10%;
  top: 0;
  background: radial-gradient(circle, rgba(59,255,0,0.1), transparent 60%);
  filter: blur(80px);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 18ch;
}

.cta-band-desc {
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 48ch;
  font-size: 1rem;
}

.cta-band-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ========== MEGA FOOTER — stays dark ========== */
.mega-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}

.footer-inner {
  width: min(100% - var(--gutter) * 2, var(--max-w));
  margin-inline: auto;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.brand--footer { color: var(--blue); }

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

.footer-social { display: flex; gap: .75rem; align-items: center; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========== SCROLL-LINKED SECTION TRANSITIONS ========== */
.section-transition {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-transition.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========== 3D TILT CARDS ========== */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.15s ease;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .masthead-nav { display: none; }
  .mobile-toggle { display: flex; align-items: center; padding: 0.5rem; }

  .masthead-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 90;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .masthead-nav.is-open .nav-group { width: 100%; }
  .masthead-nav.is-open .nav-trigger { width: 100%; justify-content: space-between; height: auto; padding: 0.75rem 0; }
  .masthead-nav.is-open .nav-link { width: 100%; height: auto; padding: 0.75rem 0; }

  .masthead-nav.is-open .mega-panel {
    position: static;
    min-width: 100%;
    border: none;
    box-shadow: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    backdrop-filter: none;
    background: transparent;
  }

  .masthead-nav.is-open .mega-inner { grid-template-columns: 1fr; }
  .masthead-nav.is-open .mega-col { border-right: none; border-bottom: 1px solid var(--line); }
  .masthead-nav.is-open .mega-col:last-child { border-bottom: none; }

  .leadspace-hero-img {
    width: 100%;
    height: 50%;
    top: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  }
  .leadspace-hero-img::before { background: linear-gradient(180deg, rgba(15,15,24,0.3) 0%, var(--bg-dark) 100%); }
  .leadspace-content { padding-top: 55vh; }

  /* Slider responsive */
  .hero-slide .leadspace-hero-img {
    width: 100%; height: 50%; top: 0; bottom: auto;
    mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  }
  .hero-slide .leadspace-hero-img::before { background: linear-gradient(180deg, rgba(15,15,24,0.3) 0%, var(--bg-dark) 100%); }
  .hero-slide .leadspace-inner { top: auto; bottom: 5rem; left: 50%; transform: translateX(-50%); }
  .hero-slider-nav { bottom: 1.5rem; right: 50%; transform: translateX(50%); }
  .manifesto-band { grid-template-columns: 1fr; gap: 2rem; }
  .platform-hero { grid-template-columns: 1fr; }
  .platform-hero-visual { display: none; }
  .case-split { grid-template-columns: 1fr; gap: 2rem; }
  .case-visual { order: -1; }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leadspace-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 1rem; --radius: 16px; --radius-sm: 12px; }

  .leadspace { min-height: auto; }
  .leadspace-content { padding-top: 50vh; }
  .leadspace-stats { grid-template-columns: 1fr; }
  .leadspace-stat { padding: 1rem; }

  .capabilities-grid { grid-template-columns: 1fr; }
  .platform-layers { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }

  .tab-controls { overflow-x: auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section { padding: 3.5rem 0; }
  .ambient-orbs { display: none; }
  .hero-particles { display: none; }
  .hero-floating-imgs { display: none; }
  .strip-img { width: 200px; height: 130px; }
  .futuristic-grid-line { display: none; }
}

/* Hide GHL chat widget on mobile */
@media (max-width: 768px) {
  #lc_chat_layout,
  .lc_text_widget,
  [id*="chat-widget"],
  iframe[src*="leadconnectorhq"],
  .chat-widget-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green-deep), var(--blue));
  background-size: 200% 100%;
  animation: progressGradient 3s linear infinite;
  z-index: 200;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(66,66,255,0.4);
  transition: width 0.05s linear;
}

@keyframes progressGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0f0f18;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  width: 320px;
}

.preloader-logo-img {
  width: 100px;
  height: auto;
  margin-bottom: 2rem;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.96); }
}

.preloader-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--blue));
  background-size: 200% 100%;
  animation: progressGradient 2s linear infinite;
  transition: width 0.3s ease;
}

.preloader-phrase {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.45);
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}

.preloader-skip {
  margin-top: 1.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  background: transparent;
  color: rgba(255,255,255,0.35);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.preloader-skip:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}

/* ========== HERO FLOATING IMAGES ========== */
.hero-floating-imgs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-float {
  position: absolute;
  border-radius: 16px;
  object-fit: cover;
  opacity: 0.12;
  filter: blur(0.5px) saturate(1.2);
  will-change: transform;
}

.hero-float--1 {
  width: 220px;
  height: 160px;
  top: 12%;
  left: 5%;
  animation: heroFloat1 18s ease-in-out infinite;
}

.hero-float--2 {
  width: 180px;
  height: 130px;
  top: 55%;
  right: 6%;
  animation: heroFloat2 22s ease-in-out infinite;
}

.hero-float--3 {
  width: 150px;
  height: 110px;
  bottom: 15%;
  left: 15%;
  animation: heroFloat3 20s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  33% { transform: translate(30px, -20px) rotate(1deg); }
  66% { transform: translate(-15px, 15px) rotate(-1deg); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(1deg); }
  33% { transform: translate(-25px, 20px) rotate(-2deg); }
  66% { transform: translate(20px, -15px) rotate(2deg); }
}

@keyframes heroFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, 15px) rotate(2deg); }
  66% { transform: translate(-20px, -10px) rotate(-1.5deg); }
}

/* ========== PHOTO STRIP ========== */
.photo-strip {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  background: var(--bg-soft);
  position: relative;
}

.photo-strip::before,
.photo-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.photo-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-soft), transparent);
}

.photo-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-soft), transparent);
}

.photo-strip-track {
  display: flex;
  gap: 1.2rem;
  animation: stripScroll 40s linear infinite;
  width: max-content;
}

.photo-strip-track:hover {
  animation-play-state: paused;
}

.strip-img {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
}

.strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.strip-img:hover img {
  transform: scale(1.06);
}

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

/* ========== ORBIT SECTION ========== */

/* ========== VIDEO SHOWCASE ========== */
.video-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a14 100%);
  padding: 4.5rem 0 5rem;
}

/* ========== WIWO TV — NETFLIX STYLE ========== */

/* Header — Logo image */
.wiwotv-header {
  text-align: left;
  margin-bottom: 2rem;
}

.wiwotv-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* TV Noise Canvas */
.tv-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
  border-radius: inherit;
}

.tv-noise.noise-fade {
  opacity: 0;
}

.video-wrapper.is-playing .tv-noise {
  display: none;
}

/* TV Scanlines overlay */
.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  border-radius: inherit;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.video-wrapper.scanlines-off::after {
  opacity: 0;
}

.video-wrapper.is-playing::after {
  display: none;
}

/* Main Player */
.wiwotv-player {
  margin-bottom: 2rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.video-wrapper:hover {
  box-shadow: 0 32px 100px rgba(66,66,255,0.25), 0 0 0 1px rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease, filter 0.5s ease, opacity 0.4s ease;
  filter: brightness(0.55);
}

.video-wrapper:hover .video-thumbnail {
  transform: scale(1.02);
  filter: brightness(0.45);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.video-play-btn svg {
  width: 100%;
  height: 100%;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 8px 30px rgba(66,66,255,0.5));
}

.video-glow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(66,66,255,0.12), transparent 40%, transparent 60%, rgba(59,255,0,0.08));
  pointer-events: none;
  z-index: 1;
}

.video-wrapper.is-playing .video-play-btn,
.video-wrapper.is-playing .video-thumbnail,
.video-wrapper.is-playing .video-glow {
  display: none;
}

/* Now Playing Bar */
.wiwotv-now-playing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0 0;
  margin-top: 0.5rem;
}

.wiwotv-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3bff00;
  box-shadow: 0 0 8px rgba(59,255,0,0.6);
  animation: wiwotv-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wiwotv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.wiwotv-now-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

/* Carousel Section */
.wiwotv-carousel-wrapper {
  margin-top: 1rem;
}

.wiwotv-row-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.wiwotv-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wiwotv-carousel::-webkit-scrollbar {
  display: none;
}

/* Video Cards */
.wiwotv-card {
  flex: 1 0 180px;
  max-width: 220px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.wiwotv-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.wiwotv-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: box-shadow 0.35s ease;
  border: 2px solid transparent;
}

.wiwotv-card:hover .wiwotv-card-thumb {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.wiwotv-card.is-active .wiwotv-card-thumb {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 24px rgba(66,66,255,0.3);
}

.wiwotv-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65);
  transition: filter 0.3s ease, transform 0.5s ease;
}

.wiwotv-card:hover .wiwotv-card-thumb img {
  filter: brightness(0.5);
  transform: scale(1.05);
}

.wiwotv-card.is-active .wiwotv-card-thumb img {
  filter: brightness(0.8);
}

.wiwotv-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wiwotv-card:hover .wiwotv-card-overlay {
  opacity: 1;
}

.wiwotv-card-play {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.wiwotv-card-active-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.wiwotv-card.is-active .wiwotv-card-active-bar {
  transform: scaleX(1);
}

.wiwotv-card-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.wiwotv-card.is-active .wiwotv-card-title {
  color: #fff;
}

.wiwotv-card-desc {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wiwotv-card.is-active .wiwotv-card-desc {
  color: rgba(255,255,255,0.5);
}

.wiwotv-card-ep {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  margin-top: 0.3rem;
}

.wiwotv-card.is-active .wiwotv-card-ep {
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .wiwotv-logo-img { height: 32px; }
  .video-play-btn { width: 64px; height: 64px; }
  .wiwotv-card { flex: 0 0 180px; }
}

@media (max-width: 480px) {
  .wiwotv-logo-img { height: 26px; }
  .video-play-btn { width: 52px; height: 52px; }
  .wiwotv-card { flex: 0 0 150px; }
  .video-wrapper { border-radius: 12px; }
  .wiwotv-card-thumb { border-radius: 8px; }
  .wiwotv-card-desc { -webkit-line-clamp: 1; }
}

/* ========== MANIFESTO WATERMARK ========== */
.manifesto-section {
  position: relative;
  overflow: hidden;
}

.manifesto-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.manifesto-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(2) grayscale(0.3);
}

/* ========== FUTURISTIC MOVING ELEMENTS ========== */
.futuristic-grid-line {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.futuristic-grid-line--h {
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: gridLineH 8s ease-in-out infinite;
}

.futuristic-grid-line--v {
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue), transparent);
  animation: gridLineV 10s ease-in-out infinite;
}

@keyframes gridLineH {
  0%, 100% { transform: translateY(0); opacity: 0.04; }
  50% { transform: translateY(100vh); opacity: 0.08; }
}

@keyframes gridLineV {
  0%, 100% { transform: translateX(0); opacity: 0.03; }
  50% { transform: translateX(100vw); opacity: 0.06; }
}

/* ========== VISUAL WORLD — BENTO GRID ========== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.85) saturate(1.1);
}

.bento-item:hover img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.2);
}

.bento-item--tall {
  grid-row: span 2;
}

.bento-item--wide {
  grid-column: span 2;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,15,24,0.7));
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-item:hover .bento-overlay {
  opacity: 1;
}

.bento-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  padding: 0.35rem 0.85rem;
  background: rgba(66,66,255,0.6);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .bento-item--tall { grid-row: span 1; }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .bento-item--wide { grid-column: span 1; }
}

/* ========== TRUST MARQUEE ========== */
.trust-marquee {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
}

.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
  will-change: transform;
}

.trust-marquee-track:hover {
  animation-play-state: paused;
}

.trust-sep {
  color: var(--line-light);
  font-size: 0.8rem;
}

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

/* ========== NEO RESULTS GRID ========== */
.neo-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.neo-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.neo-result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(66,66,255,0.15);
}

.neo-result-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
}

.neo-result-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 180px;
  margin: 0;
}

@media (max-width: 768px) {
  .neo-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== TEXT REVEAL (word by word) ========== */
.text-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.is-revealed .word {
  opacity: 1;
  transform: translateY(0);
}

.text-reveal--light .word {
  opacity: 0;
  transform: translateY(20px);
}

.text-reveal--light.is-revealed .word {
  opacity: 1;
  transform: translateY(0);
}

/* ========== TYPEWRITER HEADING ========== */
.typewriter-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  min-height: 2.5em;
}

#capabilities { padding-top: 3.5rem; }
#capabilities .section-header { margin-bottom: 2rem; }

.typewriter-text .tw-purple {
  color: var(--blue);
}

.typewriter-cursor {
  display: inline-block;
  color: var(--blue);
  font-weight: 300;
  animation: cursorBlink 0.8s steps(1) infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ========== IMAGE CLIP REVEAL ========== */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.is-revealed {
  clip-path: inset(0 0% 0 0);
}

/* Case visual: use scale reveal instead of clip to avoid conflict */
.case-visual.img-reveal {
  clip-path: none;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-visual.img-reveal.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ========== STAGGER GRID CHILDREN ========== */
.stagger-grid .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-grid .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ========== HERO PARTICLES CANVAS ========== */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ========== MAGNETIC BUTTON EFFECT ========== */
.magnetic {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.magnetic-sm {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  will-change: transform;
}

/* ========== HIDE GHL DEFAULT POPUP OVERLAY ========== */
.ep-overlay,
[id$="-overlay"].ep-overlay {
  display: none !important;
}

/* ========== GHL FORM MODAL ========== */
.ghl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ghl-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ghl-modal {
  position: relative;
  width: min(92vw, 500px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transform: translateY(24px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ghl-modal-overlay.is-open .ghl-modal {
  transform: translateY(0) scale(1);
}

.ghl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.ghl-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink, #1a1a2e);
  letter-spacing: -0.01em;
}

.ghl-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.ghl-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
  transform: scale(1.1);
}

.ghl-modal-close:active {
  transform: scale(0.95);
}

.ghl-modal-body {
  height: 680px;
  flex-shrink: 0;
  overflow: hidden;
}

.ghl-modal-body iframe {
  display: block;
}

@media (max-width: 640px) {
  .ghl-modal-overlay {
    padding: 1rem;
  }
  .ghl-modal {
    width: 100%;
    max-height: 85vh;
  }
  .ghl-modal-body {
    height: 70vh;
  }
}

/* ========== VIDEO MODAL ========== */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal {
  position: relative;
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(24px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.is-open .video-modal {
  transform: translateY(0) scale(1);
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal-body {
  width: 100%;
  height: 100%;
}

.video-modal-body iframe {
  width: 100%;
  height: 100%;
}

/* ================================================================
   W MODEL — Circular diagram
   ================================================================ */
.wmodel-section { overflow: visible; }
.wmodel-header { text-align: center; margin-bottom: 3rem; }
.wmodel-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.wmodel-w {
  font-weight: 900;
  color: var(--blue);
}
.wmodel-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 1.2rem auto 1.5rem;
  line-height: 1.6;
}
.wmodel-subtitle strong { color: var(--ink); }
.wmodel-bar {
  width: min(100%, 700px);
  height: 4px;
  background: var(--bg-soft);
  border-radius: 4px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.wmodel-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: wmodelBarFill 2s ease-out 0.5s forwards;
}
@keyframes wmodelBarFill {
  to { transform: scaleX(1); }
}
.wmodel-bar::before,
.wmodel-bar::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  top: 50%; transform: translateY(-50%);
}
.wmodel-bar::before { left: -6px; }
.wmodel-bar::after { right: -6px; }

/* Wheel layout */
.wmodel-wheel-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 2rem;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

.wmodel-wheel {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  width: 340px;
  height: 340px;
}
.wmodel-ring {
  width: 100%;
  height: 100%;
}
.wmodel-center-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}
.wmodel-center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.5) drop-shadow(0 0 20px rgba(66,66,255,0.3));
}

/* Descriptions */
.wmodel-desc {
  position: relative;
  max-width: 320px;
}
.wmodel-desc-title {
  font-size: 0.95rem;
  color: var(--blue);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.wmodel-desc-title strong {
  font-weight: 800;
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.wmodel-desc-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Position descriptions around wheel */
.wmodel-desc--1 { grid-column: 1; grid-row: 2; text-align: right; justify-self: end; }
.wmodel-desc--5 { grid-column: 1; grid-row: 3; text-align: right; justify-self: end; }
.wmodel-desc--2 { grid-column: 3; grid-row: 1; text-align: left; justify-self: start; }
.wmodel-desc--3 { grid-column: 3; grid-row: 2; text-align: left; justify-self: start; }
.wmodel-desc--4 { grid-column: 3; grid-row: 3; text-align: left; justify-self: start; }

/* Connectors (lines from text to wheel) */
.wmodel-connector {
  position: absolute;
  height: 2px;
  background: var(--blue);
  opacity: 0.3;
  width: 40px;
  top: 50%;
}
.wmodel-connector--1,
.wmodel-connector--5 { right: -52px; }
.wmodel-connector--2,
.wmodel-connector--3,
.wmodel-connector--4 { left: -52px; }

/* Mobile */
@media (max-width: 900px) {
  .wmodel-wheel-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem 0;
  }
  .wmodel-wheel {
    grid-column: 1;
    grid-row: 1;
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }
  .wmodel-desc {
    grid-column: 1 !important;
    text-align: center !important;
    justify-self: center !important;
    max-width: 400px;
  }
  .wmodel-desc--1 { grid-row: 2; }
  .wmodel-desc--2 { grid-row: 3; }
  .wmodel-desc--3 { grid-row: 4; }
  .wmodel-desc--4 { grid-row: 5; }
  .wmodel-desc--5 { grid-row: 6; }
  .wmodel-connector { display: none; }
}

/* ================================================================
   TIMELINE — Nosotros page
   ================================================================ */
.tl-section {
  position: relative;
  background: #080814;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.tl-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tl-grid-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.tl-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.tl-glow--1 {
  width: 600px; height: 600px;
  top: 10%; left: -10%;
  background: radial-gradient(circle, rgba(66,66,255,0.12) 0%, transparent 70%);
  animation: tlGlowDrift 12s ease-in-out infinite alternate;
}
.tl-glow--2 {
  width: 500px; height: 500px;
  bottom: 15%; right: -8%;
  background: radial-gradient(circle, rgba(59,255,0,0.08) 0%, transparent 70%);
  animation: tlGlowDrift 10s ease-in-out infinite alternate-reverse;
}
@keyframes tlGlowDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, -30px); }
}

/* Track + Central line */
.tl-track {
  position: relative;
  padding: 3rem 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, rgba(66,66,255,0.3) 5%, rgba(66,66,255,0.3) 95%, transparent 100%);
  transform: translateX(-50%);
  z-index: 0;
}
.tl-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: var(--tl-fill, 0%);
  background: linear-gradient(to bottom, var(--blue), var(--green));
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(66,66,255,0.4), 0 0 24px rgba(59,255,0,0.2);
}

/* Era dividers */
.tl-era {
  position: relative;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  z-index: 3;
}
.tl-era-label {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  border: 1px solid rgba(66,66,255,0.4);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: rgba(66,66,255,0.08);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}
.tl-era-label--now {
  border-color: var(--green);
  color: var(--green);
  background: rgba(59,255,0,0.08);
  box-shadow: 0 0 20px rgba(59,255,0,0.15);
  animation: tlNowPulse 2s ease-in-out infinite;
}
@keyframes tlNowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59,255,0,0.15); }
  50% { box-shadow: 0 0 30px rgba(59,255,0,0.3); }
}

/* Timeline items */
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 1.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.tl-item.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left / Right positioning */
.tl-item--left .tl-card { grid-column: 1; text-align: right; }
.tl-item--left .tl-node { grid-column: 2; }
.tl-item--left::after { content: ''; grid-column: 3; }

.tl-item--right::before { content: ''; grid-column: 1; }
.tl-item--right .tl-node { grid-column: 2; }
.tl-item--right .tl-card { grid-column: 3; text-align: left; }

.tl-item--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tl-item--center .tl-card { text-align: center; max-width: 500px; }

/* Stagger animation direction */
.tl-item--left { transform: translateY(40px) translateX(-30px); }
.tl-item--left.tl-visible { transform: translateY(0) translateX(0); }
.tl-item--right { transform: translateY(40px) translateX(30px); }
.tl-item--right.tl-visible { transform: translateY(0) translateX(0); }

/* Node (the dot on the line) */
.tl-node {
  position: relative;
  width: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.6rem;
  z-index: 3;
}
.tl-node-ring {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(66,66,255,0.5);
  background: #080814;
  position: relative;
  transition: all 0.4s var(--spring);
}
.tl-visible .tl-node-ring {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(66,66,255,0.4);
}
.tl-node--ai .tl-node-ring {
  border-color: rgba(59,255,0,0.5);
  width: 16px;
  height: 16px;
}
.tl-visible .tl-node--ai .tl-node-ring {
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(59,255,0,0.4);
  background: rgba(59,255,0,0.1);
}
.tl-node--nvidia .tl-node-ring {
  border-color: var(--green);
  width: 18px;
  height: 18px;
}
.tl-visible .tl-node--nvidia .tl-node-ring {
  box-shadow: 0 0 18px rgba(59,255,0,0.5);
  background: rgba(59,255,0,0.15);
}
.tl-node--now .tl-node-ring {
  width: 20px;
  height: 20px;
  border-color: var(--green);
  background: var(--green);
  animation: tlNodeNow 2s ease-in-out infinite;
}
@keyframes tlNodeNow {
  0%, 100% { box-shadow: 0 0 16px rgba(59,255,0,0.4); }
  50% { box-shadow: 0 0 28px rgba(59,255,0,0.6); }
}

/* Cards */
.tl-card {
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.tl-card:hover {
  border-color: rgba(66,66,255,0.2);
  background: rgba(255,255,255,0.05);
}
.tl-card--ai {
  border-color: rgba(59,255,0,0.12);
  background: rgba(59,255,0,0.03);
}
.tl-card--ai:hover {
  border-color: rgba(59,255,0,0.25);
  background: rgba(59,255,0,0.06);
  box-shadow: 0 0 24px rgba(59,255,0,0.08);
}
.tl-card--highlight {
  border-color: rgba(59,255,0,0.15);
  background: rgba(59,255,0,0.04);
}
.tl-card--highlight:hover {
  border-color: rgba(59,255,0,0.3);
  box-shadow: 0 4px 30px rgba(59,255,0,0.1);
}
.tl-card--now {
  border-color: rgba(59,255,0,0.3);
  background: rgba(59,255,0,0.06);
  box-shadow: 0 0 40px rgba(59,255,0,0.1);
}

/* Card inner elements */
.tl-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.tl-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  border: 1px solid rgba(66,66,255,0.3);
  color: var(--blue);
  background: rgba(66,66,255,0.08);
}
.tl-badge--ai {
  border-color: rgba(59,255,0,0.3);
  color: var(--green);
  background: rgba(59,255,0,0.08);
}
.tl-badge--green {
  border-color: rgba(59,255,0,0.4);
  color: var(--green);
  background: rgba(59,255,0,0.1);
}
.tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0.3rem 0 0.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tl-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tl-track { max-width: 100%; padding-left: 1rem; }
  .tl-line { left: 20px; }
  .tl-era { text-align: left; padding-left: 44px; }
  .tl-item,
  .tl-item--left,
  .tl-item--right,
  .tl-item--center {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    transform: translateY(40px) translateX(0) !important;
  }
  .tl-item.tl-visible,
  .tl-item--left.tl-visible,
  .tl-item--right.tl-visible { transform: translateY(0) translateX(0) !important; }
  .tl-item--left .tl-card,
  .tl-item--right .tl-card,
  .tl-item--center .tl-card { text-align: left !important; grid-column: auto; }
  .tl-item--left::after,
  .tl-item--right::before { display: none; }
  .tl-node { width: 40px; min-width: 40px; }
  .tl-card { flex: 1; }
  .tl-section { padding: 4rem 0 3rem; }
}
