/* =============================================================================
   Flowersandcakes — Homepage "flagship" layer (loaded only on index.html)
   Advanced hero, aurora/mesh backgrounds, grain, glassmorphism, gradient text,
   bento grid, marquee, how-it-works, editorial sections. Scoped to body.home.
   ============================================================================= */

/* scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 400; background: linear-gradient(90deg, var(--gold), var(--rose)); box-shadow: 0 0 12px rgba(198,75,119,0.5); transition: width 0.1s linear; }

/* shared premium primitives */
.glass { background: rgba(255,255,255,0.55); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 10px 34px rgba(43,38,34,0.1); }
.gtext { background: linear-gradient(100deg, var(--rose) 0%, #e8709c 40%, var(--rose-deep) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gtextshine 6s linear infinite; }
.gtext--gold { background-image: linear-gradient(100deg, var(--gold), #e6c977 45%, #a9853b 75%); -webkit-background-clip: text; background-clip: text; }
@keyframes gtextshine { to { background-position: 200% center; } }

.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.aurora .o1 { width: 42vw; height: 42vw; left: -8vw; top: -10vw; background: radial-gradient(circle, #f7b7cd, transparent 68%); animation: floaty 20s ease-in-out infinite; }
.aurora .o2 { width: 38vw; height: 38vw; right: -6vw; top: 4vw; background: radial-gradient(circle, #f0d99a, transparent 68%); animation: floaty 24s ease-in-out infinite reverse; }
.aurora .o3 { width: 34vw; height: 34vw; left: 30vw; bottom: -14vw; background: radial-gradient(circle, #bfe0cb, transparent 68%); animation: floaty 28s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(4vw,3vw) scale(1.08); } 66% { transform: translate(-3vw,2vw) scale(0.96); } }

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

/* section eyebrow refinement */
.home .eyebrow { letter-spacing: 0.22em; }
.home .section__head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.emblem { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 4px 0 14px; }
.emblem::before, .emblem::after { content: ""; height: 1px; width: clamp(40px, 14vw, 130px); background: linear-gradient(90deg, transparent, var(--gold)); }
.emblem::after { background: linear-gradient(90deg, var(--gold), transparent); }
.emblem svg { width: 22px; height: 22px; }

/* ============================================================ HERO */
.hero-x { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff7f3 0%, var(--ivory) 70%); isolation: isolate; }
.hero-x__inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; padding-block: clamp(44px, 6vw, 92px); }
.hero-x__copy, .hero-x__stage { min-width: 0; }
.hero-x h1, .hero-x__lead { overflow-wrap: break-word; }
.hero-x__badge { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 22px; font-size: 0.82rem; font-weight: 600; color: var(--green); margin-bottom: 22px; }
.hero-x__avatars { display: flex; }
.hero-x__avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; color: #fff; }
.hero-x__avatars span:first-child { margin-left: 0; }
.hero-x__badge .rating__stars svg { width: 13px; height: 13px; }
.hero-x h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-x__lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 500px; color: var(--ink-2); }
.hero-x__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn--xl { padding: 17px 34px; font-size: 1.05rem; border-radius: 999px; }
.btn--glow { box-shadow: 0 10px 30px rgba(198,75,119,0.35); }
.btn--glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(198,75,119,0.5); animation: glowpulse 2.6s ease-out infinite; }
@keyframes glowpulse { 0% { box-shadow: 0 0 0 0 rgba(198,75,119,0.45); } 70%,100% { box-shadow: 0 0 0 16px rgba(198,75,119,0); } }
.hero-x .pincode { margin-top: 26px; }
.hero-x__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-x__chips span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; color: var(--green); background: rgba(255,255,255,0.7); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
.hero-x__chips svg { width: 15px; height: 15px; color: var(--rose); }

/* hero visual stage */
.hero-x__stage { position: relative; min-height: 460px; perspective: 1300px; z-index: 2; }
.hero-x__spot { position: absolute; inset: 8% 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.85), rgba(255,255,255,0) 62%); z-index: 1; }
.hero-x__center { position: absolute; inset: 10% 16%; z-index: 3; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px rgba(142,42,80,0.25), inset 0 0 0 1px rgba(255,255,255,0.6); animation: floaty 8s ease-in-out infinite; }
.hero-x__center img { width: 100%; height: 100%; object-fit: cover; }
.orbit { position: absolute; inset: 2%; border-radius: 50%; border: 1.5px dashed rgba(201,162,75,0.5); z-index: 2; animation: spin-slow 40s linear infinite; }
.orbit--2 { inset: 14%; border-color: rgba(198,75,119,0.35); animation-duration: 30s; animation-direction: reverse; }
.orbit__dot { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.float-card { position: absolute; z-index: 5; width: 172px; border-radius: 18px; padding: 10px; display: flex; gap: 10px; align-items: center; animation: floaty 7s ease-in-out infinite; }
.float-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.float-card .fc-name { font-size: 0.78rem; font-weight: 700; color: var(--green); line-height: 1.2; }
.float-card .fc-price { font-size: 0.82rem; font-weight: 800; color: var(--rose); font-family: var(--font-display); }
.float-card .fc-rate { font-size: 0.68rem; color: var(--gold); font-weight: 700; }
.float-card--1 { top: 13%; right: -3%; animation-delay: -1s; }
.float-card--2 { bottom: 15%; left: -6%; animation-delay: -3s; }
.float-card--3 { bottom: -2%; right: 6%; animation-delay: -5s; width: auto; }
.hero-x__ribbon { position: absolute; top: 1%; left: -1%; z-index: 6; background: linear-gradient(135deg, var(--gold), #e6c977); color: #3a2c08; font-weight: 800; font-size: 0.76rem; padding: 9px 16px; border-radius: 999px; box-shadow: var(--sh-gold); transform: rotate(-6deg); }

/* ============================================================ MARQUEE */
.marquee-x { background: var(--green); color: #f3ede2; overflow: hidden; position: relative; border-block: 1px solid rgba(255,255,255,0.08); }
.marquee-x::before, .marquee-x::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee-x::before { left: 0; background: linear-gradient(90deg, var(--green), transparent); }
.marquee-x::after { right: 0; background: linear-gradient(270deg, var(--green), transparent); }
.marquee-x__track { display: flex; gap: 40px; padding: 14px 0; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee-x__track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; }
.marquee-x__track svg { width: 18px; height: 18px; color: var(--gold); }
.marquee-x__track b { color: var(--gold); font-size: 1.1rem; }

/* ============================================================ USP band */
.usp-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.usp:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.usp__ic { width: 50px; height: 50px; flex: none; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, var(--rose-soft), var(--gold-soft)); color: var(--rose-deep); }
.usp__ic svg { width: 25px; height: 25px; }
.usp strong { display: block; font-size: 0.95rem; color: var(--green); }
.usp span { font-size: 0.8rem; color: var(--muted); }

/* ============================================================ BENTO categories */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.bento__item { position: relative; overflow: hidden; border-radius: 22px; box-shadow: var(--sh-1); transform-style: preserve-3d; transition: box-shadow 0.4s, transform 0.4s var(--ease); }
.bento__item:hover { box-shadow: var(--sh-3); }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.bento__item:hover img { transform: scale(1.08); }
.bento__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(23,30,22,0.78)); }
.bento__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 2; color: #fff; transform: translateZ(30px); }
.bento__body h3 { color: #fff; font-size: 1.2rem; }
.bento__body span { font-size: 0.8rem; opacity: 0.9; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.bento__tag { position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(255,255,255,0.92); color: var(--rose-deep); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.bento__item--xl { grid-column: span 2; grid-row: span 2; }
.bento__item--xl .bento__body h3 { font-size: 1.7rem; }
.bento__item--w { grid-column: span 2; }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .bento__item--xl { grid-column: span 2; grid-row: span 2; } .bento__item--w { grid-column: span 2; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr 1fr; } .bento__item--xl { grid-row: span 2; } }

/* ============================================================ HOW IT WORKS */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.how::before { content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); z-index: 0; opacity: 0.5; }
.how-step { position: relative; z-index: 1; text-align: center; }
.how-step__n { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--rose-soft); box-shadow: var(--sh-2); color: var(--rose); position: relative; transition: transform 0.35s var(--ease); }
.how-step:hover .how-step__n { transform: translateY(-5px) scale(1.05); }
.how-step__n svg { width: 32px; height: 32px; }
.how-step__n b { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #3a2c08; font-size: 0.78rem; display: grid; place-items: center; font-weight: 800; }
.how-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.how-step p { font-size: 0.88rem; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr 1fr; } .how::before { display: none; } }

/* ============================================================ COUNTERS band */
.stats-x { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(34px, 5vw, 60px); background: linear-gradient(150deg, #23412f, #14271b); isolation: isolate; }
.stats-x .aurora span { opacity: 0.35; }
.stats-x__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { text-align: center; padding: 22px 12px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.stat-tile .counter__num { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--gold); }
.stat-tile .counter__label { color: rgba(255,255,255,0.82); }
@media (max-width: 700px) { .stats-x__grid, .usp-band { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================ TESTIMONIAL upgrade */
.tcard { flex: none; width: min(400px, 84vw); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.tcard__q { font-family: var(--font-display); font-size: 3rem; line-height: 0.5; color: var(--gold); opacity: 0.5; }
.tcard p { font-size: 1.05rem; color: var(--ink); line-height: 1.6; }
.tcard__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard__av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(150deg, var(--rose), var(--gold)); display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-display); }
.tcard__foot strong { display: block; color: var(--green); }
.tcard__foot span { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================ NEWSLETTER upgrade */
.news-x { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 68px); text-align: center; background: linear-gradient(150deg, var(--rose-soft), var(--gold-soft)); isolation: isolate; }
.news-x .petals { z-index: 0; }
.news-x > * { position: relative; z-index: 2; }

/* responsive hero */
@media (max-width: 980px) {
  .hero-x__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-x__stage { min-height: 380px; order: -1; }
  .usp-band { grid-template-columns: 1fr 1fr; }
  .float-card--2 { left: 0; } .float-card--1 { right: 0; }
}
@media (max-width: 560px) {
  .hero-x__stage { min-height: 320px; }
  .float-card { width: 140px; padding: 8px; }
  .float-card--3 { display: none; }
  .hero-x__ctas .btn { flex: 1; }
}
