/* ============================================================
   Her Number 😉 — hero screen
   "champagne bar at midnight" · dark · slow · alive
   ============================================================ */

:root {
  --bg:        #08070e;
  --ink:       #f6f1e7;
  --ink-dim:   #a89f94;
  --gold:      #e8b96a;
  --gold-soft: #f4d9a4;
  --pink:      #e88bb0;
  --purple:    #8b6cf0;
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease-out:  cubic-bezier(.22, .8, .32, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ background layers ============ */
#velvet, #bubbles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#velvet { filter: blur(70px) saturate(1.15); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.light-rays {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 78% -10%, rgba(232,185,106,.12), transparent 55%),
    radial-gradient(90% 60% at 18% 112%, rgba(139,108,240,.09), transparent 60%);
  animation: rays 9s ease-in-out infinite alternate;
}
@keyframes rays { from { opacity: .7; } to { opacity: 1; } }

/* ============ cursor glow ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 340px; height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(circle, rgba(232,185,106,.10), rgba(232,185,106,.03) 45%, transparent 70%);
  mix-blend-mode: screen;
  transition: opacity .4s ease, width .35s ease, height .35s ease, margin .35s ease;
  will-change: transform;
}
.cursor-glow.is-hot {
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  background: radial-gradient(circle, rgba(232,185,106,.16), rgba(232,185,106,.05) 50%, transparent 72%);
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ============ layout ============ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px clamp(22px, 5vw, 68px) 44px;
}

/* ============ top bar ============ */
.topbar {
  position: relative;
  z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  animation: rise 1s var(--ease-out) both;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--gold-soft); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.18rem; letter-spacing: .02em;
}
.wink-logo { animation: logo-blink 7s ease-in-out infinite; }
@keyframes logo-blink {
  0%, 86%, 100% { transform: scaleY(1); }
  88% { transform: scaleY(.12); }
  91% { transform: scaleY(1); }
}
.topnav { display: flex; gap: 30px; }
.nav-link {
  color: var(--ink-dim); text-decoration: none;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600;
  transition: color .25s ease;
}
.nav-link:hover { color: var(--gold-soft); }

/* ============ hero copy ============ */
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 600px;
  margin-top: auto;
  margin-bottom: auto;
  padding: 48px 0;
}

.eyebrow {
  color: var(--gold);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  margin-bottom: 24px;
}
.headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  line-height: 1.01;
  letter-spacing: -0.025em;
}
.headline .line { display: block; }
.headline .gold {
  color: var(--gold-soft);
  text-shadow: 0 0 46px rgba(232,185,106,.35), 0 2px 0 rgba(0,0,0,.2);
}
.sub {
  margin-top: 28px;
  color: var(--ink-dim);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.68;
  max-width: 480px;
}
.cta-row { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.cta {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 18px 36px;
  border: none; border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 60%, #d99a4e);
  color: #1c1206;
  font-family: var(--font-head); font-weight: 800; font-size: 1.06rem; letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 0 44px rgba(232,185,106,.38), 0 10px 32px rgba(0,0,0,.5);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
  animation: cta-breathe 3.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 34px rgba(232,185,106,.34), 0 10px 32px rgba(0,0,0,.5); }
  50%      { box-shadow: 0 0 60px rgba(232,185,106,.58), 0 10px 34px rgba(0,0,0,.5); }
}
.cta:hover { transform: translateY(-2px) scale(1.02); }
.cta-wink { transition: transform .4s var(--ease-out); }
.cta:hover .cta-wink { transform: rotate(-8deg) scale(1.14); }
.cta.winked .cta-wink { animation: cta-wink-pop .7s var(--ease-out); }
@keyframes cta-wink-pop {
  0% { transform: scale(1); } 40% { transform: scale(.25); } 70% { transform: scale(1.25); } 100% { transform: scale(1); }
}
.cta-note { color: var(--ink-dim); font-size: .9rem; line-height: 1.6; }

/* ============ entrance ============ */
.reveal { opacity: 0; transform: translateY(28px); animation: rise .95s var(--ease-out) forwards; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .27s; } .d3 { animation-delay: .42s; }
.d4 { animation-delay: .57s; } .d5 { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============ scene (Concept A: the bedroom) ============ */
.scene {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(44%, 520px);
  height: 88%;
  z-index: 2;
  pointer-events: none;
}
.bedroom {
  position: absolute;
  inset: 0;
  animation: rise 1.4s var(--ease-out) .35s both;
}

/* warm room light so the scene reads against black */
.bedroom::before {
  content: "";
  position: absolute;
  inset: -10% -8% -4% -8%;
  background:
    radial-gradient(58% 44% at 72% 42%, rgba(232,185,106,.16), transparent 65%),
    radial-gradient(40% 34% at 30% 70%, rgba(120,100,200,.14), transparent 70%);
  filter: blur(10px);
}

.moon-glow {
  position: absolute; top: -4%; right: 2%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,217,164,.20), rgba(244,217,164,.06) 45%, transparent 70%);
  animation: moon-pulse 8s ease-in-out infinite alternate;
}
@keyframes moon-pulse { from { opacity: .65; transform: scale(1); } to { opacity: 1; transform: scale(1.07); } }

/* --- bed --- */
.bed { position: absolute; left: 5%; right: 9%; bottom: 7%; height: 176px; }
.bed-frame {
  position: absolute; inset: 0;
  border-radius: 26px 26px 14px 14px;
  background: linear-gradient(180deg, #2b2438, #17131f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 50px rgba(0,0,0,.55);
}
.mattress {
  position: absolute; left: 4%; right: 4%; top: 12%; height: 62%;
  border-radius: 18px;
  background: linear-gradient(180deg, #312a46, #201a30);
}
.pillow {
  position: absolute; left: 9%; top: 3%; width: 34%; height: 30%;
  border-radius: 16px;
  background: linear-gradient(180deg, #3b3458, #2b2544);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.4);
}
.sleeper { position: absolute; left: 0; right: 0; bottom: 7%; height: 58%; transform-origin: bottom center; animation: breathe 6.5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.018); } }
.sleeper-body {
  position: absolute; left: 9%; right: 9%; bottom: 0; height: 64%;
  border-radius: 48% 48% 16px 16px;
  background: linear-gradient(180deg, #55497c, #3a3158);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}
.sleeper-head {
  position: absolute; left: 16%; bottom: 36%; width: 20%; height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #6b5d97, #4a4066);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 18px rgba(0,0,0,.35);
}
.blanket {
  position: absolute; left: 6%; right: 6%; bottom: 8%; height: 60%;
  border-radius: 42px 42px 12px 12px;
  background: linear-gradient(180deg, #4a3f6c, #33294c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

/* --- nightstand --- */
.nightstand { position: absolute; right: 6%; bottom: 8%; width: 130px; height: 96px; }
.stand-top {
  position: absolute; inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2e2744, #1d1828);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 30px rgba(0,0,0,.5);
}
.stand-leg {
  position: absolute; left: 16%; right: 16%; bottom: -18px; height: 18px;
  border-radius: 0 0 8px 8px; background: #17131f;
}
.coaster {
  position: absolute; right: 18px; top: -16px; width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #362e50, #241e36);
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}

/* --- phone --- */
.phone {
  position: absolute; right: 13%; bottom: 33%; width: 208px;
  animation: phone-float 7s ease-in-out infinite;
  pointer-events: auto; will-change: transform;
}
@keyframes phone-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.phone-glow {
  position: absolute; inset: -52px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,106,.38), rgba(232,185,106,.13) 45%, transparent 70%);
  animation: glow-pulse 4.5s ease-in-out infinite; filter: blur(6px);
}
@keyframes glow-pulse { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

.phone-body {
  position: relative; width: 208px; height: 416px;
  border-radius: 36px;
  background: linear-gradient(180deg, #14141f, #0c0c14);
  border: 1px solid rgba(244,217,164,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.65), inset 0 0 0 6px #08080d;
  overflow: hidden; display: flex; flex-direction: column;
}
.statusbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 4px;
  font-size: .68rem; letter-spacing: .04em; color: #cfc8d8;
}
.sb-dot { width: 7px; height: 7px; border-radius: 50%; background: #2c2444; }
.sb-bars { font-size: .6rem; color: #cfc8d8; }

.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: 16px 14px 20px; overflow: hidden;
}
.msg { display: flex; opacity: 0; }
.msg-them { justify-content: flex-start; }
.msg-her  { justify-content: flex-end; }
.msg-typing { justify-content: flex-start; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .82rem; line-height: 1.4; }
.msg-them .bubble { background: #211d31; color: #ded7ea; border-bottom-left-radius: 4px; }
.msg-her .bubble { background: linear-gradient(120deg, #46396a, #332a50); color: var(--gold-soft); border-bottom-right-radius: 4px; }
.msg-typing .bubble { background: #211d31; padding: 12px 16px; }
.typing-dots { display: inline-flex; gap: 5px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9a90b8; animation: dot 1.1s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .30s; }
@keyframes dot { 0%,60%,100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }

.msg-them   { animation: chat-in 5.5s ease 0.0s infinite; }
.msg-typing { animation: chat-in 5.5s ease 1.9s infinite; }
.msg-her    { animation: chat-in 5.5s ease 3.1s infinite; }
@keyframes chat-in {
  0% { opacity: 0; transform: translateY(10px); }
  8% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; }
  88%, 100% { opacity: 0; transform: translateY(-6px); }
}

.phone-caption {
  position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); width: max-content;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim);
  animation: caption-flicker 5s ease-in-out infinite;
}
@keyframes caption-flicker { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* --- wink mascot --- */
.wink-mascot {
  position: absolute; right: -2%; top: 10%;
  filter: drop-shadow(0 10px 26px rgba(232,185,106,.32));
  animation: mascot-float 5.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes mascot-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
.m-wink-eye, .m-lash { opacity: 0; }
.wink-mascot.winking .m-wink-eye, .wink-mascot.winking .m-lash { opacity: 1; }
.wink-mascot.winking .m-open-eye { opacity: 0; }
.wink-mascot.winking { animation: mascot-squash .9s var(--ease-out); }
@keyframes mascot-squash {
  0% { transform: translateY(0) scale(1,1); }
  35% { transform: translateY(2px) scale(1.12,.82); }
  70% { transform: translateY(-2px) scale(.96,1.05); }
  100% { transform: translateY(0) scale(1,1); }
}

/* ============ scroll hint ============ */
.scroll-hint {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-dim); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  animation: hint-pulse 3.4s ease-in-out infinite;
  transition: opacity .4s ease;
}
@keyframes hint-pulse { 0%,100% { opacity: .42; } 50% { opacity: .9; } }
.chevron { width: 14px; height: 14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); animation: chevron-drop 2.2s ease-in-out infinite; }
@keyframes chevron-drop { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .5; } 50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; } }

/* ============ sections (shared) ============ */
.section {
  position: relative;
  z-index: 1;
  padding: 140px clamp(22px, 5vw, 68px);
}
.container { max-width: 1180px; margin: 0 auto; }
.section .eyebrow { margin-bottom: 30px; }

/* scroll reveal */
.sr {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.sr.in { opacity: 1; transform: none; }

/* --- the promise --- */
.promise-head {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.promise-head .dim { color: var(--ink-dim); }
.promise-sub {
  margin-top: 30px;
  max-width: 560px;
  color: var(--ink-dim);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}
.flip { margin-top: 64px; }
.flip-line {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
  text-shadow: 0 0 46px rgba(232,185,106,.35);
}
.flip-sub {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 1.02rem;
  letter-spacing: .02em;
}

/* --- how it works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
}
.step { border-top: 1px solid rgba(244,217,164,.22); padding-top: 24px; }
.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .14em;
  color: var(--gold);
}
.step-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.step-desc {
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: .95rem;
  line-height: 1.65;
}

/* ============ responsive ============ */
@media (max-width: 1150px) {
  .scene {
    position: relative;
    right: auto; bottom: auto;
    width: 100%;
    height: 440px;
    margin-top: 34px;
  }
  .headline { font-size: clamp(2.5rem, 7.4vw, 4rem); }
  .bed { right: 9%; }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .hero-copy { max-width: 100%; text-align: center; margin: 0 auto; padding: 40px 0 0; }
  .sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .scene { height: 380px; }
  .phone { right: 14%; }
  .wink-mascot { right: 6%; top: 0; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 560px) {
  .scene { height: 320px; }
  .phone { right: 5%; bottom: 40%; transform: scale(.8); }
  .wink-mascot { right: 4%; top: -2%; transform: scale(.8); }
  .cursor-glow { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 96px 22px; }
}

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