/* ============================================================
   Tech4U — Estilos personalizados (complementares ao Tailwind)
   ============================================================ */

:root {
  --tech-azul-900: #0E1E3C;
  --tech-azul-800: #17305C;
  --tech-azul-700: #1D4185;
  --tech-azul-600: #2563D8;
  --tech-azul-100: #CFDBF0;
  --tech-azul-50:  #E8EEF9;
  --tech-papel:    #DCE3EE;
  --tech-tinta:    #12121A;
  --tech-sinal:    #FF3366;
  --tech-lima:     #D4FF3D;
  --tech-sistema:  #1FBF8F;
}

* {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 140px;
}

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

:focus-visible {
  outline: 3px solid var(--tech-sinal);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 1023px) {
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* Scrollbar personalizada (WebKit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--tech-papel);
}
::-webkit-scrollbar-thumb {
  background: var(--tech-azul-600);
  border-radius: 999px;
  border: 2px solid var(--tech-papel);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--tech-sinal);
}

/* ============================================================
   Navegação
   ============================================================ */

.nav-link {
  position: relative;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tech-tinta);
  opacity: 0.8;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  opacity: 1;
  background-color: rgba(10, 23, 48, 0.06);
  color: var(--tech-azul-900);
}

.nav-link-mobile {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tech-tinta);
  border-bottom: 2px solid rgba(18, 18, 26, 0.08);
}
.nav-link-mobile:last-of-type {
  border-bottom: none;
}
.nav-link-mobile:active {
  background-color: rgba(10, 23, 48, 0.06);
}

.footer-link {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.footer-link:hover {
  opacity: 1;
  color: #ffffff;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.social-icon:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   Etiquetas de sistema ("eyebrows") — assinatura visual estilo "sticker"
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tech-azul-700);
  padding: 0;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--tech-azul-600);
  flex-shrink: 0;
}
.eyebrow--dark {
  color: #8FA3C9;
}
.eyebrow--dark::before {
  background-color: #8FA3C9;
}

/* ============================================================
   Painel de estado (hero)
   ============================================================ */

.painel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: 0.6rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}
.painel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
}
.status-dot--ok {
  color: rgba(255, 255, 255, 0.55);
}
.status-dot--ok::before {
  background-color: rgba(255, 255, 255, 0.4);
}
.status-dot--live {
  color: var(--tech-lima);
}
.status-dot--live::before {
  background-color: var(--tech-lima);
  box-shadow: 0 0 0 3px rgba(212, 255, 61, 0.3);
}

/* ============================================================
   Linhas de sinal — motivo decorativo vibrante (ecoa o logótipo)
   ============================================================ */

.linhas-sinal {
  position: absolute;
  inset: -10% -5%;
  background-image: repeating-linear-gradient(
    100deg,
    var(--tech-lima) 0px,
    var(--tech-lima) 34px,
    transparent 34px,
    transparent 78px
  );
  background-size: 100% 64px;
  animation: deslizar-sinal 26s linear infinite;
}
.linhas-sinal--1 {
  top: -20%;
  animation-duration: 32s;
}
.linhas-sinal--2 {
  top: 30%;
  opacity: 0.7;
  animation-direction: reverse;
  animation-duration: 40s;
  background-image: repeating-linear-gradient(
    100deg,
    var(--tech-sinal) 0px,
    var(--tech-sinal) 34px,
    transparent 34px,
    transparent 78px
  );
}
.linhas-sinal--3 {
  top: 10%;
  animation-duration: 36s;
}

@keyframes deslizar-sinal {
  from { transform: translateX(0); }
  to { transform: translateX(-600px); }
}

/* ============================================================
   Formulário de recolha
   ============================================================ */

.campo-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(18, 18, 26, 0.65);
}

.campo-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: "Sora", sans-serif;
  font-size: 0.9375rem;
  color: var(--tech-tinta);
  background-color: #ffffff;
  border: 2px solid var(--tech-tinta);
  border-radius: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.campo-input::placeholder {
  color: rgba(18, 18, 26, 0.35);
}
.campo-input:focus {
  outline: none;
  border-color: var(--tech-azul-600);
  box-shadow: 3px 3px 0 0 var(--tech-azul-600);
}
.campo-input--invalido {
  border-color: var(--tech-sinal);
}
.campo-input--invalido:focus {
  box-shadow: 3px 3px 0 0 var(--tech-sinal);
}

.campo-erro {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tech-sinal);
}
.campo-erro.is-visible {
  display: block;
}

.cf-turnstile {
  margin-top: 0.25rem;
}

/* ============================================================
   Utilitários
   ============================================================ */

.text-4\.5xl {
  font-size: 2.5rem;
}

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

/* ============================================================
   Bolinhas de navegação do carrossel do hero
   (CSS próprio em vez de classes Tailwind alternadas por JS,
   para não depender do CDN gerar classes dinâmicas a tempo)
   ============================================================ */

.hero-dot {
  background: transparent;
  border: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-dot-visual {
  display: block;
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot-visual.is-active {
  width: 32px;
  background-color: #ffffff;
}
