/* ============================================
   HALVER — HOME (tema claro, igual ao site real)
   Estrutura: header, hero, clientes, contato, FAQ, footer.
   As seções de conteúdo trazem o próprio CSS (componentes).
   ============================================ */

:root {
  --roxo: #8B5CF6;
  --roxo-claro: #A78BFA;
  --roxo-escuro: #6D28D9;
  --texto: #E8E8F0;
  --texto-suave: #9C9CB0;
  --bg: #0A0A0F;
  --bg-surface: #14141C;
  --borda: #2A2A38;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container: 1200px;
  --header-bg: rgba(10,10,15,.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 5vw; }

/* ====== BOTÕES ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn--solid { background: var(--roxo); color: #fff; border-color: var(--roxo); }
.btn--solid:hover { background: var(--roxo-escuro); border-color: var(--roxo-escuro); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--texto); border-color: var(--borda); }
.btn--ghost:hover { border-color: var(--roxo-claro); color: var(--roxo); }
.btn--lg { padding: 15px 32px; font-size: 16px; }

/* ====== HEADER ====== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.header__logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--texto-suave); transition: color .2s; display: inline-flex; align-items: center; gap: 4px; }
.nav__link:hover { color: var(--roxo); }
.nav__link svg { width: 14px; height: 14px; }

/* ===== Mega-menu da aba Soluções ===== */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav__caret { transition: transform .25s ease; }
.has-mega:hover .nav__caret { transform: rotate(180deg); }
.has-mega:hover .nav__link { color: var(--roxo); }
.mega-dropdown {
  position: absolute; top: 100%; left: 0; transform: translateY(8px);
  width: 720px;
  padding-top: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 200;
}
.has-mega:hover .mega-dropdown, .has-mega:focus-within .mega-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.header__actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--borda); color: var(--texto-suave);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  padding: 7px 11px; border-radius: 8px; cursor: pointer; transition: all .2s;
}
.lang-toggle:hover { border-color: var(--roxo-claro); color: var(--roxo); }
.lang-toggle img { width: 18px; height: auto; border-radius: 2px; }
.header__login { font-size: 15px; font-weight: 600; color: var(--texto); }
.header__login:hover { color: var(--roxo); }
.header__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.header__burger span { width: 24px; height: 2px; background: var(--texto); border-radius: 2px; transition: .3s; }

.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 16px 5vw 24px; border-top: 1px solid var(--borda); background: var(--bg-surface); }
.mobile-menu[hidden] { display: none; }
@media (min-width: 981px) { .mobile-menu { display: none !important; } }
.mobile-menu a { padding: 12px 0; font-size: 16px; font-weight: 500; color: var(--texto); border-bottom: 1px solid var(--borda); }
.mobile-menu__actions { display: flex; gap: 10px; margin-top: 14px; }
.mobile-menu__actions .btn { flex: 1; }

/* ====== HERO ====== */
.hero { padding: 1.5rem 0 5rem; background: var(--bg); }
.hero__status { display: flex; justify-content: flex-end; margin-bottom: 2.5rem; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--roxo);
  background: #F5F3FF; border-radius: 100px; padding: 8px 18px; margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -.03em; color: var(--texto); margin-bottom: 1.5rem;
}
.hero__title .grad {
  background: linear-gradient(120deg, #6D28D9 0%, #A78BFA 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--texto-suave); max-width: 540px; margin-bottom: 2.25rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { display: flex; align-items: center; justify-content: center; }

/* ====== CLIENTES ====== */
.clients { padding: 3.5rem 0; border-bottom: 1px solid var(--borda); }
.clients__title {
  text-align: center; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: 2.25rem;
}
.clients__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; align-items: center; }
.clients__grid img { height: 42px; width: auto; margin: 0 auto; object-fit: contain; background: #fff; padding: 14px 20px; border-radius: 12px; box-sizing: content-box; }

/* ====== CABEÇALHO DE SEÇÃO (claro) ====== */
.section-head { text-align: center; max-width: 750px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem; color: var(--texto); }
.section-head p { color: var(--texto-suave); font-size: 1.125rem; line-height: 1.6; }

/* ====== CONECTIVIDADE (heading + mapa + latência) ====== */
.connectivity { padding: 6rem 0; background: var(--bg); }
.connectivity__stack { display: flex; flex-direction: column; align-items: center; gap: 3rem; }

/* ====== CONTATO (escuro, estilo data center — igual à imagem 3) ====== */
.contact { position: relative; padding: 6rem 0; background: linear-gradient(135deg, #1E2140 0%, #15172B 100%); overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; }
.contact::after { content: ''; position: absolute; top: 8%; left: 50%; transform: translateX(-50%); width: 100%; max-width: 800px; height: 460px; background: radial-gradient(circle, rgba(139,92,246,.16) 0%, transparent 60%); filter: blur(40px); pointer-events: none; }
.contact__card { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; background: rgba(15, 22, 42, .82); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: clamp(2rem, 4vw, 3.5rem); backdrop-filter: blur(8px); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.contact__card .section-head h2 { color: #fff; }
.contact__card .section-head p { color: #94A3B8; }
.contact__form { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 100%; margin: 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.field input, .field textarea { background: var(--bg-surface); border: none; border-radius: 100px; padding: 16px 22px; color: var(--texto); font-family: var(--font-sans); font-size: 15px; }
.field textarea { border-radius: 20px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--roxo-claro); outline-offset: 2px; }
.contact__form .btn { grid-column: 1 / -1; margin-top: 6px; }
.contact__form .btn--solid { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); border: none; text-transform: uppercase; letter-spacing: .04em; }
.contact__form .btn--solid:hover { background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%); }

/* ====== FAQ ====== */
.faq { padding: 6rem 0; background: var(--bg); }
.faq__item { background: var(--bg-surface); border: 1px solid var(--borda); border-radius: 12px; margin-bottom: 12px; max-width: 820px; margin-left: auto; margin-right: auto; overflow: hidden; }
.faq__item summary { padding: 20px 24px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--texto); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; color: var(--roxo); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--texto-suave); font-size: 15px; }

/* ====== FOOTER ====== */
.footer {
  background: #191c1f;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #CBD5E1; padding: 4rem 0 0;
}
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 22px; }
.footer__social { display: flex; flex-direction: row; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 15px; line-height: 1; transition: background .2s, border-color .2s, transform .2s; }
.footer__social a:hover { background: var(--roxo); border-color: var(--roxo); transform: translateY(-2px); }
.footer__col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; color: #94A3B8; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid #1E293B; font-size: 13px; color: #64748B; }

/* ====== WHATSAPP ====== */
.whatsapp { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.4); z-index: 90; transition: transform .2s; }
.whatsapp:hover { transform: scale(1.08); }

/* ====== BARRA DE STATUS (componente fornecido) ====== */
.halver-status-wrap { --halver-status-color: #FFFFFF; --halver-status-color-hover: #D8B4FE; display: flex; justify-content: flex-end; }
[data-theme="light"] .halver-status-wrap { --halver-status-color: #5532D1; --halver-status-color-hover: #3d1fa8; }
.halver-status-link { display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--halver-status-color); text-decoration: none; transition: color 0.2s ease; }
.halver-status-link:hover, .halver-status-link:focus-visible { color: var(--halver-status-color-hover); text-decoration: underline; }
.halver-status-link svg { flex-shrink: 0; transition: transform 0.2s ease; }
.halver-status-link:hover svg { transform: translate(1px, -1px); }
.halver-text--en { display: none; }
:lang(en) .halver-text--pt, [lang^="en"] .halver-text--pt { display: none; }
:lang(en) .halver-text--en, [lang^="en"] .halver-text--en { display: inline; }

/* ====== RESPONSIVO ====== */
@media (max-width: 980px) {
  .nav, .header__actions { display: none; }
  .header__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__art { order: -1; }
  #halver-pro-hero-container { height: 360px !important; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__status { justify-content: center; }
  .contact__form { grid-template-columns: 1fr; }
  .field--full, .contact__form .btn { grid-column: 1; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* ===== BOTÃO DE TEMA ===== */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--borda);
  color: var(--texto-suave);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.theme-toggle:hover { border-color: var(--roxo-claro); color: var(--branco); }

/* ===== TEMA LIGHT ===== */
[data-theme="light"] {
  --roxo: #6D28D9;
  --roxo-claro: #8B5CF6;
  --roxo-escuro: #5B21B6;
  --texto: #0F172A;
  --texto-suave: #64748B;
  --bg: #FFFFFF;
  --bg-surface: #F8FAFC;
  --borda: #E2E8F0;
  --header-bg: rgba(255,255,255,.9);
}
[data-theme="light"] .contact__success h3 { color: #0F172A; }
[data-theme="light"] .contact__success p  { color: #64748B; }

/* ===== LOGO por tema ===== */
/* Dark (padrão): mostra logo branca, esconde preta */
.logo-light { display: none; }
.logo-dark  { display: block; }
/* Light: inverte */
[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark  { display: none; }

