:root {
  --bg: #0d0f14;
  --panel: #161a22;
  --line: #262c38;
  --text: #e8ecf3;
  --muted: #9aa4b5;
  --accent: #ff4d5e;
  --accent-2: #ffb547;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.hero {
  padding: 72px 24px 56px;
  max-width: 880px;
  margin: 0 auto;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 20px;
}

.brand span {
  color: var(--accent);
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  margin: 24px 0 16px;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.cta,
button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.features article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.features h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.join {
  margin-top: 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.join h2 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input[type='email'],
input[type='text'] {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  font-weight: 600;
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.chips label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 77, 94, 0.12);
}

.chips input {
  accent-color: var(--accent);
}

#status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

#status.ok {
  color: #6ee7a8;
}

#status.err {
  color: var(--accent);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: var(--accent2, #7fd4ff);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

main.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 24px 20px 64px;
  line-height: 1.55;
  color: var(--text, #e7f4ff);
}

main.legal h2 {
  margin-top: 1.6em;
  font-size: 1.15rem;
}

main.legal a {
  color: var(--accent2, #7fd4ff);
}
