/* FULCRUMAXE — pre-launch countdown. Self-contained: this is the only
   stylesheet reachable before the gate opens. */

@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #000;
  --fg: #a7ffcb;
  --accent: #00ff66;
  --accent-dim: #00ff6640;
  --muted: #1a5e35;
  --border: #0f2f1a;
  --radius: 4px;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Fira Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

#matrix-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; opacity: 0.18;
}

body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px,
    rgba(0,255,102,.015) 2px, rgba(0,255,102,.015) 4px);
}

.classification-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #0a0a0a; border-bottom: 1px solid var(--border);
  padding: .4rem 1rem; text-align: center;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}

.container {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 4rem 1.5rem 6rem; text-align: center;
}

.logo-container { margin-bottom: 2rem; opacity: .9; }
.logo-container img { max-width: 100%; height: auto; }

/* Title */
.glitch-title {
  font-size: clamp(2rem, 9vw, 4.5rem);
  font-weight: 700; letter-spacing: .12em; color: var(--accent);
  text-shadow: 0 0 18px rgba(0,255,102,.45);
  margin-bottom: 1rem;
}

.terminal-line { font-size: clamp(.75rem, 2.4vw, .95rem); color: var(--fg); letter-spacing: .18em; }
.terminal-line .prompt { color: var(--accent); }
.cursor {
  display: inline-block; width: .55em; height: 1.05em; margin-left: .25em;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* Countdown */
.countdown-label {
  margin: 3.25rem 0 1rem;
  font-size: .7rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted);
}

.countdown {
  display: flex; gap: clamp(.5rem, 3vw, 1.75rem);
  align-items: flex-start; justify-content: center; flex-wrap: nowrap;
}

.countdown-unit {
  min-width: clamp(3.75rem, 17vw, 6.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 20, 8, .55);
  padding: clamp(.6rem, 2vw, 1rem) clamp(.35rem, 1.5vw, .75rem);
}

.countdown-value {
  display: block;
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  font-weight: 700; line-height: 1; color: var(--accent);
  text-shadow: 0 0 14px rgba(0,255,102,.4);
  font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
  display: block; margin-top: .6rem;
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

.countdown-target { margin-top: 1.5rem; font-size: .72rem; color: var(--muted); letter-spacing: .1em; }

.countdown.is-done .countdown-value { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* Waitlist CTA */
.waitlist-section { margin-top: 3rem; }

.waitlist-btn {
  font-family: inherit; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); background: transparent;
  border: 1px solid var(--accent-dim); border-radius: var(--radius);
  padding: .85rem 2rem; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.waitlist-btn:hover, .waitlist-btn:focus-visible {
  background: rgba(0,255,102,.08); border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,255,102,.18); outline: none;
}
.waitlist-btn:disabled { opacity: .5; cursor: not-allowed; }

.waitlist-note { margin-top: 1rem; font-size: .7rem; color: var(--muted); }

/* Modal (markup injected by waitlist.js) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88); padding: 1.5rem; overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  position: relative; width: 100%; max-width: 30rem; text-align: left;
  background: #050a07; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: .6rem; right: .9rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--accent); }
.modal-label { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.modal-title { margin: .5rem 0 1.5rem; font-size: 1.25rem; color: var(--accent); letter-spacing: .05em; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; margin-bottom: .4rem;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.form-group .required { color: var(--accent); }
.form-group .optional { text-transform: none; letter-spacing: 0; }

.form-group input, .form-group textarea, .form-group select {
  width: 100%; font-family: inherit; font-size: .85rem;
  color: var(--fg); background: #010402;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .65rem .75rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent-dim); box-shadow: 0 0 0 2px rgba(0,255,102,.1);
}
.form-group textarea { resize: vertical; }
.submit-btn { width: 100%; margin-top: .5rem; }

.form-success, .form-error { font-size: .82rem; line-height: 1.6; }
.form-success .success-icon { color: var(--accent); letter-spacing: .1em; margin-bottom: .6rem; }
.form-error { color: #ff6b6b; }

.footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 1.25rem; background: #0a0a0a; border-top: 1px solid var(--border);
  font-size: .65rem; letter-spacing: .1em; color: var(--muted);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

@media (max-width: 400px) {
  .countdown { gap: .35rem; }
  .countdown-unit { padding: .5rem .25rem; min-width: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .countdown.is-done .countdown-value { animation: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
