:root {
  --bg: #07070f;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2f2f8;
  --muted: #a3a3bd;
  --accent-1: #7c5cff;
  --accent-2: #00d4ff;
  --accent-3: #ff5ca8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px 60px;
  overflow-x: hidden;
  position: relative;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Animated background blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--accent-1); top: -120px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: var(--accent-2); bottom: -120px; right: -80px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent-3); top: 45%; left: 55%; opacity: 0.25; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -50px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 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%);
  pointer-events: none;
}

/* Glass card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 48px 40px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.pulse {
  width: 8px; height: 8px;
  background: #ffc857;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 200, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 200, 87, 0); }
}

/* Gears */
.gear-wrap {
  position: relative;
  width: 130px;
  height: 100px;
  margin: 28px auto 8px;
}
.gear {
  position: absolute;
  fill: url(#none);
  fill: var(--accent-1);
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.6));
}
.gear-big   { width: 84px; height: 84px; left: 6px; top: 8px; animation: spin 10s linear infinite; }
.gear-small { width: 54px; height: 54px; right: 6px; top: 0; fill: var(--accent-2); filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.6)); animation: spin 6.500s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

.lead {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  font-size: 1.02rem;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.time-box {
  padding: 18px 8px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.time-box:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.6); }
.time-box span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.time-box small {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.time-box span.tick { animation: tick 0.4s ease; }
@keyframes tick {
  0% { transform: translateY(-8px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* Progress */
.progress-block { margin-bottom: 32px; text-align: left; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
  animation: slide 3s linear infinite;
}
@keyframes slide { to { background-position: 200% 0; } }

/* Form */
.notify {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.notify:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}
.notify input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
}
.notify input::placeholder { color: #7f7f9c; }
.notify button {
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  font: 500 0.95rem "Inter", sans-serif;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.notify button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124, 92, 255, 0.45); }
.notify button:active { transform: translateY(0); }

.form-msg { min-height: 1.4em; margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.form-msg.ok  { color: #5df0a8; }
.form-msg.err { color: #ff7a93; }

/* Socials */
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.socials a:hover {
  transform: translateY(-4px) rotate(-6deg);
  background: rgba(124, 92, 255, 0.25);
  border-color: var(--accent-1);
}
.socials svg { width: 18px; height: 18px; fill: var(--text); }

.foot {
  position: fixed;
  bottom: 14px;
  z-index: 1;
  font-size: 0.78rem;
  color: #6c6c88;
}

/* Responsive */
@media (max-width: 560px) {
  .card { padding: 36px 22px; border-radius: 22px; }
  .countdown { gap: 8px; }
  .notify { flex-direction: column; }
  .notify button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
