:root {
  --azul-escuro: #0f4c81;
  --azul-medio: #2b7bbd;
  --azul-claro: #8ed6ff;
  --branco: #f8fcff;
  --texto: #13324a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--texto);
  background: linear-gradient(135deg, #dff7ff 0%, #8ed6ff 45%, #4da8da 100%);
  background-size: 250% 250%;
  animation: gradientMove 16s ease-in-out infinite;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.25;
  animation: drift 18s linear infinite;
  pointer-events: none;
}

.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.circuit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.circuit-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 8;
  animation: dashFlow 7s linear infinite;
}

.circuit-nodes circle {
  fill: var(--azul-claro);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
  animation: nodePulse 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 2rem;
  background: rgba(15, 76, 129, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  display: block;
  background: var(--branco);
  border-radius: 10px;
  padding: 4px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.menu a {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--branco);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu a:hover {
  color: #dff7ff;
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  background: rgba(255,255,255,0.8);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(19, 50, 74, 0.15);
  backdrop-filter: blur(6px);
}

.eyebrow {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--azul-medio);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--azul-escuro);
}

.intro, .description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.5rem;
}

.pill-group span {
  background: var(--azul-claro);
  color: var(--azul-escuro);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

.button {
  font-family: 'Poppins', 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--azul-escuro);
  color: var(--branco);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.25);
}

.button.secondary {
  background: var(--azul-medio);
}

.button.whatsapp {
  background: #25d366;
}

.button.whatsapp:hover {
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.card-screen {
  width: min(100%, 360px);
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #102b49, #1f5a90);
  color: var(--branco);
  box-shadow: 0 20px 40px rgba(10, 37, 62, 0.25);
  position: relative;
  overflow: hidden;
}

.card-screen::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
  margin-right: 4px;
}

.dot:nth-child(2) {
  background: #ffd166;
}

.dot:nth-child(3) {
  background: #06d6a0;
}

.card-screen ul {
  margin-top: 1rem;
  padding-left: 1rem;
  line-height: 1.8;
}

.services, .contact, .about, .terms {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.services h2, .contact h2, .about h2, .terms h2 {
  text-align: center;
  color: var(--azul-escuro);
  margin-bottom: 1.4rem;
}

.about {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
}

.about p {
  max-width: 820px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.about p:last-child {
  margin-bottom: 0;
}

.terms-list {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.terms-list li {
  margin-bottom: 0.6rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--azul-escuro);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-grid article {
  background: rgba(255,255,255,0.85);
  padding: 1.2rem;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(16, 42, 67, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(16, 42, 67, 0.18);
}

.service-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  display: block;
}

.info-strip {
  text-align: center;
  padding: 1rem 2rem 2rem;
  color: var(--azul-escuro);
  font-size: 1.05rem;
  font-weight: 700;
}

.contact {
  text-align: center;
  padding-bottom: 3rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(24px); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -180; }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.6); opacity: 1; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 1rem;
    flex-direction: column;
  }

  .logo {
    height: 44px;
  }

  .hero, .services, .contact {
    padding: 1.2rem;
  }

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