/* Moonlift v4 — creative layer on top of style.css (home page).
   Brand: navy + gold. Only ONE moon on the page design: the one in the wordmark.
   No decorative gold dots or orbs anywhere else. */

.home4 { --gold-2: #F2C46B; --night: #0E1830; --night-2: #1A2A50; }

/* Headlines: Google Sans, bold (Fraunces only in the logo) */
.home4 h1, .home4 h2, .home4 .h3-lg {
  font-family: var(--font-sans);
  font-weight: 600; letter-spacing: -0.015em;
}

/* ---------- Header: glassy on scroll ---------- */
.home4 .site-header.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }

/* ---------- Buttons ---------- */
.btn-gold { background: var(--gold); color: var(--night); font-weight: 700; box-shadow: 0 6px 24px rgba(224,164,58,.35); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn { transition: transform .2s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease; }

/* ---------- Hero ---------- */
.hero4 { padding: 12px clamp(8px, 1.4vw, 20px) 0; }
.hero4-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; color: #E8ECF6;
  background:
    radial-gradient(120% 70% at 80% 120%, rgba(224,164,58,.28), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--navy) 55%, var(--night-2) 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
}
/* soft moonrise light along the bottom edge (a glow, not a second moon) */
.horizon {
  position: absolute; left: -10%; right: -10%; bottom: -1px; height: 140px; z-index: -1;
  background: radial-gradient(60% 100% at 50% 100%, rgba(242,196,107,.22), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; } }

.hero4-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 20px; }
.display { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.03; margin: 0; }
.rotator { display: inline-block; position: relative; color: var(--gold-2); white-space: nowrap; }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .09em; border-radius: 4px; background: var(--gold); transform-origin: left; animation: underline 3s ease-in-out infinite; }
@keyframes underline { 0%,100% { transform: scaleX(1); } 45% { transform: scaleX(.15); } }
.rot-word { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.rot-word.is-out { opacity: 0; transform: translateY(.35em); }
.hero4-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: #C5CDE0; max-width: 34em; margin: 24px 0 32px; }
.hero4 .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero4-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #AEB7CE; }
.hero4-proof li::before { content: "✓"; color: var(--gold-2); font-weight: 700; margin-right: 8px; }

/* ---------- Demo card ---------- */
.demo {
  background: #fff; color: var(--text); border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(-1.2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.demo:hover, .demo:focus-within { transform: rotate(0) translateY(-4px); }
.demo-top { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.demo-spark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: var(--gold-2); }
.demo-tag { margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--green-tint); border-radius: 999px; padding: 4px 10px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.chip { font: 500 .8rem/1 var(--font-sans); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.demo-body { background: var(--surface); border-radius: 16px; padding: 14px; min-height: 300px; }
.d-user { margin: 0 0 12px auto; max-width: 85%; width: fit-content; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: .92rem; }
.d-intro { margin: 0 0 10px; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.d-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.d-list li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
  opacity: 0; transform: translateY(8px); animation: rowIn .45s ease forwards;
  transition: transform .7s cubic-bezier(.2,.9,.25,1.1), box-shadow .4s ease, border-color .4s ease, background-color .4s ease;
}
@keyframes rowIn { to { opacity: 1; transform: none; } }
.d-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--ink); font-weight: 700; font-size: .85rem; }
.d-name { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.25; }
.d-why { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.d-rate { font-size: .8rem; color: var(--gold-text); font-weight: 700; white-space: nowrap; }
.d-list li.is-you { border: 1.5px dashed var(--gold); background: var(--gold-tint); }
.d-list li.is-you .d-rate { color: var(--gold-text); background: #fff; border-radius: 999px; padding: 3px 8px; font-weight: 700; }
.d-list li.is-lifted { border-style: solid; border-color: var(--gold); background: #fff; box-shadow: 0 10px 30px rgba(224,164,58,.35); }
.d-list li.is-lifted .d-n { background: var(--gold); color: var(--night); }
.demo-input { display: flex; align-items: center; gap: 8px; margin-top: 12px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.demo-input:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px var(--tint); }
.demo-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 .95rem var(--font-sans); color: var(--ink); padding: 8px 0; }
.demo-send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s ease; }
.demo-send:hover { transform: scale(1.06); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lift-btn { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.lift-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.demo-note { font-size: .75rem; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { background: var(--navy); } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: tick 28s linear infinite; }
.ticker-track span { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); color: #9AA3B8; white-space: nowrap; }
.ticker-track span:nth-child(3n+1) { color: var(--ink); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Section polish ---------- */
.home4 .eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: var(--gold-text); }
.home4 .offer-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.home4 .offer-card:hover { transform: translateY(-8px); box-shadow: var(--sh-3); }
.home4 .who-card img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.home4 .who-card:hover img { transform: scale(1.06); }

/* How it works: a gold "lift" line that fills as you scroll */
.home4 .steps { position: relative; counter-reset: s; }
.home4 .step { position: relative; transition: transform .35s ease, box-shadow .35s ease; }
.home4 .step:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.lift-line { height: 4px; border-radius: 4px; background: var(--line); margin: 0 0 28px; overflow: hidden; }
.lift-line span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 4px; transition: width .15s linear; }

/* Final CTA in night colours */
.home4 .final-cta { background: linear-gradient(180deg, var(--night), var(--navy)); color: #C5CDE0; border-radius: 32px; }
.home4 .final-cta h2 { color: #fff; }
.home4 .final-cta .lead { color: #C5CDE0; }
.home4 .final-cta .btn-primary { background: var(--gold); color: var(--night); }
.home4 .final-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.home4 .final-icons { display: none; }

/* ---------- Scroll reveal ---------- */
.js .rv { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.js .rv:not(.in) { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero4-grid { grid-template-columns: 1fr; }
  .demo { transform: none; }
}
@media (max-width: 520px) {
  .hero4-panel { border-radius: 22px; }
  .d-list li { grid-template-columns: 24px 1fr; }
  .d-rate { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
