/* ═══════════════════════════════════════════════════════════════════
   VH Systems — Design System
   Identidade: Cyan #67F6FF + Purple #A855F7 sobre escuro #0A0A0F
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, a { cursor: pointer; }
ul { list-style: none; }

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  --bg:        #0A0A0F;
  --bg-alt:    #111118;
  --bg-card:   #131319;
  --cyan:      #67F6FF;
  --purple:    #A855F7;
  --white:     #FFFFFF;
  --z100:      #F4F4F5;
  --z200:      #E4E4E7;
  --z300:      #D4D4D8;
  --z400:      #A1A1AA;
  --z500:      #71717A;
  --z700:      #3F3F46;
  --z800:      #27272A;
  --green-wa:  #25D366;

  --grad: linear-gradient(135deg, var(--cyan), var(--purple));
  --grad-text: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);

  --ff-display: 'Space Grotesk', system-ui, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --nav-h:     72px;
  --r-sm:      8px;
  --r-md:      12px;
  --r-lg:      16px;
  --r-xl:      24px;

  --glow-cyan:   0 0 60px rgba(103, 246, 255, 0.12);
  --glow-purple: 0 0 60px rgba(168, 85, 247, 0.12);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
}

/* ── Base ────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--z400);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography helpers ──────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Three.js Canvas ─────────────────────────────────────────────── */
#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(103, 246, 255, 0.25), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.11);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-ghost:active { transform: translateY(0); }

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
  font-weight: 600;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25);
  filter: brightness(1.1);
}

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

/* ── Navigation ──────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--z800);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--ff-display);
  font-size: 17px;
  color: var(--z400);
  line-height: 1;
}
.logo-name strong {
  color: var(--white);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--z400);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--z800);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--z700);
}
.lang-opt {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--z500);
  transition: color 0.2s;
  cursor: pointer;
}
.lang-opt.active { color: var(--white); }
.lang-sep {
  font-size: 11px;
  color: var(--z700);
  user-select: none;
}
.lang-toggle--mobile {
  font-size: 16px;
  padding: 8px 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--z400);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Mobile Menu ─────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 32px) clamp(20px, 5vw, 48px) 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu .btn { font-size: 16px; padding: 14px 36px; margin-top: 8px; }

/* ── Reveal animation ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="150"] { transition-delay: 0.15s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(10,10,15,0.95) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(10,10,15,0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(10,10,15,0.7) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding-top: var(--nav-h);
  padding-bottom: 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--z300);
  border: 1px solid var(--z700);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.2s cubic-bezier(0.4,0,0.6,1) infinite;
}

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

.hero-headline {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--z500);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.hero-body {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--z300);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 44px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.8);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--z600, var(--z500));
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--z700), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.section-video {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--z800);
  border-bottom: 1px solid var(--z800);
}

.video-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.video-info h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 40px;
}

.mini-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--z800);
  border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s;
}
.mini-stat:hover {
  border-color: var(--z700);
  background: rgba(255,255,255,0.05);
}

.mini-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.mini-stat-icon.cyan   { background: rgba(103,246,255,0.1); color: var(--cyan); }
.mini-stat-icon.purple { background: rgba(168,85,247,0.1);  color: var(--purple); }

.mini-stat-text { display: flex; flex-direction: column; }
.mini-stat-text strong { font-family: var(--ff-display); font-size: 20px; color: var(--white); font-weight: 700; }
.mini-stat-text span   { font-size: 13px; color: var(--z500); }

/* Video player box */
.video-player-wrap { position: relative; }

.gradient-border-box {
  position: relative;
  padding: 2px;
  border-radius: calc(var(--r-xl) + 2px);
  background: var(--grad);
  box-shadow: var(--glow-cyan), var(--glow-purple);
}

.video-inner {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg);
}


/* Placeholder visual */
.video-placeholder-bg {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}

.vp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63,63,70,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,63,70,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

.vp-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cyan-glow   { width: 300px; height: 300px; background: rgba(103,246,255,0.08); top: -60px; right: -60px; }
.purple-glow { width: 250px; height: 250px; background: rgba(168,85,247,0.08);  bottom: -40px; left: -40px; }

.play-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(103,246,255,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: play-ring 2.5s ease-in-out infinite;
  padding-left: 4px;
}
.play-btn:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 0 0 12px rgba(103,246,255,0.15), 0 0 40px rgba(103,246,255,0.3);
}

@keyframes play-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103,246,255,0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(103,246,255,0); }
}

.vp-caption {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(10,10,15,0.95), transparent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.vp-caption div { display: flex; flex-direction: column; }
.vp-caption strong { font-family: var(--ff-display); font-size: 14px; color: var(--white); }
.vp-caption span   { font-size: 12px; color: var(--z500); }

/* ═══════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════ */
.section-services {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(80px, 12vw, 140px) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-header h2 {
  font-size: clamp(28px, 4.5vw, 52px);
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--z300);
  max-width: 520px;
  margin: 0 auto;
  text-shadow: 0 1px 16px rgba(0,0,0,0.9);
}

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

.service-card {
  position: relative;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--z800);
  border-radius: var(--r-xl);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

/* gradient border on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.55);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

/* ── Image area ──────────────────────────────────────────────────── */
.service-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s;
  filter: saturate(0.75) brightness(0.88);
}
.service-card:hover .service-img {
  transform: scale(1.07);
  filter: saturate(0.9) brightness(0.98);
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.service-img-overlay--cyan {
  background:
    linear-gradient(to bottom, rgba(103,246,255,0.18) 0%, rgba(10,10,15,0.62) 85%);
}
.service-img-overlay--purple {
  background:
    linear-gradient(to bottom, rgba(168,85,247,0.18) 0%, rgba(10,10,15,0.62) 85%);
}

/* ── Content below image ─────────────────────────────────────────── */
.service-content {
  padding: 24px 28px 28px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.service-card p {
  font-size: 14.5px;
  color: var(--z400);
  line-height: 1.65;
  margin-bottom: 18px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--z600, var(--z500));
  padding: 4px 10px;
  border: 1px solid var(--z800);
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════════════
   FRAMEWORK
   ═══════════════════════════════════════════════════════════════════ */
.section-framework {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--z800);
  border-bottom: 1px solid var(--z800);
}
.framework-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.framework-preview { display: block; text-decoration: none; }
.framework-preview .video-inner { position: relative; }
.fw-cover {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.framework-preview:hover .fw-cover { transform: scale(1.04); }
.fw-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(to top, rgba(10,10,15,0.55), rgba(10,10,15,0.12));
  transition: background 0.3s;
}
.framework-preview:hover .fw-overlay {
  background: linear-gradient(to top, rgba(10,10,15,0.35), rgba(10,10,15,0.04));
}
.fw-open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px var(--ff-display);
  color: var(--white);
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.framework-points {
  list-style: none;
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 30px;
}
.fw-point { display: flex; gap: 14px; align-items: flex-start; }
.fw-point-ic {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fw-point-ic.cyan   { background: rgba(103,246,255,0.1); color: var(--cyan); }
.fw-point-ic.purple { background: rgba(168,85,247,0.1);  color: var(--purple); }
.fw-point strong {
  display: block; font-family: var(--ff-display);
  font-size: 15.5px; color: var(--white); font-weight: 600; margin-bottom: 3px;
}
.fw-point span { font-size: 13.5px; color: var(--z400); line-height: 1.55; }
.framework-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .framework-layout { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════════════════ */
.section-process {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--z800);
  border-bottom: 1px solid var(--z800);
}

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

/* Connecting line between steps */
.process-connector {
  position: absolute;
  top: 68px;
  left: calc(33.33% / 2 + 48px);
  right: calc(33.33% / 2 + 48px);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--z800);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.process-step:hover {
  border-color: var(--z700);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Image area */
.process-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.process-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease, filter 0.4s;
  filter: saturate(0.75) brightness(0.88);
}
.process-step:hover .process-img {
  transform: scale(1.06);
  filter: saturate(0.9) brightness(0.98);
}
.process-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(103,246,255,0.08) 0%,
    rgba(10,10,15,0.62) 100%
  );
}

/* Step number overlaid on image */
.process-step-num {
  position: absolute;
  bottom: 14px; left: 18px;
  font-family: var(--ff-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Content below image */
.process-content {
  padding: 20px 24px 26px;
  text-align: left;
}
.process-step h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.process-step p {
  font-size: 14px;
  color: var(--z400);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════════════════════════════ */
.section-results {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(80px, 12vw, 140px) 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.result-card {
  padding: clamp(32px, 3vw, 48px) 32px;
  background: var(--bg-card);
  border: 1px solid var(--z800);
  border-radius: var(--r-xl);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.result-card:hover {
  border-color: var(--z700);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.result-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
  font-weight: 700;
  font-family: var(--ff-display);
}
.result-icon.cyan   { color: var(--cyan); }
.result-icon.purple { color: var(--purple); }

.result-number {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}

.counter-text {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.result-card h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}
.result-card p {
  font-size: 14px;
  color: var(--z400);
  line-height: 1.6;
}

/* Results detail row */
.results-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--z800);
  border-radius: var(--r-xl);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.detail-item:hover {
  border-color: var(--z700);
  transform: translateY(-3px);
}

.detail-num {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.detail-label {
  font-size: 14px;
  color: var(--z400);
  text-align: center;
  line-height: 1.4;
  max-width: 160px;
}

.detail-divider { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   MEDIDOR DE CAOS
   ═══════════════════════════════════════════════════════════════════ */
.section-diag {
  position: relative;
  z-index: 1;
  background: #0B0B12;
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--z800);
  border-bottom: 1px solid var(--z800);
  overflow: hidden;
  /* dot grid texture */
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}

.diag-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(239,68,68,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 60%, rgba(168,85,247,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(103,246,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Cards grid ─────────────────────────────────────────────────── */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 56px;
  counter-reset: diag-card;
}

/* Card */
.diag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 22px 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.22s,
    border-top-color 0.22s,
    background 0.22s,
    transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.22s;
  font-family: inherit;
  color: inherit;
  overflow: hidden;
  counter-increment: diag-card;
}

/* numbered badge */
.diag-card::after {
  content: '#0' counter(diag-card);
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--z700);
  transition: color 0.2s;
}
.diag-card:nth-child(n+10)::after { content: '#' counter(diag-card); }

/* alternating top accent on hover */
.diag-card:nth-child(3n+1) { --card-accent: var(--cyan);   --card-glow: rgba(103,246,255,0.14); }
.diag-card:nth-child(3n+2) { --card-accent: var(--purple); --card-glow: rgba(168,85,247,0.14); }
.diag-card:nth-child(3n+3) { --card-accent: var(--cyan);   --card-glow: rgba(103,246,255,0.14); }

.diag-card:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.14);
  border-top-color: var(--card-accent);
  transform: translateY(-5px) rotate(-0.2deg);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 0 0 1px var(--card-glow),
    0 10px 36px var(--card-glow);
}
.diag-card:hover::after { color: var(--z500); }
.diag-card:active { transform: translateY(-1px) scale(0.985); }

/* ── Selected state ─────────────────────────────────────────────── */
.diag-card[aria-pressed="true"] {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.45);
  border-top-color: #ef4444;
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(239,68,68,0.15),
    0 8px 32px rgba(239,68,68,0.12),
    inset 0 1px 0 rgba(239,68,68,0.1);
  animation: card-stamp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.diag-card[aria-pressed="true"]::after { color: rgba(239,68,68,0.5); }

@keyframes card-stamp {
  0%   { transform: scale(0.95) translateY(4px); }
  55%  { transform: scale(1.03) translateY(-5px); }
  100% { transform: scale(1)    translateY(-3px); }
}

/* Emoji icon chip */
.diag-emoji {
  width: 52px;
  height: 52px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s, box-shadow 0.3s, filter 0.3s;
  filter: saturate(0.85);
}
.diag-card:hover .diag-emoji {
  transform: scale(1.08) rotate(-3deg);
  border-color: var(--card-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px var(--card-glow);
  filter: saturate(1.15);
}
.diag-card[aria-pressed="true"] .diag-emoji {
  transform: scale(1.04);
  border-color: rgba(239,68,68,0.55);
  background: rgba(239,68,68,0.10);
  box-shadow: inset 0 1px 0 rgba(239,68,68,0.12), 0 0 18px rgba(239,68,68,0.2);
  filter: saturate(1);
}

/* Quote */
.diag-quote {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.02em;
  display: block;
}
.diag-card[aria-pressed="true"] .diag-quote { color: #fca5a5; }

/* Sub text */
.diag-sub {
  font-size: 13px;
  color: var(--z400);
  line-height: 1.55;
  display: block;
}
.diag-card[aria-pressed="true"] .diag-sub { color: rgba(252,165,165,0.65); }

/* "Detectado" rubber stamp */
.diag-flag {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 3px 9px;
  border: 1.5px solid rgba(239,68,68,0.9);
  border-radius: 6px;
  color: #f87171;
  background: rgba(239,68,68,0.08);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: rotate(10deg) scale(1.6);
  transition: opacity 0.15s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 14px rgba(239,68,68,0.25);
}
.diag-card[aria-pressed="true"] .diag-flag {
  opacity: 1;
  transform: rotate(-4deg) scale(1);
}

/* ── Medidor de Caos panel ───────────────────────────────────────── */
.diag-score {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Level segments bar */
.chaos-meter {
  width: 100%;
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.meter-level {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.level-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  transition: background 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s;
}

.meter-level[data-level="0"] { --lc: #22c55e; }
.meter-level[data-level="1"] { --lc: #eab308; }
.meter-level[data-level="2"] { --lc: #f97316; }
.meter-level[data-level="3"] { --lc: #ef4444; }
.meter-level[data-level="4"] { --lc: #a855f7; }

.meter-level.filled .level-bar  { background: var(--lc); }
.meter-level.active .level-bar  { background: var(--lc); box-shadow: 0 0 14px var(--lc); }
.meter-level.active.blink .level-bar { animation: lvl-blink 0.9s ease-in-out infinite; }
@keyframes lvl-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.level-name {
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--z700);
  transition: color 0.4s;
  white-space: nowrap;
}
.meter-level.active .level-name  { color: var(--lc); }
.meter-level.filled .level-name  { color: var(--z500); }

/* Big number display */
.chaos-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 24px;
  gap: 2px;
  width: 100%;
}

.chaos-big-num {
  font-family: var(--ff-display);
  font-size: clamp(80px, 14vw, 128px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--white);
  transition: color 0.5s, text-shadow 0.5s;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.chaos-denom {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--z700);
  font-weight: 400;
  letter-spacing: -0.02em;
  align-self: flex-end;
  padding-bottom: 12px;
}

.chaos-level-badge {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--z800);
  color: var(--z600, var(--z500));
  transition: color 0.4s, border-color 0.4s, background 0.4s;
  min-width: 120px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Panel card wrapping the display + verdict */
.chaos-panel {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.chaos-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(239,68,68,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.chaos-panel.heating::before { opacity: 1; }

/* Critical state (9-10): panel pulses red */
.chaos-panel.critical {
  border-color: rgba(239,68,68,0.45);
  animation: panel-alert 1.4s ease-in-out infinite;
}
@keyframes panel-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%      { box-shadow: 0 0 0 1px rgba(239,68,68,0.3), 0 0 56px rgba(239,68,68,0.16); }
}

/* ── Report header strip ─────────────────────────────────────────── */
.report-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.09);
}

.report-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hb-color, #3f3f46);
  box-shadow: 0 0 10px var(--hb-color, transparent);
  transition: background 0.4s, box-shadow 0.4s;
}
.chaos-panel.alive .report-dot { animation: dot-pulse 1.6s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.report-title {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--z500);
}

.report-code {
  margin-left: auto;
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--z700);
}

/* ── EKG heartbeat line ──────────────────────────────────────────── */
.ekg {
  width: 100%;
  height: 56px;
  display: block;
  margin: -2px 0 -10px;
  overflow: visible;
}

.ekg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ekg-base {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1.5;
}

.ekg-pulse {
  stroke: var(--hb-color, rgba(255,255,255,0.22));
  stroke-width: 2;
  stroke-dasharray: 14 86;
  stroke-dashoffset: 100;
  opacity: 0.35;
  filter: drop-shadow(0 0 5px var(--hb-color, transparent));
  animation: ekg-run var(--hb-dur, 3.8s) linear infinite;
  transition: opacity 0.5s, stroke 0.5s;
}
.chaos-panel.alive .ekg-pulse { opacity: 1; }

@keyframes ekg-run {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* Number pop on every change */
.chaos-big-num.bump { animation: num-bump 0.35s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes num-bump {
  0%   { transform: scale(0.92); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.diag-verdict {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--z300);
  line-height: 1.65;
  text-align: center;
  transition: opacity 0.3s;
  max-width: 460px;
}

.diag-cta {
  animation: none;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
  .diag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .diag-grid { grid-template-columns: 1fr; }
  .chaos-panel { padding: 24px 16px; }
  .level-name { font-size: 8px; letter-spacing: 0.08em; }
  .diag-emoji { width: 46px; height: 46px; font-size: 22px; }
  .ekg { height: 44px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.section-contact {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  padding: clamp(100px, 14vw, 180px) 0;
  border-top: 1px solid var(--z800);
  text-align: center;
  overflow: hidden;
}

.contact-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(168,85,247,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 30% 50%,  rgba(103,246,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.contact-content { position: relative; z-index: 1; }
.contact-content h2 {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.contact-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--z500);
  margin-bottom: 48px;
  line-height: 1.7;
}

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

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--z800);
  padding: 60px 0 40px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--ff-display);
  font-size: 15px;
  color: var(--z500);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-bottom: 32px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--z600, var(--z500));
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 13px;
  color: var(--z700);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .video-layout { grid-template-columns: 1fr; }
  .video-info { text-align: center; }
  .mini-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .mini-stat { flex: 1; min-width: 200px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-connector { display: none; }
  .process-steps { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .results-detail { flex-direction: column; }
  .detail-divider { width: 60px; height: 1px; }
}

@media (max-width: 1024px) {
  .nav-links, #navbar .btn-primary, #navbar .lang-toggle { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .hero-headline { font-size: clamp(36px, 10vw, 52px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .mini-stat { flex-direction: row; }
  .section-header h2 { font-size: clamp(24px, 7vw, 36px); }
  .contact-actions { flex-direction: column; align-items: center; }
  .footer-nav { gap: 8px 20px; }
}

@media (max-width: 480px) {
  .hero-content { padding-bottom: 120px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .results-detail { border-radius: var(--r-lg); }
}
