/* ============================================================
   Mochi Money — Dreamy Mochi Lounge
   Soft lavender clouds, gummy serifs, kawaii sparkles.
   ============================================================ */

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

:root {
  /* Lavender spectrum */
  --lav-50:  #F8F2FF;
  --lav-100: #EFE3FF;
  --lav-200: #DDC5FF;
  --lav-300: #C2A0FF;
  --lav-400: #A07AFF;
  --lav-500: #7C3AED;
  --lav-600: #5B21B6;

  /* App's deep plum */
  --plum-950: #0C0618;
  --plum-900: #160A2A;
  --plum-850: #1F1340;
  --plum-800: #261A41;
  --plum-700: #3A2360;

  /* Cream + mochi tones */
  --cream:        #FFF8F0;
  --mochi-white:  #FFFAFC;
  --cheek:        #FF9EC4;

  /* Gold sparkle */
  --gold:        #FFD56B;
  --gold-deep:   #E89B1B;

  /* Dark-mode ink */
  --ink-1:   #F4EFFF;        /* primary text */
  --ink-2:   #C5B6E6;        /* secondary */
  --ink-3:   #897BAA;        /* subtle */

  /* Glass surfaces */
  --glass-card:       rgba(255, 255, 255, 0.04);
  --glass-card-hover: rgba(255, 255, 255, 0.07);
  --glass-border:     rgba(160, 122, 255, 0.22);
  --glass-border-strong: rgba(160, 122, 255, 0.32);

  /* Surface gradients */
  --surface-1: linear-gradient(180deg, #0C0618 0%, #160A2A 40%, #1A0E32 100%);

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--surface-1);
  background-attachment: fixed;
  color: var(--ink-1);
  overflow-x: clip;
  line-height: 1.65;
  font-size: 16px;
  font-weight: 500;
  max-width: 100vw;
}

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.06;
  mix-blend-mode: overlay;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}


/* --- Aurora ambient layers --- */
.aurora {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(90px);
  will-change: transform;
}

.aurora-1 {
  width: 980px;
  height: 980px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55) 0%, transparent 65%);
  top: -380px;
  right: -360px;
  animation: drift-1 28s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(255, 105, 165, 0.32) 0%, transparent 65%);
  top: 38%;
  left: -260px;
  animation: drift-2 34s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255, 200, 90, 0.16) 0%, transparent 65%);
  bottom: 8%;
  right: -180px;
  animation: drift-3 24s ease-in-out infinite alternate;
}

@keyframes drift-1 { from { transform: translate(0,0) } to { transform: translate(-80px, 60px) } }
@keyframes drift-2 { from { transform: translate(0,0) } to { transform: translate(60px, -70px) } }
@keyframes drift-3 { from { transform: translate(0,0) } to { transform: translate(-40px, -50px) } }

/* Starfield: subtle dotted twinkle */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(220, 200, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 78% 22%, rgba(255, 200, 220, 0.75) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 70%, rgba(255, 230, 140, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 78%, rgba(200, 170, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 55% 40%, rgba(255, 230, 140, 0.7) 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 22% 55%, rgba(255, 200, 220, 0.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 88%, rgba(200, 170, 255, 0.7) 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 42% 12%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 8% 92%, rgba(255, 255, 255, 0.55) 50%, transparent 51%);
  animation: starTwinkle 9s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}


/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}

h1 em, h2 em, h3 em {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lav-500) 0%, var(--cheek) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 40px;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  padding: 12px 40px;
  background: rgba(15, 8, 32, 0.7);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(160, 122, 255, 0.14), 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

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

.nav-logo-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.nav-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, rgba(160, 122, 255, 0.35) 0%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.nav-logo:hover .nav-logo-wrap::before {
  opacity: 1;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(92, 33, 182, 0.18);
  transition: transform 0.4s var(--ease-out);
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(-6deg) scale(1.05);
}

.nav-logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}

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

.nav-links > a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.25s ease;
}

.nav-links > a:hover {
  color: var(--lav-300);
}


/* --- Hero --- */
.hero {
  position: relative;
  padding: 140px 40px 60px;
  max-width: 1320px;
  margin: 0 auto;
  overflow-x: clip;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 640px;
}

.hero-content {
  flex: 0 1 560px;
  position: relative;
  z-index: 5;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: 26px;
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lav-300);
  box-shadow: 0 0 0 4px rgba(194, 160, 255, 0.22);
  animation: pulse 2.2s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(194, 160, 255, 0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(194, 160, 255, 0.08); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  line-height: 1.08;
}

.h1-line {
  display: block;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.h1-line:nth-child(2) {
  animation-delay: 0.12s;
}

.hero h1 em {
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  padding-right: 0.05em;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 460px;
  font-weight: 500;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.app-store-link {
  display: inline-block;
  transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease-out);
  filter: drop-shadow(0 12px 28px rgba(26, 15, 46, 0.22));
}

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

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

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

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.ghost-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

.ghost-link:hover {
  color: var(--lav-300);
  gap: 14px;
  border-bottom-color: var(--lav-400);
}

.ghost-link:hover svg {
  transform: translateX(2px);
}


/* --- Hero decorations --- */
.hero-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-deco-coin {
  width: 56px;
  height: 56px;
  top: 130px;
  left: 38%;
  filter: drop-shadow(0 8px 18px rgba(232, 155, 27, 0.4));
  animation: floatSlow 6s ease-in-out infinite, spin 14s linear infinite;
}

.hero-deco-star-1 {
  width: 28px;
  height: 28px;
  top: 22%;
  right: 8%;
  filter: drop-shadow(0 4px 10px rgba(255, 213, 107, 0.5));
  animation: floatTwinkle 5s ease-in-out infinite, spin 18s linear infinite reverse;
}

.hero-deco-star-2 {
  width: 22px;
  height: 22px;
  bottom: 18%;
  left: 44%;
  filter: drop-shadow(0 4px 8px rgba(160, 122, 255, 0.5));
  animation: floatTwinkle 4s ease-in-out infinite 0.5s, spin 22s linear infinite;
}

.hero-deco-heart {
  width: 24px;
  height: 24px;
  bottom: 28%;
  right: 18%;
  filter: drop-shadow(0 4px 10px rgba(255, 158, 196, 0.5));
  animation: heartBeat 2.4s ease-in-out infinite;
}

@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes floatTwinkle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50%      { transform: translateY(-10px) scale(1.15); opacity: 1; }
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.18); }
  40%      { transform: scale(0.95); }
  60%      { transform: scale(1.1); }
}


/* --- Hero Visual (phones + cloud) --- */
.hero-visual {
  flex: 0 1 580px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 640px;
  animation: fadeIn 1.2s var(--ease-out) 0.4s both;
}

.hero-cloud {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(194, 160, 255, 0.45) 0%, transparent 50%),
    radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, rgba(255, 105, 165, 0.25) 60%, transparent 80%);
  filter: blur(40px);
  z-index: 0;
  animation: cloudPulse 8s ease-in-out infinite;
}

.hero-cloud-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 2px dashed rgba(194, 160, 255, 0.32);
  z-index: 1;
  animation: spin 60s linear infinite;
}

@keyframes cloudPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.9; }
}

/* Poster: the new Device-*.png images already have phone bezels baked in,
   so no extra frame is needed — just float them with shadows. */
.poster {
  position: relative;
  width: 280px;
  aspect-ratio: 305 / 600;
  z-index: 4;
  transition: transform 0.6s var(--ease-out);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(124, 58, 237, 0.25));
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.poster-img.active {
  opacity: 1;
  z-index: 2;
}

.poster-main {
  z-index: 5;
  animation: floatSlow 7s ease-in-out infinite;
}

.poster-left {
  position: absolute;
  width: 240px;
  left: calc(50% - 230px);
  z-index: 3;
  transform: rotate(-10deg) translateY(20px) scale(0.92);
  opacity: 0.78;
}

.poster-right {
  position: absolute;
  width: 240px;
  right: calc(50% - 230px);
  z-index: 3;
  transform: rotate(10deg) translateY(20px) scale(0.92);
  opacity: 0.78;
}

.hero-visual:hover .poster-left {
  transform: rotate(-14deg) translate(-26px, 12px) scale(0.92);
}

.hero-visual:hover .poster-right {
  transform: rotate(14deg) translate(26px, 12px) scale(0.92);
}

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


/* Floating chips around phones */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: rgba(34, 18, 60, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(160, 122, 255, 0.35);
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--mochi-white);
  z-index: 6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.float-chip svg {
  width: 22px;
  height: 22px;
}

.float-chip .chip-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.chip-coin {
  top: 14%;
  left: -4%;
  color: #6EE49B;
  animation: floatSlow 5.5s ease-in-out infinite;
}

.chip-budget {
  bottom: 16%;
  right: -2%;
  animation: floatSlow 6s ease-in-out infinite 0.6s;
}


/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.7;
  animation: bobble 2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
}

@keyframes bobble {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}


/* --- Stat band --- */
.stat-band {
  padding: 12px 40px 100px;
  position: relative;
}

.stat-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 22px 44px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.stat-value {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--lav-500) 0%, var(--cheek) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.stat-sep {
  display: grid;
  place-items: center;
}

.stat-sep svg {
  width: 18px;
  height: 18px;
  animation: spin 12s linear infinite;
}


/* --- Features (curated grid) --- */
.features {
  padding: 80px 40px 120px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.section-tag {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--lav-500);
  display: inline-block;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.features-header h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.features-intro {
  font-size: 1.1rem;
  color: var(--ink-2);
  font-weight: 500;
}

/* Asymmetric grid: a-b-c top row, d-e bottom row offset */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 28px;
  align-items: end;
}

.feature-card {
  position: relative;
  isolation: isolate;
}

.feature-card-a { grid-column: 1 / span 2; transform: translateY(0); }
.feature-card-b { grid-column: 3 / span 2; transform: translateY(48px); }
.feature-card-c { grid-column: 5 / span 2; transform: translateY(0); }
.feature-card-d { grid-column: 2 / span 2; transform: translateY(24px); }
.feature-card-e { grid-column: 4 / span 2; transform: translateY(-12px); }

.feature-card-inner {
  position: relative;
  background: transparent;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(124, 58, 237, 0.12),
    0 0 0 1px rgba(160, 122, 255, 0.18);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.feature-card-a .feature-card-inner { rotate: -1.6deg; }
.feature-card-b .feature-card-inner { rotate: 1.4deg; }
.feature-card-c .feature-card-inner { rotate: -0.8deg; }
.feature-card-d .feature-card-inner { rotate: 1.2deg; }
.feature-card-e .feature-card-inner { rotate: -1.2deg; }

.feature-card:hover .feature-card-inner {
  transform: translateY(-8px);
  rotate: 0deg;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 12px 30px rgba(124, 58, 237, 0.25),
    0 0 0 1px rgba(194, 160, 255, 0.36);
}

.feature-card-inner img {
  width: 100%;
  display: block;
}

/* Feature tag pill */
.feature-tag {
  position: absolute;
  top: -10px;
  left: 22px;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.tag-purple { background: linear-gradient(135deg, var(--lav-500), var(--lav-400)); color: white; }
.tag-pink   { background: linear-gradient(135deg, var(--cheek), #FFC1D9); color: #6E2747; }
.tag-gold   { background: linear-gradient(135deg, var(--gold), #FFE9A1); color: #6E4A0F; }
.tag-mint   { background: linear-gradient(135deg, #9EE5BF, #C8F1D8); color: #1F5A38; }


/* --- Pillars --- */
.pillars {
  padding: 40px 40px 120px;
  position: relative;
}

.pillars-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(160, 122, 255, 0.12), transparent 50%, rgba(255, 158, 196, 0.12));
  border-radius: 28px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.18);
  border-color: var(--glass-border-strong);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.pillar-icon svg { width: 28px; height: 28px; }
.pillar-icon-cloud { background: linear-gradient(135deg, var(--lav-500), var(--lav-400)); }
.pillar-icon-spark { background: linear-gradient(135deg, var(--cheek), #FFB8D5); }
.pillar-icon-shield { background: linear-gradient(135deg, var(--gold-deep), var(--gold)); color: #5A3909; }

.pillar h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.pillar p {
  font-size: 0.97rem;
  color: var(--ink-2);
  line-height: 1.65;
}


/* --- FAQ Section --- */
.faq {
  padding: 40px 40px 100px;
  position: relative;
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-1);
  user-select: none;
  transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--lav-300);
}

.faq-chev {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), color 0.25s ease;
}

.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--lav-300);
}

.faq-item p {
  padding: 0 26px 22px;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.65;
}


/* --- CTA Section --- */
.cta {
  padding: 140px 40px 150px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(194, 160, 255, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 158, 196, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #1A0E32 0%, #2D1860 50%, #3F1F87 100%);
  color: white;
  border-top: 1px solid rgba(160, 122, 255, 0.16);
  border-bottom: 1px solid rgba(160, 122, 255, 0.16);
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-blob-1 {
  width: 520px;
  height: 520px;
  background: rgba(194, 160, 255, 0.4);
  top: -200px;
  left: -150px;
}

.cta-blob-2 {
  width: 480px;
  height: 480px;
  background: rgba(255, 158, 196, 0.3);
  bottom: -180px;
  right: -120px;
}

.cta-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.cta-sparkle-1 { width: 30px; height: 30px; top: 18%; left: 14%; animation: floatTwinkle 5s ease-in-out infinite; }
.cta-sparkle-2 { width: 22px; height: 22px; top: 30%; right: 18%; animation: floatTwinkle 4s ease-in-out 0.5s infinite; }
.cta-sparkle-3 { width: 34px; height: 34px; bottom: 22%; right: 12%; animation: floatTwinkle 6s ease-in-out 1s infinite; }

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.cta-logo {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  margin: 0 auto 32px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: mochiBounce 4.5s ease-in-out infinite;
}

.cta h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.cta h2 em {
  background: linear-gradient(135deg, var(--gold) 0%, var(--cheek) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta > .cta-inner > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.app-store-link-lg {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.32));
}

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

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


/* --- Footer --- */
.footer {
  padding: 64px 40px 56px;
  background: #0A0418;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(160, 122, 255, 0.1);
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

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

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  text-align: center;
}

.footer-heart {
  color: var(--cheek);
  display: inline-block;
  animation: heartBeat 1.6s ease-in-out infinite;
}


/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

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

/* Restore the staggered transforms on visible feature cards */
.feature-card-a.reveal.visible { transform: translateY(0); }
.feature-card-b.reveal.visible { transform: translateY(48px); }
.feature-card-c.reveal.visible { transform: translateY(0); }
.feature-card-d.reveal.visible { transform: translateY(24px); }
.feature-card-e.reveal.visible { transform: translateY(-12px); }

.feature-card.reveal {
  transform: translateY(64px);
}

.features-grid > .feature-card:nth-child(1).reveal { transition-delay: 0.05s; }
.features-grid > .feature-card:nth-child(2).reveal { transition-delay: 0.13s; }
.features-grid > .feature-card:nth-child(3).reveal { transition-delay: 0.21s; }
.features-grid > .feature-card:nth-child(4).reveal { transition-delay: 0.10s; }
.features-grid > .feature-card:nth-child(5).reveal { transition-delay: 0.18s; }

.pillars-inner > .pillar.reveal:nth-child(1) { transition-delay: 0.05s; }
.pillars-inner > .pillar.reveal:nth-child(2) { transition-delay: 0.15s; }
.pillars-inner > .pillar.reveal:nth-child(3) { transition-delay: 0.25s; }


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

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


/* --- Blog --- */
.blog-header {
  padding: 150px 40px 40px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.blog-header h1 {
  font-size: clamp(1.75rem, 6vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.blog-header p {
  color: var(--ink-2);
  font-size: 1.08rem;
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-header,
.blog-header h1,
.blog-header p {
  overflow-wrap: break-word;
}

.blog-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), background 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(124, 58, 237, 0.12);
}

.blog-card-link {
  display: block;
  padding: 32px 32px 28px;
  color: inherit;
}

.blog-card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--ink-1);
}

.blog-card-excerpt {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.blog-card-meta {
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-dot {
  opacity: 0.6;
}

.blog-cta {
  padding: 60px 40px 100px;
  text-align: center;
}

.blog-cta-inner {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px 36px;
}

.blog-cta-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.blog-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.blog-cta p {
  color: var(--ink-2);
  font-size: 1rem;
  margin-bottom: 28px;
}

.blog-cta .app-store-link img {
  height: 56px;
}


/* --- Blog post (article reading layout) --- */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 28px 60px;
}

.post-back {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 28px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.post-back:hover {
  color: var(--lav-300);
  transform: translateX(-2px);
}

.post-header {
  margin-bottom: 48px;
}

.post-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.post-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.post-deck {
  font-size: 1.18rem;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 26px;
}

.post-meta {
  color: var(--ink-3);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-body {
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--ink-2);
}

.post-body > p,
.post-body > ul,
.post-body > ol {
  margin-bottom: 22px;
}

.post-body h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-top: 48px;
  margin-bottom: 18px;
  line-height: 1.25;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-1);
  margin-top: 36px;
  margin-bottom: 12px;
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body li::marker {
  color: var(--lav-400);
}

.post-body strong {
  color: var(--ink-1);
  font-weight: 800;
}

.post-body em {
  font-style: italic;
  color: var(--ink-1);
}

.post-body a {
  color: var(--lav-300);
  text-decoration: underline;
  text-decoration-color: rgba(194, 160, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.post-body a:hover {
  color: var(--cheek);
  text-decoration-color: var(--cheek);
}

.post-cta-line {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.post-cta-line a {
  font-weight: 800;
  color: var(--lav-300) !important;
  font-size: 1.05rem;
}


/* --- Related posts --- */
.post-related {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 60px 28px 100px;
  border-top: 1px solid var(--glass-border);
}

.post-related-inner h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 26px;
  letter-spacing: -0.015em;
}

.post-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.post-related-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 22px 24px;
  color: inherit;
  transition: transform 0.35s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
  display: block;
}

.post-related-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-strong);
}

.post-related-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-related-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink-1);
  line-height: 1.3;
}

.post-related-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}


/* --- Terms & Privacy Page --- */
.page-header {
  padding: 150px 40px 50px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

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

.page-header p {
  color: var(--ink-2);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.page-content p {
  color: var(--ink-2);
  line-height: 1.85;
  font-size: 1.02rem;
}

.legal-content {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 56px 48px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

.legal-content h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink-1);
  letter-spacing: -0.015em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink-1);
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 18px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li::marker {
  color: var(--lav-400);
}

.legal-content strong {
  color: var(--ink-1);
  font-weight: 800;
}


/* --- Responsive --- */
@media (max-width: 1080px) {
  .hero-inner {
    gap: 24px;
  }
  .hero-visual {
    flex: 0 1 460px;
    min-height: 540px;
  }
  .poster-main { width: 240px; }
  .poster-left, .poster-right { width: 200px; }
  .hero-cloud { width: 460px; height: 460px; }
  .hero-cloud-ring { width: 360px; height: 360px; }
}

@media (max-width: 900px) {
  .nav { padding: 14px 18px; }
  .nav.scrolled { padding: 10px 18px; }
  .nav-links { gap: 18px; }
  .nav-logo-text { font-size: 1.12rem; }
  .nav-logo-wrap { width: 36px; height: 36px; }

  .hero {
    padding: 130px 20px 40px;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 56px;
    min-height: auto;
  }

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

  .hero-eyebrow,
  .hero-actions {
    justify-content: center;
  }

  .hero-actions {
    display: inline-flex;
  }

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

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

  .poster-main { width: 230px; }
  .poster-left, .poster-right { display: none; }

  .float-chip {
    font-size: 0.78rem;
    padding: 8px 14px 8px 10px;
  }
  .chip-coin { top: 12%; left: 4%; }
  .chip-budget { bottom: 18%; right: 4%; }

  .hero-deco-coin { left: 6%; top: 18%; width: 44px; height: 44px; }
  .hero-deco-star-1 { right: 12%; }
  .hero-deco-heart { display: none; }
  .hero-deco-star-2 { display: none; }

  .stat-band { padding: 0 20px 80px; }
  .stat-band-inner {
    border-radius: 36px;
    padding: 24px;
    gap: 16px;
  }
  .stat-sep { display: none; }

  .features { padding: 60px 20px 80px; }
  .features-header { margin-bottom: 48px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }
  .feature-card-a { grid-column: 1 / span 1; transform: none; }
  .feature-card-b { grid-column: 2 / span 1; transform: translateY(40px); }
  .feature-card-c { grid-column: 1 / span 1; transform: none; }
  .feature-card-d { grid-column: 2 / span 1; transform: translateY(40px); }
  .feature-card-e { grid-column: 1 / span 2; transform: none; max-width: 360px; margin: 0 auto; }
  .feature-card-b.reveal.visible { transform: translateY(40px); }
  .feature-card-d.reveal.visible { transform: translateY(40px); }
  .feature-card-e.reveal.visible { transform: none; }

  .pillars { padding: 20px 20px 80px; }
  .pillars-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq { padding: 20px 20px 80px; }
  .faq-header { margin-bottom: 32px; }
  .faq-item summary { padding: 18px 20px; font-size: 0.98rem; }
  .faq-item p { padding: 0 20px 18px; }

  .blog-header { padding: 130px 22px 28px; }
  .blog-list { padding: 24px 22px 60px; gap: 18px; }
  .blog-card-link { padding: 26px 24px 24px; }
  .blog-cta { padding: 40px 22px 80px; }
  .blog-cta-inner { padding: 36px 26px; }

  .post { padding: 130px 22px 50px; }
  .post-related { padding: 50px 22px 80px; }
  .post-related-list { grid-template-columns: 1fr; gap: 14px; }

  .cta { padding: 100px 24px 110px; }
  .cta-logo { width: 90px; height: 90px; }

  .footer { padding: 56px 24px 48px; }

  .legal-content { padding: 36px 24px; border-radius: 22px; }
}

@media (max-width: 600px) {
  .nav { padding: 12px 14px; }
  .nav.scrolled { padding: 10px 14px; }
  .nav-logo-text { font-size: 1.05rem; }
  .nav-links { gap: 12px; }
  .nav-links > a { font-size: 0.84rem; }
}

@media (max-width: 500px) {
  .nav-links { display: none; }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    letter-spacing: -0.025em;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-visual { min-height: 420px; }
  .poster-main { width: 200px; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-card-a,
  .feature-card-b,
  .feature-card-c,
  .feature-card-d,
  .feature-card-e {
    grid-column: 1 / -1;
    transform: none;
    max-width: 340px;
    margin: 0 auto;
  }
  .feature-card-b.reveal.visible,
  .feature-card-d.reveal.visible {
    transform: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .cta h2 { font-size: 2rem; }
  .cta-logo { width: 80px; height: 80px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
