:root {
  --bg: #0b0b1a;
  --c1: #7c3aed;
  --c2: #06b6d4;
  --c3: #f472b6;
  --text: #f4f4fb;
  --muted: #a5a5c0;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.text-secondary-light { color: var(--muted) !important; }

/* ---------- Sfondo animato ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: var(--c1); top: -120px; left: -120px; }
.blob-2 { width: 420px; height: 420px; background: var(--c2); bottom: -140px; right: -100px; animation-delay: -6s; }
.blob-3 { width: 320px; height: 320px; background: var(--c3); top: 40%; left: 55%; opacity: 0.3; animation-delay: -11s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 40px) scale(1.1); }
  66%      { transform: translate(-40px, 70px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ---------- Brand ---------- */
.brand-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }

/* ---------- Badge ---------- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 600;
}
.badge-status .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Titolo ---------- */
h1 { letter-spacing: -0.03em; line-height: 1.1; }
.gradient-text {
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.lead { max-width: 600px; font-weight: 300; }

/* ---------- Countdown ---------- */
.count-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 1.1rem;
  padding: 1.2rem 0.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.count-box:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.3); }
.count-num { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.count-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Progress ---------- */
.progress-wrap { max-width: 520px; }
.progress {
  height: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.progress-bar {
  background: linear-gradient(90deg, var(--c1), var(--c2));
  border-radius: 999px;
  background-size: 200% 100%;
  animation: shine 4s linear infinite;
}

/* ---------- Form ---------- */
.notify { max-width: 520px; }
.notify .form-control {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 999px 0 0 999px;
  padding-left: 1.4rem;
}
.notify .form-control::placeholder { color: var(--muted); }
.notify .form-control:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--c2);
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.25);
  color: var(--text);
}
.btn-gradient {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 0;
  color: #fff;
  font-weight: 600;
  border-radius: 0 999px 999px 0;
  padding-inline: 1.6rem;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-gradient:hover { filter: brightness(1.15); color: #fff; }
.btn-gradient:active { transform: scale(0.97); }

#form-msg.ok  { color: #4ade80; }
#form-msg.err { color: #fb7185; }

/* ---------- Social ---------- */
.social {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.social:hover { transform: translateY(-3px); background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- Responsive / accessibilità ---------- */
@media (max-width: 575.98px) {
  .count-num { font-size: 1.8rem; }
  .notify .form-control, .btn-gradient { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
