/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: #0b0b10;
  color: #e5e5e5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== FUNDO COM LUZES ===== */
/* Desktop: pseudo-elementos animados com position fixed */
@media (min-width: 769px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    z-index: -1;
    opacity: 0.35;
    filter: blur(90px);
    transform-origin: center;
    animation: floatLights 18s ease-in-out infinite alternate;
    pointer-events: none;
  }

  body::before {
    background: radial-gradient(circle at 20% 30%, rgba(123, 97, 255, 0.6), transparent 70%);
    animation-delay: 0s;
  }

  body::after {
    background: radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.5), transparent 70%);
    animation-delay: 5s;
  }
}

@keyframes floatLights {
  0%   { transform: translate(0px, 0px) scale(1); opacity: 0.35; }
  50%  { transform: translate(40px, -30px) scale(1.1); opacity: 0.45; }
  100% { transform: translate(-30px, 30px) scale(1); opacity: 0.35; }
}

/* ===== FUNDO FIXO MOBILE (substitui ::before/::after que o iOS não renderiza) ===== */
.bg-fixed {
  display: none;
}

@media (max-width: 768px) {
  .bg-fixed {
    display: block;
    position: fixed;   /* fixed garante que cobre a tela toda ao rolar */
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Mesmo esquema de cores do desktop: roxo esquerda-topo + azul direita-baixo */
    background-image:
      radial-gradient(ellipse 90% 55% at 5% 10%,  rgba(123, 97, 255, 0.55) 0%, transparent 65%),
      radial-gradient(ellipse 75% 55% at 95% 75%, rgba(0,  191, 255, 0.45) 0%, transparent 65%),
      radial-gradient(ellipse 60% 40% at 50% 50%, rgba(10,  50, 120, 0.3)  0%, transparent 70%);
  }
}

/* ===== CABEÇALHO ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(10, 10, 15, 0.85);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* backdrop-filter só em browsers que suportam sem bug */
@supports (backdrop-filter: blur(8px)) and (not (-webkit-touch-callout: none)) {
  header {
    backdrop-filter: blur(8px);
  }
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo span {
  background: linear-gradient(90deg, #6a5acd, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav a {
  margin-left: 25px;
  color: #c5c6c7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00bfff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 8% 60px;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 550px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(90deg, #7b61ff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: #b0b0b0;
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-image {
  flex: 1;
  text-align: center;
  min-width: 260px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.4), rgba(0, 191, 255, 0.3), transparent 70%);
  z-index: 1;
  animation: pulseGlow 6s ease-in-out infinite alternate;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-image img {
  width: 85%;
  max-width: 900px;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0, 191, 255, 0.15));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%   { transform: scale(0.95); opacity: 0.4; }
  50%  { transform: scale(1.05); opacity: 0.65; }
  100% { transform: scale(1);    opacity: 0.45; }
}

/* ===== BOTÕES ===== */
.btn-whatsapp,
.btn-solucoes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 35px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* Garante texto branco em todos os browsers */
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(90deg, #6a5acd, #00bfff);
}

.btn-whatsapp:hover,
.btn-solucoes:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== SOLUÇÕES ===== */
.solucoes {
  text-align: center;
  padding: 100px 8%;
  background: rgba(10, 10, 15, 0.5);
}

.solucoes h2 {
  font-size: 2rem;
  margin-bottom: 60px;
  background: linear-gradient(90deg, #7b61ff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.solucoes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.solucoes-item {
  background: rgba(18, 18, 28, 0.9);
  border-radius: 15px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.solucoes-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.1);
}

.solucoes-item h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.solucoes-item p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SOBRE ===== */
.about {
  text-align: center;
  padding: 100px 10%;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #7b61ff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about p {
  color: #b5b5b5;
  max-width: 850px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== CONTATO ===== */
.contact {
  text-align: center;
  padding: 100px 8%;
  background: rgba(5, 5, 10, 0.6);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #7b61ff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact > p {
  color: #b0b0b0;
  margin-bottom: 40px;
  font-size: 1rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.whatsapp-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 2;
}

.pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 191, 255, 0.25);
  animation: pulse 1.8s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.email-box {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(20, 20, 30, 0.8);
  border-radius: 30px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.email-box span {
  color: #c5c6c7;
  font-size: 0.95rem;
}

.email-box a {
  color: #00bfff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== RODAPÉ ===== */
.footer {
  text-align: center;
  padding: 30px;
  background: rgba(5, 5, 10, 0.95);
  color: #b0b0b0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* Body mobile - mantém background-image do body base, só adiciona position relative */
  body {
    position: relative;
  }

  /* Garante que conteúdo fica acima das luzes de fundo */
  header,
  .hero,
  .solucoes,
  .about,
  .contact,
  .footer {
    position: relative;
    z-index: 1;
  }

  /* Header */
  header {
    background: rgba(8, 8, 14, 0.97);
  }

  .container {
    padding: 16px 5%;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.4rem;
  }

  nav {
    display: none;
  }

  /* ===== HERO MOBILE ===== */
  .hero {
    flex-direction: column-reverse; /* imagem primeiro, texto depois */
    padding: 90px 5% 50px;
    text-align: center;
    gap: 24px;
    min-height: auto;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 100%;
    min-width: unset;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.35;
    margin-bottom: 16px;
    color: #fff;
  }

  /* Garante gradiente no texto do h1 no iOS */
  .hero h1 span {
    background: linear-gradient(90deg, #7b61ff, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: #b0b0b0;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-whatsapp,
  .btn-solucoes {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    font-size: 0.95rem;
    text-align: center;
  }

  /* Imagem hero menor e sem glow pesado */
  .hero-image {
    min-width: unset;
    width: 100%;
  }

  .hero-image::before {
    display: none; /* remove glow no mobile */
  }

  .hero-image img {
    width: 70%;
    max-width: 260px;
    animation: none; /* remove float no mobile para performance */
    filter: drop-shadow(0 0 15px rgba(106, 90, 205, 0.3));
  }

  /* ===== SOLUÇÕES MOBILE ===== */
  .solucoes {
    padding: 70px 5%;
    background: rgba(8, 8, 14, 0.95);
  }

  .solucoes h2 {
    font-size: 1.6rem;
    margin-bottom: 35px;
  }

  .solucoes-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solucoes-item {
    padding: 22px 20px;
    text-align: left;
  }

  .solucoes-item h3 {
    font-size: 1rem;
  }

  .solucoes-item p {
    font-size: 0.9rem;
  }

  /* ===== SOBRE MOBILE ===== */
  .about {
    padding: 70px 5%;
    background: transparent;
  }

  .about h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .about p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #b5b5b5;
    margin-bottom: 16px;
  }

  /* ===== CONTATO MOBILE ===== */
  .contact {
    padding: 70px 5%;
  }

  .contact h2 {
    font-size: 1.6rem;
  }

  .contact > p {
    font-size: 0.9rem;
  }

  .contact-buttons {
    gap: 16px;
  }

  .btn-whatsapp {
    width: 100%;
    max-width: 300px;
  }

  .email-box {
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 300px;
  }

  /* ===== RODAPÉ MOBILE ===== */
  .footer {
    padding: 20px 5%;
    font-size: 0.85rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
