/* ========================================
   衔枝 Landing Page - Style Sheet
   Brand Colors: #4FC3F7 → #BA68C8
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --brand-start: #4FC3F7;
    --brand-end: #BA68C8;
    --brand-gradient: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.6);
    --text-muted: rgba(240, 240, 245, 0.35);
    --nav-scrolled-bg: rgba(10, 10, 20, 0.85);
    --particle-color: 79, 195, 247;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --section-gap: 120px;
    --container-width: 1140px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #eeeef4;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.6);
    --text-muted: rgba(26, 26, 46, 0.35);
    --nav-scrolled-bg: rgba(245, 245, 250, 0.85);
    --particle-color: 60, 80, 160;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Background Glow Effects ---------- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease;
}

[data-theme="light"] .bg-glow {
    opacity: 0.08;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: var(--brand-start);
    top: -100px;
    left: -150px;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: var(--brand-end);
    top: 40%;
    right: -200px;
}

.bg-glow--3 {
    width: 400px;
    height: 400px;
    background: var(--brand-start);
    bottom: 5%;
    left: 10%;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    padding: 12px 0;
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__logo {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__logo svg {
    width: 100%;
    height: 100%;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.theme-toggle__icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    line-height: 1;
}

.theme-toggle__icon--hidden {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle__icon--visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero__content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-start);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.hero__badge span {
    font-size: 0.75rem;
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero__title .gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__slogan {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: 0.08em;
}

.hero__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(79, 195, 247, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 195, 247, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn--ghost:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .btn--ghost:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

/* ---------- Section Common ---------- */
.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Features Grid ---------- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(186, 104, 200, 0.15));
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card__desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Platforms Section ---------- */
.platforms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 48px 32px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .platform-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.platform-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.12), rgba(186, 104, 200, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .platform-card__icon {
    border-color: rgba(0, 0, 0, 0.06);
}

.platform-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.platform-card__tech {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.platform-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.platform-card__status--available {
    background: rgba(76, 175, 80, 0.12);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.platform-card__stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.store-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.store-badge--primary {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(186, 104, 200, 0.15));
    border-color: rgba(79, 195, 247, 0.3);
    color: #4FC3F7;
}

.store-badge--primary:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.25), rgba(186, 104, 200, 0.25));
}

.store-badge--secondary {
    background: rgba(255, 183, 77, 0.12);
    border-color: rgba(255, 183, 77, 0.3);
    color: #FFB74D;
}

.store-badge--secondary:hover {
    background: rgba(255, 183, 77, 0.2);
}

[data-theme="light"] .store-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .store-badge:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .store-badge--primary {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(186, 104, 200, 0.1));
    border-color: rgba(79, 195, 247, 0.25);
    color: #1976D2;
}

[data-theme="light"] .store-badge--secondary {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.25);
    color: #E65100;
}

.platform-card__hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ---------- Stats Strip ---------- */
.stats {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------- CTA Section ---------- */
.cta {
    padding: var(--section-gap) 0;
    text-align: center;
}

.cta__box {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(186, 104, 200, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .cta__box {
    border-color: rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
}

.cta__box::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--brand-start);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    top: -100px;
    right: -50px;
    pointer-events: none;
}

.cta__title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__brand svg {
    width: 28px;
    height: 28px;
}

.footer__text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-delay="4"] {
    transition-delay: 0.4s;
}

.reveal[data-delay="5"] {
    transition-delay: 0.5s;
}

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    :root {
        --section-gap: 80px;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platforms__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: block;
    }

    .nav__links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-scrolled-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--glass-border);
    }
}

@media (max-width: 600px) {
    :root {
        --section-gap: 64px;
    }

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

    .platforms__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta__box {
        padding: 48px 24px;
    }
}