:root {
  --bg: #05070a;
  --fg: #e8f6ff;
  --muted: #8a9cab;
  --accent: #7ef9ff;
  --warm: #ffd37e;
  --panel: rgba(232, 246, 255, 0.05);
  --line: rgba(232, 246, 255, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

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

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
#face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.hero-text {
  position: relative;
  max-width: 44rem;
  padding: 0 1.5rem 9vh;
  text-align: center;
  pointer-events: none;
}
.hero-text .actions { pointer-events: auto; }
h1 { margin: 0 0 0.3em; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.hero-text p { margin: 0 auto 1.6rem; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); max-width: 34rem; }

.actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s;
}
.button:hover { transform: translateY(-1px); background: var(--panel); }
.button.primary { background: var(--accent); color: #032326; border-color: transparent; }
.button.primary:hover { background: #a6fbff; }

main { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4.5rem 0 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1.5rem; letter-spacing: -0.01em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.grid article {
  padding: 1.4rem 1.5rem;
  border-radius: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.grid .icon { font-size: 1.8rem; }
.grid h3 { margin: 0.5rem 0 0.4rem; font-size: 1.15rem; }
.grid p { margin: 0; color: var(--muted); }

.privacy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; max-width: 46rem; }
.privacy li { padding-left: 1.4rem; position: relative; color: var(--muted); }
.privacy li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.privacy b { color: var(--fg); }

.built p { color: var(--muted); max-width: 46rem; }

footer { text-align: center; color: var(--muted); padding: 4rem 1.5rem 3rem; font-size: 0.9rem; }

@media (max-width: 640px) {
  .hero-text { padding-bottom: 6vh; }
  section { padding-top: 3rem; }
}

/* Join the first 100 */
.spots { color: var(--warm); font-weight: 600; margin: 0.9rem 0 0; min-height: 1.4em; }
.hero-text .spots { pointer-events: none; }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.join-text p { color: var(--muted); }
#join-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border-radius: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
#join-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.92rem; color: var(--muted); }
#join-form input:not([type='checkbox']), #join-form textarea {
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: inherit;
}
#join-form textarea { resize: vertical; }
#join-form .optional { opacity: 0.7; }
#join-form .consent { flex-direction: row; align-items: flex-start; gap: 0.6rem; line-height: 1.4; }
#join-form .consent input { margin-top: 0.2rem; flex: none; width: 1.1rem; height: 1.1rem; }
#join-form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; align-self: flex-start; }
#join-form button:disabled { opacity: 0.5; cursor: default; }
#join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { margin: 0; min-height: 1.4em; color: #ff9e9e; }
.result.good { color: #7effa8; font-weight: 600; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; gap: 1.2rem; } }

.signin-link {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.6);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.signin-link:hover { background: var(--panel); }
