/* =========================================================
   PALETA E ESTILO GERAL
========================================================= */
:root {
  --bg: #020b1a;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --branco: #fff;
  --texto: #dce7ff;
  --azul1: #1a6bff;
  --azul2: #3ab4ff;
  --laranja: #ff6a2a;
  --shadow: 0 0 25px rgba(26, 107, 255, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--texto);
  overflow-x: hidden;
}

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

/* =========================================================
   FUNDOS TECH
========================================================= */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(26, 107, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 106, 42, 0.25),
      transparent 60%
    );
  filter: blur(40px);
  opacity: 0.8;
  z-index: -2;
}

.bg-lines {
  position: fixed;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -3;
}

/* =========================================================
   HEADER
========================================================= */
/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

/* Header com scroll - fundo escuro */
header.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(2, 11, 26, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  transition: padding 0.3s ease;
}

header.scrolled .header-inner {
  padding: 16px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  transition: transform 0.3s ease;
}

.logo-mark:hover {
  transform: scale(1.05);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(26, 107, 255, 0.3));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.logo-text span:first-child {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(141deg, var(--azul1), #ff5722);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

header.scrolled .logo-text span:first-child {
  background: linear-gradient(141deg, var(--azul1), #ff5722);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span:last-child {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(141deg, var(--azul1), #ff5722);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
}

.nav-desktop {
  display: flex;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
}

nav a {
  color: var(--branco);
  opacity: 0.9;
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
  transition: opacity 0.3s ease, color 0.3s ease;
}

header.scrolled nav a {
  color: var(--branco);
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
  color: var(--azul2);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--azul1), var(--azul2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Menu hambúrguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--branco);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .logo-mark {
    width: 60px;
    height: 60px;
  }

  .logo-text span:first-child {
    font-size: 1.2rem;
  }

  .logo-text span:last-child {
    font-size: 0.7rem;
  }
}

/* =========================================================
   SIDEBAR PARA MOBILE
========================================================= */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 11, 26, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-close {
  background: transparent;
  border: none;
  color: var(--branco);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
}

.sidebar-nav a {
  color: var(--branco);
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--azul1);
  color: var(--azul2);
  transform: translateX(5px);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  padding: 70px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-family: "Montserrat";
  font-size: 3rem;
  color: var(--branco);
  margin-bottom: 15px;
}
.hero-title span {
  background: linear-gradient(90deg, var(--azul1), var(--azul2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 500px;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.btn-primary {
  padding: 16px 32px;
  background: linear-gradient(141deg, var(--azul1), #ff5722);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 6px 10px rgba(26, 107, 255, 0.5),
    0 6px 20px rgba(255, 87, 34, 0.4);
  background: linear-gradient(141deg, #2563eb, #ff6a3d);
}

.btn-primary:active {
  box-shadow: 0 6px 10px rgba(26, 107, 255, 0.4),
    0 3px 12px rgba(255, 87, 34, 0.3);
}
.btn-secondary {
  padding: 12px 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--branco);
  cursor: pointer;
}

.hero-img img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   BENEFÍCIOS / SERVIÇOS
========================================================= */
.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.solucoes {
  padding: 80px 0;
}

.section-title {
  color: var(--branco);
  font-family: "Montserrat";
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 107, 255, 0.4);
  box-shadow: 0 10px 30px rgba(26, 107, 255, 0.2);
}

.card .icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .icon video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

.card p {
  color: var(--texto);
  line-height: 1.6;
  font-size: 0.95rem;
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 8px;
}

/* =========================================================
   SOBRE
========================================================= */
.sobre-section {
  padding: 80px 0;
}

.sobre-header {
  text-align: center;
  margin-bottom: 60px;
}

.sobre-subtitle {
  font-size: 1.2rem;
  color: var(--texto);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.sobre-content {
  display: flex;
  flex-direction: column;
}

.sobre-text h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: var(--branco);
  margin-bottom: 20px;
  margin-top: 30px;
}

.sobre-text h3:first-child {
  margin-top: 0;
}

.sobre-text p {
  color: var(--texto);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.sobre-image {
  width: 100%;
}

.sobre img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.4);
}

.sobre-diferenciais {
  margin-top: 60px;
  text-align: center;
}

.sobre-diferenciais h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  color: var(--branco);
  margin-bottom: 40px;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.diferencial-item {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.diferencial-item:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 107, 255, 0.4);
  box-shadow: 0 10px 30px rgba(26, 107, 255, 0.2);
}

.diferencial-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.diferencial-item h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  color: var(--branco);
  margin-bottom: 15px;
  font-weight: 600;
}

.diferencial-item p {
  color: var(--texto);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* =========================================================
   FORMULÁRIO
========================================================= */
.form-box {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 18px;
  max-width: 650px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--branco);
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  display: block;
}

.form-box input::placeholder,
.form-box textarea::placeholder {
  color: rgba(220, 231, 255, 0.5);
}

.form-box input:focus,
.form-box textarea:focus {
  outline: none;
  border-color: var(--azul1);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(26, 107, 255, 0.1);
}

.form-box input:invalid:not(:placeholder-shown),
.form-box textarea:invalid:not(:placeholder-shown) {
  border-color: var(--laranja);
}

.form-box input:valid:not(:placeholder-shown),
.form-box textarea:valid:not(:placeholder-shown) {
  border-color: rgba(34, 197, 94, 0.5);
}

.form-box textarea {
  resize: vertical;
  min-height: 120px;
}

.form-box button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(141deg, var(--azul1), #ff5722);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

.form-box button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.form-box button:hover::before {
  left: 100%;
}

.form-box button:hover {
  box-shadow: 0 6px 10px rgba(26, 107, 255, 0.5),
    0 6px 20px rgba(255, 87, 34, 0.4);
  background: linear-gradient(141deg, #2563eb, #ff6a3d);
  transform: translateY(-2px);
}

.form-box button:active {
  box-shadow: 0 6px 20px rgba(26, 107, 255, 0.4),
    0 3px 12px rgba(255, 87, 34, 0.3);
  transform: translateY(0);
}

/* Validação de formulário */
.form-box input:required:invalid,
.form-box textarea:required:invalid {
  border-left: 3px solid var(--laranja);
}

.form-box input:required:valid,
.form-box textarea:required:valid {
  border-left: 3px solid rgba(34, 197, 94, 0.5);
}

.form-box input.erro,
.form-box textarea.erro {
  border-color: var(--laranja);
  border-left: 3px solid var(--laranja);
  background: rgba(255, 106, 42, 0.1);
}

.form-box input.valido,
.form-box textarea.valido {
  border-color: rgba(34, 197, 94, 0.5);
  border-left: 3px solid rgba(34, 197, 94, 0.5);
}

/* Checkbox de política */
.form-checkbox-container {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-checkbox-container.erro {
  border-color: var(--laranja);
  border-left: 3px solid var(--laranja);
  background: rgba(255, 106, 42, 0.1);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--texto);
  font-size: 0.9rem;
  line-height: 1.6;
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--azul1);
  flex-shrink: 0;
}

.form-checkbox-label span {
  flex: 1;
}

.form-checkbox-label a {
  color: var(--azul2);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.form-checkbox-label a:hover {
  color: var(--azul1);
}

/* Mensagens de erro e sucesso */
.erro-mensagem {
  color: var(--laranja);
  font-size: 0.85rem;
  margin-top: -10px;
  margin-bottom: 15px;
  margin-left: 0;
  padding: 6px 12px;
  background: rgba(255, 106, 42, 0.1);
  border-left: 3px solid var(--laranja);
  border-radius: 6px;
  animation: slideDown 0.3s ease;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.sucesso-mensagem {
  color: #22c55e;
  font-size: 1rem;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.sucesso-mensagem strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.sucesso-mensagem p {
  margin: 0;
  color: var(--texto);
  opacity: 0.9;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  padding: 25px 0;
  color: #8893a7;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer p {
  margin: 0;
}

footer div:last-child {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--texto);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
}

footer a:hover {
  opacity: 1;
  color: var(--azul2);
}

@media (max-width: 600px) {
  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   SCROLL PROGRESS
========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--azul1), var(--azul2));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* =========================================================
   BOTÕES FLUTUANTES (WhatsApp e Voltar ao Topo)
========================================================= */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.btn-whats-floating,
.back-to-top {
  width: 60px;
  height: 60px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--branco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
a {
  text-decoration: none;
}

.btn-whats-floating {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  opacity: 1;
  visibility: visible;
}

.btn-whats-floating:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}

.btn-whats-floating img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(26, 107, 255, 0.2);
  border-color: var(--azul1);
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(26, 107, 255, 0.3);
}

/* =========================================================
   ANIMAÇÕES
========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */
@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .sobre {
    grid-template-columns: 1fr;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .nav-desktop {
    display: none;
  }

  .form-box {
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }

  .btn-whats-floating,
  .back-to-top {
    width: 55px;
    height: 55px;
  }

  .btn-whats-floating svg {
    width: 24px;
    height: 24px;
  }

  .sidebar {
    width: 280px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 40px 0;
  }

  .sobre-section {
    padding: 50px 0;
  }

  .card {
    padding: 20px;
  }

  .diferencial-item {
    padding: 20px;
  }
}
