/* ════════════════════════════════════════════════════════════════════
   NeuraPBX — pre-launch teaser · dark neon / glassmorphism
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #070a18;
  --glass: rgba(20, 26, 51, 0.45);
  --border: rgba(148, 163, 222, 0.14);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --text: #f1f5f9;
  --text-sub: rgba(226, 232, 240, 0.75);
  --text-muted: #8b96c9;
  --grad: linear-gradient(120deg, #8b5cf6, #6366f1 45%, #22d3ee);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 92, 246, 0.4); }

/* ─── Background ─────────────────────────────────────────────────── */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  filter: blur(100px) saturate(130%);
}
.aurora-blob {
  position: absolute; border-radius: 50%; opacity: 0.32; mix-blend-mode: screen;
  animation: drift 28s var(--ease) infinite alternate;
}
.blob-a { width: 60vw; height: 60vw; background: #4c1d95; top: -25vw; left: -15vw; }
.blob-b { width: 48vw; height: 48vw; background: #0e7490; bottom: -20vw; right: -12vw; animation-delay: -10s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 6vh) scale(1.1); }
}

#neural-canvas {
  position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.7;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.stage {
  flex: 1;
  width: min(880px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 32px;
}

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}
.mark { width: 44px; height: 44px; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em;
}
.brand-name em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.whisper {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cyan); opacity: 0.85;
}

.headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.02em;
  margin: 1.4rem 0 1.5rem;
}

.gradient-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: grad-shift 5s ease infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.scramble { display: inline-block; min-width: 7.2ch; text-align: left; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sub {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  color: var(--text-sub);
}

/* ─── Waitlist ───────────────────────────────────────────────────── */
.waitlist {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin: 2.4rem auto 0;
  width: 100%;
  max-width: 460px;
}
/* Turnstile widget: own full-width row below the input+button, centered.
   With appearance=interaction-only it's invisible (zero height) for real
   visitors, so it doesn't take any space unless a challenge is required. */
.waitlist .cf-turnstile { flex-basis: 100%; display: flex; justify-content: center; }
.waitlist input {
  flex: 1; min-width: 0;
  background: rgba(10, 15, 34, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.waitlist input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}
.waitlist input::placeholder { color: var(--text-muted); }

.waitlist button {
  border: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  color: #fff; padding: 0 1.7rem; border-radius: 999px;
  background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
  animation: grad-shift 6s ease infinite;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.waitlist button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 44px rgba(139, 92, 246, 0.55);
}
.waitlist button:disabled { opacity: 0.6; transform: none; }

.wl-ok {
  margin: 1.1rem auto 0; text-align: center;
  font-size: 0.92rem; font-weight: 600; color: #6ee7b7;
  font-family: 'Cascadia Code', Consolas, monospace;
}
.wl-note { margin: 0.9rem auto 0; text-align: center; font-size: 0.78rem; color: var(--text-muted); }

/* Honeypot — removed from view/flow but present in the DOM for bots to fill. */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wl-err { margin: 0.7rem auto 0; text-align: center; font-size: 0.82rem; color: #fca5a5; }

@media (max-width: 520px) {
  .waitlist { flex-direction: column; }
  .waitlist button { padding: 0.95rem 1.7rem; }
}

/* ─── Privacy vow ────────────────────────────────────────────────── */
.vow { margin-top: clamp(3rem, 9vh, 6rem); width: 100%; }

.vow-label {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 0.66rem; letter-spacing: 0.26em; color: #6ee7b7;
  margin-bottom: 0.9rem;
}
.vow-label em { font-style: normal; text-decoration: underline; text-underline-offset: 3px; }

.vow-line {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 800; line-height: 1.25;
  max-width: 38rem; margin: 0 auto 1.6rem;
}

.vow-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 780px;
  margin: 0 auto;
}
@media (max-width: 700px) { .vow-row { grid-template-columns: 1fr; } }

.vow-card {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0.6rem;
  text-align: center;
  background: var(--glass);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.vow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 30px rgba(16, 185, 129, 0.12);
}
.vow-icon { font-size: 1.2rem; color: #6ee7b7; }
.vow-card strong { font-family: var(--font-head); font-size: 0.92rem; color: var(--text); }
.vow-card span:last-child { font-size: 0.8rem; color: var(--text-sub); line-height: 1.5; }

.d-6 { animation-delay: 1.1s; }

/* ─── Redacted hints ─────────────────────────────────────────────── */
.hints { margin-top: clamp(3rem, 9vh, 6rem); width: 100%; }

.hints-label {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 0.66rem; letter-spacing: 0.26em; color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.hint-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 640px) { .hint-row { grid-template-columns: 1fr; } }

.hint-card {
  display: flex; align-items: center; gap: 0.8rem;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.hint-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.12);
}

.hint-icon {
  font-size: 1.15rem; flex-shrink: 0;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border);
}
.hint-text { font-size: 0.88rem; color: var(--text-sub); }

.redact {
  color: transparent;
  background: repeating-linear-gradient(90deg, #39426e 0 8px, #2a335e 8px 16px);
  border-radius: 4px;
  padding: 0 2px;
  user-select: none;
  position: relative;
  animation: redact-shimmer 3s linear infinite;
  background-size: 200% 100%;
}
@keyframes redact-shimmer {
  to { background-position: -32px 0; }
}

.hints-tease {
  margin-top: 1.3rem; font-size: 0.8rem; color: var(--text-muted); font-style: italic;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.foot {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1.4rem 0 1.8rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.foot-dot { opacity: 0.5; }
.foot-status { display: inline-flex; align-items: center; gap: 0.45rem; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 10px #f59e0b;
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ─── Reveal ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  animation: rise 1s var(--ease) forwards;
}
.d-1 { animation-delay: 0.15s; }
.d-2 { animation-delay: 0.3s; }
.d-3 { animation-delay: 0.5s; }
.d-4 { animation-delay: 0.68s; }
.d-5 { animation-delay: 0.9s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
