/* ==========================================================
   RF Finance — purple, playful, 3D
   ========================================================== */
:root {
  --p950: #2e2100;
  --p900: #5c4400;
  --p800: #6e5405;
  --p700: #8a6a08;
  --p600: #c29a1a;
  --p500: #E4BC36;
  --p400: #edcf6a;
  --p300: #f3e0a0;
  --p100: #fbf3d6;
  --p50:  #fefaea;
  --pink: #e85fa8;
  --gold: #f5b82e;
  --green: #2bb673;
  --ink: #2b2410;
  --ink-2: #6b5f40;
  --ink-3: #a39a80;
  --white: #fff;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 18px 40px -18px rgba(92, 68, 0, .45);
  --shadow-lg: 0 40px 80px -30px rgba(92, 68, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: "Nunito", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
svg { display: block; }
h1, h2, h3 { line-height: 1.2; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Preloader: spinning 3D cube ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 34px; background: radial-gradient(circle at 50% 40%, var(--p600), var(--p950)); color: #fff; font-weight: 800; letter-spacing: .2em; transition: opacity .7s var(--ease), visibility .7s, transform .9s var(--ease); }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__cube { width: 70px; height: 70px; position: relative; transform-style: preserve-3d; animation: cube 2.2s var(--ease) infinite; }
.preloader .f { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; font-weight: 900; font-style: italic; letter-spacing: 0; border-radius: 14px; background: linear-gradient(135deg, var(--p400), var(--p600)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.f1 { transform: translateZ(35px); } .f2 { transform: rotateY(90deg) translateZ(35px); } .f3 { transform: rotateY(180deg) translateZ(35px); background: linear-gradient(135deg, #ffd56b, var(--gold)) !important; color: #7a4b00; }
.f4 { transform: rotateY(-90deg) translateZ(35px); } .f5 { transform: rotateX(90deg) translateZ(35px); } .f6 { transform: rotateX(-90deg) translateZ(35px); }
@keyframes cube { 0% { transform: rotateX(-20deg) rotateY(0); } 100% { transform: rotateX(-20deg) rotateY(360deg); } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1001; background: linear-gradient(90deg, var(--pink), var(--p500), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s; }
.btn--lg { padding: 15px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--purple { background: linear-gradient(180deg, var(--p400), var(--p500)); color: var(--p950); box-shadow: 0 6px 0 var(--p900), 0 16px 30px -10px rgba(92,68,0,.6); }
.btn--purple:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--p900), 0 22px 36px -10px rgba(92,68,0,.7); }
.btn--purple:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 var(--p900), 0 8px 16px -8px rgba(92,68,0,.6); }
.btn--white { background: #fff; color: var(--p700); box-shadow: 0 6px 0 var(--p300), 0 16px 30px -10px rgba(46,33,0,.45); }
.btn--white:hover { box-shadow: 0 8px 0 var(--p300), 0 22px 40px -10px rgba(46,33,0,.55); }
.btn--white:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 var(--p300); }
.btn--ghost-white { color: var(--p950); box-shadow: inset 0 0 0 2px var(--p950); }
.btn--ghost-white:hover { background: rgba(46,33,0,.1); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.btn:hover::before { transform: translateX(110%); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.5); animation: ripple .7s var(--ease) forwards; pointer-events: none; }
.btn--white .ripple { background: rgba(228,188,54,.45); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Notice bar ---------- */
.notice { background: var(--p800); color: #fff; font-size: .82rem; overflow: hidden; white-space: nowrap; padding: 9px 0; }
.notice__track { display: inline-flex; gap: 80px; animation: marquee 40s linear infinite; padding-left: 100%; }
.notice:hover .notice__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(1.5); transition: box-shadow .4s, transform .5s var(--ease); }
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(92,68,0,.5); }
.header__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 14px 0 10px; transition: padding .4s var(--ease); }
.header.scrolled .header__top { padding: 6px 0 4px; }
.header__contact, .header__account { display: flex; gap: 36px; font-size: 1.05rem; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink-3); transition: border-color .3s; }
.header.scrolled .header__contact, .header.scrolled .header__account { border-color: transparent; }
.header__account { justify-content: flex-end; }
.header__contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.header__contact svg { width: 20px; height: 20px; fill: var(--p700); }
.header__contact a:hover, .header__account a:hover { color: var(--p600); }
.header__account a { font-weight: 600; transition: color .3s; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--pink), var(--p600), var(--p900), var(--pink)); padding: 5px; transition: transform .8s var(--bounce); transform-style: preserve-3d; }
.logo__mark span { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--p700); font-weight: 900; font-style: italic; font-size: 1.2rem; }
.logo:hover .logo__mark { transform: rotateY(360deg); }
.logo__mark--xs { width: 28px; height: 28px; padding: 3px; } .logo__mark--xs span { font-size: .6rem; }
.logo__text { display: grid; line-height: 1; color: var(--p700); font-weight: 900; font-size: 1.5rem; letter-spacing: .02em; }
.logo__text b { font-weight: 800; font-size: 1.25rem; color: var(--p600); }
.header.scrolled .logo__mark { width: 46px; height: 46px; }

.header__nav { display: flex; justify-content: center; gap: 8px; padding-bottom: 10px; }
.header__nav a { position: relative; padding: 8px 18px; font-size: 1.05rem; color: var(--ink-2); font-weight: 600; transition: color .3s; }
.header__nav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--p600); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.header__nav a:hover, .header__nav a.active { color: var(--p700); }
.header__nav a:hover::after, .header__nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header__nav sup { position: absolute; top: -8px; right: -4px; padding: 1px 8px; border-radius: 999px; background: var(--p500); color: #fff; font-size: .68rem; font-weight: 800; animation: bob 2.4s ease-in-out infinite; }
.nav__apply { color: var(--p600) !important; font-weight: 800 !important; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; justify-self: end; }
.burger span { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--p700); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 27px; }
.header.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.open .burger span:nth-child(2) { opacity: 0; }
.header.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Diagonal stripes ---------- */
.stripe { position: absolute; display: block; height: 16px; background: linear-gradient(90deg, var(--p400), var(--p700)); transform: skewX(-40deg) scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); pointer-events: none; }
.stripe.in, .in > .stripe, .section.seen > .stripe { transform: skewX(-40deg) scaleX(1); }
.stripe--left { left: -40px; top: 0; width: 34%; }
.stripe--right { right: -40px; top: 40px; width: 28%; transform-origin: right; background: linear-gradient(90deg, var(--p700), var(--p400)); }
.stripe--small { position: relative; width: 140px; height: 8px; margin: 0 auto 26px; }
.stripe--big { height: 40px; width: 240px; top: -20px; left: -60px; transform: rotate(-35deg) scaleX(0); }
.section.seen > .stripe--big { transform: rotate(-35deg) scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--p950); background: radial-gradient(1200px 600px at 75% 40%, #fff0b8 0%, transparent 60%), linear-gradient(120deg, var(--p600) 0%, var(--p500) 55%, #f6dd8a 100%); padding: 40px 0 30px; min-height: calc(100vh - 160px); display: flex; flex-direction: column; justify-content: center; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__shape { position: absolute; border-radius: 50%; filter: blur(2px); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.04) 70%); animation: drift 14s ease-in-out infinite alternate; }
.hero__shape--1 { width: 320px; height: 320px; top: -80px; left: 30%; }
.hero__shape--2 { width: 160px; height: 160px; bottom: 40px; left: 6%; animation-delay: -5s; }
.hero__shape--3 { width: 90px; height: 90px; top: 20%; right: 6%; animation-delay: -9s; }
@keyframes drift { to { transform: translate(40px, 50px) scale(1.15); } }
.stripe--hero { top: 26px; left: -30px; width: 30%; height: 10px; background: var(--p950); }
.loaded .stripe--hero { transform: skewX(-40deg) scaleX(1); }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 20px; }
.hero__brand { display: inline-block; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 900; font-style: italic; letter-spacing: .02em; color: #fff; text-shadow: 3px 3px 0 var(--p600), 6px 6px 0 rgba(46,33,0,.25); opacity: 0; transform: translateX(-30px); }
.loaded .hero__brand { animation: slideIn .9s var(--ease) forwards; }
@keyframes slideIn { to { opacity: 1; transform: none; } }

/* extruded 3D display text */
.display { font-weight: 900; font-style: italic; line-height: 1.12; letter-spacing: .02em; margin: 14px 0 22px; perspective: 800px; }
.display__line { display: block; font-size: clamp(2.8rem, 8vw, 6.4rem); }
[data-split] .word { display: inline-block; white-space: nowrap; }
.display__line--2 { margin-left: clamp(0px, 4vw, 60px); }
.display .ch {
  display: inline-block; color: #fff; -webkit-text-stroke: 0;
  text-shadow: 1px 1px 0 var(--p600), 2px 2px 0 var(--p600), 3px 3px 0 var(--p700), 4px 4px 0 var(--p700), 5px 5px 0 var(--p800), 6px 6px 0 var(--p800), 7px 7px 0 var(--p900), 8px 8px 0 var(--p900), 14px 16px 24px rgba(46,33,0,.45);
  transform-origin: 50% 100%; opacity: 0; transform: translateY(-60px) rotateX(90deg);
  transition: transform .45s var(--bounce);
}
.split-in .ch { animation: chIn .9s var(--bounce) forwards; animation-delay: calc(var(--i) * 45ms + var(--base, 0ms)); }
@keyframes chIn { 0% { opacity: 0; transform: translateY(-60px) rotateX(90deg); } 100% { opacity: 1; transform: none; } }
.split-done .ch { opacity: 1; transform: none; animation: none; }
.split-done .ch:hover { transform: translateY(-14px) rotate(-6deg) scale(1.08); }
.display .ch.wiggle { animation: wiggle .7s var(--bounce); }
@keyframes wiggle { 30% { transform: translateY(-16px) rotate(-8deg); } 60% { transform: translateY(2px) rotate(4deg); } }

.hero__sub { font-size: 1.15rem; max-width: 520px; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero__stage { position: relative; height: min(560px, 70vh); min-height: 420px; }
#mascot3d { position: absolute; inset: -40px -40px 0; width: calc(100% + 80px); height: calc(100% + 40px); cursor: grab; touch-action: pan-y; }
#mascot3d:active { cursor: grabbing; }
.hero__fallback { display: none; }
.no-webgl #mascot3d { display: none; }
.no-webgl .hero__fallback { display: block; position: absolute; inset: 15% 20%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--p300), var(--p500) 50%, var(--p800)); animation: bob 3s ease-in-out infinite; }
.promo { color: #fff; position: absolute; right: 0; bottom: 30px; display: grid; justify-items: end; text-align: right; pointer-events: none; }
.promo__tag { padding: 4px 20px; border-radius: 999px; background: linear-gradient(90deg, var(--pink), #ff8a3d); font-weight: 900; font-style: italic; font-size: 1.25rem; box-shadow: 0 8px 20px -6px rgba(255,138,61,.6); transform: rotate(-3deg); }
.promo__amt { font-size: 1.1rem; font-weight: 800; font-style: italic; margin-top: 4px; }
.promo__amt b { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; text-shadow: 3px 3px 0 var(--p700), 5px 5px 0 var(--p900); }
.promo__sub { font-weight: 800; font-style: italic; font-size: 1.2rem; margin-top: -6px; }
.hero__hint { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; font-size: .82rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.55); color: var(--p950); backdrop-filter: blur(6px); animation: bob 2s ease-in-out infinite; white-space: nowrap; }
.hero__tnc { position: relative; display: block; text-align: right; opacity: .8; font-size: .75rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; overflow-x: clip; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--ink); }
.section__title { margin-bottom: 30px; }
.section__title q { quotes: "“" "”"; color: var(--p700); font-weight: 900; }
.panel { background: var(--p100); border-radius: 6px; padding: 26px 30px; color: var(--ink); font-size: 1.05rem; box-shadow: 0 1px 0 rgba(92,68,0,.05); position: relative; }
.panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 6px 0 0 6px; background: linear-gradient(var(--p400), var(--p700)); transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease) .3s; }
.panel.in::before { transform: scaleY(1); }
.panel--center { text-align: center; margin-top: 60px; }
.panel--center h3 { color: var(--p700); font-size: 1.35rem; margin-bottom: 12px; font-weight: 800; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Product flip tiles ---------- */
.products__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.tile { perspective: 900px; aspect-ratio: 1 / .92; }
.tile__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--bounce); cursor: pointer; }
.tile:hover .tile__inner, .tile.flipped .tile__inner { transform: rotateY(180deg); }
.tile__face { position: absolute; inset: 0; border-radius: 34px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-content: center; justify-items: center; text-align: center; padding: 14px; }
.tile__front { background: #fff; border: 2.5px solid var(--p600); box-shadow: 0 9px 0 var(--p700), 0 24px 30px -16px rgba(92,68,0,.55); gap: 10px; font-weight: 800; font-size: .98rem; color: var(--ink); line-height: 1.25; }
.tile__icon { width: 64px; height: 64px; transition: transform .5s var(--bounce); }
.tile__icon svg { width: 100%; height: 100%; }
.tile.in .tile__icon { animation: iconPop .8s var(--bounce) both; animation-delay: calc(var(--d) + .3s); }
@keyframes iconPop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: none; } }
.tile__back { transform: rotateY(180deg); background: linear-gradient(150deg, var(--p700), var(--p900)); color: #fff; box-shadow: 0 9px 0 var(--p950), 0 24px 30px -16px rgba(92,68,0,.55); line-height: 1.1; }
.tile__back b { font-size: 2.2rem; font-weight: 900; font-style: italic; text-shadow: 3px 3px 0 var(--p900); }
.tile__back small { opacity: .85; font-weight: 700; }
.tile__back a { margin-top: 12px; padding: 6px 16px; border-radius: 999px; background: var(--p500); color: var(--p950); font-weight: 800; font-size: .88rem; }
.products__copy { text-align: center; }
.products__copy h2 { color: var(--p700); font-weight: 800; line-height: 1.35; }
.products__copy .hl { color: var(--ink); }
.products__copy p { margin: 26px auto 28px; max-width: 360px; color: var(--ink-2); }
.products__tip { font-size: .85rem; color: var(--ink-3) !important; margin-top: 20px !important; }

/* ---------- AI section + 3D phone ---------- */
.ai { background: linear-gradient(180deg, #fff, var(--p50)); }
.ai__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.ai__steps { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.ai__steps li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: 0 2px 0 var(--p100), inset 0 0 0 1.5px var(--p100); transition: transform .4s var(--ease), box-shadow .4s; }
.ai__steps li:hover { transform: translateX(10px) rotateY(-6deg); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--p300); }
.ai__steps li > span { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; font-style: italic; color: #fff; background: linear-gradient(135deg, var(--p400), var(--p700)); box-shadow: 0 5px 0 var(--p900); }
.ai__steps b { display: block; font-size: 1.06rem; }
.ai__steps small { color: var(--ink-2); font-size: .92rem; }

.phone-stage { position: relative; height: 560px; perspective: 1400px; display: grid; place-items: center; }
.phone { position: relative; width: 260px; height: 520px; transform-style: preserve-3d; transform: rotateY(var(--ry, -24deg)) rotateX(var(--rx, 10deg)) rotateZ(4deg); transition: transform .3s ease-out; animation: phoneFloat 6s ease-in-out infinite; }
@keyframes phoneFloat { 50% { translate: 0 -16px; } }
.phone__side { position: absolute; inset: 0; border-radius: 44px; background: linear-gradient(135deg, var(--p600), var(--p950)); transform: translateZ(-14px); box-shadow: 30px 40px 60px -20px rgba(46,33,0,.6); }
.phone__screen { position: absolute; inset: 0; border-radius: 44px; padding: 12px; background: linear-gradient(135deg, var(--p800), var(--p950)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #140e00; z-index: 2; }
.app { height: 100%; border-radius: 34px; background: linear-gradient(180deg, var(--p50), #fff); padding: 54px 18px 18px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; position: relative; }
.app__head { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--p900); }
.app__ring { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.app__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.app__ring circle { fill: none; stroke: var(--p100); stroke-width: 12; }
.app__ring .app__ring-val { stroke: var(--p600); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; }
.app__ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.app__ring-txt b { font-size: 1.8rem; color: var(--p700); font-weight: 900; }
.app__ring-txt small { color: var(--ink-3); font-weight: 700; }
.app__list { list-style: none; display: grid; gap: 10px; }
.app__list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(92,68,0,.08); font-weight: 700; font-size: .9rem; opacity: .4; transform: translateX(-10px); transition: all .5s var(--bounce); }
.app__list i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--p300); position: relative; transition: all .4s; }
.app__list li.ok { opacity: 1; transform: none; }
.app__list li.ok i { background: var(--green); border-color: var(--green); }
.app__list li.ok i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.app__approved { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--green), #1d9a8a); box-shadow: 0 14px 30px -10px rgba(43,182,115,.7); transform: translateY(140%) scale(.8); transition: transform .7s var(--bounce); }
.app__approved span { font-size: 1.8rem; }
.app__approved small { display: block; opacity: .85; font-weight: 700; }
.app__approved b { font-size: 1.4rem; font-weight: 900; }
.app.done .app__approved { transform: none; }
.phone-shadow { position: absolute; bottom: 0; width: 220px; height: 30px; border-radius: 50%; background: radial-gradient(rgba(46,33,0,.35), transparent 70%); animation: shadowPulse 6s ease-in-out infinite; }
@keyframes shadowPulse { 50% { transform: scale(.82); opacity: .6; } }
.chip3d { position: absolute; padding: 10px 18px; border-radius: 16px; background: #fff; font-weight: 800; color: var(--p700); box-shadow: 0 6px 0 var(--p300), var(--shadow); transform: translateZ(80px); animation: chipFloat 5s ease-in-out infinite; white-space: nowrap; }
.chip3d--a { top: 70px; left: 2%; }
.chip3d--b { top: 46%; right: 0; animation-delay: -1.7s; }
.chip3d--c { bottom: 80px; left: 6%; animation-delay: -3.3s; }
@keyframes chipFloat { 50% { translate: 0 -14px; rotate: -3deg; } }

/* ---------- Calculator ---------- */
.calc-sec { background: var(--p50); }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.calc__intro > p { color: var(--ink-2); margin: -10px 0 34px; font-size: 1.05rem; }
.calc__controls { display: grid; gap: 28px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.field label { font-weight: 700; color: var(--ink-2); }
.field output { font-weight: 900; font-size: 1.2rem; color: var(--p700); background: #fff; padding: 4px 14px; border-radius: 12px; box-shadow: 0 4px 0 var(--p100); transition: transform .25s var(--bounce); }
.field output.bump { transform: scale(1.1) rotate(-2deg); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 12px; cursor: pointer; background: linear-gradient(90deg, var(--p400), var(--p700)) 0 / var(--fill, 50%) 100% no-repeat, var(--p100); box-shadow: inset 0 2px 3px rgba(92,68,0,.15); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 7px solid var(--p700); box-shadow: 0 4px 0 var(--p900), 0 8px 14px rgba(0,0,0,.25); transition: transform .25s var(--bounce); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 7px solid var(--p700); box-shadow: 0 4px 0 var(--p900); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25) rotate(20deg); }
.calc__card { position: relative; background: #fff; border-radius: 30px; padding: 30px; box-shadow: 0 10px 0 var(--p300), var(--shadow-lg); overflow: hidden; }
.coins { position: relative; height: 200px; margin: -10px -10px 10px; border-radius: 22px; background: radial-gradient(ellipse at 50% 120%, var(--p300), var(--p100) 60%); perspective: 600px; display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding-bottom: 24px; overflow: hidden; }
.stack { position: relative; width: 70px; height: 0; transform-style: preserve-3d; transform: rotateX(60deg); }
.coin { position: absolute; left: 0; bottom: 0; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe79a, var(--gold) 55%, #d99a00); box-shadow: 0 0 0 3px #c98a00 inset; transform: translateZ(calc(var(--n) * 7px)); animation: coinDrop .5s var(--bounce) both; }
.coin::after { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: #a06c00; font-size: 1.4rem; }
.coin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; transform: translateZ(-6px); background: #b07a00; }
@keyframes coinDrop { from { transform: translateZ(calc(var(--n) * 7px + 200px)); opacity: 0; } }
.calc__emi { text-align: center; }
.calc__emi small { color: var(--ink-3); font-weight: 700; }
.calc__emi b { display: block; font-size: 2.8rem; font-weight: 900; font-style: italic; color: var(--p700); line-height: 1.1; text-shadow: 3px 3px 0 var(--p100); }
.calc__rows { display: grid; gap: 10px; margin: 20px 0 24px; padding: 18px 0; border-block: 1.5px dashed var(--p100); }
.calc__rows div { display: flex; justify-content: space-between; color: var(--ink-2); font-weight: 600; }
.calc__rows b { color: var(--ink); }

/* ---------- Stats ---------- */
.stats { position: relative; overflow: hidden; padding: 70px 0; background: linear-gradient(120deg, var(--p950), var(--p800)); color: #fff; }
.stats::before { content: ""; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.12), transparent 25%, rgba(232,95,168,.18), transparent 55%); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; letter-spacing: .02em; font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 900; font-style: italic; text-shadow: 3px 3px 0 var(--p600), 6px 6px 0 rgba(0,0,0,.4); color: var(--p400); }
.stat > span { opacity: .85; font-weight: 600; }

/* ---------- Stories: 3D coverflow ---------- */
.quote-mark { font-size: 3.4rem; line-height: 0; vertical-align: -.3em; color: var(--p700); font-weight: 900; margin-right: 6px; }
.coverflow { position: relative; height: 380px; margin-top: 50px; perspective: 1400px; transform-style: preserve-3d; touch-action: pan-y; user-select: none; }
.story { position: absolute; left: 50%; top: 0; width: min(640px, 82vw); height: 340px; margin-left: calc(min(640px, 82vw) / -2); padding: 34px 40px; border-radius: 34px; color: #fff; text-align: center; background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(150deg, var(--p800), var(--p950)); box-shadow: 0 12px 0 #140e00, var(--shadow-lg); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 16px; transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s; cursor: pointer; }
.story p { font-size: 1.08rem; font-weight: 600; max-width: 480px; }
.story__av { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; font-weight: 900; font-style: italic; color: #fff; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), transparent 60%), var(--c); box-shadow: 0 0 0 6px rgba(255,255,255,.25), 0 14px 26px -8px rgba(0,0,0,.4); align-self: center; }
.story.is-active .story__av { animation: avSpin 1.2s var(--bounce); }
@keyframes avSpin { from { transform: rotateY(-180deg) scale(.6); } }
.story__who { justify-self: start; text-align: left; }
.story__who b { display: block; }
.story__who small { opacity: .9; } .story__who em { font-style: normal; font-weight: 900; color: #ffe08a; }
.coverflow__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; font-weight: 900; color: var(--p700); background: #fff; box-shadow: 0 5px 0 var(--p300), var(--shadow); transition: transform .3s var(--bounce); }
.round-btn:hover { transform: translateY(-3px) scale(1.06); }
.round-btn:active { transform: translateY(3px); }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: var(--p300); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.dots button.on { width: 30px; background: var(--p700); }

/* ---------- FAQ ---------- */
.faq__title { margin-bottom: 30px; }
.accordion { border-top: 1.5px solid var(--p100); }
.acc { border-bottom: 1.5px solid var(--p100); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 22px 12px; font-size: 1.12rem; font-weight: 700; transition: color .3s, background .3s; border-radius: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--p700); background: var(--p50); }
.acc__n { color: var(--p600); font-weight: 900; }
.acc__chev { margin-left: auto; width: 12px; height: 12px; border: solid var(--p600); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .45s var(--bounce); }
.acc.expanded .acc__chev { transform: rotate(-135deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__body > p { overflow: hidden; padding: 0 12px 0 40px; color: var(--ink-2); }
.acc.expanded .acc__body { grid-template-rows: 1fr; }
.acc.expanded .acc__body > p { padding-bottom: 22px; }
.disclaimer { margin-top: 60px; font-size: .82rem; color: var(--ink-3); }

/* ---------- Apply ---------- */
.apply { padding: 20px 0 110px; }
.apply__box { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 64px 56px; border-radius: 40px; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 40%), linear-gradient(130deg, var(--p950), var(--p800) 55%, var(--p700)); box-shadow: 0 14px 0 #140e00, var(--shadow-lg); overflow: hidden; isolation: isolate; }
.apply__copy p { margin-top: 10px; font-size: 1.1rem; opacity: .92; }
.display--sm .ch { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: .02em; }
.display--sm { margin: 0; }
.apply__deco { position: absolute; inset: 0; z-index: -1; perspective: 600px; pointer-events: none; }
.coin3d { position: absolute; width: 90px; height: 90px; left: 40%; top: -20px; transform-style: preserve-3d; animation: coinSpin 4s linear infinite; }
.coin3d::before, .coin3d::after, .coin3d i { position: absolute; inset: 0; border-radius: 50%; }
.coin3d::before { content: ""; background: #b07a00; transform: translateZ(-5px); }
.coin3d::after { content: ""; background: #b07a00; transform: translateZ(-2.5px); }
.coin3d i { display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 2.2rem; color: #a06c00; background: radial-gradient(circle at 40% 35%, #ffe79a, var(--gold) 55%, #d99a00); box-shadow: inset 0 0 0 4px #c98a00; }
.coin3d--2 { width: 60px; height: 60px; left: 6%; top: auto; bottom: 20px; animation-duration: 5s; animation-direction: reverse; }
.coin3d--2 i { font-size: 1.4rem; }
.coin3d--3 { width: 46px; height: 46px; left: auto; right: 6%; top: 24px; animation-duration: 3.4s; }
.coin3d--3 i { font-size: 1.1rem; }
@keyframes coinSpin { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(16px); } 100% { transform: rotateY(360deg) translateY(0); } }
.apply-form { display: grid; gap: 14px; padding: 28px; border-radius: 28px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.ff { position: relative; }
.ff input, .ff select { width: 100%; padding: 22px 18px 8px; border-radius: 16px; border: 0; background: #fff; color: var(--ink); outline: none; appearance: none; box-shadow: 0 4px 0 var(--p300); transition: box-shadow .3s, transform .3s var(--ease); }
.ff input:focus, .ff select:focus { box-shadow: 0 4px 0 var(--p300), 0 0 0 4px rgba(255,255,255,.45); transform: translateY(-2px); }
.ff label { position: absolute; left: 18px; top: 15px; color: var(--ink-3); pointer-events: none; transition: all .25s var(--ease); }
.ff input:focus + label, .ff input:not(:placeholder-shown) + label, .ff select:focus + label, .ff select:valid + label { top: 4px; font-size: .72rem; font-weight: 800; color: var(--p600); }
.btn__spinner { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--p100); border-top-color: var(--p600); animation: spin .8s linear infinite; }
.btn.loading .btn__label { display: none; } .btn.loading .btn__spinner { display: block; }
.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, var(--p900), var(--p950)); color: #f6edc9; padding: 70px 0 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 30px; font-size: .92rem; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__grid > div > a { display: block; padding: 3px 0; transition: color .3s, transform .3s var(--ease); }
.footer__grid > div > a:hover { color: #fff; transform: translateX(5px); }
.footer__grid p { margin-bottom: 4px; } .footer__grid p b { color: #fff; }
.footer__co { display: grid; align-content: start; gap: 4px; }
.footer__co b { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-weight: 800; transition: transform .4s var(--bounce), background .3s; }
.socials a:hover { background: var(--p500); color: var(--p950); transform: translateY(-4px) rotate(-8deg); }
.footer__warning { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.15); }
.warn { font-weight: 900; font-style: italic; color: #fff; }
.warn--zh { font-family: "Noto Sans TC", sans-serif; perspective: 800px; }
.warn--zh .ch { display: inline-block; font-size: clamp(1.8rem, 4.4vw, 3.4rem); opacity: 0; transform: translateY(-40px) rotateX(90deg); text-shadow: 2px 2px 0 var(--p500), 4px 4px 0 var(--p900), 8px 10px 16px rgba(0,0,0,.3); }
.warn--zh.split-in .ch { animation: chIn .8s var(--bounce) forwards; animation-delay: calc(var(--i) * 50ms); }
.warn--zh.split-done .ch { opacity: 1; transform: none; animation: none; }
.warn--en { font-size: clamp(1rem, 2vw, 1.4rem); margin-top: 6px; }
.footer__warning small { display: block; margin-top: 8px; font-weight: 800; font-style: italic; }

/* ---------- Floating actions ---------- */
.side-actions { position: fixed; right: 18px; bottom: 24px; z-index: 900; display: grid; gap: 12px; }
.side-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; background: #fff; color: var(--p700); font-weight: 900; box-shadow: 0 5px 0 var(--p300), var(--shadow); transition: transform .35s var(--bounce), opacity .3s; }
.side-btn:hover { transform: translateY(-4px) scale(1.08) rotate(-6deg); }
.side-btn--wa { background: var(--green); box-shadow: 0 5px 0 #1d8a55, var(--shadow); animation: pulse 2.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 5px 0 #1d8a55, 0 0 0 0 rgba(43,182,115,.5); } 70% { box-shadow: 0 5px 0 #1d8a55, 0 0 0 16px rgba(43,182,115,0); } }
.side-btn--top { opacity: 0; pointer-events: none; transform: scale(.6); }
.side-btn--top.show { opacity: 1; pointer-events: auto; transform: none; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 2000; display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; background: var(--p900); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); transform: translate(-50%, 160%); transition: transform .6s var(--bounce); max-width: calc(100% - 32px); }
.toast span { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.toast.show { transform: translate(-50%, 0); }
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; z-index: 2001; pointer-events: none; border-radius: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner, .products__inner, .ai__grid, .calc, .apply__box { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 30px; }
  .hero__stage { height: 440px; min-height: 0; }
  .products__copy { order: -1; }
  .phone-stage { height: 520px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .header__top { grid-template-columns: auto 1fr auto; padding: 8px 0; }
  .header__contact, .header__account { display: none; }
  .logo { grid-column: 1; }
  .logo__mark { width: 46px; height: 46px; }
  .burger { display: block; grid-column: 3; }
  .header__nav { position: absolute; left: 0; right: 0; top: 100%; width: 100%; flex-direction: column; gap: 0; padding: 10px 16px 20px; background: #fff; box-shadow: 0 20px 30px -20px rgba(92,68,0,.5); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
  .header.open .header__nav { clip-path: inset(0 0 0 0); }
  .header__nav a { padding: 12px 6px; font-size: 1.1rem; }
  .header__nav a::after { left: 6px; right: auto; width: 40px; }
  .header__nav sup { position: static; margin-left: 6px; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .tile__face { border-radius: 26px; }
  .tile__front { font-size: .9rem; }
  .hero__stage { height: 380px; }
  .promo { bottom: 40px; }
  .promo__tag { font-size: 1rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .phone-stage { height: 480px; transform: scale(.9); }
  .chip3d--b { right: -6px; }
  .story { padding: 26px 22px; height: 360px; }
  .coverflow { height: 400px; }
  .apply__box { padding: 40px 20px; border-radius: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .side-actions { right: 12px; bottom: 16px; }
  .side-btn { width: 48px; height: 48px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .display .ch, .warn--zh .ch, .hero__brand { opacity: 1 !important; transform: none !important; }
}
