@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;
  background:
    linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.2) 100%),
    url("assets/hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: scale(1.1) translateY(-1.5%); }
}

.card {
  position: relative;
  width: min(560px, 100%);
  padding: 44px 40px 36px;
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

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

.logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(35, 115, 244, 0.45);
}

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

h1 {
  margin-top: 28px;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.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 var(--border);
  border-radius: 14px;
  background: var(--field);
  transition: border-color 0.2s;
}

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

.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: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  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; }
  .form { flex-direction: column; }
  .form input { padding: 12px; }
}

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