/* ==========================================================================
   HighTekk — Site institucional
   Paleta e clima visual inspirados na tela de login do produto
   (app/templates/login.html): fundo azul-marinho quase preto, gradiente
   ciano/azul como assinatura, cartões translúcidos com blur.
   ========================================================================== */

:root {
  --bg: #0a0f1c;
  --bg-soft: #0d1526;
  --bg-elevated: rgba(20, 28, 48, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e2eaf4;
  --text-dim: rgba(226, 234, 244, 0.72);
  --text-dimmer: rgba(226, 234, 244, 0.5);
  --text-faint: rgba(226, 234, 244, 0.35);
  --accent-1: #0b8fd4;
  --accent-2: #5ddcf0;
  --accent-glow: rgba(11, 143, 212, 0.45);
  --gradient: linear-gradient(135deg, #0b8fd4 0%, #5ddcf0 100%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.ink {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  display: inline-block;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }

section { position: relative; }

/* ===== Fundo de rede neural (canvas) ===== */
#neural-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-shell { position: relative; z-index: 1; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled {
  background: rgba(10, 15, 28, 0.85);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 30px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  transition: color .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.link-signin {
  display: inline-flex; align-items: center;
  font-size: 13.5px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: background .2s, border-color .2s, color .2s;
}
.link-signin strong { font-weight: 600; }
.link-signin:hover {
  color: #fff;
  background: rgba(93, 220, 240, 0.1);
  border-color: rgba(93, 220, 240, 0.4);
}
.link-signin:hover strong { color: var(--accent-2); }
.link-signin-short { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #04121f;
  box-shadow: 0 10px 28px rgba(11, 143, 212, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(93, 220, 240, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255,255,255,0.25); }

.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 50px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}
.hero-copy { opacity: 0; animation: fade-up .8s .1s ease-out forwards; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(93,220,240,0.08);
  border: 1px solid rgba(93,220,240,0.25);
  color: var(--accent-2);
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 22px;
}
.hero-identity {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-badge-wide {
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 480px;
  text-align: left;
  white-space: normal;
  align-items: flex-start;
}
.hero-badge-wide svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-microtrust {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 12.5px; color: var(--text-dimmer);
}
.hero-microtrust span { display: inline-flex; align-items: flex-start; gap: 6px; text-align: left; }
.hero-microtrust svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent-2); margin-top: 1px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fade-up .9s .25s ease-out forwards;
}
.hero-logo-plate {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, rgba(11,143,212,0.18), transparent 65%),
              linear-gradient(160deg, rgba(20,28,48,0.7), rgba(10,15,28,0.35));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero-logo-plate img {
  width: 62%;
  filter: drop-shadow(0 0 40px rgba(11,143,212,0.5));
  animation: breathe 3.8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 26px rgba(11,143,212,0.35)); }
  50%      { filter: drop-shadow(0 0 44px rgba(93,220,240,0.6)); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Seções genéricas ===== */
.section { padding: 100px 0; }
.section-head { max-width: 660px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 32px; color: #fff; margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 15.5px; }

/* ===== Grid de recursos ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93,220,240,0.35);
  box-shadow: 0 18px 46px rgba(11,143,212,0.16);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(11,143,212,0.22), rgba(93,220,240,0.12));
  border: 1px solid rgba(93,220,240,0.25);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--accent-2); }
.feature-card h3 { font-size: 16.5px; color: #fff; margin-bottom: 9px; }
.feature-card p { font-size: 13.8px; color: var(--text-dim); margin: 0; }


/* ===== CTA final / contato ===== */
.cta-section {
  padding: 110px 0 100px;
}
.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(20,28,48,0.85), rgba(10,15,28,0.6));
  box-shadow: var(--shadow-card);
}
.cta-info { padding: 52px 48px; }
.cta-info h2 { font-size: 28px; color: #fff; margin-bottom: 16px; }
.cta-info p { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }
.cta-info-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.cta-info-list li { display: flex; gap: 10px; font-size: 13.8px; color: var(--text-dim); align-items: flex-start; }
.cta-info-list svg { width: 17px; height: 17px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.cta-direct { font-size: 13.5px; color: var(--text-dimmer); }
.cta-direct a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.cta-direct a:hover { text-decoration: underline; }

.cta-form-wrap {
  padding: 48px 44px;
  background: rgba(6, 10, 20, 0.55);
  border-left: 1px solid var(--border);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 7px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
/* O menu suspenso nativo do <select> usa fundo claro em quase todo
   navegador, independente do tema da pagina — sem isso, as <option>
   herdam o branco do select fechado e ficam ilegiveis (branco no
   branco). */
.form-row select option {
  color: #0a0f1c;
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(93,220,240,0.15);
}
.form-row textarea { resize: vertical; min-height: 92px; }
.form-note { font-size: 12px; color: var(--text-faint); margin-top: 14px; text-align: center; }

/* ===== Rodapé ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 24px; width: auto; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-faint);
  padding-top: 22px; border-top: 1px solid var(--border);
}

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  /* "Entrar" é ação frequente pra quem já é cliente: fica sempre visível
     no header (versão curta), nunca escondida atrás do menu. A CTA de
     "Peça uma demonstração" (exploratória, já tem destaque no hero e no
     final da página) migra pro menu pra abrir espaço. */
  .link-signin-full { display: none; }
  .link-signin-short { display: inline; }
  .header-actions .btn-primary { display: none; }

  .hero .container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { display:flex; flex-direction:column; align-items:center; }
  .hero-identity { align-items: center; }
  /* fit-content, quando o texto nao cabe numa linha, resolve pra
     largura disponivel inteira (nao tenta achar um "meio termo" de
     2 linhas) - por isso precisa de um teto explicito bem menor pra
     realmente encolher e permitir a centralizacao aparecer. */
  .hero-badge-wide { max-width: 260px; margin-left: auto; margin-right: auto; }
  .hero-microtrust span { max-width: 260px; margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-plate { max-width: 280px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-panel { grid-template-columns: 1fr; }
  .cta-form-wrap { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 70px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-info, .cta-form-wrap { padding: 34px 26px; }
  .cta-info h2 { font-size: 24px; }
  .site-header .container { height: 68px; gap: 10px; }
  .brand img { height: 26px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* Menu mobile */
.mobile-nav {
  position: fixed; inset: 68px 0 0 0;
  background: rgba(10,15,28,0.98);
  backdrop-filter: blur(16px);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 30px 24px;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 16px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.mobile-nav-cta { margin-top: 22px; }

/* Botão "voltar ao topo" e utilitários */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
