:root {
  color-scheme: dark;
  --ink: #ede9f7;
  --muted: #9b93b8;
  --violet: #7c3aed;
  --plasma: #a855f7;
  --surface: #140e24;
  --surface-2: #1b1430;
  --line: rgba(237,233,247,.09);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: #0a0714;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(124,58,237,.18), transparent 32rem),
    radial-gradient(circle at 88% 80%, rgba(168,85,247,.10), transparent 28rem);
}

.shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 108px 24px 74px;
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
}

.card {
  position: relative;
  width: min(100%, 650px);
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(27,20,48,.96), rgba(20,14,36,.94));
  box-shadow: 0 40px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.06);
  animation: arrive .7s cubic-bezier(.2,.8,.2,1) both;
}

.card::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 64px;
  width: 3px;
  height: 94px;
  background: linear-gradient(var(--plasma), var(--violet));
  box-shadow: 0 0 24px var(--violet);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(20,14,36,.85);
  backdrop-filter: blur(14px);
}

.wordmark {
  color: var(--ink);
  font-family: "Chakra Petch", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .025em;
  text-decoration: none;
}
.wordmark span { color: transparent; background: linear-gradient(100deg, var(--plasma), var(--violet)); background-clip: text; -webkit-background-clip: text; }

.system-label, .eyebrow, footer, .fine-print, .countdown-copy {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.system-label { color: #716a88; font-size: 10px; }
.eyebrow { color: var(--plasma); font-size: 11px; margin: 0 0 22px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #9ef7ca; box-shadow: 0 0 12px #72eab0; }

h1 { margin: 0; font-family: "Chakra Petch", sans-serif; font-size: clamp(50px, 9vw, 88px); line-height: .9; letter-spacing: -.055em; font-weight: 700; text-transform: uppercase; }
h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg, var(--plasma), var(--violet)); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 0 30px rgba(124,58,237,.24)); }
.lede { max-width: 470px; margin: 28px 0 34px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.countdown { margin-bottom: 25px; }
.countdown-copy { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: #817b90; font-size: 11px; letter-spacing: .1em; }
.countdown-copy strong { color: #d9d4e3; font-weight: 500; }
.timer { height: 2px; overflow: hidden; background: rgba(255,255,255,.1); }
.timer span { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--plasma), var(--violet)); animation: drain 5s linear forwards; }

.join-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 21px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(100deg, var(--plasma), var(--violet));
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .2s, box-shadow .2s;
}
.join-button:hover, .join-button:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(109,66,220,.35); outline: none; }
.join-button span { font-size: 20px; }
.fine-print { margin: 15px 0 0; color: #625d6c; font-size: 9px; }

footer { position: absolute; bottom: 27px; left: 24px; right: 24px; display: flex; justify-content: space-between; color: #55515e; font-size: 9px; }

@keyframes drain { to { transform: scaleX(0); } }
@keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(.985); } }

@media (max-width: 520px) {
  .shell { padding: 92px 14px 68px; }
  .card { padding: 34px 26px 32px; }
  .card::after { top: 48px; }
  .lede { font-size: 15px; }
  footer span:last-child, .system-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}
