:root {
    --primary: #ff8a35;
    --primary-dark: #e67c30;
    --primary-light: #fff1e8;
    --secondary: #50e3c2;
    --logo: #00d486;
    --text: #333333;
    --text-2: #6b6b6b;
    --bg: #ffffff;
    --surface: #f7f8fb;
    --line: #ebebeb;
    --radius: 20px;
    --shadow: 0 18px 50px -20px rgba(255, 138, 53, .35);
    --font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", "Noto Sans SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root { --text: #f1f1f1; --text-2: #a8a8a8; --bg: #121212; --surface: #1b1b1d; --line: #2a2a2d; --primary-light: #2a1d14; --shadow: 0 18px 50px -20px rgba(255, 138, 53, .25); }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--primary); }
.lang { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 500; color: var(--text-2); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }
@media (max-width: 760px) { .nav-links { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-store { background: #111; color: #fff; padding: 10px 20px; position: relative; }
.btn-store small { display: block; font-size: .68rem; opacity: .75; font-weight: 400; line-height: 1.1; }
.btn-store b { display: block; font-size: 1.05rem; line-height: 1.2; }
.btn-store svg { width: 26px; height: 26px; fill: currentColor; }
.btn-store .soon { position: absolute; top: -9px; right: -6px; background: var(--secondary); color: #06362c; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .btn-store { background: #fff; color: #111; } }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; }
.hero::before { width: 460px; height: 460px; background: var(--primary); opacity: .22; top: -120px; right: -80px; }
.hero::after { width: 380px; height: 380px; background: var(--secondary); opacity: .22; bottom: -120px; left: -100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--primary), #ffb36b 60%, var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 20px 0 32px; font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .hero { padding: 44px 0 64px; } .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero p.lead { margin-inline: auto; } .cta-row { justify-content: center; } }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 280px; aspect-ratio: 9/18.5; border-radius: 42px; background: #111; padding: 10px; box-shadow: var(--shadow), 0 0 0 2px #2b2b2b inset; transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(4deg) translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } html { scroll-behavior: auto; } }
.screen { height: 100%; border-radius: 32px; background: #fff; color: #333; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.screen-top { background: var(--primary); color: #fff; padding: 34px 18px 18px; }
.screen-top small { opacity: .85; }
.screen-top h4 { font-size: 1.15rem; margin-top: 2px; }
.s-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; background: #f7f8fb; }
.s-card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); font-size: .8rem; }
.s-card b { display: block; font-size: .9rem; margin-bottom: 6px; }
.bar { height: 7px; border-radius: 99px; background: #eee; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 99px; }
.chips { display: flex; gap: 6px; margin-top: 8px; }
.chip { font-size: .68rem; background: var(--primary-light); color: var(--primary-dark); padding: 2px 8px; border-radius: 99px; }
.s-nav { display: flex; justify-content: space-around; padding: 10px; background: #fff; border-top: 1px solid #eee; }
.s-nav span { width: 22px; height: 22px; border-radius: 7px; background: #e6e6e6; }
.s-nav span:nth-child(2) { background: var(--primary); }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.2; font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }
.features { background: var(--surface); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(even) .icon { background: color-mix(in srgb, var(--secondary) 22%, transparent); color: #19b393; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .97rem; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.step { text-align: center; padding: 0 12px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.3rem; box-shadow: 0 10px 22px -8px var(--primary); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); }
.cta { padding: 0 0 88px; }
.cta-box { background: linear-gradient(120deg, var(--primary), #ffa25c 55%, #5fe6c8); color: #fff; border-radius: 32px; padding: 64px 32px; text-align: center; }
.cta-box h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.cta-box p { margin: 12px auto 28px; max-width: 520px; opacity: .95; }
.cta-box .cta-row { justify-content: center; }
.cta-box .btn-store { background: #111; color: #fff; }

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal .doc { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal .updated { color: var(--text-2); margin-bottom: 8px; }
.legal .draft { background: var(--primary-light); color: var(--primary-dark); border-radius: 12px; padding: 10px 14px; font-size: .9rem; margin: 14px 0 32px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 10px; }
.legal ul { padding-left: 1.3em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0; color: var(--text-2); font-size: .93rem; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--primary); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
