:root {
    color-scheme: dark;
    font-size: 16px;
    --bg-deep: #030614;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-pill: rgba(148, 163, 255, 0.12);
    --text-primary: #f4f7ff;
    --text-muted: #b6c4e8;
    --accent: #8b5cf6;
    --accent-strong: #38bdf8;
    --border-soft: rgba(255, 255, 255, 0.18);
    --border-hard: rgba(255, 255, 255, 0.28);
    --shadow: 0 30px 120px rgba(15, 23, 42, 0.6);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "MiSans", "HarmonyOS Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(76, 29, 149, 0.45), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.32), transparent 50%),
        linear-gradient(145deg, #030614 0%, #050a1f 55%, #020411 100%);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.app-shell {
    position: relative;
    width: min(1080px, 100%);
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 32px;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    backdrop-filter: blur(26px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 3vw, 3.5rem);
    z-index: 1;
}

.app-shell::before {
    content: "";
    position: absolute;
    inset: 18% 12% auto 12%;
    height: 180px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
    filter: blur(24px);
    z-index: -1;
}

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 auto;
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    line-height: 1.15;
    font-weight: 700;
}

.lede {
    margin: 0 auto;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    min-width: 180px;
}

.btn.disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.btn-primary {
    background-image: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.35);
    color: #05070f;
}

.btn-outline {
    border-color: var(--border-hard);
    background: transparent;
    color: var(--text-primary);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.insight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.stat {
    padding: 1.75rem;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat .label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat .value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.stat .caption {
    margin-top: 0.45rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 22px;
    border: 1px solid var(--border-soft);
    background: rgba(20, 30, 54, 0.75);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 180px;
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--bg-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--bg-pill);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.donation-section {
    display: flex;
    justify-content: center;
    text-align: center;
}

.donation-panel {
    width: min(540px, 100%);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 28px;
    border: 1px solid var(--border-hard);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.78), rgba(23, 37, 84, 0.82));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 60px rgba(3, 7, 18, 0.55);
}

.donation-panel h2 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.donation-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.qr-frame {
    width: 100%;
    border-radius: 24px;
    padding: clamp(1rem, 3vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 20, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.qr-frame img {
    width: min(100%, 380px);
    border-radius: 20px;
    display: block;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.qr-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    body {
        padding: 1.25rem;
    }

    .app-shell {
        border-radius: 24px;
    }

    .btn {
        width: 100%;
    }

    .feature-card,
    .stat {
        padding: 1.25rem;
    }
}
