:root {
  --bg: #000;
  --red: #c00000;
  --text: #e6e6e6;
  --muted: #9a9a9a;
  --border: rgba(192,0,0,0.35);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}

.red { color: var(--red); }

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(192,0,0,0.12), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(192,0,0,0.1), transparent 60%);
  z-index: -4;
}

#sparks {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

/* HEADER */
.header {
  max-width: 1280px;
  margin: auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 34px; }

.brand-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
}

.top-nav a {
  margin-left: 18px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover { color: var(--red); }

/* HERO */
.hero {
  max-width: 1280px;
  margin: auto;
  padding: 120px 24px 160px;
  text-align: center;
  position: relative;
}

.hero-hand {
  position: absolute;
  right: -10%;
  top: 0;
  width: 70%;
  height: 100%;
  background: url("./hero-hand.png") no-repeat right center;
  background-size: contain;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.primary {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
}

.alert {
  margin-top: 18px;
  font-family: 'Orbitron', sans-serif;
  color: var(--red);
}

.glitch {
  animation: glitch 2.5s infinite;
}

@keyframes glitch {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.85; }
  50% { opacity: 1; }
  55% { opacity: 0.9; }
}

/* TERMINAL BLOCK */
.terminal-block {
  font-size: 13px;
  letter-spacing: 1.2px;
  color: var(--muted);
  max-width: 520px;
  margin: 26px auto;
}

.alert-line { color: var(--red); }

.typing::after {
  content: "▌";
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* CTA */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.terminal-btn {
  padding: 14px 42px;
  border: 1px solid var(--red);
  background: transparent;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  pointer-events: auto;
}

a.terminal-btn {
  text-decoration: none;
}

.terminal-btn:hover {
  background: var(--red);
  color: #000;
}

.ghost {
  border-color: var(--muted);
  color: var(--muted);
}

/* WAITLIST */
.hidden { display: none; }

#waitlist {
  background: url("./waitlist-bg.png") no-repeat center bottom;
  background-size: cover;
}

.waitlist {
  max-width: 520px;
  margin: auto;
  padding: 44px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border);
}

.waitlist input {
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  background: #000;
  border: 1px solid var(--border);
  color: var(--text);
}

.tasks {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  text-decoration: none;
}

.task.completed {
  color: var(--red);
  border-color: var(--red);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.modal.show { display: flex; }

.modal-box {
  background: #000;
  padding: 46px;
  border: 1px solid var(--border);
  text-align: center;
}

.modal-box h3 {
  color: var(--red);
  margin-bottom: 14px;
}

.muted {
  font-size: 12px;
  color: var(--muted);
}

/* FOOTER */
.footer {
  max-width: 1280px;
  margin: auto;
  padding: 48px 24px;
  text-align: center;
}

.footer-nav a {
  margin: 0 14px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.footer-divider {
  margin: 22px 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192,0,0,0.5), transparent);
}

.footer-tagline {
  font-size: 12px;
  opacity: 0.7;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-hand { display: none; }
  .cta-row { flex-direction: column; }
  .terminal-block { font-size: 12px; max-width: 90%; }
}