/* OneWay / CodeX Labs - Custom styles */
:root {
  --color-primary: #001246;
  --color-primary-light: #0a2d6b;
  --color-white: #ffffff;
  --color-whatsapp: #25D366;
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-card-hover: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --transition-smooth: 0.3s ease;
}

/* ========== HERO BACKGROUND ========== */
.hero-section {
  isolation: isolate;
}

.hero-bg {
  background: linear-gradient(145deg, #001246 0%, #001a52 35%, #0a2d6b 70%, #0d3a7a 100%);
  z-index: 0;
}

.hero-gradient {
  background: radial-gradient(ellipse 80% 50% at 70% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
  z-index: 1;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  top: -120px;
  right: -80px;
  animation: blob-float 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(10, 45, 107, 0.8);
  bottom: -60px;
  left: -60px;
  animation: blob-float 10s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.hero-blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  top: 50%;
  left: 50%;
  animation: blob-float 12s ease-in-out infinite;
  animation-delay: -4s;
}

/* Hero tech visual (code / dev theme) */
.hero-tech {
  z-index: 2;
}

.hero-tech-bracket {
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
  letter-spacing: -0.04em;
}

.hero-tech-lines {
  max-width: 320px;
}

.hero-tech-cursor {
  vertical-align: middle;
  border-radius: 1px;
}

.hero-tech-grid {
  max-width: 140px;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.98); }
}

/* ========== SLIDING TEXT (marquee) ========== */
.sliding-text {
  overflow: hidden;
  padding: 1.25rem 0;
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sliding-text-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: sliding-text 25s linear infinite;
}

.sliding-text-inner span {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.sliding-text-sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.1em;
}

@keyframes sliding-text {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@media (prefers-reduced-motion: reduce) {
  .sliding-text-inner {
    animation: none;
  }
}

/* ========== SECTION PATTERNS ========== */
.section-pattern {
  z-index: 0;
}

.section-pattern-light {
  background-image: linear-gradient(180deg, rgba(0, 18, 70, 0.02) 0%, transparent 20%, transparent 80%, rgba(0, 18, 70, 0.02) 100%);
}

.section-pattern-dots {
  background-image: radial-gradient(rgba(0, 18, 70, 0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.section-pattern-grid {
  background-image:
    linear-gradient(rgba(0, 18, 70, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 18, 70, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.section-alt .container {
  position: relative;
  z-index: 1;
}

/* ========== CONTATO BACKGROUND ========== */
.contato-bg {
  background: linear-gradient(135deg, #001246 0%, #001a52 40%, #0a2d6b 100%);
  z-index: 0;
}

.contato-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
                   radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  z-index: 1;
}

/* ========== FOOTER ========== */
.footer-bg {
  background: linear-gradient(180deg, #0a2d6b 0%, #061a42 100%);
}

.footer-pattern {
  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: 32px 32px;
  z-index: 0;
}

.footer-logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: 253px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-logo {
    height: 60px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero title: texto branco sólido (sem gradiente para evitar fundo branco) */
.hero-title-wrap {
  display: block;
}

.hero-title {
  color: #fff;
}

/* Hero bubble - preços tabelados */
.hero-bubble {
  animation: hero-bubble-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-bubble:hover {
  animation: none;
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

@keyframes hero-bubble-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2), 0 0 24px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.25);
  }
}

/* Service cards hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
}

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

/* Tech logos grid - só imagens, sem título/texto */
.tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem 2.5rem;
  align-items: center;
  max-width: 156px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .tech-logos {
    max-width: 340px;
  }
}

@media (min-width: 1024px) {
  .tech-logos {
    max-width: 780px;
  }
}

.tech-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tech-logo:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Lightbox - imagem quase fullscreen ao clicar */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.lightbox.show {
  display: flex !important;
}

.lightbox-backdrop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  cursor: default;
}

.lightbox-backdrop img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  cursor: default;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.portfolio-grid-item {
  cursor: pointer;
}

/* WhatsApp float button */
.whatsapp-float {
  animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
  50% { box-shadow: 0 10px 25px -3px rgba(37, 211, 102, 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
}

/* Header */
.header-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .header-logo {
    height: 44px;
    max-width: 220px;
  }
}

#header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navbar desktop: links podem quebrar em 2 linhas sem apertar */
.nav-links {
  row-gap: 0.25rem;
}

.nav-links .nav-link {
  display: inline-block;
  position: relative;
}

.nav-links .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  width: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
  transition: width 0.2s ease;
}

.nav-links .nav-link:hover::after {
  width: 100%;
}

header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
}

/* Section title spacing */
.section-title {
  letter-spacing: -0.02em;
}

/* Portfolio - imagens normais, 3 por linha no desktop */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.portfolio-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f9fafb;
}

.portfolio-grid-item img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
  .portfolio-grid-item img {
    max-height: 320px;
  }
}

.portfolio-grid-item:hover img {
  transform: scale(1.03);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 0.2s ease;
  }
  .service-card:hover {
    transform: none;
  }
  .tech-logo:hover {
    transform: none;
  }
  .hero-blob {
    animation: none;
  }
}

/* ========== PDF EXPORT MODE ========== */
/* Remove efeitos e animações para captura limpa da página */
body.pdf-export-mode *,
body.pdf-export-mode *::before,
body.pdf-export-mode *::after {
  animation: none !important;
  transition: none !important;
}

body.pdf-export-mode .reveal {
  opacity: 1 !important;
  transform: none !important;
}

body.pdf-export-mode .sliding-text-inner {
  animation: none !important;
}

body.pdf-export-mode .whatsapp-float,
body.pdf-export-mode #btn-gerar-pdf,
body.pdf-export-mode #btn-gerar-pdf-mobile {
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Modo de exportação PDF - A4 Horizontal */
body.pdf-export-mode {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
}

body.pdf-export-mode .container {
  max-width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Quebras de página para PDF A4 horizontal */
body.pdf-export-mode section {
  page-break-inside: avoid;
  page-break-after: auto;
  break-inside: avoid;
  break-after: auto;
}

body.pdf-export-mode .card,
body.pdf-export-mode article {
  page-break-inside: avoid;
  break-inside: avoid;
}

body.pdf-export-mode header {
  page-break-after: avoid;
  break-after: avoid;
}

/* Ocultar elementos que não devem aparecer no PDF */
body.pdf-export-mode .sliding-text,
body.pdf-export-mode .whatsapp-float,
body.pdf-export-mode .ia-particles,
body.pdf-export-mode .ia-shapes,
body.pdf-export-mode .ia-network,
body.pdf-export-mode .valores-particles,
body.pdf-export-mode .valores-shapes,
body.pdf-export-mode .valores-symbols,
body.pdf-export-mode .valores-rays {
  display: none !important;
}

/* ========== SEÇÃO IA - ELEMENTOS DECORATIVOS ========== */
.ia-particles {
  overflow: hidden;
}

.ia-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 18, 70, 0.5);
}

.ia-particle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse-particle 2s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(-15px, -50px) scale(0.8);
    opacity: 0.3;
  }
  75% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.5;
  }
}

@keyframes pulse-particle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(2);
    opacity: 0;
  }
}

.ia-shapes {
  overflow: hidden;
}

.ia-shape {
  position: absolute;
  border: 2px solid var(--color-primary);
  opacity: 0.15;
  animation: rotate-shape 20s linear infinite;
}

.ia-shape-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  left: 5%;
  border-radius: 50%;
  animation-duration: 15s;
}

.ia-shape-2 {
  width: 40px;
  height: 40px;
  top: 70%;
  right: 10%;
  transform: rotate(45deg);
  animation-duration: 25s;
  animation-direction: reverse;
}

.ia-shape-3 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 5%;
  border-radius: 20%;
  animation-duration: 30s;
}

.ia-shape-4 {
  width: 50px;
  height: 50px;
  bottom: 15%;
  left: 15%;
  transform: rotate(30deg);
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes rotate-shape {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  33% {
    transform: rotate(120deg) translate(30px, -30px);
  }
  66% {
    transform: rotate(240deg) translate(-20px, 20px);
  }
  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}

.ia-network {
  overflow: visible;
}

.ia-network svg {
  width: 100%;
  height: 100%;
}

.network-line {
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-opacity: 0.3;
  stroke-dasharray: 5, 5;
  animation: dash-move 3s linear infinite;
}

.network-node {
  fill: var(--color-primary);
  fill-opacity: 0.4;
  animation: node-pulse 2s ease-in-out infinite;
}

.network-node:nth-child(odd) {
  animation-delay: 0.5s;
}

@keyframes dash-move {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 20;
  }
}

@keyframes node-pulse {
  0%, 100% {
    r: 4;
    fill-opacity: 0.4;
  }
  50% {
    r: 6;
    fill-opacity: 0.7;
  }
}

/* Ícone do cérebro animado */
.ia-brain-icon {
  position: relative;
  animation: brain-pulse 3s ease-in-out infinite;
}

.ia-brain-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background: var(--color-primary);
  opacity: 0.1;
  animation: brain-glow 2s ease-in-out infinite;
}

@keyframes brain-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes brain-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

/* Responsividade para elementos de IA */
@media (max-width: 768px) {
  .ia-particle {
    width: 6px;
    height: 6px;
  }
  
  .ia-shape {
    opacity: 0.1;
  }
  
  .ia-network {
    opacity: 0.15;
  }
}

/* ========== SEÇÃO VALORES - ELEMENTOS DECORATIVOS ========== */
.valores-particles {
  overflow: hidden;
}

.valores-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.35;
  animation: float-particle 10s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 18, 70, 0.4);
}

.valores-shapes {
  overflow: hidden;
}

.valores-shape {
  position: absolute;
  border: 2px solid var(--color-primary);
  opacity: 0.12;
  animation: valores-rotate 25s linear infinite;
}

.valores-shape-1 {
  width: 70px;
  height: 70px;
  top: 8%;
  left: 8%;
  border-radius: 50%;
  animation-duration: 20s;
}

.valores-shape-2 {
  width: 45px;
  height: 45px;
  top: 75%;
  right: 12%;
  border-radius: 8px;
  transform: rotate(45deg);
  animation-duration: 28s;
  animation-direction: reverse;
}

.valores-shape-3 {
  width: 90px;
  height: 90px;
  top: 35%;
  right: 3%;
  border-radius: 30%;
  animation-duration: 32s;
}

.valores-shape-4 {
  width: 55px;
  height: 55px;
  bottom: 20%;
  left: 12%;
  border-radius: 50%;
  animation-duration: 22s;
  animation-direction: reverse;
}

.valores-shape-5 {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 5%;
  border-radius: 6px;
  transform: rotate(20deg);
  animation-duration: 18s;
}

@keyframes valores-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.valores-shape-2.valores-shape,
.valores-shape-5.valores-shape {
  animation-name: valores-rotate-reverse;
}

@keyframes valores-rotate-reverse {
  0% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(-315deg);
  }
}

.valores-shape-5.valores-shape {
  animation-name: valores-rotate-reverse-20;
}

@keyframes valores-rotate-reverse-20 {
  0% {
    transform: rotate(20deg);
  }
  100% {
    transform: rotate(-340deg);
  }
}

.valores-symbols {
  overflow: hidden;
}

.valores-symbol {
  position: absolute;
  font-size: 1.5rem;
  color: var(--color-primary);
  opacity: 0.08;
  animation: valores-float-symbol 15s ease-in-out infinite;
  pointer-events: none;
}

.valores-symbol-1 { left: 5%;  top: 15%; animation-delay: 0s; }
.valores-symbol-2 { left: 18%; top: 75%; animation-delay: 2s; }
.valores-symbol-3 { right: 10%; top: 20%; animation-delay: 4s; }
.valores-symbol-4 { right: 25%; bottom: 25%; animation-delay: 1s; }
.valores-symbol-5 { left: 30%; top: 8%;  animation-delay: 3s; }
.valores-symbol-6 { right: 8%;  bottom: 15%; animation-delay: 5s; }

@keyframes valores-float-symbol {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.08;
  }
  25% {
    transform: translate(10px, -15px) scale(1.1);
    opacity: 0.12;
  }
  50% {
    transform: translate(-8px, -25px) scale(0.95);
    opacity: 0.06;
  }
  75% {
    transform: translate(15px, -10px) scale(1.05);
    opacity: 0.1;
  }
}

.valores-rays {
  overflow: hidden;
}

.valores-rays svg {
  width: 100%;
  height: 100%;
}

.valores-icon {
  position: relative;
  animation: valores-icon-pulse 3s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.valores-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background: var(--color-primary);
  opacity: 0.1;
  animation: brain-glow 2.5s ease-in-out infinite;
}

@keyframes valores-icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .valores-particle {
    width: 6px;
    height: 6px;
    opacity: 0.25;
  }
  .valores-shape {
    opacity: 0.08;
  }
  .valores-symbol {
    font-size: 1.2rem;
    opacity: 0.06;
  }
  .valores-rays {
    opacity: 0.12;
  }
}

/* ========== COMO FUNCIONA - TIMELINE ========== */
.how-timeline {
  position: relative;
  padding-top: 0.5rem;
}

.how-timeline-line {
  position: absolute;
  top: 2rem;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
  border-radius: 2px;
  opacity: 0.4;
  animation: how-line-flow 3s ease-in-out infinite;
}

.how-timeline-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  border-radius: 2px;
  animation: how-line-shine 2.5s ease-in-out infinite;
}

@keyframes how-line-flow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

@keyframes how-line-shine {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: translateX(100%); opacity: 0; }
}

.how-step-node {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(0, 18, 70, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-step-timeline:hover .how-step-node {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 18, 70, 0.5);
}

.how-step-num {
  font-size: 1.35rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.how-step-node-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0.4;
  animation: how-node-pulse 2s ease-out infinite;
}

@keyframes how-node-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.how-step-card {
  background: white;
  border: 1px solid rgba(0, 18, 70, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.how-step-card:hover {
  box-shadow: 0 12px 32px rgba(0, 18, 70, 0.12);
  border-color: rgba(0, 18, 70, 0.2);
  transform: translateY(-2px);
}

.how-step-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(0, 18, 70, 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.how-step-icon-wrap.how-step-icon-sm {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

.how-step-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.how-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.how-step-desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* Cards na mesma altura: o parágrafo ocupa o espaço restante */
.how-step-card-equal {
  min-height: 0;
}

.how-step-card-equal .how-step-desc {
  flex: 1 1 auto;
  min-height: 3.5rem;
}

/* Timeline vertical (mobile) */
.how-timeline-vertical {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.how-step-vertical {
  align-items: flex-start;
}

.how-step-node-sm {
  width: 3rem;
  height: 3rem;
}

.how-step-node-sm .how-step-num {
  font-size: 1.1rem;
}

.how-vertical-line {
  width: 3px;
  flex: 1;
  min-height: 1.5rem;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 2px;
  opacity: 0.4;
  margin-top: 0.25rem;
}

.how-vertical-line-last {
  min-height: 0;
  flex: 0;
  background: transparent;
}

.how-step-vertical .how-step-card {
  text-align: left;
}
