:root {
  --bg: #070b18;
  --bg-2: #0b1226;
  --ink: #eaf0ff;
  --muted: #96a3c4;
  --m1: #22d3ee;
  --m2: #7c9cff;
  --accent: #22d3ee;
  --accent-2: #7c9cff;
  --card: rgba(15, 22, 44, 0.62);
  --stroke: rgba(140, 165, 255, 0.18);
  --radius: 26px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 15% -10%, #142050 0%, transparent 60%),
    radial-gradient(900px 700px at 100% 0%, #0d2a3a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Ambient background ---------- */
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(70px); opacity: 0.5; mix-blend-mode: screen;
}
.blob-a { background: radial-gradient(circle at 30% 30%, var(--accent), transparent 62%); top: -14vmax; left: -8vmax; animation: drift 26s ease-in-out infinite; }
.blob-b { background: radial-gradient(circle at 60% 40%, var(--accent-2), transparent 60%); bottom: -18vmax; right: -10vmax; animation: drift 32s ease-in-out infinite reverse; }
.blob-c { background: radial-gradient(circle at 50% 50%, #ff7ac6, transparent 62%); top: 40%; left: 55%; opacity: 0.28; animation: drift 40s ease-in-out infinite; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124, 156, 255, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124, 156, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 20%, #000 30%, transparent 78%);
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vmax, 3vmax, 0) scale(1.1); }
}

/* ---------- Layout ---------- */
.stage {
  position: relative; z-index: 1;
  min-height: 100svh; display: grid; place-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.card {
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 40px 120px rgba(2, 6, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(140%);
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 14px; text-align: left; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: clamp(1.05rem, 2.6vw, 1.3rem); letter-spacing: 0.2px; }
.brand-text em { color: var(--muted); font-style: normal; font-size: 0.86rem; }

/* ---------- Mascot ---------- */
.mascot-wrap { position: relative; margin: 22px auto 6px; width: 220px; height: 236px; }
.mascot-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 34px rgba(34, 211, 238, 0.22)); }

.mascot-body { transform-origin: 120px 220px; animation: dance 2.4s ease-in-out infinite; }
@keyframes dance {
  0%, 100% { transform: translateY(0) rotate(-1.6deg); }
  25% { transform: translateY(-10px) rotate(1.6deg); }
  50% { transform: translateY(0) rotate(-1.2deg); }
  75% { transform: translateY(-7px) rotate(1.2deg); }
}

.antenna { transform-origin: 120px 40px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.antenna-tip { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; r: 8; } 50% { opacity: 0.55; } }

.arm { transform-box: fill-box; }
.arm-l { transform-origin: 50% 6%; animation: waveL 1.6s ease-in-out infinite; }
.arm-r { transform-origin: 50% 6%; animation: waveR 1.6s ease-in-out infinite; }
@keyframes waveL { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-34deg); } }
@keyframes waveR { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(30deg); } }

.leg { transform-box: fill-box; transform-origin: 50% 4%; }
.leg-l { animation: stepL 1.2s ease-in-out infinite; }
.leg-r { animation: stepR 1.2s ease-in-out infinite; }
@keyframes stepL { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-6deg); } }
@keyframes stepR { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }

.eye { transform-box: fill-box; transform-origin: center; animation: blink 4.4s ease-in-out infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

.popcorn { transform-origin: 158px 150px; animation: pop 2.4s ease-in-out infinite; }
@keyframes pop { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }

.pop-kernel {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e2, #ffcf4d);
  opacity: 0; box-shadow: 0 0 14px rgba(255, 207, 77, 0.6);
}
.k1 { left: 8%; bottom: 30%; animation: kern 2.6s ease-out infinite; }
.k2 { right: 6%; bottom: 34%; animation: kern 2.6s ease-out infinite 0.5s; }
.k3 { left: 46%; bottom: 24%; animation: kern 2.6s ease-out infinite 1.1s; }
@keyframes kern {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-150px) scale(1); opacity: 0; }
}

/* ---------- Progress ---------- */
.progress-block { margin-top: 16px; }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #37d67a; box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.6); animation: beat 1.8s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(55, 214, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0); } }

.pct { font-variant-numeric: tabular-nums; color: var(--ink); }
.pct b { font-size: clamp(1.5rem, 5vw, 2.1rem); letter-spacing: -0.5px; }
.pct small { font-size: 0.9rem; color: var(--muted); margin-left: 2px; }

.bar {
  position: relative; height: 14px; margin: 12px 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 999px; overflow: hidden;
}
.fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ff7ac6);
  background-size: 220% 100%;
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: sheen 3.2s linear infinite;
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 220% 0; } }

.copy { margin: 0 0 6px; font-size: clamp(1rem, 2.6vw, 1.15rem); font-weight: 600; }
.meta { margin: 0; color: var(--muted); font-size: 0.78rem; }

/* ---------- Feature list ---------- */
.next-list {
  list-style: none; margin: 22px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--stroke);
  display: grid; gap: 10px; text-align: left;
}
.next-list li {
  position: relative; padding-left: 30px; color: #cdd7f2; font-size: 0.9rem;
}
.next-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  border-radius: 5px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.next-list li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 3px;
  border-left: 2px solid #08111f; border-bottom: 2px solid #08111f; transform: rotate(-45deg);
}

.noscript { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 520px) {
  .brand { gap: 10px; }
  .mascot-wrap { width: 180px; height: 196px; }
}
