/* Angie Corbett — Coming Soon
   Implemented from the Claude Design prototype "Coming Soon.dc.html" (night scene). */

:root {
  --navy: rgb(17, 18, 74);
  --orange: rgb(232, 105, 60);
  --orange-deep: rgb(194, 92, 69);
  --white: rgb(255, 255, 255);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--navy);
}

a { color: var(--white); }
a:hover { color: var(--orange); }

[hidden] { display: none !important; }

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background-color: var(--navy);
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- sky ---------- */

.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  container-type: size;
  overflow: hidden;
}

/* The sky painting (2200x914) carries two extra moons of its own — a crescent
   at top-right and a small face on the far-left edge. The page's one moon is
   the one in the cloud artwork, so this rule shows only the moon-free slice
   of the sky (source x 120–1690): it emulates object-fit: cover of that
   slice, at any viewport size, without re-encoding the JPEG.
   (905 = slice center; 1570 x 914 = slice size; 2200 = full source width.) */
.sky img {
  position: absolute;
  top: 0;
  left: calc(50cqw - max(100cqw / 1570, 100cqh / 914) * 905);
  width: calc(max(100cqw / 1570, 100cqh / 914) * 2200);
  height: auto;
  max-width: none;
}

.sky__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(17,18,74,0.92) 0%, rgba(17,18,74,0.35) 55%, rgba(17,18,74,0) 100%);
}

/* ---------- stars ---------- */

.stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  /* rest state matches the twinkle keyframe floor, so stars never flash at
     full brightness while their staggered animation delay elapses */
  opacity: 0.15;
}

.shooting-star {
  position: absolute;
  top: 11%;
  left: 64%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: shoot 11s linear 4s infinite;
}

.shooting-star i {
  display: block;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.95));
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  transform: rotate(153deg);
}

/* ---------- clouds (original artwork, single instance — one moon) ---------- */

.cloud {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.cloud--a {
  top: -3%;
  left: -8%;
  width: 118%;
  opacity: 0.55;
  animation: drift 90s ease-in-out infinite alternate;
}

.neeko {
  position: absolute;
  bottom: -12px;
  right: -2%;
  width: min(92vw, 1320px);
  z-index: 3;
  pointer-events: none;
  animation: bob 8s ease-in-out infinite;
}

.fireflies {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.firefly {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,216,150,0.95) 0%, rgba(255,216,150,0) 70%);
}

/* ---------- chrome ---------- */

.masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 22px 48px 0;
}

.wordmark {
  font-family: Allison, cursive;
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(17,18,74,0.65);
}

.colophon {
  position: absolute;
  left: 48px;
  bottom: 24px;
  z-index: 6;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
}

/* ---------- hero ---------- */

.hero {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 15vh;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}

.script-lead {
  font-family: Allison, cursive;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.9;
  color: var(--white);
  margin-top: 34px;
  text-shadow: 0 0 64px rgba(0,0,0,0.45);
}

.headline {
  font-family: Allison, cursive;
  font-weight: 400;
  font-size: clamp(96px, 15vw, 200px);
  line-height: 0.84;
  color: var(--white);
  margin: 0;
  text-shadow: 0 0 64px rgba(0,0,0,0.45);
}

.blurb {
  max-width: 540px;
  margin: 26px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 28px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.92);
}

/* ---------- signup ---------- */

.signup {
  margin: 38px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.signup__email {
  width: min(320px, 78vw);
  height: 51px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.09);
  color: var(--white);
  padding: 0 22px;
  font-size: 16px;
  font-family: 'Source Sans Pro', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.signup__email::placeholder { color: rgba(255,255,255,0.55); }

.signup__email:focus {
  border-color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.14);
}

.signup__btn {
  height: 51px;
  border: none;
  border-radius: 100px;
  background-color: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Source Sans Pro', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.signup__btn:hover {
  background-color: var(--orange-deep);
  transform: translateY(-1px);
}

/* shimmer sweep (adapted from 21st.dev "shimmer button" pattern) */
.signup__btn {
  position: relative;
  overflow: hidden;
}

.signup__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.35) 50%, transparent 58%);
  transform: translateX(-110%);
  animation: sheen 4.5s ease-in-out 2.2s infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%   { transform: translateX(-110%); }
  22%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

.signup__hint {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65);
}

.signup__btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

/* honeypot — invisible to people, irresistible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thanks {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  background-color: var(--orange);
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- animation ---------- */

.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--rise-delay, 0s);
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1); }
}

@keyframes drift {
  from { transform: translateX(-3.5%); }
  to   { transform: translateX(2.5%); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0); }
  3%   { opacity: 1; }
  11%  { opacity: 0; transform: translate(-420px, 210px); }
  100% { opacity: 0; transform: translate(-420px, 210px); }
}

@keyframes ffA {
  0%   { transform: translate(0,0);        opacity: 0; }
  15%  { opacity: 0.9; }
  45%  { transform: translate(36px,-44px); opacity: 0.3; }
  70%  { transform: translate(-20px,-68px); opacity: 0.9; }
  100% { transform: translate(4px,-6px);   opacity: 0; }
}

@keyframes ffB {
  0%   { transform: translate(0,0);         opacity: 0; }
  18%  { opacity: 0.8; }
  50%  { transform: translate(-40px,-30px); opacity: 0.95; }
  78%  { transform: translate(24px,-60px);  opacity: 0.25; }
  100% { transform: translate(0,-10px);     opacity: 0; }
}

@keyframes ffC {
  0%   { transform: translate(0,0);        opacity: 0; }
  12%  { opacity: 0.7; }
  40%  { transform: translate(18px,-52px); opacity: 0.9; }
  72%  { transform: translate(46px,-24px); opacity: 0.35; }
  100% { transform: translate(8px,0);      opacity: 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .rise, .thanks, .cloud, .neeko { animation: none !important; }
  .star { animation: none !important; opacity: 0.7; transform: none; }
  .shooting-star, .firefly, .signup__btn::after { display: none; }
}
