/* MAGIC ORB — 8-bit early-internet vibes */

:root {
  --bg: #050510;
  --ink: #d8e0ff;
  --dim: #6a72a0;
  --blue: #3aa0ff;
  --orange: #ffb020;
  --green: #35e05a;
  --pink: #ff5aa0;
}

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

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  overflow-x: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  image-rendering: pixelated;
}

main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  text-align: center;
}

/* faint CRT scanlines over everything */
.crt::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
}

.newbadge {
  display: inline-block;
  font-size: 10px;
  color: var(--pink);
  border: 2px solid var(--pink);
  padding: 6px 10px;
  margin-bottom: 24px;
  transform: rotate(-3deg);
}

.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.title {
  font-size: clamp(28px, 7vw, 48px);
  letter-spacing: 2px;
  color: #fff;
  text-shadow:
    0 0 12px rgba(58, 160, 255, 0.9),
    4px 4px 0 #1a2a6a;
  margin-bottom: 36px;
}

.orbstage { position: relative; margin: 0 auto 8px; width: min(70vw, 320px); }

#orb {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.orbshadow {
  width: 55%;
  height: 12px;
  margin: -6px auto 0;
  background: radial-gradient(ellipse, rgba(58, 160, 255, 0.35), transparent 70%);
  animation: shadowpulse 3.2s ease-in-out infinite;
}
@keyframes shadowpulse {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50%      { transform: scaleX(0.72); opacity: 0.5; }
}

.pitch {
  font-size: clamp(9px, 2.4vw, 12px);
  line-height: 2.1;
  color: var(--ink);
  margin: 30px 0 36px;
}

.cta {
  font-size: clamp(10px, 2.6vw, 13px);
  color: var(--green);
  margin-bottom: 16px;
  text-shadow: 0 0 8px rgba(53, 224, 90, 0.6);
}

.row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#email {
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: #0a0a1e;
  border: 3px solid var(--dim);
  border-radius: 0;
  padding: 14px 12px;
  width: min(100%, 300px);
  outline: none;
  caret-color: var(--green);
}
#email:focus { border-color: var(--blue); box-shadow: 0 0 10px rgba(58, 160, 255, 0.5); }
#email::placeholder { color: #3a4066; }

/* honeypot stays invisible */
#website { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#go {
  font-family: inherit;
  font-size: 12px;
  color: #06131f;
  background: var(--blue);
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  cursor: pointer;
  /* chunky 90s bevel */
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 30, 0.45),
    inset 4px 4px 0 rgba(255, 255, 255, 0.5);
}
#go:hover { filter: brightness(1.12); }
#go:active {
  box-shadow:
    inset 4px 4px 0 rgba(0, 0, 30, 0.45),
    inset -4px -4px 0 rgba(255, 255, 255, 0.35);
}
#go:disabled { opacity: 0.55; cursor: wait; }

#msg {
  min-height: 30px;
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.8;
}
#msg.ok    { color: var(--green); text-shadow: 0 0 8px rgba(53, 224, 90, 0.6); }
#msg.error { color: var(--pink); }

.rule {
  border: 0;
  border-top: 3px double var(--dim);
  margin: 42px 0 22px;
  opacity: 0.5;
}

footer { color: var(--dim); font-size: 10px; line-height: 2.2; }
.tiny { font-size: 8px; opacity: 0.8; }
.counter #odometer {
  background: #000;
  color: var(--green);
  padding: 2px 5px;
  border: 1px solid #222a4a;
  letter-spacing: 2px;
}
