/* ============================================================
   Levely landing page — styles
   Single-screen email capture. All values are final (hifi).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  /* no fixed height: the page is sized by .stage (min one viewport tall).
     If content fits, there's nothing to scroll; if the window is too short,
     the document grows and scrolls naturally. */
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #b8b2cf;
  background: #090619;
  -webkit-font-smoothing: antialiased;
}

a { color: #8df2bd; }
a:hover { color: #b6f8d3; }

/* ---------- stage + background layers ---------- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(135% 108% at 50% 2%, #2a1e52 0%, #1c1440 34%, #120c2d 64%, #090619 100%);
}

.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
}
.starfield-1 {
  background-size: 340px 340px;
  background-image:
    radial-gradient(1px 1px at 24px 32px, rgba(255,250,235,.9), transparent),
    radial-gradient(1px 1px at 90px 120px, rgba(220,220,255,.8), transparent),
    radial-gradient(1.6px 1.6px at 160px 60px, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 210px 178px, rgba(200,190,255,.7), transparent),
    radial-gradient(1px 1px at 262px 40px, rgba(255,245,220,.6), transparent),
    radial-gradient(1.4px 1.4px at 300px 220px, rgba(235,230,255,.8), transparent),
    radial-gradient(1px 1px at 120px 262px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 40px 205px, rgba(210,200,255,.5), transparent);
}
.starfield-2 {
  opacity: .7;
  background-size: 420px 420px;
  background-image:
    radial-gradient(2px 2px at 60px 90px, rgba(180,255,220,.5), transparent),
    radial-gradient(1.6px 1.6px at 330px 160px, rgba(255,250,235,.7), transparent),
    radial-gradient(2.2px 2.2px at 200px 300px, rgba(200,180,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 380px 380px, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 100px 360px, rgba(245,215,140,.4), transparent);
}

.bloom {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.bloom-green {
  left: 22%; top: 52%; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(51,221,133,.20), rgba(51,221,133,.05) 55%, transparent 72%);
}
.bloom-violet {
  left: 70%; top: 24%; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(150,116,236,.18), transparent 70%);
}

.vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 260px 60px rgba(6,4,18,.7);
}

/* ---------- content layout ---------- */
.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 64px);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-spark {
  font-size: 16px;
  color: #f2cf83;
  text-shadow: 0 0 12px rgba(242,207,131,.7);
}
.brand-word {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #fbe6bd, #e0b466);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(242,207,131,.35);
}
.badge {
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 10px;
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid rgba(242,207,131,.4);
  color: #f2cf83;
  background: rgba(242,207,131,.06);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 520px);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vh, 40px) 0;
}

/* ---------- left column: potion ---------- */
.potion-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  justify-self: center;
}
.eyebrow-training {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c7b8ef;
}
.eyebrow-training .diamond { color: #5ff0a3; }

.potion-stage {
  position: relative;
  width: clamp(150px, 42vw, 178px);
}

.ring {
  position: absolute;
  left: 50%; top: 50%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.ring svg { display: block; }
.ring-outer { width: 186%; }
.ring-inner { width: 150%; }

.aura {
  position: absolute;
  left: 50%; top: 54%;
  width: 150%; height: 78%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(51,221,133,.5), rgba(51,221,133,.12) 56%, transparent 74%);
  animation: lv-aura 5.5s ease-in-out infinite;
  will-change: opacity;
}

.mote {
  position: absolute;
  font-family: "Cinzel", serif;
  font-weight: 600;
}
.mote-xp1 { left: -20px; top: 60%; font-size: 12px; color: #8df2bd; text-shadow: 0 0 10px rgba(51,221,133,.9); animation: lv-mote 4.6s ease-in-out infinite; }
.mote-star1 { left: -8px; top: 34%; font-size: 13px; color: #f2cf83; text-shadow: 0 0 10px rgba(242,207,131,.9); animation: lv-twinkle 3.4s ease-in-out .4s infinite; }
.mote-star2 { right: -4px; top: 66%; font-size: 11px; color: #7ef2b6; text-shadow: 0 0 10px rgba(95,240,163,.9); animation: lv-twinkle 4s ease-in-out 1.2s infinite; }

.glass {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 178 / 452;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid rgba(232,224,255,.42);
  background: linear-gradient(180deg, rgba(150,116,236,.4) 0%, rgba(90,80,150,.24) 30%, rgba(28,26,58,.5) 58%, rgba(18,18,44,.62) 100%);
  box-shadow:
    0 0 54px rgba(51,221,133,.34),
    0 0 120px rgba(51,221,133,.16),
    inset 0 2px 18px rgba(255,255,255,.16),
    inset 0 -28px 56px rgba(0,0,0,.4);
}
.glass-highlight {
  position: absolute;
  top: 6%; left: 20%;
  width: 12%; height: 74%;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.05) 60%, transparent);
  filter: blur(1px);
}

.liquid {
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: calc(var(--level, 60%) + 8px);
  background: linear-gradient(180deg, #37e089 0%, #28c674 58%, #1e9d5e 100%);
  box-shadow: 0 -6px 30px rgba(51,221,133,.5);
  overflow: visible;
}
.wave {
  position: absolute;
  top: -28px; left: 0;
  width: 200%; height: 32px;
  animation: lv-wobble 7s ease-in-out infinite alternate;
}
.wave svg { display: block; }

.bubble {
  position: absolute;
  bottom: 8%;
  border-radius: 50%;
}
.bubble-1 { left: 28%; width: 16px; height: 16px; background: rgba(20,44,32,.45); animation: lv-rise 6.5s ease-in .2s infinite; }
.bubble-3 { left: 44%; width: 7px; height: 7px; background: rgba(190,255,220,.55); box-shadow: 0 0 6px rgba(95,240,163,.8); animation: lv-rise 4.4s ease-in .9s infinite; }
.bubble-4 { left: 70%; width: 6px; height: 6px; background: rgba(245,217,139,.6); box-shadow: 0 0 6px rgba(242,207,131,.8); animation: lv-rise 5.8s ease-in 2.3s infinite; }

.ground {
  position: absolute;
  left: 50%; bottom: -26px;
  width: 70%; height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(51,221,133,.4), transparent 72%);
  filter: blur(3px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 280px;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(242,207,131,.05);
  border: 1px solid rgba(242,207,131,.18);
  font-size: 12px;
  color: #e6e0f5;
}
.chip-dot { color: #5ff0a3; font-size: 9px; }
.chip-lv {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #f2cf83;
  font-variant-numeric: tabular-nums;
}

/* ---------- right column: pitch + capture ---------- */
.pitch-col { min-width: 0; max-width: 520px; }

.eyebrow {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f2cf83;
  margin-bottom: 18px;
}
.headline {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: #f6f1ff;
  text-shadow: 0 0 40px rgba(150,116,236,.35);
}
.headline em { font-style: italic; font-weight: 600; color: #ffe9b8; }

.hook {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  font-weight: 500;
  color: #a8e9c6;
  margin: 0 0 16px;
}
.pitch {
  font-size: 15px;
  line-height: 1.64;
  color: #b8b2cf;
  max-width: 47ch;
  margin: 0 0 30px;
}
.pitch em { font-style: italic; color: #8df2bd; }

/* ---------- capture ---------- */
.capture { max-width: 460px; }
#signup-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
#email {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  color: #eef1fb;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(242,207,131,.25);
  border-radius: 12px;
  outline: none;
  caret-color: #5ff0a3;
}
#email::placeholder { color: #8a84a2; }
#email:focus {
  border-color: #5ff0a3;
  box-shadow: 0 0 0 3px rgba(51,221,133,.18);
}
#submit-btn {
  flex: none;
  min-height: 52px;
  padding: 0 22px;
  white-space: nowrap;
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: #08221a;
  background: linear-gradient(150deg, #5ff0a3, #22c072);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(51,221,133,.35);
  transition: filter .15s ease, box-shadow .15s ease;
}
#submit-btn:hover {
  filter: brightness(1.07);
  box-shadow: 0 8px 30px rgba(51,221,133,.55);
}
#submit-btn:active { filter: brightness(.97); }
#submit-btn:focus-visible { outline: 2px solid #5ff0a3; outline-offset: 2px; }
#submit-btn:disabled { opacity: .7; cursor: default; }

.error {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #ffb4a8;
}
.microcopy {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8a84a2;
}
.micro-lead { color: #c7c1dd; }
.micro-gold { color: #f2cf83; }

.success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(51,221,133,.08);
  border: 1px solid rgba(51,221,133,.35);
  box-shadow: 0 0 44px rgba(51,221,133,.16);
  animation: lv-fadein .5s ease both;
}
.success-check {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #5ff0a3, #22c072);
  color: #08221a;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(51,221,133,.6);
}
.success-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 20px;
  color: #eafff3;
  margin-bottom: 2px;
}
.success-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #9fd8b9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 34px;
  font-size: 13px;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
#x-link { color: #9d97b8; }
#x-link:hover { color: #e6e0f5; text-decoration: none; }
.footer-links .sep { color: #565073; }

/* ---------- responsive: stack below 820px ---------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: clamp(32px, 8vw, 56px);
    justify-items: center;
    text-align: center;
  }
  .pitch-col { text-align: center; }
  .pitch { margin-left: auto; margin-right: auto; }
  .capture { margin: 0 auto; }
  .footer-links { justify-content: center; }
  .headline { font-size: clamp(38px, 11vw, 60px); }
}

/* ---------- keyframes ---------- */
@keyframes lv-aura { 0%,100% { opacity: 0.45; } 50% { opacity: 0.85; } }
@keyframes lv-wobble { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lv-rise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  12%  { opacity: 0.7; }
  80%  { opacity: 0.5; }
  100% { transform: translateY(-300px) scale(1); opacity: 0; }
}
@keyframes lv-mote {
  0%   { transform: translateY(8px) scale(0.4); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(-84px) scale(1); opacity: 0; }
}
@keyframes lv-twinkle { 0%,100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1); } }
@keyframes lv-fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* pause all ambient motion whenever the window/tab isn't focused, so the
   GPU compositor can idle and other apps (IDE scrolling, etc.) stay smooth */
.anim-paused *,
.anim-paused *::before,
.anim-paused *::after {
  animation-play-state: paused !important;
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
