:root {
  --bubblegum: #FF6B9D;
  --bubblegum-deep: #e5568a;
  --bubblegum-dark: #cc4d7a;
  --violet: #7C4DFF;
  --sunshine: #FFD93D;
  --coral: #FF8A65;
  --mint: #A7F3D0;
  --sky: #93C5FD;
  --cloud: #FFF5F8;
  --marshmallow: #FFFFFF;
  --plum: #4A3F6B;
  --lavender: #9B8EC4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--plum);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 217, 61, 0.38) 0 8%, transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(147, 197, 253, 0.42) 0 10%, transparent 30%),
    linear-gradient(135deg, #FFF5F8 0%, #FFEAF2 35%, #EEF5FF 72%, #FFF5F8 100%);
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
}

.page-shell {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 7vh 24px 8vh;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(255, 245, 248, 0.92), rgba(255, 223, 234, 0.72), rgba(229, 238, 255, 0.88));
  background-size: 240% 240%;
  animation: candySky 20s ease-in-out infinite;
}

.toy-halo {
  position: absolute;
  width: min(64vh, 640px);
  height: min(64vh, 640px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 22%, rgba(255, 107, 157, 0.18) 43%, rgba(124, 77, 255, 0.12) 61%, transparent 72%);
  filter: blur(1px);
  box-shadow: inset 0 12px 44px rgba(255, 255, 255, 0.82), 0 36px 90px rgba(255, 107, 157, 0.20);
}

.lovebot-wrap {
  position: relative;
  z-index: 3;
  width: min(40vh, 330px);
  height: min(40vh, 330px);
  min-width: 238px;
  min-height: 238px;
  animation: botDrop 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms both, botFloat 4.2s ease-in-out 1.3s infinite;
  cursor: pointer;
}

.lovebot {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 26px 36px rgba(74, 63, 107, 0.15));
}

.bot-head,
.bot-body,
.bot-arm,
.bot-foot,
.say-hi,
.story-card {
  box-shadow:
    0 2px 4px rgba(255, 107, 157, 0.15),
    0 8px 16px rgba(124, 77, 255, 0.10),
    0 20px 40px rgba(255, 107, 157, 0.08),
    inset 0 -3px 6px rgba(0, 0, 0, 0.04),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.bot-head {
  position: absolute;
  left: 14%;
  top: 18%;
  width: 72%;
  height: 43%;
  border-radius: 33% 33% 30% 30%;
  background: linear-gradient(145deg, #FF85AF 0%, #FF6B9D 58%, #f45c91 100%);
  border: 4px solid rgba(255, 255, 255, 0.56);
}

.bot-head::before,
.bot-body::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 11%;
  width: 34%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(4px);
  transform: rotate(-18deg);
}

.bot-eye {
  position: absolute;
  top: 33%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0 18%, #b99cff 28%, #7C4DFF 52%, #2e1c64 72%);
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.68), 0 5px 12px rgba(74, 63, 107, 0.22);
}

.bot-eye span {
  position: absolute;
  left: 49%;
  top: 48%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: #151225;
  box-shadow: -5px -6px 0 -3px #FFFFFF;
}

.eye-left { left: 21%; }
.eye-right { right: 21%; }

.bot-smile {
  position: absolute;
  left: 39%;
  top: 66%;
  width: 22%;
  height: 10%;
  border-bottom: 4px solid rgba(74, 63, 107, 0.82);
  border-radius: 0 0 50px 50px;
}

.cheek {
  position: absolute;
  top: 62%;
  width: 11%;
  height: 7%;
  border-radius: 50%;
  background: rgba(255, 217, 61, 0.58);
  filter: blur(0.5px);
}

.cheek-left { left: 17%; }
.cheek-right { right: 17%; }

.antenna-stem {
  position: absolute;
  z-index: 1;
  left: 49%;
  top: 7%;
  width: 3.5%;
  height: 16%;
  border-radius: 40px;
  background: linear-gradient(#FFFFFF, #FF6B9D);
  box-shadow: 0 0 12px rgba(255, 217, 61, 0.45);
}

.heart-antenna {
  position: absolute;
  z-index: 4;
  left: 45.5%;
  top: 1%;
  width: 10%;
  height: 10%;
  background: #FF6B9D;
  transform: rotate(45deg);
  border-radius: 16% 16% 22% 16%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.42), 0 0 26px #FFD93D, inset 3px 3px 6px rgba(255, 255, 255, 0.48);
}

.heart-antenna::before,
.heart-antenna::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FF6B9D;
}

.heart-antenna::before { left: -48%; top: 0; }
.heart-antenna::after { left: 0; top: -48%; }

.bot-body {
  position: absolute;
  left: 22%;
  top: 57%;
  width: 56%;
  height: 28%;
  border-radius: 31% 31% 36% 36%;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF5F8 100%);
  border: 4px solid rgba(255, 107, 157, 0.32);
}

.screen-heart,
.heart-icon span,
.particle-heart {
  position: absolute;
  background: #FF6B9D;
  transform: rotate(45deg);
}

.screen-heart {
  left: 26%;
  top: 33%;
  width: 18%;
  height: 18%;
  box-shadow: 0 0 14px rgba(255, 138, 101, 0.55);
}

.screen-heart::before,
.screen-heart::after,
.heart-icon span::before,
.heart-icon span::after,
.particle-heart::before,
.particle-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.screen-heart::before,
.heart-icon span::before,
.particle-heart::before { left: -50%; top: 0; }
.screen-heart::after,
.heart-icon span::after,
.particle-heart::after { left: 0; top: -50%; }

.bot-button {
  position: absolute;
  top: 37%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #FFFFFF, #FFD93D 46%, #FF8A65 100%);
}

.button-a { right: 33%; }
.button-b { right: 18%; background: radial-gradient(circle at 35% 25%, #FFFFFF, #A7F3D0 46%, #93C5FD 100%); }

.bot-arm {
  position: absolute;
  top: 61%;
  width: 15%;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(145deg, #FF84AE, #FF6B9D);
}

.arm-left { left: 8%; transform: rotate(22deg); }
.arm-right { right: 8%; transform: rotate(-22deg); }

.bot-foot {
  position: absolute;
  bottom: 7%;
  width: 20%;
  height: 10%;
  border-radius: 999px;
  background: linear-gradient(145deg, #7C4DFF, #93C5FD);
}

.foot-left { left: 27%; }
.foot-right { right: 27%; }

.hero-title {
  position: relative;
  z-index: 4;
  margin: 20px 0 0;
  color: var(--bubblegum);
  font-family: "Nunito", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-shadow: 0 2px 0 #e5568a, 0 4px 0 #cc4d7a, 0 6px 8px rgba(255, 107, 157, 0.3);
  opacity: 0;
  animation: fadePop 400ms ease 800ms forwards;
}

.hero-subtitle {
  position: relative;
  z-index: 4;
  margin: 18px 0 0;
  color: var(--lavender);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadePop 500ms ease 1.1s forwards;
}

.story {
  position: relative;
  min-height: 200vh;
  padding: 10vh 24px 22vh;
  background:
    radial-gradient(circle at 6% 28%, rgba(167, 243, 208, 0.34) 0 9%, transparent 24%),
    radial-gradient(circle at 91% 62%, rgba(255, 217, 61, 0.26) 0 10%, transparent 27%),
    linear-gradient(180deg, rgba(255, 245, 248, 0.4), rgba(255, 245, 248, 0.96));
}

.story-intro {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.story-kicker,
.card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--violet);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.85), 0 10px 24px rgba(124, 77, 255, 0.10);
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.story-intro h2 {
  margin: 24px auto 0;
  color: var(--violet);
  font-family: "Nunito", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-shadow: 0 2px 0 rgba(147, 197, 253, 0.75), 0 10px 28px rgba(124, 77, 255, 0.16);
}

.bubble-islands {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 38px);
}

.story-card {
  position: relative;
  width: min(100%, 420px);
  min-height: 460px;
  padding: 36px 32px 34px;
  border: 3px solid rgba(255, 255, 255, 0.68);
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 245, 248, 0.93) 100%);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-120%) scale(0.6);
}

.story-card.is-visible {
  animation: cardBounce 850ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards, cardBob 4.4s ease-in-out 1s infinite;
}

.card-one.is-visible { animation-delay: 0ms, 1s; }
.card-two.is-visible { animation-delay: 120ms, 1.12s; }
.card-three.is-visible { animation-delay: 240ms, 1.24s; }

.card-one { margin-top: 36px; }
.card-two { margin-top: -12px; }
.card-three { margin-top: 28px; }

.card-icon {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
  border-radius: 30px;
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF5F8 100%);
  box-shadow: inset 0 3px 7px rgba(255, 255, 255, 0.9), inset 0 -4px 8px rgba(74, 63, 107, 0.05), 0 14px 28px rgba(255, 107, 157, 0.16);
}

.heart-icon span {
  left: 31px;
  top: 33px;
  width: 22px;
  height: 22px;
}

.gear-icon::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 21px;
  width: 42px;
  height: 42px;
  border-radius: 34%;
  background: #7C4DFF;
  box-shadow: 0 -13px 0 -7px #7C4DFF, 0 13px 0 -7px #7C4DFF, 13px 0 0 -7px #7C4DFF, -13px 0 0 -7px #7C4DFF, 9px 9px 0 -8px #7C4DFF, -9px -9px 0 -8px #7C4DFF, 9px -9px 0 -8px #7C4DFF, -9px 9px 0 -8px #7C4DFF;
}

.gear-icon span {
  position: absolute;
  z-index: 2;
  left: 34px;
  top: 34px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: inset 0 2px 4px rgba(74, 63, 107, 0.12);
}

.person-icon::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #FFFFFF, #FFD93D 52%, #FF8A65 100%);
  box-shadow: 0 8px 16px rgba(255, 138, 101, 0.22);
}

.person-icon span {
  position: absolute;
  left: 20px;
  top: 46px;
  width: 44px;
  height: 24px;
  border-radius: 44px 44px 18px 18px;
  background: linear-gradient(145deg, #A7F3D0, #93C5FD);
}

.story-card h3 {
  margin: 18px 0 16px;
  color: var(--bubblegum);
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.story-card p {
  margin: 0;
  color: var(--plum);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

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

.bubble {
  position: absolute;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(167, 243, 208, 0.26) 48%, rgba(147, 197, 253, 0.15) 72%, transparent 100%);
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(147, 197, 253, 0.16);
  animation-name: bubbleRise;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.bubble-one { left: 4%; width: 24px; height: 24px; animation-duration: 12s; animation-delay: -2s; }
.bubble-two { left: 11%; width: 52px; height: 52px; animation-duration: 16s; animation-delay: -8s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,107,157,.22) 50%, transparent 100%); }
.bubble-three { left: 18%; width: 14px; height: 14px; animation-duration: 9s; animation-delay: -4s; }
.bubble-four { left: 26%; width: 38px; height: 38px; animation-duration: 18s; animation-delay: -12s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,217,61,.25) 50%, transparent 100%); }
.bubble-five { left: 34%; width: 60px; height: 60px; animation-duration: 15s; animation-delay: -6s; }
.bubble-six { left: 41%; width: 18px; height: 18px; animation-duration: 8s; animation-delay: -3s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(147,197,253,.24) 50%, transparent 100%); }
.bubble-seven { left: 49%; width: 44px; height: 44px; animation-duration: 14s; animation-delay: -10s; }
.bubble-eight { left: 56%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: -5s; }
.bubble-nine { left: 63%; width: 32px; height: 32px; animation-duration: 17s; animation-delay: -13s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,107,157,.20) 50%, transparent 100%); }
.bubble-ten { left: 71%; width: 56px; height: 56px; animation-duration: 13s; animation-delay: -7s; }
.bubble-eleven { left: 79%; width: 22px; height: 22px; animation-duration: 9s; animation-delay: -1s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,217,61,.25) 50%, transparent 100%); }
.bubble-twelve { left: 88%; width: 42px; height: 42px; animation-duration: 18s; animation-delay: -11s; }
.bubble-thirteen { left: 94%; width: 16px; height: 16px; animation-duration: 11s; animation-delay: -2s; }
.bubble-fourteen { left: 7%; width: 36px; height: 36px; animation-duration: 15s; animation-delay: -14s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(147,197,253,.23) 50%, transparent 100%); }
.bubble-fifteen { left: 45%; width: 27px; height: 27px; animation-duration: 12s; animation-delay: -9s; }
.bubble-sixteen { left: 84%; width: 60px; height: 60px; animation-duration: 16s; animation-delay: -15s; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,107,157,.18) 50%, transparent 100%); }
.bubble-seventeen { left: 58%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: -7s; }
.bubble-eighteen { left: 23%; width: 48px; height: 48px; animation-duration: 18s; animation-delay: -17s; }

.say-hi {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10;
  width: 140px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  color: #FFFFFF;
  background: #7C4DFF;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.say-hi:hover {
  transform: scale(1.08);
  box-shadow:
    0 3px 5px rgba(124, 77, 255, 0.18),
    0 10px 18px rgba(124, 77, 255, 0.18),
    0 18px 46px rgba(255, 107, 157, 0.28),
    0 0 38px rgba(124, 77, 255, 0.34),
    inset 0 -3px 6px rgba(0, 0, 0, 0.04),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.particle-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.particle-heart {
  width: var(--size, 10px);
  height: var(--size, 10px);
  left: var(--x);
  top: var(--y);
  opacity: 0;
  animation: heartBurst 620ms ease-out forwards;
}

@keyframes candySky {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes botDrop {
  0% { transform: translateY(-120%) scale(0.6); opacity: 0; }
  68% { transform: translateY(7%) scaleY(0.92) scaleX(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes cardBounce {
  0% { transform: translateY(-120%) scale(0.6); opacity: 0; }
  68% { transform: translateY(10px) scaleY(0.94) scaleX(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes botFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes cardBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes fadePop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bubbleRise {
  0% { transform: translate3d(0, 0, 0) scale(0.88); opacity: 0; }
  14% { opacity: 0.95; }
  48% { transform: translate3d(22px, -52vh, 0) scale(1.04); }
  82% { opacity: 0.75; }
  100% { transform: translate3d(-18px, -112vh, 0) scale(0.94); opacity: 0; }
}

@keyframes heartBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(0); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(45deg) scale(1); }
}

@media (max-width: 767px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lovebot-wrap {
    width: min(30vh, 250px);
    height: min(30vh, 250px);
    min-width: 210px;
    min-height: 210px;
  }

  .bubble-nine,
  .bubble-ten,
  .bubble-eleven,
  .bubble-twelve,
  .bubble-thirteen,
  .bubble-fourteen,
  .bubble-fifteen,
  .bubble-sixteen,
  .bubble-seventeen,
  .bubble-eighteen {
    display: none;
  }

  .story {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bubble-islands {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .story-card {
    width: 100%;
    min-height: auto;
  }

  .card-one,
  .card-two,
  .card-three {
    margin-top: 0;
  }

  .say-hi {
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
  }

  .say-hi:hover {
    transform: translateX(-50%) scale(1.08);
  }
}
