:root {
  --cream: #F7F4EE;
  --grape: #4A2D8C;
  --ink: #1A1818;
}

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

html, body {
  height: 100%;
  background: var(--cream);
  font-family: 'Satoshi', sans-serif;
  overflow: hidden;
}

/* full-bleed page — no frame around the hero */
.page {
  min-height: 100vh;
  padding: 0;
  background: var(--cream);
}

/* hero container — full bleed, holds the tilting scene */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: #2a1a52;

  /* swoosh reveal on load */
  opacity: 0;
  animation: swooshReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* the layer that actually tilts */
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

/* cursor-following light */
.light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(190, 150, 255, 0.22),
    rgba(190, 150, 255, 0.10) 35%,
    rgba(190, 150, 255, 0) 70%
  );
  mix-blend-mode: screen;
  transition: background 0.12s ease-out;
  z-index: 2;
}

/* subtle darkening at the top-left so text always reads */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(26,18,50,0.55) 0%, rgba(26,18,50,0.12) 45%, rgba(26,18,50,0) 70%),
    linear-gradient(0deg, rgba(26,18,50,0.35) 0%, rgba(26,18,50,0) 30%);
  z-index: 3;
}

/* content sits above everything, does NOT tilt */
.content {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 3.2vw 4vw;
  display: flex;
  flex-direction: column;

  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.55s;
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: rgba(247, 244, 238, 0.75);
}

.hero-block {
  margin-top: 12vh;
  margin-bottom: auto;
  max-width: 900px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(42px, 5.8vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 2.4rem;
  white-space: nowrap;
}

.subhead {
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
  margin-bottom: 3rem;
}

/* frosted glass input group */
.signup {
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(380px, 40vw, 560px);
  padding: 7px 7px 7px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.signup input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
  padding: 12px 16px;
}
.signup input::placeholder { color: rgba(255, 255, 255, 0.6); }

.signup button {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  background: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 0 1px rgba(123, 79, 196, 0.6),
    0 0 22px 3px rgba(123, 79, 196, 0.55),
    0 0 44px 8px rgba(123, 79, 196, 0.30);
}
.signup button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(140, 100, 220, 0.8),
    0 0 26px 4px rgba(123, 79, 196, 0.7),
    0 0 54px 12px rgba(123, 79, 196, 0.4);
}

.success {
  display: none;
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #FFFFFF;
  padding: 14px 4px;
  letter-spacing: 0.01em;
}

@keyframes swooshReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

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

@media (max-width: 640px) {
  .page { padding: 0; }
  .hero { height: 100vh; }
  .content { padding: 7vw 7vw; }
  .signup { width: 100%; }
  .signup button { padding: 12px 18px; font-size: 14px; }
  h1 { white-space: normal; }
}
