/* KairoIT polish layer: shared visual, responsive and accessibility refinements. */
:root {
  --surface-soft: rgba(15, 23, 42, 0.74);
  --surface-strong: rgba(8, 13, 26, 0.9);
  --line-soft: rgba(148, 163, 184, 0.16);
  --accent-warm: #fbc927;
  --shadow-deep: 0 22px 70px rgba(0, 0, 0, 0.34);
}

html {
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

/* Removido: veu fixo com degrade que escurecia a parte de baixo da tela
   (dava a impressao de conteudo "apagado" ao rolar). */
body::before {
  content: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(251, 201, 39, 0.85);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 5000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-warm);
  color: #07111f;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.navbar {
  height: 74px;
  padding-inline: clamp(18px, 5vw, 72px);
  background: rgba(8, 13, 26, 0.82);
}

.nav-logo img {
  max-height: 66px;
}

.nav-links {
  gap: clamp(16px, 2.1vw, 30px);
}

.nav-hamburger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
}

.nav-cta,
.btn-primary,
.btn-secondary,
.toc-cta-link,
.service-link {
  min-height: 42px;
}

#hero {
  min-height: min(820px, 100svh);
  display: flex;
  align-items: center;
  padding-top: 108px;
  padding-bottom: 52px;
}

.hero-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  gap: clamp(34px, 6vw, 82px);
}

.hero-badge {
  width: fit-content;
  border-color: rgba(251, 201, 39, 0.34);
  background: rgba(251, 201, 39, 0.08);
  color: #ffe083;
}

.hero-title {
  max-width: 760px;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-desc,
.section-subtitle {
  max-width: 760px;
  color: #b6c4d8;
}

.hero-actions {
  flex-wrap: wrap;
}

.hero-visual {
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.3));
}

.dashboard-card,
.case-card,
.testimonial-card,
.blog-card,
.contact-card,
.article-body,
.toc,
.pilar,
.concept-card,
.highlight-box,
.warn-box,
.cve-example {
  border: 1px solid var(--line-soft) !important;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(10, 14, 26, 0.82)) !important;
  box-shadow: var(--shadow-deep);
}

.case-card,
.testimonial-card,
.blog-card,
.contact-card {
  border-radius: 8px !important;
}

footer {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 13, 26, 0.96), rgba(5, 9, 18, 0.98)) !important;
  border-top: 1px solid rgba(0, 163, 255, 0.22) !important;
}

.footer-logo-wrap .footer-logo-text {
  color: #f8fbff !important;
}

.footer-tagline,
.footer-bottom p,
.footer-legal a {
  color: #a9b8cc !important;
}

.footer-col h4 {
  color: #8fb2d8 !important;
}

.footer-links a,
.footer-contact-item,
.footer-contact-item a {
  color: #c7d3e3 !important;
}

.footer-social a {
  color: #d7e4f5 !important;
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(0, 163, 255, 0.18) !important;
}

.footer-links a:hover,
.footer-contact-item a:hover,
.footer-legal a:hover,
.footer-social a:hover {
  color: var(--blue) !important;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-radius: 10px;
  color: var(--blue);
}

.service-desc {
  color: #b7c4d6 !important;
}

.service-list li,
.feature-list li,
.article-body li {
  color: #c5d0df;
}

.service-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
}

.section-title,
.cta-title,
.article-title {
  letter-spacing: 0;
  text-wrap: balance;
}

.highlight {
  color: var(--accent-warm) !important;
}

#stats {
  padding-block: clamp(28px, 5vw, 56px);
}

.stat-number {
  color: var(--accent-warm) !important;
}

#clients img,
.client-logo img {
  filter: none;
  opacity: 1;
  transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

#clients,
.clients-carousel,
.clients-wrapper {
  overflow: hidden;
}

#clients img:hover,
.client-logo:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

.article-layout {
  align-items: start;
}

.article-body {
  max-width: 780px;
}

.article-body p {
  color: #c3cede;
}

.toc {
  top: 96px !important;
}

.article-hero {
  padding-top: 116px !important;
}

.article-intro {
  color: #c9d5e4 !important;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 118px 5% 68px;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 163, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(10, 14, 26, 0.88), rgba(10, 14, 26, 0));
}

.page-hero-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  text-align: center;
}

.page-hero .hero-badge {
  margin: 0 auto 20px;
}

.page-hero .section-title,
.page-hero .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

body:has(.page-hero) .container {
  max-width: 1480px;
}

#about {
  padding-top: clamp(64px, 7vw, 96px) !important;
  padding-bottom: clamp(72px, 8vw, 110px) !important;
}

.about-grid {
  grid-template-columns: minmax(420px, 0.95fr) minmax(620px, 1.05fr) !important;
  gap: clamp(56px, 7vw, 112px) !important;
  align-items: start;
}

.about-left .section-title {
  max-width: 520px;
}

.about-stats-mini {
  max-width: 560px;
}

.about-right {
  max-width: 720px;
}

.about-text p {
  font-size: 1rem;
}

.about-feature {
  padding: 18px 20px !important;
}

.origem-block {
  margin-top: 36px !important;
  padding: 30px 34px !important;
}

.home-service-preview {
  padding: 92px 5%;
  position: relative;
  z-index: 1;
}

.preview-grid {
  width: min(1180px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.preview-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(10, 14, 26, 0.82));
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-deep);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 163, 255, 0.42);
}

.preview-card i {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid rgba(0, 163, 255, 0.25);
  font-size: 1.25rem;
}

.preview-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.preview-card p {
  color: #b7c4d6;
  font-size: 0.95rem;
}

.floating-whatsapp,
.whatsapp-float {
  position: fixed;
  right: 32px !important;
  bottom: 30px !important;
  z-index: 1500;
  width: 72px !important;
  height: 72px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366 !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(37, 211, 102, 0.36) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: none !important;
  isolation: isolate;
}

.floating-whatsapp::after,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.28), rgba(37, 211, 102, 0) 68%);
  z-index: -1;
}

.floating-whatsapp::before,
.whatsapp-float::before {
  content: "";
  width: 32px;
  height: 32px;
  display: block;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32 101.5 32 1.9 131.6 1.9 254c0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zM223.9 438.7c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32 101.5 32 1.9 131.6 1.9 254c0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zM223.9 438.7c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.floating-whatsapp i,
.whatsapp-float i {
  display: none !important;
}

.floating-whatsapp:hover,
.whatsapp-float:hover {
  background: #25d366 !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(37, 211, 102, 0.44) !important;
}


@media (max-width: 1024px) {
  .navbar {
    height: 68px;
  }

  .nav-logo img {
    max-height: 58px;
  }

  #hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    order: -1;
  }

  .hero-visual {
    order: 0 !important;
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .article-layout {
    grid-template-columns: 1fr !important;
  }

  .toc {
    position: static !important;
    order: -1;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .navbar {
    padding-inline: 16px;
  }

  .nav-logo-text {
    display: none !important;
  }

  #hero,
  section,
  #contact {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .hero-title,
  .section-title,
  .cta-title,
  .article-title {
    font-size: clamp(2rem, 11vw, 3rem) !important;
    line-height: 1.06 !important;
  }

  .page-hero {
    min-height: auto;
    padding: 112px 18px 48px;
  }

  body:has(.page-hero) .container {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .about-right,
  .about-left .section-title,
  .about-stats-mini {
    max-width: 100%;
  }

  .home-service-preview {
    padding: 72px 18px;
  }

  .hero-desc,
  .section-subtitle,
  .article-intro {
    font-size: 1rem !important;
  }

  .hero-actions,
  .cta-buttons {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions a,
  .cta-buttons a,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .service-card,
  .case-card,
  .testimonial-card,
  .blog-card,
  .contact-card,
  .article-body,
  .toc {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  }

  .floating-whatsapp,
  .whatsapp-float {
    right: 18px !important;
    bottom: 18px !important;
    width: 62px !important;
    height: 62px !important;
  }

  .floating-whatsapp::after,
  .whatsapp-float::after {
    inset: -12px;
  }

  .clients-track {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    animation: none !important;
    transform: none !important;
  }

  .client-logo {
    width: 100% !important;
    min-width: 0 !important;
  }

  .client-logo img {
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #canvas-bg {
    display: none !important;
  }
}

/* ===== Paginas de servico: corpo de texto mais legivel (menos "apagado") ===== */
.page-hero .page-intro,
.page-content p,
.page-content li,
.page-content .benefit-text,
.page-content .feature-text {
  color: #cdd8e8 !important;
}

/* ===== Conteudo sempre em cor plena (desativa o fade-in ao rolar) ===== */
.fade-up,
.fade-up.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   REFINAMENTO VISUAL - Direcao "escuro sofisticado"
   Remove estetica "gamer/neon" (particulas, glow forte, cantos
   muito arredondados) em favor de sobriedade corporativa.
   Sobrescreve as variaveis definidas nos <style> inline de cada
   pagina (este arquivo carrega por ultimo).
   ============================================================ */

:root {
  /* Cantos mais retos - menos "app consumer", mais "enterprise" */
  --radius: 6px;
  --radius-lg: 8px;
  /* Glow neon neutralizado - vira sombra discreta de profundidade */
  --glow-blue: 0 12px 32px rgba(0, 0, 0, 0.35);
  --glow-green: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Remove o canvas de particulas flutuantes (visual "hacker/gamer") */
#canvas-bg {
  display: none !important;
}

/* Reduz glows neon hardcoded (nao vinculados a variavel) em botoes/CTAs */
.btn-whatsapp:hover,
.floating-whatsapp,
.nav-cta:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Badges e pills: cantos discretos em vez de formato capsula total */
.section-badge,
.hero-badge,
.page-tag {
  border-radius: 6px !important;
}

/* Suaviza o peso do verde neon como acento decorativo (mantido em CTAs/sucesso) */
.highlight-box h3,
.step-highlight {
  color: #4ADE80 !important;
}
