:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: #20130b;
  background-image:
    linear-gradient(to bottom right, rgba(16, 8, 5, 0.08), rgba(16, 8, 5, 0.2)),
    url('../images/imminent-bg.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.cursor-dot,
.cursor-follower {
  display: none;
}

@media (pointer: fine) {
  body {
    cursor: none !important;
  }

  input,
  button,
  a,
  .brand {
    cursor: none !important;
  }

  .cursor-dot {
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 999px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-radius 0.2s, background-color 0.2s;
  }

  .cursor-follower {
    display: block;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 999px;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
  }

  .cursor-dot.guiding {
    width: 20px;
    height: 20px;
    background: transparent;
    transform: translate(-50%, -50%) rotate(var(--cursor-angle, 0deg));
  }

  .cursor-dot.guiding::after {
    content: '→';
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: block;
    line-height: 1;
  }

  .cursor-dot.active {
    transform: translate(-50%, -50%) scale(0.75);
  }

  .cursor-dot.typing {
    width: 2px;
    height: 22px;
    border-radius: 0;
  }

  .cursor-follower.typing {
    opacity: 0;
  }

  .cursor-dot.is-pointer {
    width: 12px;
    height: 12px;
    background-color: #f0a013;
    animation: cursorPulse 1.2s infinite ease-in-out;
  }

  @keyframes cursorPulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
    }

    50% {
      transform: translate(-50%, -50%) scale(1.15);
    }

    100% {
      transform: translate(-50%, -50%) scale(1);
    }
  }

  .cursor-follower.hover-active {
    opacity: 0;
  }
}







.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 3rem;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  user-select: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.topbar nav {
  display: flex;
  gap: 1rem;
}

.topbar nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  transition: opacity 0.2s;
}

.topbar nav a:hover {
  opacity: 0.7;
}

.hero {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 8vh;
  margin-bottom: auto;
  /* Pushes the waitlist to the bottom */
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(2.6rem, 8.6vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  letter-spacing: 0.3em;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 500;
}

.waitlist {
  width: min(96vw, 420px);
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  /* For popover positioning */
  padding-bottom: 3vh;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}


.waitlist>p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--muted);
}

.waitlist-form {
  display: flex;
  gap: 0;
  width: 100%;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.waitlist-form:focus-within {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  outline: none;
  letter-spacing: 0;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  transition: opacity 0.3s ease;
}

.waitlist-form input:focus::placeholder {
  opacity: 0.2;
}

.waitlist-form input:-webkit-autofill,
.waitlist-form input:-webkit-autofill:hover,
.waitlist-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}

.waitlist-form button {
  width: 52px;
  height: 52px;
  border: 0;
  padding: 0;
  background: #ffffff;
  color: #1a0f08;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  /* Ensure native cursor is hidden */
  position: relative;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.waitlist-form.has-valid button {
  display: flex;
}

.waitlist-form button svg {
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
  display: block;
}

.waitlist-form button:hover {
  background-color: #f0a013;
  /* Brand Orange */
  color: #ffffff;
}

.waitlist-form button:hover svg {
  animation: arrowShoot 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes arrowShoot {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  30% {
    transform: translateX(20px);
    opacity: 0;
  }

  31% {
    transform: translateX(-20px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.waitlist-form button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 1;
}

.waitlist-form button:hover::after {
  width: 150px;
  height: 150px;
}


.mailerlite-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #ffffff;
  opacity: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.4s ease;
}

.waitlist.is-loading .mailerlite-status,
.waitlist.is-success .mailerlite-status,
.waitlist.is-error .mailerlite-status {
  display: flex;
  opacity: 1;
}

.waitlist.is-loading .waitlist-form,
.waitlist.is-loading>p,
.waitlist.is-success .waitlist-form,
.waitlist.is-success>p {
  display: none;
}

/* Loading Spinner */
.waitlist.is-loading .mailerlite-status::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.waitlist.is-success .mailerlite-status {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.8);
  gap: 0.9rem;
}

.instagram-success-cta {
  display: none;
  margin-top: 1.1rem;
  border: 1px solid rgba(240, 160, 19, 0.5);
  background: rgba(240, 160, 19, 0.12);
  color: #f5bb4a;
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.instagram-success-cta:hover {
  color: #ffd27b;
  border-color: rgba(245, 187, 74, 0.75);
  background: rgba(240, 160, 19, 0.2);
  transform: translateY(-1px);
}

.waitlist.is-success .instagram-success-cta {
  display: inline-flex;
}

.waitlist.is-success .mailerlite-status::before {
  content: '';
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.waitlist.is-error .mailerlite-status {
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #ffb0b0;
  gap: 0.85rem;
}

.waitlist.is-error .mailerlite-status::before {
  content: '';
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 110, 110, 0.6);
  background: rgba(255, 70, 70, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff8a8a' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6'/%3E%3Cpath d='m15 9-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.email-popover {
  display: none;
  margin-top: 0.75rem;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  animation: pillsFadeIn 0.3s ease;
}

@keyframes pillsFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-popover.is-open {
  display: flex;
}

.email-popover button {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1;
  cursor: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.email-popover button:hover,
.email-popover button.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(240, 160, 19, 0.4);
  color: #f0a013;
  transform: translateY(-1px);
}




.footer-minimal {
  padding-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
}

.footer-minimal span {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.footer-minimal a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-minimal a:hover {
  text-decoration: none;
}

.footer-social-link {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem 0.4rem 0.5rem;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.footer-social-handle {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-social-link:hover {
  text-decoration: none;
  color: #f0a013;
  border-color: rgba(240, 160, 19, 0.6);
  background-color: rgba(240, 160, 19, 0.12);
  transform: translateY(-1px);
}

.waitlist.is-success+.footer-minimal .footer-social-link {
  display: none;
}

@media (max-width: 768px) {
  .screen {
    padding: 3rem 1.5rem;
    gap: 1rem;
  }

  .topbar nav {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.45rem, 12.2vw, 4.2rem);
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    padding: 0 1rem;
  }

  .waitlist {
    padding-bottom: 1rem;
  }

  .waitlist-form {
    flex-direction: row;
    padding: 2px;
    background: rgba(255, 255, 255, 0.04);
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .waitlist-form input {
    height: 48px;
    text-align: left;
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .waitlist-form button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .footer-minimal {
    padding-bottom: 0.5rem;
    gap: 0.7rem;
  }

  .footer-minimal span {
    font-size: 0.62rem;
  }
}

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