:root {
  color-scheme: dark;
  --canvas: #131313;
  --surface: #2d2d2d;
  --line: #3c3c3c;
  --text: #ffffff;
  --muted: #b4b4b4;
  --mint: #3cffd0;
  --purple: #7d4dff;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--mint); }

.shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--mint);
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--mint); }

main { padding-top: 40px; }
h1 { margin: 0 0 16px; font-size: clamp(2.25rem, 8vw, 4.5rem); line-height: .95; }
h2 { margin-top: 44px; font-size: 1.45rem; }
h3 { margin-top: 28px; }
p, li { color: var(--muted); }
.lead { font-size: 1.1rem; max-width: 62ch; }

.card {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--mint);
  border-radius: 999px;
  color: var(--mint);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}

label { display: block; margin-top: 18px; font-weight: 700; }
input, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #5b5b5b;
  border-radius: 12px;
  background: #1d1d1d;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--mint); outline-offset: 2px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button {
  width: 100%;
  margin-top: 24px;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--mint);
  color: #000;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
button:disabled { cursor: progress; opacity: .55; }
.status { min-height: 1.6em; margin-top: 14px; }
.status[data-kind="success"] { color: var(--mint); }
.status[data-kind="error"] { color: #ff8f8f; }

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.invite-shell { min-height: 100vh; display: flex; flex-direction: column; }
.invite-card { margin: auto 0; padding: 56px 0 32px; }
.invite-card h1 { margin-top: 22px; }
.invite-code {
  display: inline-flex;
  margin: 16px 0 8px;
  padding: 9px 13px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: #c6b5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  letter-spacing: .08em;
}
.store-links { display: grid; gap: 12px; margin-top: 12px; }
.store-button {
  display: block;
  margin-top: 24px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--mint);
  color: #000;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.store-links .store-button { margin-top: 0; }
.store-button.secondary { background: var(--purple); color: var(--text); }
.invite-help { margin-top: 22px; font-size: .9rem; }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  header { align-items: flex-start; flex-direction: column; }
  .shell { width: min(100% - 28px, 780px); }
  .card { padding: 19px; }
}
