/* ═══════════════════════════════════════════════════════════════
   HERO — layout em duas colunas (texto + vídeo), fundo em grade,
   headline com brilho e "ciclo do cliente" animado.
   Paleta Atlas: tinta escura + índigo + lima.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ax-ink:        #07080f;
  --ax-ink-2:      #0d0f1c;
  --ax-card:       #10132a;
  --ax-line:       rgba(140,205,255, 0.14);
  --ax-text:       #f4f5fb;
  --ax-muted:      #9a9db4;
  --ax-indigo:     #1a8cff;
  --ax-indigo-2:   #5cb8ff;
  --ax-indigo-3:   #0b5cb8;
  --ax-lime:       #d9f84a;
  --ax-lime-2:     #c2e536;
  --ax-display:    'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ── Logo nova: sem efeitos retrô herdados ─────────────────────── */
.nav-logo-img,
.nav-logo:hover .nav-logo-img,
.footer-logo-img {
  animation: none !important;
  filter: none !important;
  transform: none !important;
}
.nav-logo-img    { height: 34px; }
.footer-logo-img { height: 44px; opacity: 1; }
.nav-logo::after { content: none !important; }

/* Scanlines CRT desligadas: brigam com a estética limpa do hero e do vídeo */
.crt-overlay { display: none !important; }

/* ── Estrutura ─────────────────────────────────────────────────── */
.ax-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ax-ink);
  padding: 148px 0 96px;
  color: var(--ax-text);
}

.ax-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

/* ── Fundo ─────────────────────────────────────────────────────── */
.ax-hero-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ax-hero-fx span { position: absolute; display: block; }

.ax-hero-glow {
  inset: 0;
  background:
    radial-gradient(48% 40% at 24% 26%, rgba(26,140,255, 0.26), transparent 72%),
    radial-gradient(36% 32% at 80% 18%, rgba(217, 248, 74, 0.10), transparent 72%);
}

.ax-hero-grid {
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 24%, #000, transparent 82%);
          mask-image: radial-gradient(72% 62% at 50% 24%, #000, transparent 82%);
}

.ax-hero-blob { border-radius: 50%; will-change: transform; }
.ax-hero-blob.a {
  width: 560px; height: 560px; top: -80px; left: 2%;
  background: radial-gradient(circle, rgba(26,140,255, 0.22), transparent 66%);
  animation: axDrift1 26s ease-in-out infinite alternate;
}
.ax-hero-blob.b {
  width: 440px; height: 440px; top: -20px; right: 2%;
  background: radial-gradient(circle, rgba(217, 248, 74, 0.12), transparent 66%);
  animation: axDrift2 32s ease-in-out infinite alternate;
}
@keyframes axDrift1 { to { transform: translate(60px, 40px) scale(1.08); } }
@keyframes axDrift2 { to { transform: translate(-50px, 60px) scale(0.94); } }

/* ── Selos ─────────────────────────────────────────────────────── */
.ax-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.ax-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--ax-line);
  border-radius: 999px;
  background: rgba(16, 19, 42, 0.7);
  backdrop-filter: blur(6px);
  font: 500 12.5px/1.2 var(--font, 'Inter', sans-serif);
  color: rgba(244, 245, 251, 0.82);
}
.ax-badge svg { color: var(--ax-lime); flex-shrink: 0; }

/* ── Headline ──────────────────────────────────────────────────── */
.ax-headline {
  font-family: var(--ax-display);
  font-weight: 600;
  font-size: clamp(36px, 3.7vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ax-text);
  text-transform: none;
  margin: 0;
}
.ax-headline > span { display: block; }

.ax-hl-line { position: relative; }
.ax-hl-accent {
  background: linear-gradient(100deg, var(--ax-lime) 0%, #f2ffb8 45%, var(--ax-indigo-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
/* Cópia desfocada atrás do texto = brilho */
.ax-hl-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--ax-indigo-2);
  filter: blur(22px);
  opacity: 0.35;
  pointer-events: none;
  -webkit-text-fill-color: currentColor;
}
.ax-hl-accent .ax-hl-glow { color: var(--ax-lime); opacity: 0.28; }

.ax-hero-sub {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ax-muted);
}
.ax-hero-sub strong { color: var(--ax-text); font-weight: 600; }

/* ── Ciclo do cliente ──────────────────────────────────────────── */
.ax-cycle {
  width: min(520px, 100%);
  margin-top: 30px;
}
.ax-cy-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 5px;
}
.ax-cy-line {
  position: absolute;
  top: 9px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--ax-line), rgba(92,184,255, 0.4), var(--ax-line));
}
.ax-cy-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ax-cy-step i {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ax-ink);
  box-shadow: inset 0 0 0 1.5px rgba(92,184,255, 0.55);
}
.ax-cy-step b {
  font: 500 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ax-muted);
  animation: axCyLabel 8s ease-in-out infinite;
}
.ax-cy-step:nth-child(4) b { animation-delay: 2s; }
.ax-cy-step:nth-child(5) b { animation-delay: 4s; }
.ax-cy-step:nth-child(6) b { animation-delay: 6s; }

.ax-cy-run {
  position: absolute;
  top: 5px; left: 0;
  z-index: 3;
  width: 25%;
  display: grid;
  place-items: center;
  animation: axCyRun 8s cubic-bezier(.55, 0, .25, 1) infinite;
}
.ax-cy-run i {
  position: relative;
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ax-lime);
  box-shadow: 0 0 0 4px rgba(217, 248, 74, 0.22), 0 0 18px rgba(217, 248, 74, 0.55);
}
.ax-cy-run i::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--ax-lime);
  animation: axCyPing 2s ease-out infinite;
}

@keyframes axCyRun {
  0%, 18%   { transform: translateX(0); }
  25%, 43%  { transform: translateX(100%); }
  50%, 68%  { transform: translateX(200%); }
  75%, 93%  { transform: translateX(300%); }
  100%      { transform: translateX(0); }
}
@keyframes axCyLabel {
  0%, 20%   { color: var(--ax-lime); }
  26%, 100% { color: var(--ax-muted); }
}
@keyframes axCyPing {
  0%   { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* ── Prova rápida ──────────────────────────────────────────────── */
.ax-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--ax-line);
  max-width: 520px;
  font-size: 13.5px;
  color: var(--ax-muted);
}
.ax-proof strong {
  font-family: var(--ax-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ax-text);
  margin-right: 4px;
}

/* ── Vídeo + CTA ───────────────────────────────────────────────── */
.ax-hero-media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.ax-video {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(92,184,255, 0.7), rgba(92,184,255, 0.08) 40%, rgba(217, 248, 74, 0.45));
  box-shadow:
    0 30px 80px rgba(11,92,184, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}
.ax-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 19px;
  background: var(--ax-card);
}

.ax-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--ax-lime);
  color: #0b0d18;
  font: 600 16px/1.2 var(--ax-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(217, 248, 74, 0.22);
  transition: transform var(--dur, .4s) var(--ease, ease), box-shadow var(--dur, .4s) var(--ease, ease), background .2s;
}
.ax-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(255, 255, 255, 0.45) 49%, rgba(255, 255, 255, 0.2) 51%, transparent 57%);
  background-size: 250% 100%;
  animation: axSheen 6s linear infinite;
}
.ax-cta:hover {
  background: #e6ff73;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(217, 248, 74, 0.32);
}
.ax-cta svg { transition: transform .3s var(--ease, ease); }
.ax-cta:hover svg { transform: translateX(3px); }
@keyframes axSheen {
  from { background-position: 150% 0; }
  to   { background-position: -100% 0; }
}

.ax-cta-ghost {
  align-self: center;
  font-size: 14px;
  color: var(--ax-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.ax-cta-ghost:hover { color: var(--ax-text); border-color: var(--ax-indigo-2); }

.ax-cta:focus-visible,
.ax-cta-ghost:focus-visible {
  outline: 2px solid var(--ax-indigo-2);
  outline-offset: 3px;
}

/* ── Responsivo ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ax-hero { padding: 116px 0 72px; }
  .ax-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ax-hero-blob.a { width: 380px; height: 380px; }
  .ax-hero-blob.b { width: 300px; height: 300px; }
}

@media (max-width: 640px) {
  .ax-hero { padding: 104px 0 60px; }
  .ax-hero-inner { padding-left: 16px; padding-right: 16px; }
  .ax-headline { font-size: clamp(36px, 10.5vw, 48px); }
  .ax-hero-sub { font-size: 16px; }
  .ax-cy-step b { font-size: 9px; letter-spacing: 0.05em; }
  .ax-proof { gap: 8px 18px; font-size: 13px; }
  .ax-cta { padding: 16px 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-hero-blob, .ax-cy-run, .ax-cy-run i::after, .ax-cy-step b, .ax-cta::after { animation: none !important; }
  .ax-cy-step:first-of-type b { color: var(--ax-lime); }
}

/* ═══════════════════════════════════════════════════════════════
   TIPOGRAFIA MOBILE — quebras equilibradas e alinhamento consistente
   ═══════════════════════════════════════════════════════════════ */

/* Títulos com linhas de tamanho parecido; parágrafos sem palavra sozinha no fim */
.ax-headline,
.ax-feat-copy h2,
.ax-sw-head h2,
.ax-cmp-head h2 { text-wrap: balance; }
.ax-hero-sub,
.ax-feat-copy > p,
.ax-feat-list li,
.ax-sw-head p,
.ax-cmp-head p,
.ax-plan-for,
.ax-plan-list li,
.ax-cmp-note,
.section-sub,
.featured-list li { text-wrap: pretty; }

@media (max-width: 640px) {
  /* Hero centralizado, no mesmo eixo dos títulos das outras seções */
  .ax-hero-copy { text-align: center; }
  .ax-badges { justify-content: center; gap: 6px; margin-bottom: 20px; }
  .ax-badge { font-size: 11.5px; padding: 5px 10px; }

  /* Cada linha do título cabe inteira na largura do celular */
  .ax-headline { font-size: clamp(28px, 7.9vw, 40px); line-height: 1.08; }
  .ax-headline > span { white-space: nowrap; }

  .ax-hero-sub { margin-left: auto; margin-right: auto; max-width: 34ch; font-size: 15.5px; }
  .ax-cycle { margin-left: auto; margin-right: auto; }

  /* Prova em 3 colunas iguais: número em cima, rótulo embaixo */
  .ax-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .ax-proof li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.3;
  }
  .ax-proof li + li { border-left: 1px solid var(--ax-line); }
  .ax-proof strong { margin: 0; font-size: 20px; line-height: 1; }

  /* Serviços: lista em uma coluna em vez de duas colunas estreitas */
  .featured-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .ax-headline > span { white-space: normal; }
}
