:root {
  color-scheme: dark;
  --accent: #FFD600;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --light-opacity: 0;
  --light-size: 400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  font-family: var(--font);
  background-color: #000;
  color: #fff;
  overflow: hidden;
  cursor: crosshair;
}

/* The hidden background image and masking effect */
.flashlight-bg {
  position: fixed;
  inset: 0;
  background-image: url('E93B8432-B82E-4507-80C1-32E66DD19431.png.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  opacity: var(--light-opacity);
  transition: opacity 0.8s ease;
  
  /* Feathered radial gradient for realistic light falloff */
  mask-image: radial-gradient(circle var(--light-size) at var(--cursor-x) var(--cursor-y), 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.8) 25%, 
    rgba(0, 0, 0, 0.3) 60%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(circle var(--light-size) at var(--cursor-x) var(--cursor-y), 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.8) 25%, 
    rgba(0, 0, 0, 0.3) 60%, 
    rgba(0, 0, 0, 0) 100%);
}

.landing {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.signup-area {
  width: min(486px, calc(100vw - 40px));
}

/* Dark mode glassmorphism form so the flashlight passes seamlessly beneath it */
.signup {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup:focus-within { 
  border-color: rgba(255, 255, 255, 0.4); 
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  outline: 2px solid transparent; 
}
.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 28px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font: 400 16px/1.2 var(--font);
}
.signup__input::placeholder { color: #888; opacity: 1; }
.signup__button {
  flex: 0 0 154px;
  margin: -1px -1px -1px 0;
  padding: 0 18px;
  border: 0;
  border-radius: 0 999px 999px 0;
  color: #000;
  background: var(--accent);
  font: 700 17px/1 var(--font);
  cursor: pointer;
  transition: filter 140ms ease;
}
.signup__button:hover { filter: brightness(.975); }
.signup__button:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.signup__button:disabled { cursor: wait; opacity: .7; }

.signup-feedback {
  margin: 12px 0 0;
  min-height: 20px;
  color: #a3a3a3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.signup-feedback:empty { visibility: hidden; }

.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;
}

@media (max-width: 760px) {
  .signup { height: 53px; }
  .signup__input { padding-inline: 18px 8px; font-size: 14px; }
  .signup__button { flex-basis: 129px; padding-inline: 8px; font-size: 15px; }
  :root { --light-size: 300px; } /* Slightly smaller flashlight on mobile */
}

@media (prefers-reduced-motion: reduce) {
  .signup__button { transition: none; }
  .flashlight-bg { transition: none; }
}