/* =========================================================
   Wise Fit Gramma — Coming Soon
   Palette: sunshine, peach, coral, butter, cream
   Rules:  NO grey. NO shadows. NO borders. NO fluff.
   ========================================================= */

:root {
  --cream:     #FFF6E3;
  --butter:    #FFE9A8;
  --peach:     #FFD2A6;
  --coral:     #FF9F7A;
  --rose:      #FF7A8A;
  --plum:      #C26AB5;
  --sun:       #FFC857;
  --ink:       #2A1A3D;     /* deep warm plum, never grey */
  --ink-soft:  #6B4E7E;
  --white:     #FFFFFF;
}

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

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, var(--butter) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 100%, var(--peach) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 20% 100%, #FFE0CC 0%, transparent 60%),
    linear-gradient(180deg, #FFF1C9 0%, var(--cream) 50%, #FFE3CC 100%);
}

/* ---------- SKY / SUNSHINE BACKDROP ---------- */

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sun {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,220,140,0.85) 0%, rgba(255,200,90,0.45) 30%, rgba(255,200,90,0) 70%);
  animation: sun-breathe 8s ease-in-out infinite;
}

@keyframes sun-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.06); }
}

.ray {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 50vh;
  background: linear-gradient(180deg, rgba(255,210,120,0.35) 0%, transparent 100%);
  transform-origin: top center;
  border-radius: 4px;
  filter: blur(1px);
  animation: ray-pulse 6s ease-in-out infinite;
}
.ray-1 { transform: translateX(-50%) rotate(-25deg); animation-delay: 0s; }
.ray-2 { transform: translateX(-50%) rotate(-8deg);  animation-delay: 1.5s; }
.ray-3 { transform: translateX(-50%) rotate(8deg);   animation-delay: 3s; }
.ray-4 { transform: translateX(-50%) rotate(25deg);  animation-delay: 4.5s; }

@keyframes ray-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.b1 { width: 180px; height: 180px; background: var(--coral); top: 15%; left: 8%; animation-delay: 0s; }
.b2 { width: 140px; height: 140px; background: var(--sun);   top: 70%; left: 12%; animation-delay: 2s; }
.b3 { width: 220px; height: 220px; background: var(--peach); top: 25%; right: 6%; animation-delay: 4s; }
.b4 { width: 160px; height: 160px; background: var(--rose);  top: 65%; right: 10%; animation-delay: 6s; opacity: 0.4; }
.b5 { width: 120px; height: 120px; background: var(--butter); top: 45%; left: 50%; animation-delay: 3s; opacity: 0.5; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -25px) scale(1.08); }
  66%      { transform: translate(-15px, 18px) scale(0.95); }
}

/* ---------- LAYOUT ---------- */

.stage {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  text-align: center;
}

.brand { margin-bottom: 40px; }

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  gap: 0.35em;
  align-items: baseline;
}
.wm-1 { color: var(--rose); }
.wm-2 { color: var(--coral); font-style: italic; }
.wm-3 { color: var(--ink); }

/* ---------- HERO / ORBIT SYSTEM ---------- */

.hero { margin-top: 16px; }

.orbit-system {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 48px;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(255,200,120,0.0) 0deg,
      rgba(255,200,120,0.35) 60deg,
      rgba(255,160,140,0.0) 180deg,
      rgba(255,200,120,0.35) 300deg,
      rgba(255,200,120,0.0) 360deg);
  mask: radial-gradient(circle, transparent 49%, #000 50%, #000 51%, transparent 52%);
  -webkit-mask: radial-gradient(circle, transparent 49%, #000 50%, #000 51%, transparent 52%);
  animation: ring-spin 30s linear infinite;
}
.ring-outer { inset: 0; opacity: 0.9; }
.ring-inner { inset: 14%; animation-duration: 22s; animation-direction: reverse; opacity: 0.7; }

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

.portrait {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--butter), var(--peach));
}
.portrait img,
.portrait video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,140,0.55) 0%, transparent 65%);
  z-index: -1;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* ----- the orbiting planets -----
   Structure: .orbit (spins) > .arm (positions on circle) > .planet (counter-rotates to stay upright)
*/

.orbit {
  position: absolute;
  inset: 0;
  animation: orbit-spin 22s linear infinite, orbit-breathe 5s ease-in-out infinite;
}

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

@keyframes orbit-breathe {
  0%, 100% { scale: 1;    }
  50%      { scale: 1.06; }
}

.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.thread {
  stroke: #1a0e26;
  stroke-width: 0.8;
  stroke-linecap: round;
  opacity: 0.22;
  animation: thread-pulse 3.6s ease-in-out infinite;
}

@keyframes thread-pulse {
  0%, 100% { opacity: 0.14; }
  50%      { opacity: 0.32; }
}

.arm {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  /* rotate the arm to its angle, then translate outward to the orbit radius */
  transform: rotate(var(--angle)) translateY(calc(min(220px, 44vw) * -1));
}

.planet {
  position: absolute;
  top: -28px;
  left: -28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 220, 140, 0.55));
}

.planet svg {
  display: block;
  width: 44px;
  height: 44px;
  transform-origin: center center;
}

/* per-icon micro-motions */
.arm[style*="0deg"]   .planet svg { animation: ig-pulse    2.6s ease-in-out infinite; }
.arm[style*="90deg"]  .planet svg { animation: tt-wiggle   2.2s ease-in-out infinite; }
.arm[style*="180deg"] .planet svg { animation: li-bounce   2.8s ease-in-out infinite; }
.arm[style*="270deg"] .planet svg { animation: g-spin      6s   linear      infinite; }

@keyframes ig-pulse {
  0%, 100% { transform: scale(1)    rotate(0deg);  filter: hue-rotate(0deg); }
  50%      { transform: scale(1.18) rotate(-4deg); filter: hue-rotate(15deg); }
}

@keyframes tt-wiggle {
  0%, 100% { transform: translateY(0)   rotate(0deg)  scale(1);   }
  25%      { transform: translateY(-4px) rotate(-6deg) scale(1.05); }
  50%      { transform: translateY(0)    rotate(0deg)  scale(1);    }
  75%      { transform: translateY(-3px) rotate(6deg)  scale(1.05); }
}

@keyframes li-bounce {
  0%, 100% { transform: translateY(0)   scale(1);    }
  40%      { transform: translateY(-7px) scale(1.1);  }
  60%      { transform: translateY(-5px) scale(1.08); }
}

@keyframes g-spin {
  from { transform: rotate(0deg)   scale(1);    }
  50%  { transform: rotate(180deg) scale(1.12); }
  to   { transform: rotate(360deg) scale(1);    }
}

/* ---------- STATUS + COPY ---------- */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--white);
  color: var(--rose);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 22px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  animation: dot-pulse 1.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.headline {
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 5.4vw, 42px);
  line-height: 1.12;
  margin: 28px auto 36px;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 620px;
  padding: 18px 28px;
  z-index: 1;
}
.headline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(42, 26, 61, 0.10) 0%, rgba(42, 26, 61, 0) 75%);
  border-radius: 28px;
  z-index: -1;
}
.headline em {
  font-style: italic;
  background: linear-gradient(90deg, #E94E77 0%, #C26AB5 50%, #7E3FF2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.sub {
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ---------- OFFER ---------- */

.offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  margin: 0 auto 36px;
  background: linear-gradient(135deg, var(--sun) 0%, var(--coral) 60%, var(--rose) 100%);
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  animation: offer-glow 2.4s ease-in-out infinite;
}
.offer-pct {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.offer-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
@keyframes offer-glow {
  0%, 100% { filter: brightness(1)    saturate(1);    transform: scale(1);    }
  50%      { filter: brightness(1.08) saturate(1.15); transform: scale(1.025); }
}

/* ---------- FORM ---------- */

.waitlist {
  display: flex;
  gap: 4px;
  max-width: 360px;
  margin: 0 auto;
  background: var(--white);
  padding: 4px;
  border-radius: 999px;
}

.waitlist input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}
.waitlist input::placeholder { color: #B89BB0; }

.waitlist button {
  border: 0;
  background: linear-gradient(135deg, var(--rose) 0%, var(--plum) 100%);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform .15s ease, filter .15s ease;
  white-space: nowrap;
}
.waitlist button:hover { filter: brightness(1.08); }
.waitlist button:active { transform: scale(0.98); }
.waitlist button:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.waitlist button:hover .btn-arrow { transform: translateX(3px); }

.form-message {
  min-height: 24px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.form-message.success { color: #2A8A4D; }
.form-message.error   { color: #C8385A; }

/* ---------- FOOTER ---------- */

.foot {
  margin-top: 70px;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--rose); }
.dot { opacity: 0.5; }

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

/* ---------- MOBILE ---------- */

@media (max-width: 520px) {
  .waitlist { flex-direction: column; border-radius: 24px; }
  .waitlist input[type="email"] { padding: 14px 16px; text-align: center; }
  .waitlist button { width: 100%; justify-content: center; padding: 16px; }
  .planet { width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 14px; }
  .planet svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}
