/* Administrate.Games waitlist: the app's dark palette (gamesuite
   web/src/styles/tokens.css) on one page. No external fonts or requests. */
:root {
  --bg: #09090b;
  --bg-soft: #101014;
  --text: #fafafa;
  --muted: #9f9fa9;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8b9cff;
  --accent-rgb: 139, 156, 255;
  --btn-from: #7c8cff;
  --btn-to: #95a3ff;
  --ok: #4ade80;
  --danger: #ff7474;
  --radius: 18px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, #09090b 0%, #0d0d12 100%);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #a5b2ff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Drifting glows behind everything. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 26s var(--ease) infinite alternate; }
.sky i:nth-child(1) { width: 60vmax; height: 60vmax; left: 20%; top: -38vmax; background: rgba(var(--accent-rgb), .22); }
.sky i:nth-child(2) { width: 34vmax; height: 34vmax; right: -12vmax; top: 10vh; background: rgba(74, 222, 128, .08); animation-duration: 31s; }
.sky i:nth-child(3) { width: 40vmax; height: 40vmax; left: -16vmax; bottom: -20vmax; background: rgba(198, 155, 255, .10); animation-duration: 37s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 22px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand em { color: var(--accent); font-style: normal; }
.brand img { border-radius: 9px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { max-width: 820px; margin: 56px auto 0; text-align: center; }
.pill {
  display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .28); background: rgba(var(--accent-rgb), .08);
  color: #c7cfff; font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
h1 {
  margin: 0; font-size: clamp(2.4rem, 1.2rem + 5vw, 4.6rem); line-height: 1.04;
  letter-spacing: -.035em; font-weight: 800; text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, #c1c9ff 0%, var(--accent) 45%, #c69bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { margin: 22px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(1.02rem, .95rem + .4vw, 1.18rem); text-wrap: pretty; }

/* The form: one pill-shaped field with the button inside it. */
.signup { margin: 36px auto 0; max-width: 520px; }
.field {
  display: flex; gap: 6px; padding: 6px; border-radius: 16px;
  background: rgba(16, 16, 20, .82); border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 4px rgba(var(--accent-rgb), .14); }
.signup.bad .field { border-color: rgba(255, 116, 116, .55); animation: shake .38s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
input[type=email] {
  flex: 1; min-width: 0; padding: 14px 14px; border: 0; outline: 0; border-radius: 11px;
  background: transparent; color: var(--text); font: inherit; font-size: 16px;
}
input::placeholder { color: rgba(250, 250, 250, .32); }
button {
  position: relative; flex: none; padding: 0 22px; min-height: 48px; border: 0; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: #0b0d1a;
  font: inherit; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(76, 96, 194, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s var(--ease), box-shadow .18s, filter .18s;
}
button:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(76, 96, 194, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
button:active { transform: translateY(0) scale(.98); }
button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
button[disabled] { cursor: progress; filter: saturate(.7); }
.spin { display: none; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(11, 13, 26, .25); border-top-color: #0b0d1a; animation: spin .7s linear infinite; }
.busy .label { visibility: hidden; }
.busy .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
button.danger { padding: 0 24px; background: linear-gradient(135deg, #ff8a8a, #ffb0a0); box-shadow: 0 10px 28px rgba(194, 76, 76, .35); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; margin: 12px 0 0; color: var(--danger); font-size: 14px; }
.privacy { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.joined { margin: 36px auto 0; max-width: 520px; padding: 28px 24px; border-radius: var(--radius); border: 1px solid rgba(74, 222, 128, .25); background: rgba(74, 222, 128, .05); }
.joined svg { width: 56px; height: 56px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.joined circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) forwards; }
.joined path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.joined h2 { margin: 12px 0 4px; font-size: 1.5rem; letter-spacing: -.02em; }
.joined p { margin: 0; color: var(--muted); }
.small { margin-top: 10px !important; font-size: 13px; }

/* The product shot: tilted back, settling flat as it scrolls into view. */
.shot { position: relative; margin: 72px auto 0; max-width: 1100px; perspective: 1600px; }
.frame {
  position: relative; z-index: 1; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1); background: var(--bg-soft);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(var(--accent-rgb), .08);
  transform: rotateX(var(--tilt, 14deg)) scale(var(--scale, .96)); transform-origin: 50% 0;
  transition: transform .2s linear; will-change: transform;
}
.chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.chrome span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.chrome b { margin: 0 auto; padding-right: 50px; color: var(--muted); font: 500 12px var(--mono); }
.frame img { display: block; width: 100%; height: auto; }
.glow { position: absolute; inset: 10% 8% -6%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .35), transparent); filter: blur(40px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 88px auto 0; }
.card {
  padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .3); }
.card svg { width: 30px; height: 30px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: rgba(var(--accent-rgb), .1); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 16px 0 6px; font-size: 1.08rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1180px; margin: 96px auto 0; padding: 28px 24px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* Plain pages: done, unsubscribe. */
.plain main.panel {
  max-width: 520px; margin: 12vh auto 0; padding: 36px 32px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(16, 16, 20, .82); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.panel h1 { font-size: 2rem; }
.panel p { color: var(--muted); }
.panel strong { color: var(--text); word-break: break-all; }
.panel form { margin-top: 22px; }

/* Entrance: staggered rise. app.js adds .in; without JS everything shows. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .hero { margin-top: 32px; }
  .shot { margin-top: 52px; }
}
@media (max-width: 480px) {
  .top { padding: 18px 16px; }
  main { padding: 0 16px; }
  .badge { font-size: 12px; padding: 5px 10px; }
  .field { flex-direction: column; padding: 8px; }
  button { width: 100%; }
  .chrome b { display: none; }
  .plain main.panel { margin-top: 6vh; padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .frame { transform: none; }
  .joined circle, .joined path { stroke-dashoffset: 0; }
}
