:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
}

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

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

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: relative;
  padding: 6.5rem 1.5rem 5rem;
  text-align: center;
  color: #eff3ff;
  overflow: hidden;
  background: #0b1220;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.brand {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f8f9ff;
  font-size: 0.9rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(8, 13, 24, 0.45);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 24, 0.18), rgba(7, 12, 24, 0.72)),
    url("bg1.jpg") center/cover no-repeat;
  z-index: 0;
  filter: saturate(1.05);
}

header > * {
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(3.1rem, 6vw, 4.4rem);
  letter-spacing: -0.035em;
  animation: fadeUp 0.9s ease-out 0.1s both;
  will-change: transform, opacity;
}

header p {
  margin: 0 auto;
  max-width: 30rem;
  font-size: 1.05rem;
  color: rgba(236, 240, 255, 0.85);
  animation: fadeUp 1s ease-out 0.35s both;
  will-change: transform, opacity;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.waitlist-form {
  display: none;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-form.visible {
  display: flex;
}

.waitlist-form input {
  min-width: min(280px, 70vw);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(6, 11, 22, 0.35);
  color: #f5f6ff;
  font-size: 0.95rem;
  outline: none;
}

.waitlist-form input::placeholder {
  color: rgba(229, 232, 255, 0.6);
}

.waitlist-form input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(6, 11, 22, 0.55);
}

.waitlist-form button {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f6ff;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.waitlist-form button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.75);
}

.waitlist-confirmation {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(239, 242, 255, 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.waitlist-confirmation.visible {
  opacity: 1;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cta-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-buttons .is-hidden {
  display: none;
}

.cta-buttons a.primary {
  background: rgba(255, 255, 255, 0.96);
  color: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-buttons a.primary:hover {
  background: #ffffff;
}

main {
  flex: 1;
}

footer {
  padding: 1.5rem 1.5rem 2.2rem;
  text-align: center;
  color: rgba(102, 112, 132, 0.86);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  header {
    padding: 4rem 1.1rem;
  }

  .brand {
    top: 1.4rem;
    left: 1.2rem;
    gap: 0.5rem;
    font-size: 0.82rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .waitlist-form {
    gap: 0.5rem;
  }

  .waitlist-form input {
    min-width: min(240px, 80vw);
  }

  header {
    padding: 5.5rem 1.1rem 4rem;
    gap: 1.8rem;
  }
}
