:root {
  --bg: #0b0f1a;
  --surface: #121829;
  --surface-2: #182139;
  --text: #e6e9f2;
  --muted: #a9b0c3;
  --primary: #4f8cff;
  /* electric blue */
  --secondary: #5eead4;
  /* teal */
  --accent: #a78bfa;
  /* soft purple */
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  color: var(--text);
  background: radial-gradient(1000px 600px at 10% -20%, rgba(79, 140, 255, .12), transparent),
    radial-gradient(800px 500px at 90% 10%, rgba(167, 139, 250, .10), transparent), var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: var(--text);
  text-decoration: none
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto
}

.center {
  text-align: center
}

.lead {
  color: var(--muted)
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: var(--primary);
  color: #000;
  padding: .5rem .75rem;
  border-radius: 8px
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(18, 24, 41, .7);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  z-index: 50
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0
}

.logo {
  height: 42px;
  width: auto
}

.logo.small {
  height: 24px
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  /* novo */
  z-index: 200;
  /* novo */
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0
}

.nav {
  margin-left: auto
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-list a {
  opacity: .85
}

.nav-list a:hover {
  opacity: 1
}

.nav-list>li>a:not(.btn) {
  display: inline-block;
  padding: .5rem 0
}

.nav-list .btn {
  padding: .55rem .9rem
}

/* Inline language dropdown */
.lang-dropdown {
  position: relative
}

.lang-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .5rem .6rem;
  border-radius: 10px;
  cursor: pointer;
  opacity: .85
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  opacity: 1;
  background: linear-gradient(135deg, rgba(79, 140, 255, .2), rgba(94, 234, 212, .15));
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 200px;
  display: none;
  box-shadow: var(--shadow);
  z-index: 60
}

.dropdown-menu.open {
  display: block
}

.dropdown-item {
  display: block;
  padding: .55rem .6rem;
  border-radius: 8px;
  color: var(--text);
  opacity: .9
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, .06);
  opacity: 1
}

.dropdown-item.active {
  background: rgba(79, 140, 255, .20);
  border: 1px solid rgba(79, 140, 255, .35)
}

.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: .18
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 30%, rgba(79, 140, 255, .12), transparent 60%),
    radial-gradient(600px 400px at 80% 30%, rgba(94, 234, 212, .18), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 10px
}

.subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  margin: 0 0 20px
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .12s ease, background .2s ease
}

.btn:hover {
  transform: translateY(-1px)
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6aa6ff);
  color: #081021
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, .18)
}

.section {
  padding: 64px 0;
  border-bottom: 0;
  /* avoid visual divider lines between sections */
}

/* Ensure a consistent background behind the About section */
.about {
  background:
    linear-gradient(140deg,
      rgba(79, 140, 255, .12) 0%,
      rgba(94, 234, 212, .10) 40%,
      rgba(167, 139, 250, .14) 100%),
    var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  /* linha de divisão como no banner */
}

/* Keep other main sections consistent too */
.services {
  /* Degradê suave usando a paleta: primary, secondary, accent sobre a base surface */
  background:
    linear-gradient(145deg,
      rgba(79, 140, 255, .18) 0%,
      rgba(94, 234, 212, .12) 45%,
      rgba(167, 139, 250, .18) 100%),
    var(--surface);
  padding-bottom: 96px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tech {
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  /* nova linha divisória */
}

.contact {
  background: var(--surface);
}

.grid.two {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 22px
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow)
}

.card .icon {
  font-size: 22px
}

.card h3 {
  margin: 12px 0 6px
}

.card p {
  color: var(--muted);
  margin: 0
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0;
  list-style: none
}

.tech-list li {
  padding: .5rem .7rem;
  background: rgba(79, 140, 255, .12);
  border: 1px solid rgba(79, 140, 255, .25);
  border-radius: 999px
}

.contact .form-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow)
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px
}

.field input,
.field textarea {
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: var(--text);
  padding: .7rem .8rem
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(79, 140, 255, .5);
  border-color: rgba(79, 140, 255, .5)
}

.alert {
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-bottom: 12px
}

.alert.error {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .35)
}

.alert.success {
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .35)
}

.form-note {
  color: var(--muted);
  font-size: .9rem
}

.site-footer {
  /* fundo uniforme sem degradê/efeito diferente */
  background: var(--bg);
  padding: 36px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: var(--muted);
}

/* Footer grid principal */
.footer-inner.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.1fr;
  gap: 28px;
  align-items: start;
  padding: 12px 0 20px;
}

/* Marca e tagline */
.site-footer .brand .tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.site-footer .brand .accent {
  color: var(--primary);
  display: inline-block;
  margin-top: 6px;
}

/* Colunas de links */
.links-col h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
}

.links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.links-col li {
  margin: 8px 0;
}

.links-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.links-col a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Contact box (direita) */
.contact-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.contact-box .contact-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.contact-details {
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.contact-mail,
.contact-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.contact-mail:hover,
.contact-phone:hover {
  text-decoration: underline;
}

/* Flags e sociais */
.footer-flags {
  width: 100%;
  text-align: right;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
}

.footer-flags .flag {
  font-size: 18px;
  display: inline-block;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}

.footer-socials .social {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}

.footer-socials .social:hover {
  transform: translateY(-2px);
  background: rgba(79, 140, 255, 0.12);
  color: var(--text);
}

/* Footer bottom (copyright + back to top) */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom .small a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom .small a:hover {
  text-decoration: underline;
  color: var(--text);
}

/* Responsividade */
@media (max-width: 920px) {
  .footer-inner.footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  /* empilha e coloca contact box mais abaixo */
  .contact-box {
    align-items: flex-start;
    text-align: left;
  }

  .footer-flags,
  .footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .footer-inner.footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .contact-box {
    width: 100%;
  }
}

/* Hero sizing overrides */
.hero {
  min-height: clamp(620px, 82vh, 900px);
}

@media (max-width: 920px) {
  .hero {
    min-height: clamp(560px, 90dvh, 880px);
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: calc(100dvh - 60px);
  }

  .hero-inner {
    padding: 64px 0 72px;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 620px) {
    .hero {
      min-height: calc(100dvh - 60px);
    }
  }
}

/* Responsive */
@media (max-width: 920px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 620px) {
  .nav-toggle {
    display: block
  }

  /* Off-canvas 80% da largura, ancorado à direita */
  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    /* novo */
    width: 80vw;
    /* novo: antes era 100vw */
    height: 100vh;
    background: var(--surface-2);
    border: 0;
    border-radius: 0;
    padding: 24px;
    flex-direction: column;
    gap: 10px;
    display: flex;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 100;
    pointer-events: none;
    will-change: transform;
    overscroll-behavior: contain;
    box-shadow: -20px 0 40px rgba(0, 0, 0, .35);
    /* novo: separação visual */
    border-left: 1px solid rgba(255, 255, 255, .08);
    /* novo */
  }

  .nav-list.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.menu-open .nav-list {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Overlay mais leve para não escurecer demais */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .2);
    /* antes: .4 */
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 90;
  }

  .nav-overlay.active,
  body.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Fallback robusto: abrir quando o body estiver em estado menu-open */
  body.menu-open .nav-list {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Overlay (fallback para caso a classe .active falhe) */
  body.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* O nav deixa de ser o containing block */
  .site-header .nav {
    position: static
  }

  /* Itens maiores e mais clicáveis */
  .nav-list>li>a:not(.btn) {
    padding: 14px 4px;
    font-size: 18px;
  }

  /* Dropdown de idioma dentro do painel */
  .dropdown-menu {
    position: static;
    display: none;
    margin-top: 6px;
  }

  .dropdown-menu.open {
    display: block;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 90;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Bloco social no rodapé do painel */
  .nav-list .mobile-social {
    display: block;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .ig-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    opacity: .9;
  }

  .ig-link:hover {
    opacity: 1;
  }

  .ig-link svg {
    width: 24px;
    height: 24px;
  }
}

/* Visual polish tweaks */
.about .media {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  /* opcional: garante altura mínima do bloco */
}

.about .media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 320px;
  /* limite de altura */
  margin: 0 auto;
  object-fit: contain;
  /* mantém proporção e centraliza */
}

.section.services {
  padding-bottom: 96px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  /* antes: 0 */
}

.section.tech {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Hero: camada de fundo e terminal com efeito de digitação */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .hero-inner {
  position: relative;
  z-index: 3;
}

.hero .hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero .bg-fx {
  z-index: 0;
}

/* Terminal full-bleed por trás do texto */
.hero .terminal-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #9fb7d0;
  /* antes: #cfefff (um pouco mais escuro) */
  opacity: .12;
  /* antes: .18 (mais transparente) */
  mix-blend-mode: screen;
}

.hero .terminal-bg pre {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: clamp(12px, 3vw, 32px);
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: clamp(10px, 2.2vw, 14px);
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero .terminal-bg pre::-webkit-scrollbar {
  display: none;
}

.terminal-bg .line {
  opacity: .80;
  /* antes: .95 */
  text-shadow: 0 0 4px rgba(120, 200, 255, .06);
  /* antes: 0 0 6px rgba(120,200,255,.15) */
}

/* Cores já usadas no mini-terminal reaproveitadas aqui */
.terminal-bg .prompt {
  color: #7ee787;
}

.terminal-bg .cmd {
  color: #a5d6ff;
}

.terminal-bg .dim {
  color: #8b9cb8;
}

/* Hero: camada de fundo e terminal com efeito de digitação */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .bg-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(0, 255, 170, .12), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(0, 140, 255, .12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 3px);
  animation: bgShift 18s linear infinite;
  mix-blend-mode: screen;
}

@keyframes bgShift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  50% {
    background-position: 20% 10%, -10% -10%, 0 6px;
  }

  100% {
    background-position: 0 0, 0 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .bg-fx {
    animation: none;
  }
}

/* Overrides finais para o off-canvas mobile */
@media (max-width: 620px) {

  /* Painel fechado */
  .nav-list {
    transform: translateX(110%);
    box-shadow: none;
    border-left: 0;
    z-index: 1000;
  }

  /* Painel aberto: garantir que esteja acima do overlay e receba cliques */
  .nav-list.open,
  body.menu-open .nav-list {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: -20px 0 40px rgba(0, 0, 0, .35);
    border-left: 1px solid rgba(255, 255, 255, .08);
    z-index: 1001;
    /* acima do overlay */
  }

  /* Overlay mais suave e NÃO cobrindo o painel (cobre só os 20vw restantes) */
  .nav-overlay {
    background: rgba(0, 0, 0, .2) !important;
    z-index: 900;
  }

  body.menu-open .nav-overlay {
    left: 0;
    right: 80vw;
    /* deixa livre a área do painel (80vw) */
    opacity: 1;
    pointer-events: auto;
  }
}

/* Ajustes desktop: aproximar texto e imagem no bloco Cloud Servers */
@media (min-width: 921px) {
  .about .grid.two {
    grid-template-columns: .8fr 1.2fr;
    /* texto ganha mais espaço, vem mais à esquerda */
    gap: 20px;
    /* diminui o espaço entre as colunas */
  }

  .about .media {
    justify-content: flex-end;
    /* imagem encosta mais no texto */
  }
}

/* Novos estilos para o bloco Cloud */
.cloud-copy h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  margin-top: 0;
  position: relative;
}

.cloud-copy h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 10px 0 18px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.cloud-copy p {
  line-height: 1.55;
}

.cloud-copy p:first-of-type {
  font-size: 1.05rem;
  color: var(--muted);
}

.cloud-features {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cloud-features li {
  position: relative;
  padding: 10px 14px 10px 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  font-size: .94rem;
  line-height: 1.4;
  overflow: hidden;
}

.cloud-features li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .25), 0 4px 10px -2px rgba(0, 0, 0, .6);
}

.cloud-features li::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 300px at 0% 0%, rgba(94, 234, 212, .08), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}

.cloud-features li:hover::after {
  opacity: 1;
}

.cloud-copy strong {
  color: var(--secondary);
}

.contact-highlights {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-highlights li {
  position: relative;
  padding: 10px 12px 10px 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  font-size: .95rem;
  line-height: 1.45;
  overflow: hidden;
}

.contact-highlights li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .25), 0 4px 10px -2px rgba(0, 0, 0, .6);
}

.contact-highlights li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 0% 0%, rgba(94, 234, 212, .10), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}

.contact-highlights li:hover::after {
  opacity: 1;
}

/* AI Assistant Styles */
.section.ai-assist {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  color: #e6eef8;
}

.section.ai-assist .ai-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(62, 104, 255, 0.12), transparent 60%),
    radial-gradient(900px 300px at 85% 0%, rgba(0, 224, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #0d141b 0%, #0a1118 100%);
  filter: saturate(1.05) contrast(1.02);
}

.section.ai-assist .ai-container {
  position: relative;
  z-index: 1;
  /* Remova o max-width fixo e padding lateral, use o mesmo da .container */
  /* max-width: 980px;
  padding: 0 16px; */
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}

.section.ai-assist .ai-title {
  margin: 0 0 6px;
  font-size: clamp(20px, 3.5vw, 28px);
}

.section.ai-assist .ai-sub {
  margin: 0 auto 22px;
  max-width: 780px;
  color: #9fb0c9;
}

.section.ai-assist .ai-chat {
  margin: 0 auto;
  /* max-width: 860px; */ /* Removido para usar largura total da .container */
}

.section.ai-assist .ai-input-wrap {
  width: 100%;
  /* max-width: 860px; */ /* Removido para usar largura total da .container */
}

.section.ai-assist .ai-responses {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  max-height: 420px;
  overflow: auto;
  scrollbar-width: thin;
}

/* Smooth expand for AI assistant section */
.section.ai-assist {
  transition: padding 260ms ease-in-out, background-color 260ms ease-in-out, min-height 260ms ease-in-out;
  padding: 40px 0;
  min-height: 0;
  /* default */
}

/* Fixed expanded height: 530px but keep padding and top alignment so content doesn't stick to neighbors */
.section.ai-assist.ai-expanded {
  min-height: 530px;
  display: flex;
  /* stack children vertically so justify-content centers them vertically */
  flex-direction: column;
  /* center vertically */
  justify-content: center;
  /* center horizontally */
  align-items: center;
  padding: 40px 0;
  /* keep gap above/below */
}

/* make container sit a bit lower so title/input have breathing room */
.section.ai-assist.ai-expanded .ai-container {
  /* center contents vertically inside the expanded section */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* remove forced full-height so internal content can be centered naturally */
  height: auto;
  margin-top: 0;
  align-self: stretch;
  /* keep full available width */
  padding-top: 0;
  padding-bottom: 0;
}

/* When the section is expanded, prevent ai-chat and input from shrinking */
.section.ai-assist.ai-expanded .ai-chat,
.section.ai-assist.ai-expanded .ai-input-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  flex: 0 0 auto;
  /* do not shrink/grow inside the ai-container flex column */
}

/* limit responses height relative to viewport so it scrolls internally when long */
.section.ai-assist .ai-responses {
  max-height: 50vh;
  /* default responsive cap */
}

/* when expanded, allow a larger but bounded responses area */
.section.ai-assist.ai-expanded .ai-responses {
  max-height: calc(100vh - 300px);
}

.section.ai-assist .ai-input-wrap textarea {
  box-sizing: border-box;
  /* include padding in width calculations */
}

@media (max-width: 720px) {
  .section.ai-assist {
    padding: 28px 0;
  }

  .section.ai-assist.ai-expanded {
    min-height: 530px;
    padding: 28px 0;
  }

  .section.ai-assist.ai-expanded .ai-responses {
    max-height: calc(100vh - 260px);
  }
}

/* Bubble rows */
.ai-row {
  display: flex;
  margin: 10px 4px;
}

.ai-row.user {
  justify-content: flex-end;
}

.ai-row.bot,
.ai-row.system {
  justify-content: flex-start;
}

.ai-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.ai-row.user .ai-bubble {
  text-align: right;
}

.ai-bubble .who {
  display: block;
  font-size: 11px;
  opacity: .8;
  margin-bottom: 4px;
  letter-spacing: .2px;
}

.ai-row.user .ai-bubble .who {
  text-align: right;
}

.ai-row.bot .ai-bubble .who,
.ai-row.system .ai-bubble .who {
  text-align: left;
}

/* Typing dots */
.dots {
  display: inline-flex;
  gap: 4px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfe0ff;
  opacity: .65;
  animation: blink 1s infinite ease-in-out;
}

.dots span:nth-child(2) {
  animation-delay: .15s;
}

.dots span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: .2;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Input area */
.ai-form {
  margin-top: 14px;
}

.ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 8px 10px;
  transition: border-color .2s, background .2s;
}

.ai-input-wrap:focus-within {
  border-color: rgba(124, 187, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.ai-input-wrap .ai-ic {
  background: transparent;
  color: #a7bad5;
  border: 0;
  padding: 8px;
  border-radius: 12px;
  opacity: .7;
}

.ai-input-wrap textarea {
  flex: 1;
  min-height: 40px;
  max-height: 180px;
  resize: none;
  border: 0;
  background: transparent;
  color: #e6eef8;
  padding: 10px 4px;
  outline: none;
  caret-color: #9fd1ff;
  font: inherit;
}

.ai-input-wrap textarea::placeholder {
  color: #7e93ad;
  opacity: .9;
}

.ai-input-wrap .ai-send {
  background: linear-gradient(180deg, #6da6ff, #84b6ff);
  color: #0b1220;
  border: 0;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(63, 123, 255, .35);
}

.ai-form.busy .ai-send {
  opacity: .7;
  pointer-events: none;
}

/* Remove default Chrome blue highlight and selection rim */
.ai-input-wrap textarea,
.ai-input-wrap button {
  -webkit-tap-highlight-color: transparent;
}

.ai-input-wrap textarea {
  outline: none;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .section.ai-assist {
    padding: 42px 0;
  }

  .ai-bubble {
    max-width: 86%;
    font-size: 15px;
  }

  .ai-input-wrap {
    gap: 6px;
    padding: 8px;
  }

  .ai-input-wrap .ai-send {
    width: 38px;
    height: 38px;
  }
}

/* Slightly larger input area when AI section is expanded */
.section.ai-assist .ai-input-wrap {
  transition: padding .22s ease, background .2s, border-color .2s, min-height .22s ease;
}

.section.ai-assist.ai-expanded .ai-input-wrap {
  padding: 12px 14px;
  /* a bit taller */
}

.section.ai-assist.ai-expanded .ai-input-wrap textarea {
  min-height: 54px;
  /* increase visible input height */
}

.section.ai-assist.ai-expanded .ai-input-wrap .ai-send {
  width: 44px;
  height: 44px;
}

@media (max-width: 640px) {
  .section.ai-assist.ai-expanded .ai-input-wrap {
    padding: 10px 12px;
  }

  .section.ai-assist.ai-expanded .ai-input-wrap textarea {
    min-height: 48px;
  }

  .section.ai-assist.ai-expanded .ai-input-wrap .ai-send {
    width: 40px;
    height: 40px;
  }
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: auto
}

.cookie-consent .cookie-inner {
  background: var(--card-bg, #111);
  color: var(--muted, #ddd);
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 1100px
}

.cookie-consent .cookie-text p {
  margin: 0;
  color: inherit;
  font-size: 14px
}

.cookie-consent .cookie-text a {
  color: inherit;
  text-decoration: underline
}

.cookie-consent .cookie-actions {
  display: flex;
  gap: 8px
}

.cookie-consent .cookie-actions .btn,
.cookie-consent .cookie-actions button {
  cursor: pointer
}

@media (max-width:640px) {
  .cookie-consent .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left
  }
}

/* Garante que qualquer elemento [hidden] fique oculto imediatamente */
[hidden] {
  display: none !important;
}

/* Banner: escondido por padrão para evitar flash antes do JS */
.cookie-consent {
  display: none;
}

/* Só exibir quando o JS decidir */
.cookie-consent.is-visible {
  display: flex;
}

/* Mega menu styles */
.has-mega {
  position: relative;
}

.mega-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 64px; /* altura do header, ajuste se necessário */
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  margin: 0 auto;
  background: var(--surface-2);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 32px 32px 24px 32px;
  z-index: 98;
  border-top: 2px solid var(--primary);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mega-col h4 {
  margin: 0 0 12px 0;
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col li {
  margin-bottom: 14px;
}

.mega-col a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 6px;
  transition: background .15s;
}

.mega-col a:hover {
  background: rgba(79, 140, 255, 0.10);
}

.mega-col .icon {
  font-size: 22px;
  margin-top: 2px;
}

.mega-col strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
}

.mega-col span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Show mega menu on hover (desktop only) */
@media (min-width: 921px) {

  .has-mega:hover > .mega-menu,
  .has-mega:focus-within > .mega-menu,
  .has-mega.open > .mega-menu {
    display: block;
  }
}

/* Hide mega menu in mobile nav */
@media (max-width: 920px) {
  .mega-menu {
    display: none !important;
  }
}