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

:root {
    color-scheme: light;
    --ink: #1b2533;
    --muted: #4b5a6b;
    --accent: #c2412d; /* red pocket */
    --accent-strong: #9a3412;
    --accent-soft: #fee2e2;
    --highlight: #f59e0b;
    --surface: #ffffff;
    --surface-alt: #f7f7f3;
    --border: #e3e8ef;
    --shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

body {
    font-family: "Sora", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(160deg, #f6f1e9 0%, #e7f3f2 40%, #f4f7fb 100%);
    min-height: 100vh;
    padding: 32px 20px 48px;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(0);
    opacity: 0.4;
}

body::before {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.25), transparent 70%);
}

body::after {
    bottom: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 70%);
}

.language-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    border: 1px solid rgba(227, 232, 239, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(480px, calc(100vw - 48px));
    backdrop-filter: blur(10px);
    align-items: center;
}

.language-buttons {
    display: none;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.language-buttons button {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-buttons button:hover {
    color: var(--accent);
}

.language-buttons button.active {
    background: var(--accent);
    color: #fff;
}

.language-select {
    display: block;
    border: 1px solid rgba(227, 232, 239, 0.9);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--title);
    background: #fff;
    min-width: 160px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(227, 232, 239, 0.8);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.hero-header {
    padding: 72px 64px 56px;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(249, 115, 22, 0.08));
    border-bottom: 1px solid rgba(227, 232, 239, 0.7);
}

.brand-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.app-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: #fff;
    object-fit: cover;
}

.app-icon.small {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

header h1,
section h2,
h3 {
    font-family: "Space Grotesk", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", sans-serif;
}

header h1 {
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.tagline {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.35);
}

.ghost-link {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(15, 118, 110, 0.2);
    padding-bottom: 4px;
}

.ghost-link:hover {
    border-color: rgba(15, 118, 110, 0.6);
}

.hero-stats {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-caption {
    color: var(--muted);
    font-size: 0.95rem;
}

section {
    padding: 64px;
}

section h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    margin-bottom: 26px;
    color: var(--ink);
}

.features {
    background: var(--surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.15), rgba(249, 115, 22, 0.15));
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-badge svg {
    width: 28px;
    height: 28px;
}

.icon-badge.small {
    width: 46px;
    height: 46px;
    margin-bottom: 0;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
}

.links {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.resource-links {
    display: grid;
    gap: 18px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: var(--surface-alt);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.resource-link:hover {
    border-color: rgba(15, 118, 110, 0.4);
    box-shadow: 0 16px 24px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.resource-link strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.resource-link p {
    color: var(--muted);
    margin: 0;
}

footer {
    text-align: center;
    padding: 40px;
    background: #f2f5f4;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

footer p {
    margin: 6px 0;
}

/* Privacy Policy & Support Page Specific Styles */
.page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px 0 30px;
}

.page-header h1 {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    margin-bottom: 6px;
}

.page-header .eyebrow {
    margin-bottom: 4px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 16px 18px;
    background: var(--surface-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}

h3 {
    font-size: 1.15rem;
    color: var(--ink);
    margin-top: 24px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 14px;
    text-align: left;
}

ul,
ol {
    margin-left: 22px;
    margin-bottom: 16px;
    color: var(--muted);
}

li {
    margin-bottom: 8px;
}

strong {
    color: var(--ink);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.summary {
    background-color: #eff9f7;
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin-top: 36px;
    border-radius: 8px;
}

.summary strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

code {
    background: #f4f6f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SF Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-header {
        padding: 56px 36px 46px;
    }

    section {
        padding: 52px 36px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 24px 14px 40px;
    }

    .language-switcher {
        top: 14px;
        right: 14px;
        max-width: calc(100vw - 28px);
    }

    .language-buttons {
        display: none;
    }

    .language-select {
        display: block;
    }

    .container {
        border-radius: 22px;
    }

    .hero-header {
        padding: 46px 24px 40px;
    }

    .brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .app-store-badge {
        justify-content: center;
    }

    section {
        padding: 42px 24px;
    }

    .resource-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
