@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/syne.woff2') format('woff2');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050508;
  --surface: #0c0c14;
  --border: #18182a;
  --border-glow: #25253d;
  --text: #dcdce5;
  --text-dim: #6e6e88;
  --accent: #3533cd;
  --accent-light: #5856eb;
  --accent-dim: #3533cd18;
  --accent-mid: #3533cd35;
  --error: #d44;
}

html { font-size: 16px; }

body {
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

.bg-glow--1 {
  width: 500px;
  height: 500px;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  opacity: 0.06;
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  bottom: -15%;
  right: -5%;
  background: var(--accent);
  opacity: 0.03;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.logo {
  display: block;
  margin-bottom: 2rem;
  filter: invert(1) brightness(0.85) sepia(1) hue-rotate(210deg) saturate(3);
  opacity: 0.8;
  animation: fadeDown 0.8s ease both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  background: var(--surface);
  animation: fadeDown 0.8s ease both;
}

.status__dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.headline {
  font-family: 'Syne', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both 0.15s;
}

.headline span {
  color: var(--text);
}

.tagline {
  font-family: 'Syne', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both 0.25s;
}

.subline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both 0.35s;
}

.pillars {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease both 0.45s;
}

.pillars li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  background: var(--surface);
}

.signup {
  width: 100%;
  max-width: 460px;
  animation: fadeUp 0.8s ease both 0.55s;
}

.signup__row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup__row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 30px var(--accent-dim);
}

.signup__input {
  flex: 1;
  padding: 0.95rem 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 300;
}

.signup__input::placeholder { color: var(--text-dim); opacity: 0.6; }

.signup__btn {
  padding: 0.95rem 1.6rem;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.signup__btn:hover { background: var(--accent-light); }
.signup__btn:active { opacity: 0.85; }
.signup__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  text-align: left;
}

.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  margin-top: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5L6.5 10.5L4 8' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent label {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.6;
  cursor: pointer;
}

.consent label a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-mid);
  transition: border-color 0.2s;
}

.consent label a:hover { border-color: var(--accent); }

.signup__msg {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  min-height: 1.2rem;
}

.signup__msg--success { color: var(--accent); }
.signup__msg--error { color: var(--error); }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

footer a:hover { color: var(--text); border-color: var(--text-dim); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
}

.modal h2 {
  font-family: 'Syne', ui-sans-serif, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal h3 {
  font-family: 'Syne', ui-sans-serif, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.modal__close {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--border-glow);
  border: none;
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal__close:hover { background: var(--text-dim); color: var(--bg); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  .signup__row { flex-direction: column; }
  .signup__btn { padding: 0.9rem; }
  .pillars { flex-wrap: wrap; justify-content: center; }
}
