:root {
  --bg: #02040a;
  --accent: #10b981;
  --accent-2: #06b6d4;
  --shock: #f43f5e;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --text: #f0fdfa;
  --muted: #67e8f9;
  --card: rgba(2, 6, 10, 0.65);
  --card-border: rgba(16, 185, 129, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  position: relative;
  padding: 52px 32px 44px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  transform: rotateX(0) rotateY(0);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.shine {
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02), rgba(16,185,129,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.teaser {
  position: relative;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.15);
  overflow: hidden;
}

.teaser-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.glitch {
  font-family: "Space Grotesk", monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--shock);
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
  letter-spacing: -0.02em;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translateX(0); opacity: 1; }
  92% { transform: translateX(-6px); opacity: 0.7; }
  94% { transform: translateX(6px); opacity: 0.9; }
  96% { transform: translateX(-4px); opacity: 0.8; }
}

.teaser-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.reveal-progress {
  margin-top: 10px;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.reveal-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--shock), var(--accent));
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.5);
}

.header {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(2, 6, 10, 0.8);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse-glow 4s ease-in-out infinite;
}

h1 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.accent {
  background: linear-gradient(135deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
  text-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.scarcity {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
  padding: 0 8px;
}

.scarcity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scarcity-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--shock);
  text-shadow: 0 0 16px rgba(244, 63, 94, 0.5);
}

.scarcity-label {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.scarcity-divider {
  color: var(--card-border);
  font-weight: 700;
  font-size: 1.2rem;
  align-self: center;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  perspective: 600px;
}

.value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  transform: rotateX(0);
  transition: transform 0.15s ease;
  text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.unit.flip .value {
  animation: flipDown 0.5s ease;
}

@keyframes flipDown {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}

.unit label {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}

.waitlist {
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.field {
  position: relative;
  display: flex;
  gap: 10px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(2, 6, 10, 0.5);
  padding: 4px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 18px;
  outline: none;
}

input::placeholder {
  color: var(--muted);
}

button {
  position: relative;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
  box-shadow: 0 12px 24px -6px var(--accent-glow);
}

button:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  filter: brightness(1.2);
}

button:active {
  transform: scale(0.97);
}

button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button.loading {
  pointer-events: none;
  opacity: 0.85;
}

.msg {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.msg.ok { color: #34d399; text-shadow: 0 0 12px rgba(52,211,153,0.4); }
.msg.err { color: #f87171; text-shadow: 0 0 12px rgba(248,113,113,0.4); }

.hype-note {
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.hype-note p {
  font-size: 0.78rem;
  color: var(--shock);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: warn-pulse 2.5s ease-in-out infinite;
}

@keyframes warn-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.footer {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 2;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 45px rgba(16, 185, 129, 0.6); }
}

@media (max-width: 480px) {
  .card {
    padding: 44px 24px 36px;
    border-radius: 24px;
  }
  .countdown {
    gap: 8px;
  }
  .unit {
    min-width: 52px;
  }
  .value {
    font-size: 1.5rem;
  }
  .field {
    flex-direction: column;
    align-items: stretch;
  }
  button {
    width: 100%;
  }
  .scarcity {
    gap: 16px;
  }
  .glitch {
    font-size: 1.7rem;
  }
}
