/* =========================================================
   STARVIS — Production stylesheet
   Source of truth: starvis/project/brand-kit.html
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist.ttf') format('truetype-variations'),
       url('../fonts/Geist.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2-variations'),
       url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #2966CC;
  --blue-deep: #1F4FA0;
  --blue-soft: #4F86E0;
  --blue-glow: rgba(41, 102, 204, 0.55);
  --ink: #1A1A1A;
  --ink-soft: #2A2A2A;
  --gray: #6B7280;
  --gray-2: #9CA3AF;
  --line: #E5E7EB;
  --line-soft: #F3F4F6;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFB;
  --tint: #EAF1FB;
  --tint-2: #F4F8FE;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.05), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.10), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.14), 0 12px 20px -8px rgba(16, 24, 40, 0.06);
  --shadow-blue: 0 12px 32px -8px rgba(41, 102, 204, 0.30);
  --shadow-blue-strong: 0 20px 60px -12px rgba(41, 102, 204, 0.55);

  --container: 1280px;
  --container-narrow: 1080px;
  --pad-x: clamp(20px, 4vw, 56px);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 240ms var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis takes over smooth scroll once loaded; disable CSS smooth to avoid double-easing */
html.lenis-ready { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* "clip" instead of "hidden" so ScrollTrigger pinning still works */
}

/* Lenis required base styles */
html.lenis-ready, html.lenis-ready body {
  height: auto;
}
html.lenis-ready.lenis-smooth {
  scroll-behavior: auto !important;
}
html.lenis-ready.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
html.lenis-ready.lenis-stopped {
  overflow: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 10px 14px;
  border-radius: 6px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0;
}
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--ink);
  color: #fff;
}
.section--blue {
  background: var(--blue);
  color: #fff;
}
.section--tint { background: var(--tint-2); }

/* eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section--dark .eyebrow,
.section--blue .eyebrow { color: rgba(255,255,255,0.7); }

/* type system */
.title {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.0;
  text-wrap: balance;
}
h1.title { font-size: clamp(40px, 7vw, 88px); letter-spacing: -0.04em; line-height: 0.98; }
h2.title { font-size: clamp(32px, 5vw, 64px); }
h3.title { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.025em; line-height: 1.1; }
.lede {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--gray);
  line-height: 1.6;
  max-width: 56ch;
  text-wrap: pretty;
}
.section--dark .lede,
.section--blue .lede { color: rgba(255,255,255,0.75); }

.accent { color: var(--blue); }
.section--blue .accent { color: #fff; }
.section--dark .accent { color: var(--blue-soft); }
.mono { font-family: var(--font-mono); }

/* spec tag */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(41,102,204,0.10);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41,102,204,0.30); }
  50%      { box-shadow: 0 0 0 6px rgba(41,102,204,0); }
}

/* ===========================================================
   BUTTONS — including magnetic + shine
   =========================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 280ms var(--ease-out),
              background var(--transition),
              color var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--transition); position: relative; z-index: 2; }
.btn .btn__label, .btn > span:not(.btn__shine) { position: relative; z-index: 2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--blue); box-shadow: var(--shadow-blue); }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(41,102,204,0.40);
}
.btn--blue:hover { background: var(--blue-deep); box-shadow: var(--shadow-blue); }
.btn--blue:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost:hover svg { transform: translateX(3px); }

.section--dark .btn--ghost,
.section--blue .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.section--dark .btn--ghost:hover,
.section--blue .btn--ghost:hover {
  background: #fff; color: var(--ink); border-color: #fff;
}

.btn--sm { padding: 9px 14px; font-size: 13px; }

/* magnetic primary CTA — adds gradient ring and shine sweep */
.btn--magnetic {
  padding: 16px 26px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(41,102,204,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn--magnetic::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(41,102,204,0) 30%, var(--blue) 50%, rgba(41,102,204,0) 70%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
  z-index: 1;
}
.btn--magnetic:hover { background: var(--blue); box-shadow: var(--shadow-blue-strong); }
.btn--magnetic:hover::before { opacity: 1; animation: ringSpin 2.4s linear infinite; }
.btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease-out);
  z-index: 1;
  pointer-events: none;
}
.btn--magnetic:hover .btn__shine { transform: translateX(110%); }
@keyframes ringSpin {
  to { transform: rotate(1turn); }
}

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--tint);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(41,102,204,0.10);
  position: relative;
}
.badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue-glow);
  animation: pulse 2.4s var(--ease) infinite;
}

/* ============== HEADER / NAV ============== */
.site-header {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.92); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__brand img { height: 16px; width: auto; }
.nav__brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.nav__links {
  display: none;
  gap: 4px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
  font-weight: 500;
}
.nav__links a:hover { background: var(--line-soft); }
.nav__links a.is-active { background: var(--ink); color: #fff; }

.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background var(--transition);
}
.nav__menu-toggle:hover { background: var(--line-soft); }
.nav__menu-toggle .bar {
  width: 16px; height: 1.5px; background: var(--ink);
  position: relative;
  transition: transform var(--transition);
}
.nav__menu-toggle .bar::before,
.nav__menu-toggle .bar::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform var(--transition), top var(--transition);
}
.nav__menu-toggle .bar::before { top: -5px; }
.nav__menu-toggle .bar::after { top: 5px; }
.nav__menu-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav__menu-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav__menu-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav__links { display: inline-flex; }
  .nav__menu-toggle { display: none; }
}

.mobile-nav {
  position: fixed; inset: 68px 0 0 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px);
  z-index: 40;
  padding: 32px var(--pad-x);
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.mobile-nav a:hover { background: var(--line-soft); border-color: var(--line); }
.mobile-nav__footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}


/* ============================================================
   HERO · STARVIS OS — cinematic dark stage
   Layers (bottom→top):
     L0 sky / aurora orbs
     L1 grid mesh
     L2 constellation lines
     L3 vignette + cursor spotlight
     L4 live ticker bar
     L5 content (left col + os console + floating panels)
     L6 horizon fade into white site
   ============================================================ */
.hero-os {
  position: relative;
  isolation: isolate;
  padding: clamp(60px, 7vw, 92px) 0 clamp(60px, 8vw, 110px);
  background: radial-gradient(ellipse 100% 80% at 50% 0%, #0d1322 0%, #050609 60%, #03030a 100%);
  color: #fff;
  overflow: hidden;
  min-height: 100vh;
}

/* L0 · aurora orbs */
.hero-os__sky {
  position: absolute; inset: 0;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.85;
  z-index: 0;
}
.hero-os__orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-os__orb--a {
  width: 720px; height: 720px;
  top: -180px; left: -200px;
  background: radial-gradient(circle, rgba(41,102,204,0.55), transparent 65%);
  animation: heroOrbA 28s var(--ease) infinite alternate;
}
.hero-os__orb--b {
  width: 560px; height: 560px;
  top: 20%; right: -180px;
  background: radial-gradient(circle, rgba(79,134,224,0.45), transparent 65%);
  animation: heroOrbB 22s var(--ease) infinite alternate;
}
.hero-os__orb--c {
  width: 480px; height: 480px;
  bottom: -160px; left: 30%;
  background: radial-gradient(circle, rgba(41,102,204,0.30), transparent 70%);
  animation: heroOrbC 32s var(--ease) infinite alternate;
}
@keyframes heroOrbA { to { transform: translate(120px, 80px) scale(1.10); } }
@keyframes heroOrbB { to { transform: translate(-100px, 140px) scale(1.05); } }
@keyframes heroOrbC { to { transform: translate(80px, -120px) scale(1.20); } }

/* L1 · grid mesh */
.hero-os__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(79,134,224,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79,134,224,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: heroGridDrift 80s linear infinite;
}
@keyframes heroGridDrift { to { background-position: 64px 64px; } }

/* L2 · constellation */
.hero-os__constellation {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.hero-os__cnst-lines path {
  stroke-dasharray: 4 6;
  animation: cnstFlow 22s linear infinite;
}
.hero-os__cnst-lines path:nth-child(2) { animation-duration: 28s; animation-direction: reverse; }
@keyframes cnstFlow { to { stroke-dashoffset: -200; } }
.hero-os__cnst-nodes circle {
  filter: drop-shadow(0 0 6px rgba(79,134,224,0.7));
  animation: cnstNodePulse 3.6s var(--ease) infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.hero-os__cnst-nodes circle:nth-child(2) { animation-delay: 0.6s; }
.hero-os__cnst-nodes circle:nth-child(3) { animation-delay: 1.2s; }
.hero-os__cnst-nodes circle:nth-child(4) { animation-delay: 1.8s; }
.hero-os__cnst-nodes circle:nth-child(5) { animation-delay: 0.3s; }
.hero-os__cnst-nodes circle:nth-child(6) { animation-delay: 0.9s; }
@keyframes cnstNodePulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.8); opacity: 0.6; }
}

/* L3 · vignette + spotlight */
.hero-os__vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 50%, rgba(0,0,0,0.50) 100%),
    linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.65) 100%);
}
.hero-os__spotlight {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(360px 360px at var(--mx, 50%) var(--my, 30%), rgba(79,134,224,0.20), transparent 60%);
  opacity: 0;
  transition: opacity 600ms var(--ease);
  mix-blend-mode: screen;
}
.hero-os.is-pointer .hero-os__spotlight { opacity: 1; }

/* Brand mascot · floats next to the Starvis logo, docks on scroll */
.starvis-intro {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.starvis-intro.is-done {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 1;
  visibility: visible;
}

.starvis-intro.is-assistant-docked {
  z-index: 9998;
}

.starvis-intro__lockup {
  position: absolute;
  left: 50%;
  top: clamp(24px, 4vh, 60px);
  width: clamp(360px, 40vw, 580px);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.96);
  filter: drop-shadow(0 0 0 rgba(79,134,224,0));
}

.starvis-intro__lockup img {
  width: 100%;
  height: auto;
  opacity: 0.96;
}

.starvis-intro.is-done .starvis-intro__lockup {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  filter: drop-shadow(0 4px 28px rgba(79, 134, 224, 0.45));
}

.starvis-intro.is-assistant-docked .starvis-intro__lockup {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px) scale(0.94);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s linear 280ms;
}

.starvis-intro__logo-glow,
.starvis-intro__logo-scan {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  pointer-events: none;
}

.starvis-intro__logo-glow {
  background: radial-gradient(circle, rgba(89,222,255,0.40), transparent 58%);
  opacity: 0;
  mix-blend-mode: screen;
}

.starvis-intro__logo-scan {
  inset: -10% -18%;
  background: linear-gradient(105deg, transparent 30%, rgba(130,235,255,0.85) 48%, transparent 62%);
  transform: translateX(-140%);
  mix-blend-mode: screen;
  opacity: 0;
}

.starvis-intro__model {
  /* Base = final (is-done) position so the intro animation lands at
     transform: none and does NOT need to be redrawn when is-done activates.
     Avoids the visual bounce when the keyframe transform got reset. */
  position: fixed;
  left: calc(50% + clamp(142px, 18vw, 230px));
  top: clamp(84px, 11vh, 112px);
  width: clamp(112px, 12.5vw, 184px);
  aspect-ratio: 1;
  opacity: 0; /* aparece con fade cuando el GLB está listo (is-model-ready) */
  transform-origin: 52% 62%;
  will-change: left, top, width, opacity, transform;
  transition:
    left 780ms cubic-bezier(0.22, 0.62, 0.22, 1),
    top 780ms cubic-bezier(0.22, 0.62, 0.22, 1),
    width 720ms cubic-bezier(0.22, 0.62, 0.22, 1) 40ms,
    transform 780ms cubic-bezier(0.22, 0.62, 0.22, 1),
    opacity 360ms var(--ease-out);
  filter:
    drop-shadow(0 22px 38px rgba(0,0,0,0.42))
    drop-shadow(0 0 26px rgba(89,222,255,0.24));
}

.starvis-intro__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.starvis-intro.is-done.is-model-ready .starvis-intro__model {
  position: fixed;
  left: calc(50% + clamp(142px, 18vw, 230px));
  top: clamp(84px, 11vh, 112px);
  width: clamp(112px, 12.5vw, 184px);
  opacity: 1;
  z-index: 3;
}

.starvis-intro.is-done.is-model-ready.is-assistant-docked .starvis-intro__model {
  position: fixed;
  left: calc(100vw - clamp(86px, 8.5vw, 122px) - clamp(12px, 2.2vw, 28px));
  top: calc(100vh - clamp(86px, 8.5vw, 122px) - clamp(18px, 3vh, 30px));
  width: clamp(86px, 8.5vw, 122px);
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.starvis-assistant-bubble {
  position: fixed;
  right: clamp(108px, 11vw, 154px);
  bottom: clamp(54px, 7vh, 78px);
  display: grid;
  gap: 2px;
  min-width: 178px;
  padding: 12px 14px;
  border: 1px solid rgba(79,134,224,0.26);
  border-radius: 16px 16px 4px 16px;
  color: rgba(255,255,255,0.92);
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
  background: rgba(7,12,22,0.84);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.34),
    0 0 30px rgba(79,134,224,0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(10px, 8px, 0) scale(0.96);
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out),
    visibility 0s linear 360ms;
  pointer-events: none;
}

.starvis-intro.is-conversation-open .starvis-assistant-bubble {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.starvis-assistant-bubble span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.starvis-assistant-bubble small {
  font-size: 11px;
  color: rgba(170,204,255,0.76);
}

.starvis-assistant-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(79,134,224,0.26);
  border-bottom: 1px solid rgba(79,134,224,0.26);
  background: rgba(7,12,22,0.84);
  transform: rotate(-45deg);
}

.starvis-assistant-bubble:hover {
  transform: translate3d(0, 0, 0) scale(1);
  border-color: rgba(120,190,255,0.42);
}

.starvis-intro.is-assistant-docked.is-assistant-speaking .starvis-assistant-bubble {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 220ms, 220ms, 0s;
  pointer-events: auto;
}

.starvis-conversation {
  position: fixed;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(118px, 15vh, 150px);
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(120,190,255,0.28);
  border-radius: 20px;
  color: rgba(255,255,255,0.94);
  background: linear-gradient(180deg, rgba(17,24,38,0.96), rgba(6,10,18,0.94));
  box-shadow:
    0 24px 70px rgba(0,0,0,0.42),
    0 0 42px rgba(79,134,224,0.18);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0) scale(0.96);
  transition:
    opacity 320ms var(--ease-out),
    transform 320ms var(--ease-out),
    visibility 0s linear 320ms;
  pointer-events: none;
  z-index: 6;
}

.starvis-intro.is-conversation-open .starvis-conversation {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.starvis-conversation__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.starvis-conversation__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139,205,255,0.76);
}

.starvis-conversation h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: 0;
}

.starvis-conversation p {
  margin: 0 0 16px;
  color: rgba(224,236,255,0.74);
  line-height: 1.5;
}

.starvis-conversation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: #2966CC;
}

.hero-os.brand-awake .hero-os__logo {
  animation: introHeroLogoGlow 1400ms var(--ease-out) both;
}

@keyframes introHeroLogoGlow {
  0%   { filter: drop-shadow(0 4px 24px rgba(79, 134, 224, 0.35)); }
  42%  { filter: drop-shadow(0 0 42px rgba(89, 222, 255, 0.72)); }
  100% { filter: drop-shadow(0 4px 24px rgba(79, 134, 224, 0.35)); }
}

@media (max-width: 760px) {
  .starvis-intro__lockup {
    left: 50%;
    top: 20px;
    width: clamp(280px, 82vw, 360px);
  }

  .starvis-intro__model {
    left: calc(100vw - 98px);
    top: 72px;
    width: 95px;
  }

  .starvis-intro.is-done.is-model-ready .starvis-intro__model {
    position: fixed;
    left: calc(100vw - 98px);
    top: 72px;
    width: 95px;
  }

  .starvis-intro.is-done.is-model-ready.is-assistant-docked .starvis-intro__model {
    left: calc(100vw - 90px);
    top: calc(100vh - 104px);
    width: 82px;
  }

  .starvis-assistant-bubble {
    right: 84px;
    bottom: 42px;
    min-width: 158px;
    padding: 10px 12px;
    border-radius: 14px 14px 4px 14px;
  }

  .starvis-assistant-bubble span {
    font-size: 13px;
  }

  .starvis-assistant-bubble small {
    font-size: 10.5px;
  }

  .starvis-conversation {
    right: 12px;
    bottom: 106px;
    width: calc(100vw - 24px);
    padding: 18px;
  }
}

/* L4 · live ticker */
.hero-os__ticker {
  position: absolute;
  top: 76px;
  left: 0; right: 0;
  z-index: 2;
  height: 32px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-os__ticker-edge {
  position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2; pointer-events: none;
}
.hero-os__ticker-edge--l { left: 0; background: linear-gradient(90deg, #050609, transparent); }
.hero-os__ticker-edge--r { right: 0; background: linear-gradient(-90deg, #050609, transparent); }
.hero-os__ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 0 18px;
  height: 100%;
  white-space: nowrap;
  animation: tickerScroll 56s linear infinite;
  will-change: transform;
}
.hero-os__ticker-track > span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.30);
  box-shadow: 0 0 0 0 transparent;
  flex-shrink: 0;
  position: relative;
}
.led--ok {
  background: #28C840;
  box-shadow: 0 0 8px rgba(40,200,64,0.65);
  animation: ledPulse 2.2s var(--ease) infinite;
}
.led--blue {
  background: var(--blue-soft);
  box-shadow: 0 0 8px rgba(79,134,224,0.65);
  animation: ledPulse 2.2s var(--ease) infinite;
}
@keyframes ledPulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent; opacity: 0.55; }
}

/* L5 · content layout */
.hero-os__inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(48px, 6vw, 88px);
  padding-top: 32px;
}
@media (min-width: 1080px) {
  .hero-os__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* Left column */
.hero-os__col-left {
  display: grid;
  gap: clamp(22px, 2.4vw, 32px);
  align-content: start;
  position: relative;
}

/* Logo mark inside hero — clean, prominent, no version label */
.hero-os__mark {
  display: flex;
  align-items: center;
  margin-bottom: -4px;
  opacity: 0;
  visibility: hidden;
}

.hero-os__logo {
  height: clamp(56px, 6vw, 80px);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(79, 134, 224, 0.35));
}

@media (max-width: 640px) {
  .hero-os__logo { height: clamp(48px, 12vw, 64px); }
}

.hero-os__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border: 1px solid rgba(79,134,224,0.30);
  border-radius: var(--radius-pill);
  background: rgba(41,102,204,0.10);
  backdrop-filter: blur(8px);
  width: max-content;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: 80ms;
  max-width: 100%;
}
.hero-os.is-mounted .hero-os__eyebrow { opacity: 1; transform: translateY(0); }
.hero-os__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 10px var(--blue-soft);
  animation: ledPulse 2s var(--ease) infinite;
}
.hero-os__eyebrow-sep { opacity: 0.4; }
.hero-os__eyebrow-live {
  color: #28C840;
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* Title — cinematic word reveal */
.hero-os__title {
  font-size: clamp(40px, 7.6vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: #fff;
  text-wrap: balance;
}
.hero-os__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-os__word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.hero-os.is-mounted .hero-os__line:nth-child(1) .hero-os__word {
  animation: wordRise 900ms var(--ease-out) 240ms forwards;
}
.hero-os.is-mounted .hero-os__line:nth-child(2) .hero-os__word {
  animation: wordRise 900ms var(--ease-out) 380ms forwards;
}
@keyframes wordRise {
  to { transform: translateY(0); opacity: 1; }
}
.hero-os__title em[data-accent] {
  font-style: normal;
  position: relative;
  background: linear-gradient(120deg, var(--blue-soft) 0%, #fff 40%, var(--blue-soft) 80%);
  background-size: 200% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: accentSweep 6s linear infinite;
}
.hero-os__title em[data-accent]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.10em;
  background: linear-gradient(90deg, transparent, var(--blue-soft) 30%, var(--blue-soft) 70%, transparent);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  filter: blur(0.5px);
  box-shadow: 0 0 16px var(--blue-glow);
}
.hero-os.is-mounted .hero-os__title em[data-accent]::after {
  animation: accentUnderline 1100ms var(--ease-out) 1100ms forwards;
}
@keyframes accentUnderline { to { transform: scaleX(1); } }
@keyframes accentSweep { to { background-position: -200% 0; } }

.hero-os__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  font-weight: 400;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: 900ms;
}
.hero-os.is-mounted .hero-os__sub { opacity: 1; transform: translateY(0); }
.hero-os__sub strong {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(120deg, var(--blue-soft), #fff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-os__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: 1100ms;
}
.hero-os.is-mounted .hero-os__cta { opacity: 1; transform: translateY(0); }

/* OS buttons */
.btn-os {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  isolation: isolate;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: transform 280ms var(--ease-spring), color var(--transition);
  will-change: transform;
}
.btn-os__core {
  position: relative;
  z-index: 2;
  padding: 16px 24px;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-os svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn-os:hover svg { transform: translateX(4px); }
.btn-os:hover { transform: translateY(-1px); }
.btn-os:active { transform: translateY(0); }
.btn-os--primary { color: #fff; }
.btn-os--primary .btn-os__core {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow:
    0 14px 36px -10px rgba(41,102,204,0.55),
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 1px 0 rgba(255,255,255,0.18) inset;
}
.btn-os--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0%, var(--blue-soft) 14%, transparent 28%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  animation: btnHaloSpin 6s linear infinite;
}
.btn-os--primary .btn-os__halo {
  position: absolute; inset: -10px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(41,102,204,0.40), transparent 70%);
  border-radius: var(--radius-pill);
  filter: blur(18px);
  opacity: 0.6;
  z-index: 0;
  transition: opacity 360ms var(--ease);
}
.btn-os--primary:hover .btn-os__halo { opacity: 1; }
@keyframes btnHaloSpin { to { --ang: 360deg; } }
.btn-os--ghost {
  color: rgba(255,255,255,0.92);
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.btn-os--ghost:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
}

/* metrics strip */
.hero-os__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: 1300ms;
}
.hero-os.is-mounted .hero-os__metrics { opacity: 1; transform: translateY(0); }
.hero-os__metrics > div { display: flex; flex-direction: column; gap: 4px; }
.hero-os__metrics strong {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.hero-os__metrics .unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-soft);
  letter-spacing: 0.02em;
}
.hero-os__metrics dd {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ============================================================
   STARVIS OS · LIVE CONSOLE (right column)
   ============================================================ */
.hero-os__col-right {
  position: relative;
  min-height: 480px;
  perspective: 1600px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: 600ms;
}
.hero-os.is-mounted .hero-os__col-right { opacity: 1; transform: translateY(0); }

.hero-os__console {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20,24,36,0.78), rgba(8,10,18,0.92));
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow:
    0 60px 120px -24px rgba(0,0,0,0.65),
    0 0 0 1px rgba(41,102,204,0.10),
    0 0 60px -8px rgba(41,102,204,0.30);
  backdrop-filter: blur(14px);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
.hero-os__console::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,134,224,0.55), transparent 30%, transparent 70%, rgba(79,134,224,0.40));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.hero-os__console::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  z-index: 1;
}

.os-chrome {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}
.os-chrome__dots { display: inline-flex; gap: 6px; }
.os-chrome__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.os-chrome__dots span:nth-child(1) { background: #FF5F57; }
.os-chrome__dots span:nth-child(2) { background: #FEBC2E; }
.os-chrome__dots span:nth-child(3) { background: #28C840; }
.os-chrome__path { flex: 1; text-align: center; color: rgba(255,255,255,0.7); }
.os-chrome__time { color: var(--blue-soft); font-feature-settings: "tnum"; }

.os-board {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 460px;
}
@media (max-width: 720px) {
  .os-board { grid-template-columns: 1fr; }
  .os-modules { display: none; }
}

.os-modules {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 18px 14px;
  background: rgba(255,255,255,0.015);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.os-modules__h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}
.os-modules__list { display: grid; gap: 4px; }
.os-modules__list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: background var(--transition), color var(--transition);
}
.os-modules__list li:hover { background: rgba(255,255,255,0.04); color: #fff; }
.os-modules__list li.is-active {
  background: rgba(41,102,204,0.18);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(79,134,224,0.30) inset;
}
.os-modules__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.40);
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
}
.os-modules__list li.is-active .os-modules__badge { color: var(--blue-soft); border-color: rgba(79,134,224,0.35); }
.os-modules__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
}
.os-modules__foot-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.os-modules__foot-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transition: width 1400ms var(--ease-out);
}
.hero-os.is-mounted .os-modules__foot-bar > span { width: 100%; }
.os-modules__foot-val { color: var(--blue-soft); }

.os-stage {
  display: grid;
  gap: 16px;
  padding: 22px 22px 18px;
  align-content: start;
}
.os-stage__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.os-tag {
  color: var(--blue-soft);
  padding: 3px 8px;
  border: 1px solid rgba(79,134,224,0.30);
  border-radius: 4px;
  background: rgba(41,102,204,0.10);
}
.os-stage__sector { color: rgba(255,255,255,0.65); }
.os-stage__hero { display: grid; gap: 6px; }
.os-stage__lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.os-stage__big {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
  font-feature-settings: "tnum";
  background: linear-gradient(180deg, #fff 30%, var(--blue-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.os-stage__bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}
.os-stage__bar-fill {
  display: block; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft), var(--blue));
  background-size: 200% 100%;
  border-radius: inherit;
  transition: width 1800ms var(--ease-out);
  animation: progressShine 3s linear infinite;
  box-shadow: 0 0 12px var(--blue-glow);
}
.hero-os.is-mounted .os-stage__bar-fill { width: 87%; }
.os-stage__meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* sparkline */
.os-spark {
  margin-top: 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: grid;
  gap: 10px;
}
.os-spark__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.os-spark__delta {
  color: #28C840;
  font-weight: 600;
  font-size: 11px;
}
.os-spark__svg { width: 100%; height: 56px; display: block; }
.os-spark__line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 4px rgba(79,134,224,0.6));
}
.hero-os.is-mounted .os-spark__line {
  animation: sparkDraw 1800ms var(--ease-out) 600ms forwards;
}
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.os-spark__area { opacity: 0; }
.hero-os.is-mounted .os-spark__area {
  animation: sparkFade 1200ms var(--ease-out) 1600ms forwards;
}
@keyframes sparkFade { to { opacity: 1; } }
.os-spark__pin {
  filter: drop-shadow(0 0 10px var(--blue-soft));
  animation: cnstNodePulse 2.4s var(--ease) infinite;
  transform-origin: center;
  transform-box: fill-box;
}

/* live activity feed */
.os-feed { display: grid; gap: 8px; margin-top: 4px; }
.os-feed__head {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.os-feed__list {
  position: relative;
  height: 92px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
.os-feed__item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  animation: feedSlideIn 480ms var(--ease-out) both;
  flex-shrink: 0;
}
.os-feed__item.is-out { animation: feedSlideOut 360ms var(--ease) forwards; }
@keyframes feedSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes feedSlideOut { to { opacity: 0; transform: translateY(-12px); } }
.os-feed__icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #050609;
  flex-shrink: 0;
}
.os-feed__icon--ok  { background: #28C840; box-shadow: 0 0 8px rgba(40,200,64,0.5); }
.os-feed__icon--run { background: var(--blue-soft); box-shadow: 0 0 8px rgba(79,134,224,0.5); }
.os-feed__time { color: rgba(255,255,255,0.40); font-size: 10px; }

/* floating glass panels */
.hero-os__float {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  animation: floatBob 6s var(--ease) infinite alternate;
  animation-delay: var(--phase, 0s);
}
.hero-os.is-mounted .hero-os__float--predict { opacity: 1; transform: translateY(0); transition-delay: 1400ms; }
.hero-os.is-mounted .hero-os__float--pulse   { opacity: 1; transform: translateY(0); transition-delay: 1600ms; }
.hero-os.is-mounted .hero-os__float--toast   { opacity: 1; transform: translateY(0); transition-delay: 1800ms; }
@keyframes floatBob {
  from { translate: 0 -4px; }
  to   { translate: 0 4px; }
}

.hero-os__float--predict { left: -28px; bottom: 18%; }
.float-card {
  width: 200px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(20,24,36,0.78);
  border: 1px solid rgba(79,134,224,0.30);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6), 0 0 24px -4px rgba(41,102,204,0.30);
  display: grid;
  gap: 8px;
}
.float-card__head {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.float-card__big {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--blue-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.float-card__unit { font-size: 18px; color: var(--blue-soft); margin-left: 2px; }
.float-card__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}
.float-card__spark { width: 100%; height: 24px; }

.hero-os__float--pulse { right: -16px; top: -12px; }
.float-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(20,24,36,0.85);
  border: 1px solid rgba(79,134,224,0.30);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue-soft);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.5), 0 0 20px -4px rgba(41,102,204,0.40);
}
.float-pill__ring {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 0 0 rgba(79,134,224,0.6);
  animation: pillRing 2s var(--ease) infinite;
}
@keyframes pillRing {
  0%   { box-shadow: 0 0 0 0 rgba(79,134,224,0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(79,134,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,134,224,0); }
}

.hero-os__float--toast { right: -22px; bottom: 8%; }
.float-toast {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(20,24,36,0.80);
  border: 1px solid rgba(40,200,64,0.30);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.55), 0 0 20px -4px rgba(40,200,64,0.20);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}
.float-toast__check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(40,200,64,0.20);
  color: #28C840;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(40,200,64,0.40);
}
.float-toast__title {
  display: block;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 12.5px;
  color: #fff;
}
.float-toast__meta {
  display: block;
  color: rgba(255,255,255,0.50);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

@media (max-width: 1080px) {
  .hero-os__float--predict { left: 0; bottom: -20px; }
  .hero-os__float--toast   { right: 0; bottom: -90px; }
  .hero-os__float--pulse   { right: 0; top: -16px; }
}
@media (max-width: 720px) {
  .hero-os__float--predict,
  .hero-os__float--toast { display: none; }
}

/* L6 · horizon — disabled, hero now flows directly into dark trust section */
.hero-os__horizon { display: none; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-os__orb,
  .hero-os__grid,
  .hero-os__cnst-lines path,
  .hero-os__cnst-nodes circle,
  .hero-os__ticker-track,
  .starvis-intro,
  .starvis-intro *,
  .os-spark__pin,
  .os-stage__bar-fill,
  .float-pill__ring,
  .hero-os__float,
  .hero-os__title em[data-accent] { animation: none !important; }
  .hero-os__word { transform: none; opacity: 1; }
  .hero-os__title em[data-accent]::after { transform: scaleX(1); }
}

/* ============================================================
   SECTORS / TRUST MARQUEE — dark, seamless with hero
   ============================================================ */
.trust {
  padding: 40px 0 48px;
  background: #050810;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(79, 134, 224, 0.08);
  border-bottom: 1px solid rgba(79, 134, 224, 0.08);
}
.trust__inner { display: grid; gap: 22px; }
.trust__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  margin: 0 auto;
}
.trust__pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 0 0 rgba(79, 134, 224, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}

/* Marquee items on dark bg */
.trust .marquee__item {
  color: rgba(255, 255, 255, 0.7);
}
.trust .marquee__item .glyph {
  color: var(--blue-soft);
}

/* Marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-top: 8px;
}
.marquee__track {
  display: inline-flex;
  gap: 56px;
  padding: 8px 28px;
  align-items: center;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
}
.marquee__item:hover { color: var(--blue); }
.marquee__item .glyph {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--blue);
  background: var(--tint-2);
  transition: transform var(--transition), background var(--transition);
}
.marquee__item:hover .glyph { transform: rotate(90deg); background: var(--tint); }

/* ============== SECTION HEADER ============== */
.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head__top { display: flex; flex-direction: column; gap: 16px; }
.section-head__row {
  display: grid;
  gap: 16px;
}
@media (min-width: 880px) {
  .section-head__row {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: 40px;
  }
  .section-head__row .lede { justify-self: end; text-align: right; }
}

/* ============== VALUE PROP — BEFORE/AFTER ============== */
.problem {
  display: grid; gap: 16px;
}
@media (min-width: 880px) { .problem { grid-template-columns: 1fr 1fr; gap: 20px; } }

.problem__col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg);
  display: grid;
  gap: 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.problem__col:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.problem__col--bad { background: var(--bg-alt); }
.problem__col--good {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}
.problem__col--good::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 100% 0%, rgba(41,102,204,0.30), transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}
.problem__col h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
}
.problem__col--good h3 em { color: var(--blue-soft); font-style: normal; }
.problem__list { display: grid; gap: 14px; position: relative; }
.problem__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}
.problem__col--bad .problem__list li { color: var(--gray); }
.problem__col--good .problem__list li { color: rgba(255,255,255,0.85); }
.problem__list .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.problem__col--bad .ico { background: var(--danger-bg); color: var(--danger); }
.problem__col--good .ico { background: rgba(255,255,255,0.10); color: var(--blue-soft); }

.problem__stat {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid currentColor;
  border-color: var(--line);
  display: grid;
  gap: 4px;
  position: relative;
}
.problem__col--good .problem__stat { border-color: rgba(255,255,255,0.15); }
.problem__stat .num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum";
}
.problem__col--good .problem__stat .num { color: var(--blue-soft); }
.problem__stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.problem__col--good .problem__stat .lbl { color: rgba(255,255,255,0.6); }

/* ============== FEATURES — 16 CAPABILITY GRID ============== */
.caps {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
}
@media (min-width: 560px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .caps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .caps { grid-template-columns: repeat(4, 1fr); } }

.cap {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: var(--bg);
  transition: background 320ms var(--ease), transform 320ms var(--ease);
  min-height: 200px;
  isolation: isolate;
}
.cap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(41,102,204,0.10), transparent 40%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
  z-index: 0;
}
.cap > * { position: relative; z-index: 1; }
.cap::after {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease-out);
}
.cap:hover { background: var(--tint-2); }
.cap:hover::before { opacity: 1; }
.cap:hover::after { transform: scaleX(1); }
.cap__head {
  display: flex; align-items: center; justify-content: space-between;
}
.cap__letter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 500;
}
.cap__icon {
  width: 26px; height: 26px;
  color: var(--ink);
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color var(--transition), transform var(--transition);
}
.cap:hover .cap__icon { color: var(--blue); transform: rotate(-4deg) scale(1.05); }
.cap__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.cap__desc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--gray);
  letter-spacing: 0.01em;
}

/* ============================================================
   BENTO GRID · "Qué hacemos" — 16 capacidades
   Asymmetric tiles · 2 XL + 2 wide + 12 small.
   Filtros por categoría · mini-previews vivos en XL · click → modal.
   ============================================================ */
.bento-section {
  /* uses section--alt light bg by default */
  padding-bottom: clamp(64px, 8vw, 120px);
}

/* ----- Filtros (pill bar) ----- */
.bento-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0 0 clamp(24px, 3vw, 36px) 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.bento-filter__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.bento-filter__pill:hover { background: var(--line-soft); }
.bento-filter__pill.is-active {
  background: var(--ink);
  color: #fff;
}
.bento-filter__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(41,102,204,0.30);
}
.bento-filter__pill[data-cat="ventas"] .bento-filter__dot   { background: #2966CC; }
.bento-filter__pill[data-cat="ops"] .bento-filter__dot      { background: #4F86E0; }
.bento-filter__pill[data-cat="ia"] .bento-filter__dot       { background: #B388FF; }
.bento-filter__pill[data-cat="cliente"] .bento-filter__dot  { background: #28C840; }
.bento-filter__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.55;
  font-weight: 500;
  margin-left: 2px;
}
.bento-filter__pill.is-active .bento-filter__count { opacity: 0.7; }

/* ----- Bento grid ----- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  grid-auto-flow: dense;
  gap: 12px;
  perspective: 1400px;
}

.bento__tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20,24,36,0.94), rgba(8,10,18,0.97));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: left;
  font: inherit;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  will-change: transform;
  transition:
    transform 320ms var(--ease),
    border-color 320ms var(--ease),
    box-shadow 320ms var(--ease),
    opacity 360ms var(--ease),
    filter 360ms var(--ease);
}
.bento__tile::before {
  /* gradient outline · revealed on hover */
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,134,224,0.55), transparent 30%, transparent 70%, rgba(79,134,224,0.40));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
  z-index: 1;
}
.bento__tile::after {
  /* radial cursor glow */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px 240px at var(--mx, 50%) var(--my, 0%), rgba(79,134,224,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
  z-index: 1;
}
.bento__tile:hover {
  transform: translateY(-3px);
  border-color: rgba(79,134,224,0.30);
  box-shadow:
    0 24px 48px -16px rgba(0,0,0,0.55),
    0 0 30px -8px rgba(41,102,204,0.40);
}
.bento__tile:hover::before,
.bento__tile:hover::after { opacity: 1; }
.bento__tile:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
}

/* tile content layout */
.bento__tile-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  gap: 14px;
  pointer-events: none;
}
.bento__tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bento__tile-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(79,134,224,0.14);
  border: 1px solid rgba(79,134,224,0.30);
  color: var(--blue-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}
.bento__tile-icon svg { width: 17px; height: 17px; display: block; }
.bento__tile:hover .bento__tile-icon {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  border-color: var(--blue-soft);
  box-shadow: 0 0 14px var(--blue-glow);
}
.bento__tile-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
/* category accents */
.bento__tile[data-cat="ventas"]  .bento__tile-cat { color: #6FA3FF; border-color: rgba(111,163,255,0.25); }
.bento__tile[data-cat="ops"]     .bento__tile-cat { color: #8BB0E8; border-color: rgba(139,176,232,0.25); }
.bento__tile[data-cat="ia"]      .bento__tile-cat { color: #C7A8FF; border-color: rgba(199,168,255,0.30); }
.bento__tile[data-cat="cliente"] .bento__tile-cat { color: #6BD68A; border-color: rgba(107,214,138,0.30); }

.bento__tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}
.bento__tile-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.2;
}
.bento__tile-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.bento__tile-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
  margin-top: 4px;
}

/* ----- XL tile (2x2) ----- */
.bento__tile--xl {
  grid-column: span 2;
  grid-row: span 2;
}
.bento__tile--xl .bento__tile-content { padding: 26px; gap: 18px; }
.bento__tile--xl .bento__tile-icon { width: 46px; height: 46px; border-radius: 12px; }
.bento__tile--xl .bento__tile-icon svg { width: 22px; height: 22px; }
.bento__tile--xl .bento__tile-name {
  font-size: 30px;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bento__tile--xl .bento__tile-tagline { font-size: 12px; }
.bento__tile--xl .bento__tile-desc { font-size: 13.5px; max-width: 38ch; }

/* ----- Wide tile (2x1) ----- */
.bento__tile--wide { grid-column: span 2; }
.bento__tile--wide .bento__tile-name { font-size: 18px; }

/* ----- Mini live previews inside XL tiles ----- */
.bento__preview {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bento__preview-counter {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  font-feature-settings: "tnum";
  background: linear-gradient(180deg, #fff, var(--blue-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.bento__preview-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
/* IA aplicada · animated bars */
.bento__preview-bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 56px;
  margin-top: 4px;
}
.bento__preview-bars > span {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--blue), rgba(79,134,224,0.30));
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: bentoBarPulse 2.6s var(--ease) infinite;
  box-shadow: 0 0 12px rgba(41,102,204,0.30);
}
.bento__preview-bars > span:nth-child(2) { animation-delay: 0.18s; }
.bento__preview-bars > span:nth-child(3) { animation-delay: 0.36s; }
.bento__preview-bars > span:nth-child(4) { animation-delay: 0.54s; }
.bento__preview-bars > span:nth-child(5) { animation-delay: 0.72s; }
.bento__preview-bars > span:nth-child(6) { animation-delay: 0.90s; }
@keyframes bentoBarPulse {
  0%, 100% { transform: scaleY(0.85); opacity: 0.85; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* ----- Filter behavior · attenuate non-matching tiles ----- */
.bento[data-active-cat]:not([data-active-cat="all"]) .bento__tile {
  opacity: 0.18;
  filter: saturate(0.4) brightness(0.85);
  transform: scale(0.98);
}
.bento[data-active-cat="ventas"]  .bento__tile[data-cat="ventas"],
.bento[data-active-cat="ops"]     .bento__tile[data-cat="ops"],
.bento[data-active-cat="ia"]      .bento__tile[data-cat="ia"],
.bento[data-active-cat="cliente"] .bento__tile[data-cat="cliente"] {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 168px;
  }
  .bento__tile--xl   { grid-column: span 2; grid-row: span 2; }
  .bento__tile--wide { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 540px) {
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(140px, auto);
    gap: 10px;
  }
  .bento__tile,
  .bento__tile--xl,
  .bento__tile--wide {
    grid-column: span 1;
    grid-row: auto;
  }
  .bento__tile-content { padding: 16px; gap: 10px; }
  .bento__tile--xl .bento__tile-content { padding: 20px; }
  .bento__tile--xl .bento__tile-name { font-size: 24px; }
  .bento-filter { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .bento-filter__pill { white-space: nowrap; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bento__tile,
  .bento__preview-bars > span { transition: none !important; animation: none !important; }
}

/* ============================================================
   CAP MODAL · glass dialog with backdrop blur
   ============================================================ */
.cap-modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  max-width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  margin: auto;
  overflow: visible;
}
.cap-modal::backdrop {
  /* Lighter dim · the orbital keeps breathing behind */
  background:
    radial-gradient(ellipse at center, rgba(5,6,9,0.50), rgba(5,6,9,0.78));
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}
.cap-modal[open]          { animation: capModalIn 520ms cubic-bezier(0.16, 1, 0.3, 1); }
.cap-modal[open]::backdrop { animation: capBackdropIn 360ms var(--ease) both; }
@keyframes capModalIn {
  0%   { opacity: 0; transform: translateY(60px) scale(0.86); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1);       filter: blur(0); }
}
@keyframes capBackdropIn { from { opacity: 0; } to { opacity: 1; } }

.cap-modal__panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20,24,36,0.96), rgba(8,10,18,0.98));
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow:
    0 60px 120px -24px rgba(0,0,0,0.65),
    0 0 60px -8px rgba(41,102,204,0.30);
  isolation: isolate;
}
.cap-modal__panel::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,134,224,0.55), transparent 30%, transparent 70%, rgba(79,134,224,0.40));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.cap-modal__halo {
  position: absolute;
  top: -40%; right: -20%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(41,102,204,0.45), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: nucleusGlow 5s var(--ease) infinite alternate;
}

.cap-modal__header {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 22px 14px;
}
.cap-modal__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border: 1px solid rgba(79,134,224,0.50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 24px -4px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.20);
}
.cap-modal__icon svg { width: 26px; height: 26px; display: block; }
.cap-modal__heading { display: grid; gap: 4px; min-width: 0; }
.cap-modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.cap-modal__name {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.cap-modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.80);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.cap-modal__close:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.30);
  transform: rotate(90deg);
}
.cap-modal__close svg { width: 16px; height: 16px; }

.cap-modal__short {
  position: relative; z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--blue-soft);
  padding: 0 22px 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
  margin-bottom: 14px;
}
.cap-modal__body {
  position: relative; z-index: 2;
  padding: 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  text-wrap: pretty;
}
.cap-modal__footer {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.20);
}
.cap-modal__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}
.cap-modal__led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 8px rgba(40,200,64,0.7);
  animation: ledPulse 2s var(--ease) infinite;
}
.cap-modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid rgba(79,134,224,0.50);
  box-shadow: 0 12px 28px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.cap-modal__cta svg { width: 14px; height: 14px; transition: transform var(--transition); }
.cap-modal__cta:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px var(--blue-glow); }
.cap-modal__cta:hover svg { transform: translateX(4px); }

@media (max-width: 540px) {
  .cap-modal__header { padding: 18px 16px 12px; gap: 12px; grid-template-columns: 48px 1fr auto; }
  .cap-modal__icon { width: 48px; height: 48px; }
  .cap-modal__icon svg { width: 22px; height: 22px; }
  .cap-modal__short, .cap-modal__body { padding-left: 16px; padding-right: 16px; }
  .cap-modal__footer { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbital__orb,
  .orbital__ring,
  .orbital__chip,
  .orbital__photon,
  .orbital__nucleus-glow,
  .orbital__nucleus-pulse,
  .orbital__nucleus-core::before,
  .cap-modal__halo { animation: none !important; }
  .cap-modal[open],
  .cap-modal[open]::backdrop { animation: none !important; }
}

/* ============================================================
   AI / TECHNOLOGY — DARK with scan + ambient noise
   ============================================================ */
.ai {
  position: relative;
  overflow: hidden;
}
.ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(41,102,204,0.30), transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(41,102,204,0.18), transparent 50%);
  pointer-events: none;
}
.ai::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.ai__inner { position: relative; z-index: 1; }
.ai__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 880px) { .ai__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.ai__card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 16px;
  overflow: hidden;
  transition: border-color 360ms var(--ease), transform 360ms var(--ease), background 360ms var(--ease);
  backdrop-filter: blur(2px);
}
.ai__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,134,224,0.50), transparent 40%, transparent 60%, rgba(79,134,224,0.30));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
}
.ai__card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(79, 134, 224, 0.0);
}
.ai__card:hover::before { opacity: 1; }
.ai__card--lg { grid-row: span 1; }
@media (min-width: 880px) {
  .ai__card--lg { grid-row: span 2; }
}
.ai__card h4 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.ai__card p {
  font-size: 15px;
  color: rgba(255,255,255,0.70);
  line-height: 1.55;
  text-wrap: pretty;
}
.ai__card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.ai__card .stat {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: "tnum";
}
.ai__visual {
  position: relative;
  margin-top: 8px;
  height: 160px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(79,134,224,0.20), transparent 60%),
    linear-gradient(135deg, rgba(41,102,204,0.20), rgba(41,102,204,0.05));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.ai__visual .pulse-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20) 50%, transparent);
  transform: translateY(-50%);
}
.ai__visual .pulse-dot {
  position: absolute; top: 50%; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-soft);
  transform: translateY(-50%);
  box-shadow: 0 0 20px rgba(79, 134, 224, 0.8);
  animation: travel 3.6s var(--ease) infinite;
}
@keyframes travel {
  0%   { left: 0%;   opacity: 0; }
  10%  {             opacity: 1; }
  90%  {             opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.ai__visual .bars {
  position: absolute; inset: auto 16px 16px 16px;
  height: 60%;
  display: flex; align-items: flex-end; gap: 4px;
}
.ai__visual .bars span {
  flex: 1;
  background: linear-gradient(to top, var(--blue), rgba(79,134,224,0.25));
  border-radius: 2px;
  transform-origin: bottom;
  animation: bar 2.4s var(--ease) infinite;
}
.ai__visual .bars span:nth-child(2) { animation-delay: 0.15s; }
.ai__visual .bars span:nth-child(3) { animation-delay: 0.3s; }
.ai__visual .bars span:nth-child(4) { animation-delay: 0.45s; }
.ai__visual .bars span:nth-child(5) { animation-delay: 0.6s; }
.ai__visual .bars span:nth-child(6) { animation-delay: 0.75s; }
.ai__visual .bars span:nth-child(7) { animation-delay: 0.9s; }
.ai__visual .bars span:nth-child(8) { animation-delay: 1.05s; }
@keyframes bar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* ============== WHY STARVIS ============== */
.why {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why { grid-template-columns: repeat(4, 1fr); } }

.why__cell {
  padding: 32px;
  display: grid;
  gap: 14px;
  align-content: start;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--bg);
  transition: background var(--transition);
  isolation: isolate;
  overflow: hidden;
}
.why__cell::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(41,102,204,0.10), transparent 70%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.why__cell:hover { background: var(--tint-2); }
.why__cell:hover::before { opacity: 1; }
.why__cell:last-child,
.why__cell:nth-child(4n) { border-right: 0; }
@media (max-width: 1079.98px) {
  .why__cell { border-right: 1px solid var(--line); }
  .why__cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 719.98px) {
  .why__cell { border-right: 0; }
}
.why__cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.why__cell h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.why__cell p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.55;
}
.why__cell .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  transition: transform var(--transition);
}
.why__cell:hover .ico { transform: scale(1.06) rotate(-3deg); }
.why__cell .ico svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============== EJEMPLOS / SHOWCASE ============== */
.showcase .section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.case2 {
  padding: clamp(36px, 5vw, 64px) 0;
}
.case2 + .case2 { border-top: 1px solid rgba(255,255,255,0.10); }

.case2__head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num logo" "num claim" "num what";
  column-gap: clamp(16px, 2.5vw, 28px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.case2__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.14em;
  color: rgba(139,205,255,0.65);
  padding-top: 6px;
}

.case2__logo { grid-area: logo; display: block; margin-bottom: 14px; color: #fff; opacity: 0.95; }
.case2__logo--papik svg { width: clamp(110px, 10vw, 150px); height: auto; display: block; }
.case2__logo--blackpatt img { width: clamp(120px, 11vw, 165px); height: auto; display: block; }

.case2__claim {
  grid-area: claim;
  margin: 0 0 10px;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
  max-width: 18ch;
}
.case2__claim em { font-style: normal; color: #8BCDFF; }

.case2__what {
  grid-area: what;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 1.1vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(224,236,255,0.60);
}

/* Escenario: portátil + móvil */
.case2__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 19vw, 240px);
  gap: clamp(18px, 3vw, 40px);
  align-items: end;
}

.device-laptop {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background: #0B1220;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition);
}
a.device-laptop:hover { transform: translateY(-4px); border-color: rgba(120,190,255,0.55); }

.device-laptop__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.device-laptop__dots { display: inline-flex; gap: 5px; }
.device-laptop__dots span { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.22); }
.device-laptop__url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(224,236,255,0.70);
}
.device-laptop__live-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7CF5D4;
  border: 1px solid rgba(124,245,212,0.35);
}
.device-laptop__live-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: #7CF5D4;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.device-laptop > img { display: block; width: 100%; height: auto; }

.device-laptop__viewport { position: relative; aspect-ratio: 16 / 10.5; }
.device-laptop__viewport img,
.device-laptop__viewport iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: top center;
}

.device-laptop__play {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3vw, 28px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(120,190,255,0.45);
  border-radius: 999px;
  background: rgba(8,14,26,0.85);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.device-laptop__play:hover { background: rgba(41,102,204,0.55); border-color: #8BCDFF; transform: translateX(-50%) translateY(-2px); }
.device-laptop__play-icon { font-size: 11px; color: #7CF5D4; }

.device-phone {
  display: block;
  border-radius: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: clamp(5px, 0.7vw, 8px) solid #10182A;
  outline: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  background: #10182A;
  transition: transform var(--transition), outline-color var(--transition);
}
.device-phone:hover { transform: translateY(-6px); outline-color: rgba(120,190,255,0.55); }
.device-phone img { display: block; width: 100%; height: auto; }

.case2__visit {
  display: inline-flex;
  margin-top: clamp(18px, 3vw, 26px);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #8BCDFF;
  text-decoration: none;
}
.case2__visit:hover { color: #fff; }

.showcase__note {
  margin: clamp(32px, 5vw, 52px) 0 0;
  text-align: center;
  font-size: 16px;
  color: rgba(224,236,255,0.75);
}
.showcase__note a { color: #8BCDFF; font-weight: 700; text-decoration: none; }
.showcase__note a:hover { color: #fff; }

@media (max-width: 760px) {
  .case2__head { grid-template-columns: 1fr; grid-template-areas: "num" "logo" "claim" "what"; }
  .case2__num { padding-top: 0; margin-bottom: 10px; }
  .case2__stage { grid-template-columns: 1fr; align-items: start; }
  .device-phone { width: min(200px, 56vw); margin: -48px auto 0; position: relative; z-index: 2; }
  .device-laptop__play { font-size: 12.5px; padding: 10px 14px; }
}

/* ============== PROCESS / STEPS ============== */
.process {
  position: relative;
  display: grid;
  gap: 0;
}
.process__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: background var(--transition);
}
.process__row:last-child { border-bottom: 1px solid var(--line); }
.process__row::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 50%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.process__row:hover { background: linear-gradient(to right, rgba(41,102,204,0.025), transparent 60%); }
.process__row:hover::before { transform: scaleX(1); }

.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: flex; flex-direction: column; gap: 4px;
}
.process__num .big {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: "tnum";
  transition: color var(--transition);
}
.process__row:hover .process__num .big { color: var(--blue); }
.process__body {
  display: grid;
  gap: 14px;
  max-width: 780px;
}
.process__body h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.process__body p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.55;
  max-width: 64ch;
}
.process__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
}
.process__chips span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  transition: border-color var(--transition), color var(--transition);
}
.process__chips span:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 720px) {
  .process__row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
}

/* ============== METRICS ============== */
.metrics {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 720px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  padding: 36px 32px;
  display: grid;
  gap: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.metric::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(41,102,204,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  z-index: -1;
}
.metric:hover::before { opacity: 1; }
.metric:nth-child(4n) { border-right: 0; }
.metric:last-child { border-bottom: 0; }
@media (max-width: 1079.98px) {
  .metric:nth-child(2n) { border-right: 0; }
  .metric { border-right: 1px solid var(--line); }
}
@media (max-width: 719.98px) {
  .metric { border-right: 0; }
}
.metric__num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.metric__num em { color: var(--blue); font-style: normal; }
.metric__num .unit { font-family: var(--font-mono); font-size: 0.5em; color: var(--gray); margin-left: 4px; letter-spacing: 0.04em; }
.metric__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.metric__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  margin-top: 8px;
}

/* ============================================================
   TESTIMONIALS — anonymized cards
   ============================================================ */
.testimonials {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }

.testimonial {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(41,102,204,0.20);
}
.testimonial::before {
  content: "“";
  position: absolute;
  font-family: 'Times New Roman', serif;
  font-size: 140px;
  line-height: 1;
  color: var(--tint);
  top: 8px; right: 24px;
  pointer-events: none;
  font-weight: 600;
}
.testimonial__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.testimonial__id { color: var(--blue); font-weight: 500; }
.testimonial__verified {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
}
.testimonial__quote {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
  position: relative;
  z-index: 1;
}
.testimonial__quote em {
  color: var(--blue);
  font-style: normal;
  font-weight: 600;
}
.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.testimonial__role { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.testimonial__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gray);
  margin-top: 4px;
}
.testimonial__metric {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-align: right;
  flex-shrink: 0;
}
.testimonial__metric em {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--blue);
  font-style: normal;
  font-feature-settings: "tnum";
}

/* ============== CTA SECTION ============== */
.cta {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0,0,0,0.18), transparent 55%);
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.cta__inner {
  position: relative; z-index: 1;
  display: grid; gap: 32px;
  align-items: end;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .cta__inner { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.cta h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}
.cta h2 em {
  font-style: normal;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.cta__actions {
  display: flex; flex-wrap: wrap;
  gap: 12px; align-items: center;
}
.cta__actions .btn--primary { background: #fff; color: var(--blue); }
.cta__actions .btn--primary:hover { background: var(--ink); color: #fff; }
.cta__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.40); }
.cta__actions .btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.cta__meta {
  display: flex; gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ============== FAQ ============== */
.faq {
  display: grid;
  gap: 0;
}
.faq__item {
  border-top: 1px solid var(--line);
  transition: background var(--transition);
}
.faq__item:hover { background: var(--bg-alt); }
.faq__item[open] { background: var(--tint-2); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 24px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--transition), padding var(--transition);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary:hover { color: var(--blue); }
.faq__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform var(--transition), background var(--transition);
}
.faq__icon::before { width: 12px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 12px; }
.faq__item[open] .faq__icon { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }

.faq__answer {
  padding: 0 24px 32px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 70ch;
  text-wrap: pretty;
}
.faq__answer p + p { margin-top: 12px; }

/* ============== RESOURCES / BLOG PREVIEW ============== */
.resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .resources { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .resources { grid-template-columns: repeat(3, 1fr); } }

.resource {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  height: 100%;
  align-content: start;
  text-decoration: none;
  color: inherit;
}
.resource:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(41,102,204,0.30);
}
.resource__visual {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--tint), #fff);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.resource__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(41,102,204,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,102,204,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  transition: transform 800ms var(--ease);
}
.resource:hover .resource__visual::before { transform: translate(12px, 12px); }
.resource__visual::after {
  content: attr(data-glyph);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.04em;
  transition: transform 600ms var(--ease);
}
.resource:hover .resource__visual::after { transform: translate(-50%, -50%) scale(1.1); }
.resource__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.resource h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
}
.resource p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.55;
}
.resource__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray);
}
.resource__meta .arrow { color: var(--blue); transition: transform var(--transition); }
.resource:hover .arrow { transform: translateX(6px); }

/* ============================================================
   STARVIS CONSOLE — AI-NATIVE CONTACT EXPERIENCE
   ============================================================ */
.console-section {
  position: relative;
  background: #050609;
  color: #fff;
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0;
}
.console-section .section-head .title { color: #fff; }
.console-section .section-head .lede { color: rgba(255,255,255,0.65); }
.console-section .eyebrow { color: rgba(255,255,255,0.55); }
.console-section .accent { color: var(--blue-soft); }

.console-aurora {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(41,102,204,0.40), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(79,134,224,0.25), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(41,102,204,0.10), transparent 70%);
  filter: blur(20px);
  animation: auroraDrift 24s var(--ease) infinite alternate;
}
@keyframes auroraDrift {
  to { transform: translate(20px, -30px) scale(1.05); }
}
.console-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent);
  pointer-events: none;
}

/* Console shell */
.console {
  position: relative;
  margin: 24px auto 0;
  max-width: 880px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20,22,30,0.85), rgba(10,12,18,0.95));
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.50),
    0 0 0 1px rgba(41,102,204,0.10),
    0 0 40px -8px rgba(41,102,204,0.30);
  backdrop-filter: blur(12px);
  isolation: isolate;
}
.console::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,134,224,0.55), transparent 30%, transparent 70%, rgba(79,134,224,0.40));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.console__chrome {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 2;
}
.console__dots { display: inline-flex; gap: 6px; }
.console__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.console__dots span:nth-child(1) { background: #FF5F57; }
.console__dots span:nth-child(2) { background: #FEBC2E; }
.console__dots span:nth-child(3) { background: #28C840; }
.console__title { flex: 1; text-align: center; color: rgba(255,255,255,0.70); }
.console__status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-soft);
  text-transform: uppercase;
}
.console__status .status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 12px rgba(79,134,224,0.8);
  animation: pulse 2s var(--ease) infinite;
}

.console__progress {
  height: 2px;
  background: rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}
.console__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft), var(--blue));
  background-size: 200% 100%;
  transition: width 600ms var(--ease-out);
  animation: progressShine 3s linear infinite;
  box-shadow: 0 0 12px var(--blue-glow);
}
@keyframes progressShine {
  to { background-position: -200% 0; }
}

.console__feed {
  position: relative;
  z-index: 2;
  padding: 28px 24px 16px;
  min-height: 340px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.console__feed::-webkit-scrollbar { width: 6px; }
.console__feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.console__msg {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  animation: msgIn 380ms var(--ease-out) both;
  text-wrap: pretty;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.console__msg .prompt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  flex-shrink: 0;
}
.console__msg--system .prompt,
.console__msg--system { color: rgba(255,255,255,0.45); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; }
.console__msg--assistant { color: rgba(255,255,255,0.92); }
.console__msg--assistant .prompt { color: var(--blue-soft); }
.console__msg--user {
  justify-self: end;
  grid-template-columns: 1fr auto;
  text-align: right;
  background: rgba(41,102,204,0.18);
  border: 1px solid rgba(79,134,224,0.30);
  padding: 8px 14px;
  border-radius: 14px 14px 4px 14px;
  max-width: 80%;
  color: #fff;
}
.console__msg--user .prompt { color: var(--blue-soft); order: 2; }

.console__msg .typing {
  display: inline-flex; gap: 3px;
  padding: 6px 0;
}
.console__msg .typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.50);
  animation: typing 1.2s var(--ease) infinite;
}
.console__msg .typing span:nth-child(2) { animation-delay: 0.15s; }
.console__msg .typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.console__choices {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 0 8px 38px;
  animation: msgIn 380ms var(--ease-out) both;
}
.console__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.console__chip::before {
  content: "+";
  color: var(--blue-soft);
  font-weight: 600;
}
.console__chip:hover {
  background: rgba(41,102,204,0.20);
  border-color: var(--blue-soft);
  transform: translateY(-1px);
}
.console__chip:disabled {
  opacity: 0.40;
  cursor: not-allowed;
  transform: none;
}

.console__composer {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.console__prompt {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--blue-soft);
  font-weight: 500;
}
.console__input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
  padding: 10px 0;
  outline: none;
  caret-color: var(--blue-soft);
}
.console__input::placeholder {
  color: rgba(255,255,255,0.30);
  font-family: var(--font-mono);
}
.console__input:disabled { opacity: 0.45; cursor: not-allowed; }
.console__send {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.console__send:hover:not(:disabled) { background: var(--blue-deep); transform: translateY(-1px); }
.console__send:disabled { opacity: 0.40; cursor: not-allowed; }
.console__send kbd {
  font: inherit;
  background: rgba(255,255,255,0.18);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

.console__foot {
  position: relative;
  z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.20);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}
.console__foot-item { display: inline-flex; align-items: center; gap: 6px; }
.console__foot-item .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 6px #28C840;
  animation: pulse 2.4s var(--ease) infinite;
}
.console__foot-link { color: var(--blue-soft); transition: color var(--transition); margin-left: auto; }
.console__foot-link:hover { color: #fff; }

/* Final success state */
.console.is-complete .console__feed { padding-bottom: 28px; }
/* Estado de error: el envío del lead ha fallado */
.console__msg--error {
  border: 1px solid rgba(248,113,113,0.45);
  background: linear-gradient(135deg, rgba(185,28,28,0.22), rgba(185,28,28,0.06));
  border-radius: 14px;
  padding: 16px 18px;
  display: block;
  position: relative;
  overflow: hidden;
  /* El feed es un flex column: sin esto la caja se comprime y recorta el texto */
  flex-shrink: 0;
}
.console__msg--error .head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FCA5A5;
  margin-bottom: 10px;
}
.console__msg--error .head .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #DC2626;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(220,38,38,0.55);
}
.console__msg--error .body { color: rgba(255,255,255,0.88); font-size: 15px; line-height: 1.55; }

.console__msg--success {
  border: 1px solid rgba(79,134,224,0.40);
  background: linear-gradient(135deg, rgba(41,102,204,0.20), rgba(41,102,204,0.05));
  border-radius: 14px;
  padding: 16px 18px;
  display: block;
  position: relative;
  overflow: hidden;
  /* Mismo motivo que en --error: evita que el flex column lo comprima */
  flex-shrink: 0;
}
.console__msg--success::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue-soft), transparent 50%, var(--blue-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.console__msg--success .head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 10px;
}
.console__msg--success .head .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 0 16px var(--blue-glow);
}
.console__msg--success .body { color: rgba(255,255,255,0.88); font-size: 15px; line-height: 1.55; }
.console__msg--success .receipt {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.console__msg--success .receipt span:nth-child(odd) { color: rgba(255,255,255,0.40); text-transform: uppercase; }
.console__msg--success .receipt span:nth-child(even) { color: #fff; text-align: right; }

/* Trust strip below console */
.console-trust {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) { .console-trust { grid-template-columns: repeat(4, 1fr); } }
.console-trust__item {
  text-align: center;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  display: grid;
  gap: 6px;
  align-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.console-trust__item:hover {
  border-color: rgba(79,134,224,0.40);
  background: rgba(41,102,204,0.10);
}
.console-trust__num {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  font-feature-settings: "tnum";
  display: inline;
}
.console-trust__unit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--blue-soft);
  margin-left: 2px;
}
.console-trust__lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-top: 2px;
}

/* ============== FOOTER ============== */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.7);
  padding: clamp(48px, 8vw, 96px) 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(41,102,204,0.10), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(41,102,204,0.06), transparent 60%);
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer__top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer__brand img { height: 22px; opacity: 0.95; filter: brightness(0) invert(1); }
.footer__brand p {
  margin-top: 20px;
  max-width: 36ch;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}
@media (min-width: 720px) {
  .footer__bottom { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer__bottom .center { text-align: center; }
  .footer__bottom .right { text-align: right; }
}
.footer__bottom a { color: inherit; transition: color var(--transition); }
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   ANIMATIONS — REVEAL & STAGGER
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

/* Stagger — children fade in sequentially when parent is visible */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-stagger].is-visible > *:nth-child(1)  { transition-delay: 30ms; }
[data-stagger].is-visible > *:nth-child(2)  { transition-delay: 60ms; }
[data-stagger].is-visible > *:nth-child(3)  { transition-delay: 90ms; }
[data-stagger].is-visible > *:nth-child(4)  { transition-delay: 120ms; }
[data-stagger].is-visible > *:nth-child(5)  { transition-delay: 150ms; }
[data-stagger].is-visible > *:nth-child(6)  { transition-delay: 180ms; }
[data-stagger].is-visible > *:nth-child(7)  { transition-delay: 210ms; }
[data-stagger].is-visible > *:nth-child(8)  { transition-delay: 240ms; }
[data-stagger].is-visible > *:nth-child(9)  { transition-delay: 270ms; }
[data-stagger].is-visible > *:nth-child(10) { transition-delay: 300ms; }
[data-stagger].is-visible > *:nth-child(11) { transition-delay: 320ms; }
[data-stagger].is-visible > *:nth-child(12) { transition-delay: 340ms; }
[data-stagger].is-visible > *:nth-child(13) { transition-delay: 360ms; }
[data-stagger].is-visible > *:nth-child(14) { transition-delay: 380ms; }
[data-stagger].is-visible > *:nth-child(15) { transition-delay: 400ms; }
[data-stagger].is-visible > *:nth-child(16) { transition-delay: 420ms; }

/* ============== UTILS ============== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-wrap { white-space: nowrap; }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* small print */
.fineprint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-transform: uppercase;
}

/* ============================================
   AGENT SECTION · "El agente"
   The conceptual centerpiece — each company builds its own operational entity
   Visual: cinematic dark canvas with orbital rings, nameplate identifier,
   4 spec cards, closing stamp.
   ============================================ */

.agent-section {
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 120px;
  background: #050810;
  isolation: isolate;
}

.agent-section .container {
  position: relative;
  z-index: 2;
}

/* — Background composition — */
.agent__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.agent__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,134,224,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,134,224,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}

.agent__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.agent__orb--core {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 50% 50%,
    rgba(79,134,224,0.35) 0%,
    rgba(41,102,204,0.18) 30%,
    rgba(41,102,204,0) 70%);
  filter: blur(20px);
  animation: agentPulse 6s ease-in-out infinite;
}

.agent__orb--ring {
  border: 1px solid rgba(79,134,224,0.18);
  background: transparent;
  animation: agentRotate linear infinite;
}

.agent__orb--ring-1 {
  width: 420px;
  height: 420px;
  animation-duration: 40s;
}

.agent__orb--ring-2 {
  width: 640px;
  height: 640px;
  border-color: rgba(79,134,224,0.12);
  animation-duration: 65s;
  animation-direction: reverse;
}

.agent__orb--ring-3 {
  width: 900px;
  height: 900px;
  border-color: rgba(79,134,224,0.06);
  animation-duration: 90s;
}

@keyframes agentPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes agentRotate {
  to { transform: rotate(360deg); }
}

/* — Section heading — */
.agent-section .section-head {
  margin-bottom: 56px;
  text-align: center;
}

/* Override the default 2-column grid so the centered title actually centers
   across the full width instead of sitting in the left 1.4fr column. */
.agent-section .section-head__row {
  grid-template-columns: 1fr;
}
.agent-section .section-head__row .lede {
  justify-self: center;
  text-align: center;
}

.agent-section .title {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #FFF;
}

.agent-section .lede {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}

/* — Identity nameplate — */
.agent-section .agent__nameplate-wrap {
  display: flex;
  justify-content: center;
  margin: 56px 0 64px;
}

.agent__nameplate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border: 1px solid rgba(79,134,224,0.28);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.agent__np-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 12px rgba(74,222,128,0.7);
  animation: agentLed 2s ease-in-out infinite;
}

@keyframes agentLed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.agent__np-label { color: rgba(255,255,255,0.55); }

.agent__np-cycle {
  color: #FFF;
  font-weight: 500;
}

.agent__np-cycle-item {
  display: inline-block;
  letter-spacing: 0.16em;
}

.agent__np-status {
  color: var(--blue-soft);
  font-weight: 500;
}

/* — Specs grid (4 dimensions) — */
.agent__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(79,134,224,0.12);
  border: 1px solid rgba(79,134,224,0.12);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 12px;
}

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

.agent__spec {
  padding: 32px 28px;
  background: rgba(8, 12, 22, 0.85);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s ease;
  position: relative;
}

.agent__spec:hover {
  background: rgba(15, 22, 38, 0.92);
}

.agent__spec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
  text-transform: uppercase;
}

.agent__spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.agent__spec-title {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: #FFF;
  margin-top: 4px;
}

.agent__spec-desc {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
}

/* — Closing stamp — */
.agent__stamp {
  margin-top: 80px;
  text-align: center;
}

.agent__stamp-quote {
  display: inline-block;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  font-weight: 400;
}

.agent__stamp-quote em {
  font-style: normal;
  color: var(--blue-soft);
  font-weight: 500;
}

/* Section transition spacing on mobile */
@media (max-width: 640px) {
  .agent-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .agent__nameplate {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 10px;
  }
  .agent__spec { padding: 28px 22px; }
}

/* ============================================
   CINEMATIC SCROLL — Progress bar + choreography hooks
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    var(--blue) 0%,
    var(--blue-soft) 50%,
    var(--blue) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(79, 134, 224, 0.6);
  transform-origin: left center;
  transition: none;
  animation: scrollProgressShimmer 4s linear infinite;
}

@keyframes scrollProgressShimmer {
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar { animation: none; }
}

/* ============================================
   CINEMATIC HERO BOOT SEQUENCE
   ============================================
   Elements start invisible/offset and animate in on load. */

.cinematic-init .hero-os__mark,
.cinematic-init .hero-os__title,
.cinematic-init .hero-os__sub,
.cinematic-init .hero-os__col-right {
  opacity: 0;
}

.cinematic-init .hero-os__mark { transform: translateY(20px); }
.cinematic-init .hero-os__sub { transform: translateY(20px); }
.cinematic-init .hero-os__cta > * { transform: translateY(20px) scale(0.96); opacity: 0; }
.cinematic-init .hero-os__col-right { transform: scale(0.96); }

/* JS will animate them in. If JS fails, fallback after a delay. */
.cinematic-init.no-anim .hero-os__mark,
.cinematic-init.no-anim .hero-os__title,
.cinematic-init.no-anim .hero-os__sub,
.cinematic-init.no-anim .hero-os__cta,
.cinematic-init.no-anim .hero-os__cta > *,
.cinematic-init.no-anim .hero-os__col-right {
  opacity: 1;
  transform: none;
}

.cinematic-init.no-anim .hero-os__mark,
.hero-os__mark {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Per-word splits used by H1 reveal */
.hero-os__title .word-split {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-os__title .word-split > span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* ============================================
   MANIFESTO SCRUB
   ============================================
   Words start dim, light up as you scroll past. */

.manifesto-word {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.manifesto-word.is-lit {
  opacity: 1;
}

/* Subtle highlight ring on the most recently lit word for cinematic emphasis */
.manifesto-word.is-leading {
  opacity: 1;
  text-shadow: 0 0 24px rgba(79, 134, 224, 0.4);
}

/* ============================================
   AGENT STAMP — word-by-word stagger
   ============================================ */

.agent__stamp-quote .stamp-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}

/* ============================================
   SIGNAL QUOTES — sequential entrance hooks
   ============================================ */
.signal-quote-init {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* ============================================
   CINEMATIC AMBIENT — grain texture for dark sections
   Subtle film-grain overlay that adds tactile depth.
   Used by: hero, manifesto, agent-section, console-section
   ============================================ */

.section--dark::after,
.hero-os::after,
.agent-section::after,
.console-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.section--dark,
.agent-section,
.console-section {
  position: relative;
}

/* Make sure all section content stays above grain */
.section--dark > *,
.agent-section > *,
.console-section > * {
  position: relative;
  z-index: 2;
}

/* Hero parallax: data-mouse-x/y CSS vars updated by JS */
.hero-os {
  --mouse-x: 0;
  --mouse-y: 0;
}

.hero-os__constellation {
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
  transform: translate3d(calc(var(--mouse-x) * 12px), calc(var(--mouse-y) * 8px), 0);
  will-change: transform;
}

.hero-os__sky {
  transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
  transform: translate3d(calc(var(--mouse-x) * -8px), calc(var(--mouse-y) * -6px), 0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-os__constellation, .hero-os__sky { transition: none; transform: none; }
  .section--dark::after, .hero-os::after, .agent-section::after, .console-section::after {
    display: none;
  }
}

/* ============================================
   ⌘K COMMAND PALETTE
   ============================================ */

.cmdk {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: start center;
  padding-top: 18vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.cmdk.is-open {
  pointer-events: auto;
  opacity: 1;
}

.cmdk[hidden] { display: none; }

.cmdk__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cmdk__panel {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(79, 134, 224, 0.22);
  border-radius: 16px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(79, 134, 224, 0.08),
    0 0 40px rgba(79, 134, 224, 0.15);
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.cmdk.is-open .cmdk__panel {
  transform: translateY(0) scale(1);
}

.cmdk__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(79, 134, 224, 0.12);
}

.cmdk__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.45);
}
.cmdk__icon svg { width: 18px; height: 18px; }

.cmdk__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding: 2px 0;
}

.cmdk__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cmdk__esc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.cmdk__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.cmdk__group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  padding: 12px 12px 6px;
}

.cmdk__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.cmdk__item:hover,
.cmdk__item.is-active {
  background: rgba(79, 134, 224, 0.14);
  color: #FFF;
}

.cmdk__item-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--blue-soft);
  flex-shrink: 0;
}
.cmdk__item-icon svg { width: 14px; height: 14px; }

.cmdk__item-name { flex: 1; }

.cmdk__item-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.cmdk__empty {
  padding: 24px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.cmdk__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid rgba(79, 134, 224, 0.12);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.cmdk__foot kbd {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
}

.cmdk__foot-item { display: flex; align-items: center; }
.cmdk__foot-brand {
  margin-left: auto;
  color: var(--blue-soft);
  letter-spacing: 0.12em;
}

@media (max-width: 640px) {
  .cmdk { padding-top: 8vh; }
  .cmdk__foot-brand { display: none; }
}

/* ============================================
   ⌘K TRIGGER BUTTON (floating, top-right)
   ============================================ */

/* ⌘K search icon — inside nav (replaces old floating cmdk-trigger) */
.nav__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.55);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav__search:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.16);
}

.nav__search svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .nav__search { display: none; }  /* Mobile: hamburger menu serves navigation */
}

/* ============================================
   SECTION INDICATOR (right-side dots, vertical)
   ============================================ */

.section-indicator {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.section-indicator.is-ready {
  opacity: 1;
}

.section-indicator__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}

.section-indicator__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 12px;
}

.section-indicator__btn {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  background: rgba(120, 120, 130, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-indicator__btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.section-indicator__btn:hover {
  background: rgba(120, 120, 130, 0.6);
  transform: scale(1.3);
}

.section-indicator__item.is-active .section-indicator__btn {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(41, 102, 204, 0.18);
}

.section-indicator__label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.section-indicator__item:hover .section-indicator__label,
.section-indicator__item.is-active .section-indicator__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Dark-mode adaptation: when over dark sections, dots should be light */
.section-indicator.over-dark .section-indicator__btn {
  background: rgba(255, 255, 255, 0.25);
}
.section-indicator.over-dark .section-indicator__btn:hover {
  background: rgba(255, 255, 255, 0.55);
}
.section-indicator.over-dark .section-indicator__item.is-active .section-indicator__btn {
  background: var(--blue-soft);
  box-shadow: 0 0 0 2px rgba(79, 134, 224, 0.2);
}
.section-indicator.over-dark .section-indicator__label {
  color: #FFF;
  background: rgba(15, 22, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .section-indicator { display: none; }
}

/* =========================================================
   LEGAL PAGES — privacidad · cookies · términos · aviso legal
   ========================================================= */
.legal-page { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); }

.legal-page .legal__wrap { max-width: 760px; margin: 0 auto; }

.legal__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.legal__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-2);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal__body h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
}
.legal__body h2:first-child { margin-top: 0; }

.legal__body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}

.legal__body p,
.legal__body li { color: var(--ink-soft); line-height: 1.7; }
.legal__body p { margin-bottom: 16px; }

.legal__body ul,
.legal__body ol { margin: 0 0 16px; padding-left: 22px; }
.legal__body li { margin-bottom: 8px; }

.legal__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--blue-deep); }

.legal__body strong { color: var(--ink); font-weight: 600; }

.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}
.legal__body th,
.legal__body td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal__body th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--ink);
}

.legal__note {
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 32px;
  font-size: 15px;
}
.legal__note p:last-child { margin-bottom: 0; }

.legal-page .eyebrow {
  display: flex;
  width: fit-content;
  margin-bottom: 14px;
}

.legal__back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
  transition: color var(--transition);
}
.legal__back:hover { color: var(--blue); }
.legal__back svg { width: 14px; height: 14px; }

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal__nav a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--gray);
  transition: all var(--transition);
}
.legal__nav a:hover { border-color: var(--blue); color: var(--blue); }
.legal__nav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF;
}

/* Aviso de privacidad bajo la consola de contacto (RGPD art. 13) */
.console__privacy {
  /* Mismo sangrado horizontal que .console__foot: el contenedor .console
     no tiene padding propio y recorta el texto pegado al borde. */
  padding: 0 20px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.42);
  max-width: 62ch;
}
.console__privacy strong { color: rgba(255,255,255,0.62); font-weight: 500; }
.console__privacy a {
  color: rgba(255,255,255,0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.console__privacy a:hover { color: var(--blue-soft); }

/* Honeypot antispam: invisible para personas, presente para bots.
   No usamos display:none ni type=hidden porque los bots los ignoran. */
.console__botcheck {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
