:root {
  --night: #1b1f2e;
  --night-2: #242a3d;
  --mist: #8a93ad;
  --text: #e9e6f2;
  --muted: #b3b7c9;
  --warm: #ffcf7a;
  --warm-2: #ff9f5a;
  --daemon: #6c6f8f;
  --ok: #9fe3b0;
  --err: #ff9a9a;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, #2c3350 0%, var(--night) 60%) fixed, var(--night);
  color: var(--text);
  font: 400 17px/1.6 'Nunito', system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Comfortaa', 'Nunito', sans-serif; font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 .8rem; }
h3 { font-size: 1.15rem; margin: .4rem 0 .3rem; }
p { margin: 0 0 .8rem; }
a { color: var(--warm); }

.fog {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 25% at 15% 30%, rgba(138,147,173,.10), transparent 70%),
    radial-gradient(35% 20% at 85% 60%, rgba(138,147,173,.09), transparent 70%),
    radial-gradient(50% 30% at 40% 90%, rgba(138,147,173,.08), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-4%, 2%, 0) scale(1.08); } }

header, main, footer { position: relative; z-index: 1; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px 64px;
}
.hero-art { position: relative; width: 200px; height: 220px; margin-bottom: 8px; }
.glow {
  position: absolute; left: 50%; top: 55%; width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,207,122,.45) 0%, rgba(255,159,90,.15) 40%, transparent 70%);
  border-radius: 50%;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .85; } }
.cat { position: absolute; left: 50%; bottom: 0; width: 120px; transform: translateX(-50%); fill: #2a2438; stroke: var(--warm); }
.cat path:first-child { stroke-width: 2.5; }
.cat .tail { stroke: #2a2438; }
.cat .eye { fill: var(--warm); stroke: none; animation: blink 6s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

.wisp {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,111,143,.75), rgba(108,111,143,0) 70%);
  filter: blur(2px);
  animation: fade 7s ease-in-out infinite;
}
.w1 { left: -10px; top: 40px; }
.w2 { right: -16px; top: 90px; animation-delay: 2.3s; }
.w3 { left: 10px; bottom: 10px; animation-delay: 4.6s; }
@keyframes fade {
  0% { opacity: .9; transform: translateY(0) scale(1); }
  60% { opacity: .1; transform: translateY(-14px) scale(.6); }
  100% { opacity: .9; transform: translateY(0) scale(1); }
}

.kicker { color: var(--mist); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0; }
h1 { font-size: clamp(2.3rem, 9vw, 4rem); margin: .2rem 0 .8rem; color: var(--warm); text-shadow: 0 0 30px rgba(255,207,122,.35); }
.lead { font-size: clamp(1.05rem, 3.2vw, 1.3rem); color: var(--text); max-width: 34rem; }
.note { color: var(--muted); font-size: .95rem; margin-top: 1rem; }

.btn {
  display: inline-block; margin-top: .6rem;
  padding: 14px 28px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--warm), var(--warm-2));
  color: #2a2438; font: 700 1.05rem 'Nunito', sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,159,90,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,159,90,.4); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Sections */
main { max-width: 960px; margin: 0 auto; padding: 0 16px; }
section { padding: 48px 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li, .split > div, .honest, .join form {
  background: rgba(36,42,61,.75); border: 1px solid rgba(138,147,173,.18);
  border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(4px);
}
.steps p, .split p, .facts li { color: var(--muted); }
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,207,122,.15); color: var(--warm); font-weight: 700;
}

.citymap .sub { color: var(--muted); max-width: 40rem; }
.map-frame {
  margin-top: 16px; aspect-ratio: 16 / 10; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(138,147,173,.25); background: #e9e2d2;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.map-frame canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.credit { color: var(--mist); font-size: .85rem; margin-top: 10px; }
@media (max-width: 600px) { .map-frame { aspect-ratio: 4 / 5; } }

.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.honest { border-color: rgba(255,207,122,.35); }
.honest p { color: var(--text); margin: 0; }

.facts { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.facts strong { color: var(--text); }

/* Form */
.join { text-align: center; }
.join .sub { color: var(--muted); }
.join form { max-width: 460px; margin: 18px auto 0; text-align: left; display: grid; gap: 14px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(138,147,173,.35); background: rgba(27,31,46,.8); color: var(--text);
  font: inherit;
}
.field input:focus { outline: 2px solid var(--warm); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); cursor: pointer; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--warm-2); flex: none; }
.consent { font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join .btn { justify-self: center; }
.status { min-height: 1.6em; text-align: center; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

footer { text-align: center; color: var(--mist); font-size: .9rem; padding: 32px 16px 48px; }
footer details { max-width: 520px; margin: 0 auto 12px; }
footer summary { cursor: pointer; }
footer details p { margin-top: 8px; }

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