:root {
    --blue: #336dff;
    --blue-dark: #2453d6;
    --yellow: #ffc53d;
    --yellow-dark: #e0a416;
    --ink: #1b2340;
    --ink-soft: #4a5477;
    --paper: #ffffff;
    --paper-soft: #f2f6ff;
    --line: #dde5f5;
    --radius: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eef1fb;
        --ink-soft: #a8b1cf;
        --paper: #10162b;
        --paper-soft: #1a2140;
        --line: #2b3357;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC",
        "Noto Sans HK", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI",
        Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

a {
    color: var(--blue);
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.25;
}

.brand small {
    display: block;
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--ink-soft);
}

.site-header nav {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

.site-header nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
}

.site-header nav a:hover {
    color: var(--blue);
}

/* Hero */
.hero {
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 72px 0 84px;
}

.hero img {
    width: 132px;
    height: 132px;
    border-radius: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero .en-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 22px;
}

.hero p.tagline {
    max-width: 620px;
    margin: 0 auto 8px;
    font-size: 1.08rem;
}

.hero p.tagline-en {
    max-width: 620px;
    margin: 0 auto 36px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.store-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-buttons a {
    display: inline-block;
    background: var(--yellow);
    color: #4a3400;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.store-buttons a:hover {
    background: #ffd35f;
    transform: translateY(-2px);
}

.store-buttons small {
    display: block;
    font-weight: 500;
    font-size: 0.72rem;
}

/* Sections */
section {
    padding: 72px 0;
}

section.alt {
    background: var(--paper-soft);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 6px;
}

.section-head .en {
    color: var(--ink-soft);
    font-size: 1rem;
}

/* Feature cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
}

section.alt .card {
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(27, 35, 64, 0.06);
}

.card .emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.12rem;
    margin-bottom: 4px;
}

.card .en {
    display: block;
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.94rem;
    color: var(--ink-soft);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 24px 28px;
    text-align: center;
}

.step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.08rem;
    margin-bottom: 4px;
}

.step .en {
    display: block;
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* Services */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pill {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Privacy banner */
.privacy-banner {
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 56px 32px;
    text-align: center;
}

.privacy-banner h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 6px;
}

.privacy-banner .en {
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 18px;
}

.privacy-banner p {
    max-width: 560px;
    margin: 0 auto 24px;
    opacity: 0.95;
}

.privacy-banner a.link {
    color: var(--yellow);
    font-weight: 600;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-items: center;
    justify-content: space-between;
}

.site-footer nav {
    display: flex;
    gap: 20px;
}

.site-footer a {
    color: var(--ink-soft);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--blue);
}

/* Legal pages */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.legal h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 4px;
}

.legal .en-title {
    color: var(--ink-soft);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.legal .updated {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 1.25rem;
    margin: 40px 0 4px;
}

.legal h2 .en {
    display: block;
    font-size: 0.88rem;
    color: var(--blue);
    font-weight: 600;
}

.legal p {
    margin: 12px 0;
}

.legal p.en,
.legal li .en {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.legal ul {
    margin: 12px 0 12px 24px;
}

.legal li {
    margin: 8px 0;
}

.legal li .en {
    display: block;
}
