/* ===========================================================
   Mochi & Mars — pastel kawaii character showcase
   Palette: cream / strawberry pink / lavender / mint
   Fonts: Fredoka (display) + Caveat (handwritten) + Nunito (body)
   =========================================================== */

:root {
  --cream:        #FFF7F0;
  --cream-deep:   #FFEFE4;
  --pink:         #FF9FB6;
  --pink-soft:    #FFD3DF;
  --pink-deep:    #E26D8A;
  --lav:          #B9A7F0;
  --lav-soft:     #E0D7FA;
  --lav-deep:     #7E66D6;
  --mint:         #A8E6CF;
  --mint-soft:    #D8F5EA;
  --ink:          #5A4A55;
  --ink-soft:     #8A7A85;
  --paper:        #FFFFFF;
  --shadow-soft:  0 18px 40px -18px rgba(226,109,138,0.35);
  --shadow-lav:   0 18px 40px -18px rgba(126,102,214,0.35);
  --radius:       28px;
  --radius-sm:    18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- floating sparkle field ---------- */
.sparkle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.sparkle {
  position: absolute;
  font-size: 1.1rem;
  color: var(--pink-deep);
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
}
.sparkle.s1 { top: 12%; left: 6%;  color: var(--pink-deep); animation-delay: 0s; }
.sparkle.s2 { top: 22%; left: 88%; color: var(--lav-deep);  animation-delay: 0.8s; font-size: 0.8rem; }
.sparkle.s3 { top: 48%; left: 4%;  color: var(--lav-deep);  animation-delay: 1.4s; }
.sparkle.s4 { top: 68%; left: 92%; color: var(--pink-deep); animation-delay: 2.1s; font-size: 0.9rem; }
.sparkle.s5 { top: 82%; left: 10%; color: var(--lav-deep);  animation-delay: 0.4s; }
.sparkle.s6 { top: 38%; left: 95%; color: var(--pink-deep); animation-delay: 1.8s; font-size: 0.7rem; }
.sparkle.s7 { top: 90%; left: 80%; color: var(--lav-deep);  animation-delay: 2.6s; }
.sparkle.s8 { top: 8%;  left: 50%; color: var(--pink-deep); animation-delay: 1.1s; font-size: 0.85rem; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50%      { opacity: 0.75; transform: scale(1.15) rotate(45deg); }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(255,247,240,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,159,182,0.18);
}
.nav-logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.logo-mochi { color: var(--pink-deep); }
.logo-amp   { color: var(--ink-soft); margin: 0 0.15rem; }
.logo-mars  { color: var(--lav-deep); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--pink-deep); }
.nav-cta {
  background: var(--pink-soft);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  color: var(--pink-deep) !important;
}
.nav-cta:hover { background: var(--pink); color: var(--paper) !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2.5rem 6rem;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
}
.blob-a {
  width: 460px; height: 460px;
  background: var(--pink-soft);
  top: -120px; left: -100px;
}
.blob-b {
  width: 520px; height: 520px;
  background: var(--lav-soft);
  bottom: -160px; right: -120px;
}
.hero-inner { position: relative; z-index: 2; max-width: 540px; }
.hero-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--pink-deep);
  margin-bottom: 0.6rem;
  display: inline-block;
  padding: 0.2rem 1rem;
  background: var(--pink-soft);
  border-radius: 999px;
}
.hero-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 1.4rem;
}
.title-accent {
  background: linear-gradient(120deg, var(--pink-deep), var(--lav-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--pink), var(--pink-deep));
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px -16px rgba(226,109,138,0.5);
}
.btn-ghost {
  background: var(--paper);
  color: var(--lav-deep);
  border: 2px solid var(--lav-soft);
}
.btn-ghost:hover {
  border-color: var(--lav);
  transform: translateY(-3px);
}
.hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: 460px;
  border-radius: 32px;
  box-shadow: 0 30px 60px -20px rgba(126,102,214,0.4);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.hero-img:hover { transform: rotate(0deg) scale(1.02); }

/* marquee */
.hero-marquee {
  grid-column: 1 / -1;
  margin-top: 2rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-block;
  animation: scroll-x 30s linear infinite;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--ink-soft);
}
.marquee-track span { padding: 0 0.6rem; }
.marquee-track .dot { color: var(--pink); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- shared section heads ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
}
.eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--pink-deep);
  display: inline-block;
  padding: 0.15rem 1rem;
  background: var(--pink-soft);
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- THE DUO ---------- */
.duo {
  position: relative;
  padding: 6rem 2.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.char-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.char-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
}
.card-mars { box-shadow: var(--shadow-lav); }
.card-mars:hover { transform: translateY(-8px) rotate(0.6deg); }
.char-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--pink-soft);
}
.card-mars .char-portrait { background: var(--lav-soft); }
.char-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.char-card:hover .char-portrait img { transform: scale(1.04); }
.char-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pink-deep);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.card-mars .char-tag { color: var(--lav-deep); }
.char-body { padding: 2rem 2rem 2.3rem; }
.char-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--pink-deep);
  margin-bottom: 0.2rem;
}
.card-mars .char-name { color: var(--lav-deep); }
.char-role {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.char-bio {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.char-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--pink-soft);
}
.card-mars .char-stats { border-top-color: var(--lav-soft); }
.char-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}
.stat-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: var(--ink-soft);
}
.stat-val {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

/* ---------- STORY ---------- */
.story {
  position: relative;
  padding: 6rem 2.5rem;
  background:
    radial-gradient(circle at 12% 20%, var(--pink-soft) 0%, transparent 40%),
    radial-gradient(circle at 88% 80%, var(--lav-soft) 0%, transparent 45%),
    var(--cream);
}
.story-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.story-inner .eyebrow { margin-bottom: 1rem; }
.story-body {
  text-align: left;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.85;
}
.story-body p { margin-bottom: 1.3rem; }
.story-pull {
  font-family: 'Caveat', cursive !important;
  font-size: 1.7rem !important;
  color: var(--pink-deep);
  text-align: center;
  padding: 1.5rem 0;
  border-top: 2px dashed var(--pink-soft);
  border-bottom: 2px dashed var(--pink-soft);
  margin: 2rem 0 !important;
  line-height: 1.4 !important;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 6rem 2.5rem;
  background: var(--cream-deep);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  max-width: 1080px;
  margin: 0 auto;
}
.g-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.g-item:hover { transform: translateY(-6px) scale(1.01); }
.card-mars ~ * .g-item,
.gallery-grid .g-item:nth-child(even) { box-shadow: var(--shadow-lav); }
.g-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  padding: 1rem 1.3rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.g-item figcaption strong {
  font-family: 'Fredoka', sans-serif;
  color: var(--pink-deep);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}
.gallery-grid .g-item:nth-child(even) figcaption strong { color: var(--lav-deep); }
.g-wide { grid-column: span 2; }
.g-wide img { aspect-ratio: 16 / 9; }

/* ---------- HELLO ---------- */
.hello {
  padding: 6rem 2.5rem;
  background: linear-gradient(160deg, var(--lav) 0%, var(--lav-deep) 100%);
  position: relative;
  overflow: hidden;
}
.hello::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18) 0%, transparent 35%),
    radial-gradient(circle at 15% 85%, rgba(255,211,223,0.25) 0%, transparent 40%);
  pointer-events: none;
}
.hello-card {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 3rem 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  color: var(--paper);
}
.eyebrow-light {
  background: rgba(255,255,255,0.2);
  color: var(--paper);
}
.title-light { color: var(--paper); }
.hello-lead {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.8rem;
}
.hello-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.field input, .field textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--paper);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
.btn-send {
  align-self: flex-start;
  margin-top: 0.4rem;
  background: var(--paper);
  color: var(--lav-deep);
}
.btn-send:hover { transform: translateY(-3px); }
.form-note {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--paper);
  background: rgba(255,255,255,0.15);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}
.hello-aside {
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.aside-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.aside-links { display: flex; flex-direction: column; gap: 0.9rem; }
.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
}
.aside-link:hover { transform: translateX(4px); opacity: 0.85; }
.aside-link svg { flex-shrink: 0; opacity: 0.9; }

/* ---------- FOOTER ---------- */
.foot {
  background: var(--cream-deep);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,159,182,0.18);
}
.foot-inner { max-width: 600px; margin: 0 auto; }
.foot-logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.foot-tag {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.foot-copy {
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    gap: 2rem;
  }
  .hero-inner { max-width: 100%; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-img { max-width: 320px; }
  .duo-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide { grid-column: span 1; }
  .g-wide img { aspect-ratio: 4 / 3; }
  .hello-card { grid-template-columns: 1fr; padding: 2rem 1.5rem; gap: 1.8rem; }
  .hello-aside { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-left: 0; padding-top: 1.5rem; }
  .nav { padding: 0.8rem 1.2rem; }
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .duo, .story, .gallery, .hello { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .char-body { padding: 1.5rem; }
}

/* ---------- entrance animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
