:root {
  --bg: #050b18;
  --blu: #005eb8;
  --blu-chiaro: #3b8ff0;
  --ciano: #36c5f0;
  --testo: #f4f7fb;
  --muted: #8a9bb3;
  --linea: rgba(255, 255, 255, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--testo);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Sfondo: bagliori sfumati + griglia sottile */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 560px; height: 560px;
  top: -200px; left: -160px;
  background: var(--blu);
  animation: float 14s ease-in-out infinite;
}
.glow-2 {
  width: 480px; height: 480px;
  bottom: -220px; right: -140px;
  background: #1b3fa8;
  animation: float 18s ease-in-out infinite reverse;
}
.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--linea) 1px, transparent 1px),
    linear-gradient(90deg, var(--linea) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}

.top, .hero, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: center;
  padding: 40px 16px 0;
}
.logo { width: 100%; max-width: 260px; height: auto; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(59, 143, 240, .35);
  border-radius: 999px;
  background: rgba(0, 94, 184, .12);
  color: #b9d6ff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ciano);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ciano);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

h1 {
  font-size: clamp(38px, 8vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
  max-width: 14ch;
}
.accent {
  background: linear-gradient(90deg, var(--blu-chiaro), var(--ciano));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 20px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
}

/* Onda audio */
.wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 64px;
  margin-top: 48px;
}
.wave span {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ciano), var(--blu));
  transform: scaleY(.15);
  animation: bar 1.4s ease-in-out infinite;
}
.wave span:nth-child(7n+1) { animation-delay: -1.2s; }
.wave span:nth-child(7n+2) { animation-delay: -.4s;  }
.wave span:nth-child(7n+3) { animation-delay: -.9s;  }
.wave span:nth-child(7n+4) { animation-delay: -.1s;  }
.wave span:nth-child(7n+5) { animation-delay: -.7s;  }
.wave span:nth-child(7n+6) { animation-delay: -1.1s; }
.wave span:nth-child(7n+7) { animation-delay: -.3s;  }
.wave span:nth-child(-n+4),
.wave span:nth-last-child(-n+4) { opacity: .4; }
@keyframes bar {
  0%, 100% { transform: scaleY(.15); }
  50% { transform: scaleY(1); }
}

.foot {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--linea);
}

@media (max-width: 480px) {
  .wave { gap: 3px; height: 48px; }
  .wave span { width: 3px; }
  .logo { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, .pulse::after, .wave span { animation: none; }
  .wave span { transform: scaleY(.5); }
}
