/* VESSEL — the page IS a System window. Art law: Ascension by Subtraction —
   one glow channel, one gold accent (the seal), everything else disciplined. */

:root {
  --void: #05070d;
  --panel: rgba(13, 20, 34, 0.78);
  --line: rgba(83, 168, 255, 0.26);
  --system: #53a8ff;
  --system-deep: #266cff;
  --ink: #c4d2e6;
  --bright: #eef5ff;
  --dim: #5d6f8a;
  --gold: #d3a94f;
  --disp: 'Rajdhani', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient: faint scanlines + a single slow aura behind the hero */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(255, 255, 255, 0.012) 2px 4px
  );
  z-index: 5;
}

::selection { background: var(--system-deep); color: var(--bright); }

.mono { font-family: var(--mono); }

/* ---------- System window ---------- */
.win {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(6px);
}
.win::before,
.win::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--system);
  border-style: solid;
}
.win::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.win::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.win-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--system);
  margin-bottom: 0.7rem;
}

/* ---------- boot ---------- */
#boot {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot pre {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--system);
  letter-spacing: 0.08em;
  white-space: pre-wrap;
  min-height: 6em;
  min-width: min(20em, 80vw);
}
#boot .cursor { animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.4rem 4rem;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 45% at 50% 42%,
    rgba(38, 108, 255, 0.13),
    transparent 70%
  );
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--system);
  margin-bottom: 1.4rem;
}
h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.7rem, 10vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--bright);
  text-shadow: 0 0 34px rgba(83, 168, 255, 0.35);
  max-width: 11ch;
}
.sub {
  max-width: 34rem;
  margin: 1.6rem auto 2.4rem;
  color: var(--ink);
  font-size: 1.02rem;
}
.sub em { color: var(--bright); font-style: normal; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  border: 1px solid var(--system);
  background: transparent;
  color: var(--system);
  transition: box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:hover, .btn:focus-visible {
  box-shadow: 0 0 22px rgba(83, 168, 255, 0.45);
  background: rgba(83, 168, 255, 0.08);
}
.btn-solid {
  background: var(--system);
  color: #041020;
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: var(--bright);
  color: #041020;
}
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
}
.ghostlink {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ghostlink:hover { color: var(--system); }

/* ---------- sections ---------- */
section { padding: 4.5rem 1.4rem; max-width: 62rem; margin: 0 auto; }

.truths { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .truths { grid-template-columns: repeat(3, 1fr); } }
.truths h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--bright);
  margin-bottom: 0.5rem;
}
.truths p { font-size: 0.92rem; color: var(--ink); }

.honesty { max-width: 40rem; margin: 0 auto; text-align: center; }
.honesty p { font-size: 0.92rem; }
.honesty .win-label { color: var(--gold); }

/* ---------- waitlist ---------- */
.enlist { max-width: 26rem; margin: 0 auto; text-align: center; }
.enlist form { display: flex; gap: 0.6rem; margin-top: 1rem; }
.enlist input {
  flex: 1;
  min-width: 0;
  background: rgba(5, 9, 16, 0.9);
  border: 1px solid var(--line);
  color: var(--bright);
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 0.85rem 0.9rem;
}
.enlist input::placeholder { color: var(--dim); }
.enlist .note {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.enlist .result { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.85rem; color: var(--system); min-height: 1.4em; }
.enlist .result.gold { color: var(--gold); }

/* ---------- appraisal (quiz layer) ---------- */
#appraisal, #mint {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 40;
  display: none;
  overflow-y: auto;
  padding: 1.4rem;
}
#appraisal.open, #mint.open { display: flex; align-items: center; justify-content: center; }
.q-shell { width: min(30rem, 100%); }
.q-progress {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--dim);
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
}
.q-progress .close { color: var(--dim); text-decoration: none; cursor: pointer; background: none; border: none; font: inherit; letter-spacing: inherit; }
.q-progress .close:hover { color: var(--system); }
.q-prompt {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--bright);
  line-height: 1.25;
  min-height: 3.8em;
  margin-bottom: 1.4rem;
}
.q-opts { display: grid; gap: 0.6rem; }
.q-opt {
  text-align: left;
  background: rgba(13, 20, 34, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}
.q-opt:hover, .q-opt:focus-visible {
  border-color: var(--system);
  background: rgba(83, 168, 255, 0.09);
  color: var(--bright);
}
.q-opt .hint { font-family: var(--mono); font-size: 0.7rem; color: var(--dim); white-space: nowrap; }
.q-shell input[type='text'] {
  width: 100%;
  background: rgba(5, 9, 16, 0.9);
  border: 1px solid var(--line);
  color: var(--bright);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}

/* ---------- mint ---------- */
.mint-shell { width: min(24rem, 100%); text-align: center; padding: 2rem 0; }
.mint-shell img {
  width: min(310px, 82vw);
  border: 1px solid var(--line);
  box-shadow: 0 0 42px rgba(38, 108, 255, 0.22);
}
.mint-verdict {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 1.2rem 0;
}
.mint-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.mint-shell .enlist { border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- footer ---------- */
footer {
  padding: 3rem 1.4rem 4rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}
footer .mark {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5em;
  color: var(--system);
  display: block;
  margin-bottom: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
