/* ============================================================
   Mochi Money — Website Styles
   Aesthetic: Soft luxury meets kawaii. Warm, tactile, delightful.
   ============================================================ */

/* --- Reset & Custom Properties --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #E91E8C;
  --pink-dark: #C4167A;
  --pink-light: #FD5DAA;
  --pink-soft: #FEC5DC;
  --cream: #FFF8F3;
  --cream-mid: #FFF0E8;
  --dark: #271641;
  --dark-muted: #6B5A7E;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}


/* --- Grain Texture Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* --- Ambient Background Blobs --- */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.blob-1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.07) 0%, transparent 70%);
  top: -300px;
  right: -350px;
  filter: blur(80px);
  animation: blobDrift1 25s ease-in-out infinite alternate;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(253, 93, 170, 0.05) 0%, transparent 70%);
  top: 45%;
  left: -250px;
  filter: blur(90px);
  animation: blobDrift2 30s ease-in-out infinite alternate;
}

.blob-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 197, 220, 0.1) 0%, transparent 70%);
  bottom: 5%;
  right: -150px;
  filter: blur(70px);
  animation: blobDrift3 20s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, 40px); }
}
@keyframes blobDrift2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, -50px); }
}
@keyframes blobDrift3 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-30px, -40px); }
}


/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 900;
  color: var(--pink);
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 248, 243, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: rgba(39, 22, 65, 0.06);
  box-shadow: 0 1px 12px rgba(39, 22, 65, 0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark-muted);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-cta {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 10px 26px !important;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(39, 22, 65, 0.22);
  background: #352254 !important;
}


/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 140px 40px 100px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 40px;
}

.hero-content {
  flex: 0 1 520px;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  margin-bottom: 24px;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--dark-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 400px;
  font-weight: 500;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.app-store-link {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.app-store-link img {
  height: 68px;
}

.app-store-link:hover {
  transform: translateY(-3px) scale(1.02);
}

.app-store-link:active {
  transform: translateY(0) scale(0.98);
}


/* --- Hero Visual (Phone Mockups) --- */
.hero-visual {
  flex: 0 1 560px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
}

/* Phone mockup frame */
.phone-mockup {
  position: relative;
  border-radius: 40px;
  border: 6px solid #1c1c1e;
  overflow: hidden;
  background: #f8f8f8;
  box-shadow:
    0 24px 80px rgba(39, 22, 65, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background: #1c1c1e;
  border-radius: 20px;
  z-index: 3;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero phone sizes & arrangement */
.phone-hero-main {
  width: 260px;
  aspect-ratio: 1242 / 2688;
  z-index: 3;
  animation: floatSlow 7s ease-in-out infinite;
}

.phone-hero-left {
  position: absolute;
  width: 230px;
  aspect-ratio: 1242 / 2688;
  left: 10px;
  z-index: 1;
  transform: rotate(-8deg) translateX(-30px) scale(0.9);
  opacity: 0.65;
}

.phone-hero-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 243, 0.15);
  border-radius: 34px;
  pointer-events: none;
}

.phone-hero-right {
  position: absolute;
  width: 230px;
  aspect-ratio: 1242 / 2688;
  right: 10px;
  z-index: 1;
  transform: rotate(8deg) translateX(30px) scale(0.9);
  opacity: 0.65;
}

.phone-hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 243, 0.15);
  border-radius: 34px;
  pointer-events: none;
}

.hero-visual:hover .phone-hero-left {
  transform: rotate(-12deg) translateX(-50px) scale(0.88);
}

.hero-visual:hover .phone-hero-right {
  transform: rotate(12deg) translateX(50px) scale(0.88);
}


/* --- Showcase (Horizontal Scroll) --- */
.showcase {
  padding: 120px 0 100px;
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 22, 65, 0.06), transparent);
}

.showcase-header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 64px;
}

.showcase-header h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin-bottom: 16px;
}

.showcase-header p {
  font-size: 1.1rem;
  color: var(--dark-muted);
  font-weight: 500;
}

/* Track wrapper — edge fades */
.showcase-track-wrapper {
  position: relative;
}

.showcase-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(270deg, var(--cream), transparent);
}

/* Track — horizontal scroll only, fits 4 items */
.showcase-track {
  display: flex;
  gap: 32px;
  padding: 0 40px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.showcase-track:active {
  cursor: grabbing;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

/* Each card: sized so 4 fit in viewport */
.showcase-card {
  flex: 0 0 calc((100vw - 80px - 96px) / 4);
  scroll-snap-align: start;
  text-align: center;
  min-width: 200px;
}

.showcase-card img {
  width: 100%;
  border-radius: 12px;
}

.showcase-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.showcase-card p {
  font-size: 0.85rem;
  color: var(--dark-muted);
  line-height: 1.55;
  font-weight: 500;
  padding: 0 4px;
}


/* --- CTA Section --- */
.cta {
  padding: 140px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(253, 93, 170, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(233, 30, 140, 0.1) 0%, transparent 60%),
    linear-gradient(160deg, #E91E8C 0%, #C4167A 40%, #8B1060 100%);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 36px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: mochiBounce 4s ease-in-out infinite;
}

.cta h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta h2 em {
  color: var(--pink-soft);
}

.cta > .cta-inner > p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 44px;
}

.app-store-link-lg img {
  height: 62px;
}


/* --- Footer --- */
.footer {
  padding: 64px 40px;
  background: var(--dark);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 36px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}


/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }


/* --- Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes mochiBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20%      { transform: translateY(-10px) rotate(-2deg); }
  40%      { transform: translateY(0) rotate(0deg); }
  60%      { transform: translateY(-6px) rotate(2deg); }
  80%      { transform: translateY(0) rotate(0deg); }
}


/* --- Terms & Privacy Page --- */
.page-header {
  padding: 140px 40px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--dark-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.page-content {
  padding: 0 40px 120px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content p {
  color: var(--dark-muted);
  line-height: 1.8;
  font-size: 1rem;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    gap: 32px;
  }

  .hero-visual {
    flex: 0 1 420px;
    min-height: 500px;
  }

  .phone-hero-main {
    width: 220px;
  }

  .phone-hero-left,
  .phone-hero-right {
    width: 195px;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 14px 24px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 80px;
    min-height: auto;
    gap: 48px;
  }

  .hero-content {
    flex: none;
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    flex: none;
    min-height: 460px;
    width: 100%;
  }

  .phone-hero-main {
    width: 220px;
  }

  .phone-hero-left,
  .phone-hero-right {
    display: none;
  }

  .showcase {
    padding: 80px 0 60px;
  }

  .showcase-header {
    padding: 0 24px;
    margin-bottom: 48px;
  }

  .showcase-track {
    gap: 20px;
    padding: 0 24px;
  }

  /* Show 2 cards on tablet */
  .showcase-card {
    flex: 0 0 calc((100vw - 48px - 20px) / 2);
    min-width: 160px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links {
    gap: 0;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-visual {
    min-height: 380px;
  }

  .phone-hero-main {
    width: 190px;
  }

  .showcase-header h2 {
    font-size: 1.8rem;
  }

  .showcase-track {
    gap: 16px;
    padding: 0 20px;
  }

  /* Show ~1.5 cards on small mobile to hint at scrolling */
  .showcase-card {
    flex: 0 0 calc(100vw - 80px);
    min-width: 0;
  }

  .cta {
    padding: 100px 24px;
  }

  .cta h2 {
    font-size: 1.8rem;
  }

  .cta-logo {
    width: 72px;
    height: 72px;
  }

  .footer {
    padding: 48px 24px;
  }

  .footer-links {
    gap: 24px;
  }

  .page-header {
    padding: 120px 24px 40px;
  }

  .page-content {
    padding: 0 24px 80px;
  }
}
