:root {
  color-scheme: dark;
  --page-bg: #050505;
  --overlay: rgba(5, 5, 5, 0.72);
  --card-bg: rgba(20, 20, 20, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --input-bg: #2a2a2a;
  --placeholder: rgba(255, 255, 255, 0.4);
  --accent: #00e676;
  --accent-ink: #041208;
  --focus-ring: rgba(0, 230, 118, 0.45);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-y: auto;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--page-bg);
  background-image:
    linear-gradient(var(--overlay), var(--overlay)),
    url("static/login-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.page {
  width: min(64rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 4.5rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.brand {
  display: block;
  width: min(18rem, 78%);
  height: auto;
  margin: 0 auto 1.5rem;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.7rem, 6.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

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

.subhead {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
}

.waitlist {
  width: min(36rem, 100%);
  margin-top: 2rem;
}

.waitlist label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

input,
button {
  height: 3.15rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

input {
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
  border: 0;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

input::placeholder {
  color: var(--placeholder);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
}

button:disabled,
button.is-loading {
  cursor: progress;
}

button:disabled {
  opacity: 0.85;
}

.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

button.is-loading .btn-spinner {
  display: inline-block;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.feature-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.feature-copy {
  flex: 1;
  min-width: 0;
}

.feature h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.feature p {
  margin: 0.7rem 0 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.feature:nth-child(even) .feature p {
  margin-left: auto;
}

.cta {
  margin-top: 1.25rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.cta .waitlist {
  margin-right: auto;
  margin-left: auto;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-top: 0.85rem;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: var(--text);
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .page {
    width: min(64rem, calc(100% - 1.5rem));
  }

  .hero {
    min-height: 100vh;
    padding: 2.5rem 0 3rem;
  }

  .waitlist-row {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }

  input {
    min-height: 3.15rem;
    font-size: 1rem;
  }

  .feature,
  .feature:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.4rem 1.15rem;
    text-align: left;
  }

  .feature:nth-child(even) .feature p {
    margin-left: 0;
  }

  .cta {
    padding: 2rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner {
    animation: none;
  }
}
