/* =============================================
   EQUAMOOV — COMING SOON
   Premium Mobile First
   ============================================= */

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

:root {
  --teal:       #13B4C8;
  --teal-light: #e8f9fb;
  --teal-mid:   #a0e6ef;
  --dark:       #0d2b30;
  --gray:       #6b8a8e;
  --white:      #ffffff;
  --bg:         #EBF6F8;

  /* Countdown responsive — nessun overflow a 320px anche con card glass */
  --circ-size:      clamp(44px, 10vw, 86px);
  --circ-font:      clamp(13px, 3.5vw, 26px);
  --countdown-gap:  clamp(2px, 1.2vw, 16px);
  --sep-font:       clamp(14px, 4vw, 28px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Striscia accent in cima */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 40%, rgba(19,180,200,0.25) 100%);
  z-index: 100;
  pointer-events: none;
}

/* =============================================
   BACKGROUND BLOBS
   ============================================= */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 22%, black 45%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 22%, black 45%);
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-1 {
  width: clamp(280px, 65vw, 680px);
  height: clamp(280px, 65vw, 680px);
  background: rgba(19, 180, 200, 0.11);
  filter: blur(90px);
  top: -18%;
  right: -12%;
}

.blob-2 {
  width: clamp(220px, 55vw, 580px);
  height: clamp(220px, 55vw, 580px);
  background: rgba(160, 230, 239, 0.16);
  filter: blur(80px);
  bottom: -12%;
  left: -10%;
}

.blob-3 {
  width: clamp(120px, 28vw, 320px);
  height: clamp(120px, 28vw, 320px);
  background: rgba(19, 180, 200, 0.07);
  filter: blur(60px);
  top: 42%;
  right: 8%;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(20px, 3vh, 36px);
  padding-bottom: calc(clamp(48px, 7vh, 64px) + env(safe-area-inset-bottom, 0px));
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}

/* =============================================
   LOGO
   ============================================= */
.logo-wrap {
  margin-bottom: clamp(6px, 1.5vh, 18px);
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
  text-align: center;
}

.logo-apng {
  width: clamp(220px, 65vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =============================================
   HEADLINE
   ============================================= */
.headline {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 500;
  color: var(--dark);
  text-align: center;
  line-height: 1.4;
  max-width: 720px;
  width: 100%;
  margin-bottom: clamp(14px, 2.2vh, 26px);
  opacity: 0;
  transform: translateY(-16px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}


/* =============================================
   DECO LINE
   ============================================= */
.deco-line {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal) 45%, rgba(19,180,200,0.25));
  border-radius: 3px;
  margin-bottom: clamp(16px, 2.4vh, 30px);
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

/* =============================================
   SERVICE PILLS
   ============================================= */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: clamp(24px, 3.8vh, 52px);
  max-width: min(620px, 92vw);
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.6s;
}

.pill {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(19, 180, 200, 0.22);
  border-radius: 100px;
  padding: 5px 12px;
  white-space: nowrap;
  line-height: 1.4;
}

/* =============================================
   COUNTDOWN
   ============================================= */
.countdown {
  display: flex;
  align-items: center;
  gap: var(--countdown-gap);
  margin-bottom: clamp(24px, 3.8vh, 52px);
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
  justify-content: center;
  width: 100%;
}

/* Card glassmorphism per ogni unità */
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(12px, 2.5vw, 20px);
  padding: clamp(8px, 1.5vw, 16px) clamp(4px, 1.2vw, 16px) clamp(6px, 1.2vw, 12px);
  box-shadow:
    0 8px 32px rgba(19, 180, 200, 0.09),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.circle-wrap {
  position: relative;
  width: var(--circ-size);
  height: var(--circ-size);
}

.circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-track {
  fill: none;
  stroke: rgba(19, 180, 200, 0.12);
  stroke-width: 5;
}

.circle-progress {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 5px rgba(19,180,200,0.38));
}

.circle-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: var(--circ-font);
  font-weight: 600;
  color: var(--dark);
}

.circle-label {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(8px, 2vw, 11px);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}

.countdown-sep {
  font-family: 'Fredoka', sans-serif;
  font-size: var(--sep-font);
  font-weight: 300;
  color: var(--teal-mid);
  margin-bottom: 20px;
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

/* =============================================
   CTA
   ============================================= */
.cta-wrap {
  margin-bottom: clamp(22px, 3.2vh, 44px);
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #17bcd1 0%, #0da4b8 100%);
  color: var(--white);
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 0 36px;
  height: 48px;
  min-width: 200px;
  width: 100%;
  max-width: 320px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    0 12px 40px rgba(19, 180, 200, 0.38),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Shimmer (si attiva solo su hover, vedi media query) */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow:
    0 6px 20px rgba(19, 180, 200, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =============================================
   SOCIAL
   ============================================= */
.social {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.2s;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(19, 180, 200, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.social a:active {
  color: var(--teal);
  border-color: rgba(19, 180, 200, 0.45);
  transform: scale(0.92);
}

.social a svg {
  width: 18px;
  height: 18px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-line {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  color: rgba(107, 138, 142, 0.48);
  letter-spacing: 0.3px;
  padding: 0 16px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.4s;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* =============================================
   ACCESSIBILITY — Riduzione movimento
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logo-wrap, .headline, .deco-line, .services,
  .countdown, .cta-wrap, .social, .footer-line {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   TABLET — 600px+
   ============================================= */
@media (min-width: 600px) {
  .services { max-width: 620px; }
  .pill { font-size: 12px; padding: 5px 14px; }
  .btn-primary { width: auto; }
}

/* =============================================
   DESKTOP — 900px+
   ============================================= */
@media (min-width: 900px) {
  .footer-line { font-size: 11px; }
}

/* =============================================
   HOVER — solo su dispositivi con puntatore preciso
   ============================================= */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
      0 18px 48px rgba(19, 180, 200, 0.42),
      0 6px 16px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .btn-primary:hover::after {
    left: 140%;
  }

  .social a:hover {
    color: var(--teal);
    border-color: rgba(19, 180, 200, 0.38);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(19, 180, 200, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .pill:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(19, 180, 200, 0.38);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
}
