/* ═══════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--color-black);
}

/* ─── Slide Base ─── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-hero) var(--ease-in-out),
              visibility var(--duration-hero) var(--ease-in-out);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
}

/* ─── Overlay (gradient over video/bg) ─── */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-slide__overlay--gradient {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.4) 80%, rgba(0,0,0,0.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, transparent 60%);
}

.hero-slide__overlay--dark {
  background: rgba(0, 0, 0, 0.45);
}

.hero-slide__overlay--light {
  background: rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════
   SLIDE TYPE: VIDEO BACKGROUND
   ═══════════════════════════════════════════ */

.hero-slide__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-slide__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Áudio / WhatsApp: conteúdo clonado de tmpl-audio-whatsapp-shared (hero + seção) */
.hero-slide--audio-stt > [data-audio-whatsapp-shared-mount],
.audio-whatsapp-section__canvas > [data-audio-whatsapp-shared-mount] {
  position: absolute;
  inset: 0;
}

.audio-whatsapp-shared {
  position: absolute;
  inset: 0;
}

/* ═══════════════════════════════════════════
   SLIDE TYPE: BACKGROUND IMAGE (bg_hero)
   ═══════════════════════════════════════════ */

.hero-slide__bg-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.is-active .hero-slide__bg-image {
  animation: heroKenBurns var(--duration-slide) var(--ease-in-out) forwards;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

/* ═══════════════════════════════════════════
   SLIDE TYPE: SCREENSHOT SHOWCASE (cinematic)
   ═══════════════════════════════════════════ */

.hero-slide__screen-showcase {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  overflow: hidden;
}

.screen-showcase {
  position: absolute;
  inset: 0;
  perspective: 1400px;
}

.screen-showcase__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1.05);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-slide.is-active .screen-showcase__frame {
  animation: cinematicRotation var(--duration-cinematic) var(--ease-in-out) infinite alternate;
}

.screens-hero-section.is-in-view .screen-showcase__frame {
  animation: cinematicRotation var(--duration-cinematic) var(--ease-in-out) infinite alternate;
}

@keyframes cinematicRotation {
  0% {
    transform: scale(1.08) rotateY(-1.5deg) rotateX(0.5deg);
  }
  50% {
    transform: scale(1.12) rotateY(1deg) rotateX(-0.3deg);
  }
  100% {
    transform: scale(1.08) rotateY(-0.5deg) rotateX(0.2deg);
  }
}

.screen-showcase__blur-bg {
  position: absolute;
  inset: -20%;
  z-index: -1;
  filter: blur(40px) saturate(140%);
  opacity: 0.25;
}

.screen-showcase__blur-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-showcase__images {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.screen-showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 1.2s var(--ease-in-out);
  will-change: transform, opacity;
}

.screen-showcase__img.is-visible {
  opacity: 1;
  animation: cinematicPan var(--duration-cinematic) var(--ease-in-out) forwards;
}

@keyframes cinematicPan {
  0% {
    object-position: left top;
    transform: scale(1);
  }
  100% {
    object-position: right bottom;
    transform: scale(1.08);
  }
}

.screen-showcase__reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.02) 55%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* ═══════════════════════════════════════════
   SLIDE TYPE: ANIMATED WORKFLOW (complex)
   Inputs → DOCS Core → Outputs
   ═══════════════════════════════════════════ */

.hero-slide__workflow {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c0e14 0%, #111827 50%, #0c0e14 100%);
  padding: 0 var(--container-padding);
}

/* ── Layout grid: inputs | core | outputs ── */
.wf {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr minmax(180px, 280px);
  align-items: center;
  gap: 0 clamp(40px, 5vw, 80px);
  max-width: 1300px;
  width: 100%;
  position: relative;
}

/* ── Node base ── */
.wf__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.7s var(--ease-out);
  cursor: pointer;
}

.wf__node:hover {
  background: rgba(255,255,255,0.04);
}

.wf__node--output {
  transform: translateX(20px);
}

.wf__node.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.wf__node-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-slow) var(--ease-out);
}

.wf__node:hover .wf__node-icon {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.wf__node.is-visible .wf__node-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
}

.wf__node-icon svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf__node-icon--accent {
  background: rgba(59, 89, 152, 0.1);
  border-color: rgba(59, 89, 152, 0.2);
}

.wf__node:hover .wf__node-icon--accent {
  background: rgba(59, 89, 152, 0.22);
  border-color: rgba(59, 89, 152, 0.5);
  box-shadow: 0 0 30px rgba(59, 89, 152, 0.25);
  transform: scale(1.08);
}

.wf__node.is-visible .wf__node-icon--accent {
  background: rgba(59, 89, 152, 0.15);
  border-color: rgba(59, 89, 152, 0.35);
  box-shadow: 0 0 25px rgba(59, 89, 152, 0.15);
}

.wf__node-icon--accent svg {
  stroke: var(--color-accent);
}

.wf__node-label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out);
}

.wf__node:hover .wf__node-label {
  color: rgba(255,255,255,1);
}

.wf__node.is-visible .wf__node-label {
  color: rgba(255,255,255,0.85);
}

/* ── Tooltip (feature description on hover) ── */
.wf__tooltip {
  position: absolute;
  z-index: 50;
  width: 260px;
  padding: var(--space-4) var(--space-5);
  background: rgba(15, 18, 30, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.wf__node:hover .wf__tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wf__node--input .wf__tooltip {
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(8px);
}

.wf__node--input:hover .wf__tooltip {
  transform: translateY(-50%) translateX(0);
}

.wf__node--output .wf__tooltip {
  top: 50%;
  right: calc(100% + 12px);
  left: auto;
  transform: translateY(-50%) translateX(-8px);
}

.wf__node--output:hover .wf__tooltip {
  transform: translateY(-50%) translateX(0);
}

.wf__tooltip__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.wf__tooltip__title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.wf__node--output .wf__tooltip__title::before {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(59, 89, 152, 0.5);
}

.wf__tooltip__desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: rgba(255,255,255,0.6);
  line-height: var(--leading-normal);
}

/* ── Input/Output columns ── */
.wf__inputs,
.wf__outputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: relative;
  z-index: 5;
}

.wf__inputs {
  align-items: flex-end;
}

.wf__outputs {
  align-items: flex-start;
}

/* ── Connector SVG overlay (generated by JS) ── */
.wf__connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wf__connector-line {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.8s var(--ease-out),
              stroke 0.5s var(--ease-out);
}

.wf__connector-line.is-visible {
  stroke-dashoffset: 0;
  stroke: rgba(255,255,255,0.18);
}

.wf__connector-line.is-active {
  stroke: rgba(59, 89, 152, 0.5);
  filter: drop-shadow(0 0 4px rgba(59, 89, 152, 0.3));
}

/* ── Core hub (DOCS) ── */
.wf__core {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.9s var(--ease-out);
}

.wf__core.is-visible {
  opacity: 1;
  transform: scale(1);
}

.wf__core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.wf__core-ring--outer {
  inset: 0;
  animation: coreRotate 20s linear infinite;
  border-style: dashed;
  border-color: rgba(59, 89, 152, 0.15);
}

.wf__core-ring--inner {
  inset: 16px;
  border-color: rgba(59, 89, 152, 0.25);
  animation: coreRotate 15s linear infinite reverse;
}

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

.wf__core.is-visible .wf__core-ring--outer {
  border-color: rgba(59, 89, 152, 0.2);
  box-shadow: 0 0 60px rgba(59, 89, 152, 0.08);
}

.wf__core.is-visible .wf__core-ring--inner {
  border-color: rgba(59, 89, 152, 0.35);
  box-shadow: 0 0 40px rgba(59, 89, 152, 0.1);
}

.wf__core-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wf__core-icon {
  width: 36px;
  height: 36px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 0 12px rgba(59, 89, 152, 0.5));
}

.wf__core-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.5);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.wf__core-brand {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  letter-spacing: var(--tracking-tight);
}

/* ── Bottom CTA for workflow slide ── */
.wf__bottom-cta {
  position: absolute;
  bottom: var(--space-20);
  left: 0;
  right: 0;
  z-index: var(--z-hero-content);
  display: flex;
  justify-content: center;
}

/* ── Particle/glow effects on core ── */
.wf__core::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 89, 152, 0.06) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}

.wf__core.is-visible::before {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   HERO CONTENT (text + CTAs overlay)
   ═══════════════════════════════════════════ */

.hero-content {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-content);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--container-padding);
  max-width: var(--container-2xl);
  margin: 0 auto;
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-content__inner {
  max-width: 680px;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-hero) var(--ease-out);
}

.hero-slide.is-active .hero-content__inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

.hero-content--center {
  align-items: center;
  text-align: center;
}

.hero-content--center .hero-content__inner {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: badgePulse 2s var(--ease-in-out) infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}

/* Dois slots no 1º slide: filas estáveis, sem “dança” de layout */
.hero-title--dual-rotate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
}

.hero-title__row--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
  row-gap: 0.06em;
}

/* “para” + vertical sempre na mesma linha (1º hero) */
.hero-title__row--para {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 0.28em;
  min-width: 0;
}

.hero-title__row--para .hero-title__rotating--vertical {
  min-width: 0;
}

.hero-title__row--tail {
  display: block;
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: var(--tracking-tight);
}

.hero-content--center .hero-title--dual-rotate {
  align-items: center;
}

.hero-content--center .hero-title__row--primary,
.hero-content--center .hero-title__row--para {
  justify-content: center;
}

/* 1º slide: vídeo claro , fallback vivo até o JS aplicar a paleta */
.hero-title--light-video-bg .hero-title__rotating--docs {
  color: #0050b3;
}

.hero-title--light-video-bg .hero-title__rotating--vertical {
  color: #006b5c;
}

/* Slide vídeo WhatsApp: 3 linhas , (1) dados… (2) e voz do + ícone + marca (3) organizados… */
.hero-title--audio-whatsapp {
  margin-bottom: var(--space-6);
}

.hero-title--audio-whatsapp__line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.08em;
}

.hero-title--wa-line1,
.hero-title--wa-line3 {
  width: 100%;
}

.hero-title__wa-mid-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 0.35em;
}

.hero-title__whatsapp-lock {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 0.35em;
  flex-shrink: 0;
}

.hero-title__wa-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  color: #25d366;
  vertical-align: -0.12em;
}

.hero-title__wa-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide--audio-stt .hero-subtitle--audio-stt {
  max-width: 540px;
}

.hero-slide--security-video .hero-subtitle--security-hero {
  max-width: 540px;
}

.hero-title__segment {
  white-space: normal;
}

.hero-title__rotating {
  display: inline-block;
  position: relative;
  color: var(--color-accent);
  min-width: 0;
  vertical-align: baseline;
}

/* Todas as opções ocupam a mesma célula de grid → largura/altura = maior frase */
.hero-title__rotating--grid {
  display: inline-grid;
  grid-template-columns: max-content;
  grid-template-rows: auto;
  vertical-align: baseline;
}

.hero-title__rotating-word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
  white-space: nowrap;
  pointer-events: none;
}

.hero-title__rotating-word.is-active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
  pointer-events: auto;
}

.hero-title__rotating-word.is-leaving {
  opacity: 0;
  transform: translateY(-0.35em);
  z-index: 0;
}

/* Slot 1: documentos , serif itálico; cor via JS (paleta aleatória) */
.hero-title__rotating--docs {
  color: rgba(220, 230, 255, 0.92);
}

.hero-title__rotating--docs .hero-title__rotating-word {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Typewriter: medida invisível mantém largura; face + cursor na mesma célula */
.hero-title__rotating-word--typewriter {
  display: inline-grid;
  grid-template-columns: max-content;
  grid-template-rows: auto;
}

.hero-title__rotating-word__measure {
  grid-area: 1 / 1;
  visibility: hidden;
  white-space: nowrap;
}

.hero-title__rotating-word__row {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.hero-title__rotating-word__face {
  white-space: nowrap;
}

.hero-title__rotating-word__cursor {
  display: inline-block;
  width: 2px;
  height: 0.7em;
  margin-left: 0.06em;
  align-self: center;
  background: currentColor;
  border-radius: 1px;
  opacity: 0;
  flex-shrink: 0;
}

.hero-title__rotating-word__cursor.is-on {
  opacity: 1;
  animation: heroRotCursorBlink 0.78s step-end infinite;
}

@keyframes heroRotCursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.2;
  }
}

/* Slot 2: vertical , sans extra-bold; cor via JS */
.hero-title__rotating--vertical {
  color: rgba(200, 245, 235, 0.95);
}

.hero-title__rotating--vertical .hero-title__rotating-word {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-10);
  max-width: 560px;
}

.hero-content--center .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-content--center .hero-ctas {
  justify-content: center;
}

/* ═══════════════════════════════════════════
   HERO NAVIGATION (arrows + dots)
   ═══════════════════════════════════════════ */

.hero-nav {
  position: absolute;
  bottom: var(--space-10);
  left: 0;
  right: 0;
  z-index: var(--z-hero-content);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: 0 var(--container-padding);
}

.hero-nav__arrows {
  display: flex;
  gap: var(--space-2);
}

.hero-nav__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  color: var(--color-white);
}

.hero-nav__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.hero-nav__arrow svg {
  width: 18px;
  height: 18px;
}

.hero-nav__dots {
  display: flex;
  gap: var(--space-2);
}

.hero-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
  padding: 0;
}

.hero-nav__dot.is-active {
  background: var(--color-white);
  width: 24px;
  border-radius: var(--radius-full);
}

.hero-nav__dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.5);
}

/* ─── Progress bar on active dot ─── */
.hero-nav__dot.is-active {
  position: relative;
  overflow: hidden;
}

.hero-nav__dot.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  animation: dotProgress var(--duration-slide) linear forwards;
}

@keyframes dotProgress {
  to { width: 100%; }
}

/* ─── Scroll indicator ─── */
.hero-scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-hero-content);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hero-scroll__mouse {
  width: 24px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll__mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: mouseScroll 1.5s var(--ease-in-out) infinite;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-content__inner {
    max-width: 520px;
  }

  .wf {
    grid-template-columns: minmax(120px, 180px) 1fr minmax(140px, 200px);
    gap: 0 clamp(24px, 3vw, 48px);
    max-width: 960px;
  }

  .wf__core { width: 150px; height: 150px; }
  .wf__node-icon { width: 42px; height: 42px; min-width: 42px; }
  .wf__node-icon svg { width: 19px; height: 19px; }
  .wf__node-label { font-size: var(--text-sm); }

  .wf__tooltip {
    width: 220px;
    padding: var(--space-3) var(--space-4);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-nav__arrows {
    display: none;
  }

  /* Workflow: stack vertically on mobile */
  .wf {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-4);
    justify-items: center;
    padding: var(--space-16) 0 var(--space-8);
  }

  .wf__inputs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
  }

  .wf__outputs {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .wf__connector-svg {
    display: none;
  }

  .wf__node--input {
    flex-direction: column;
    text-align: center;
    gap: var(--space-1);
    transform: translateY(15px);
  }

  .wf__node--output {
    transform: translateY(15px);
  }

  .wf__core {
    width: 120px;
    height: 120px;
  }

  .wf__bottom-cta {
    bottom: var(--space-12);
  }

  .wf__tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.625rem;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 100px;
  }

  .wf__node-icon { width: 32px; height: 32px; min-width: 32px; }
  .wf__node-icon svg { width: 15px; height: 15px; }
  .wf__node-label { font-size: 0.65rem; }
  .wf__core { width: 100px; height: 100px; }
  .wf__core-brand { font-size: var(--text-base); }
  .wf__core-icon { width: 24px; height: 24px; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION FALLBACK
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-content__inner,
  .hero-title__rotating-word,
  .screen-showcase__frame,
  .screen-showcase__img,
  .wf__node,
  .wf__core,
  .wf__connector-line,
  .wf__core-ring,
  .hero-slide__bg-image {
    animation: none !important;
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }

  .hero-title__rotating-word__cursor.is-on {
    animation: none !important;
    opacity: 0 !important;
  }

  .hero-nav__dot.is-active::after {
    animation-duration: 0s;
  }
}

/* ═══════════════════════════════════════════
   FALLBACK: modest devices / no-js
   ═══════════════════════════════════════════ */

.hero--fallback .hero-slide__video-wrap {
  display: none;
}

.hero--fallback .screen-showcase__frame {
  transform: none;
  animation: none;
}

.hero--fallback .screen-showcase__img {
  animation: none;
  position: relative;
}

.hero--fallback .screen-showcase__img:first-child {
  opacity: 1;
}

.screens-hero-section.hero--fallback .screen-showcase__frame {
  transform: none;
  animation: none;
}

.screens-hero-section.hero--fallback .screen-showcase__img {
  animation: none;
  position: relative;
}

.screens-hero-section.hero--fallback .screen-showcase__img:first-child {
  opacity: 1;
}

.audio-whatsapp-section.hero--fallback .hero-slide__video-wrap {
  display: none;
}
