@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --accent: #2373f4;
  --accent-light: #4a9bf0;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --field: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.waitlist {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  overflow: hidden;
}

.backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a0a0a url("assets/hero.jpg") center / cover no-repeat;
}

.backdrop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.backdrop-black {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.9s linear;
}

.backdrop-black.is-fading {
  opacity: 1;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.card {
  position: relative;
  width: min(640px, 100%);
  padding: 48px 44px 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-name {
  font-size: 18px;
  font-weight: 400;
}

h1 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.form {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s, background 0.2s;
}

.form:focus-within {
  border-color: rgba(74, 155, 240, 0.7);
  background: rgba(0, 0, 0, 0.4);
}

.form input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.form input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form button {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(35, 115, 244, 0.4);
  transition: transform 0.15s, filter 0.15s;
}

.form button:hover {
  filter: brightness(1.08);
}

.form button:active {
  transform: scale(0.97);
}

.form button:disabled {
  cursor: default;
  filter: saturate(0.6);
}

.platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.platform svg {
  color: #fff;
  margin-top: -2px;
}

.feedback {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
}

.feedback.success { color: #7ee2a8; }
.feedback.error { color: #ff8a80; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .card { padding: 36px 22px 28px; border-radius: 22px; }
  .form { flex-direction: column; }
  .form input { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .backdrop-video { display: none; }
}
