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

:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5A52E0;
    --accent: #FF6B9D;
    --accent-light: #FF8FB3;
    --text: #2D3348;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #FAFBFC;
    --white: #FFFFFF;
    --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --card-shadow-hover: 0 2px 8px rgba(0,0,0,.08), 0 8px 32px rgba(0,0,0,.06);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Nav ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary); }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-light); transition: color var(--transition); }
.nav-links a:hover { color: var(--primary); }

/* ===== Hero Carousel ===== */
.hero-carousel {
    margin-top: 64px;
    position: relative;
    height: 420px;
    overflow: hidden;
}

.hero-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.15) 0%, transparent 60%);
}

.hero-slide h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.hero-slide p {
    font-size: 18px;
    opacity: .9;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,.1);
    max-width: 480px;
}

.hs-icon { font-size: 52px; margin-bottom: 12px; position: relative; z-index: 1; }
.hs-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 16px; border-radius: 20px; background: rgba(255,255,255,.2); margin-bottom: 16px; position: relative; z-index: 1; }
.hs-stats { display: flex; gap: 28px; margin-top: 28px; position: relative; z-index: 1; }
.hs-stat { text-align: center; }
.hs-stat strong { display: block; font-size: 22px; font-weight: 800; }
.hs-stat span { display: block; font-size: 12px; opacity: .75; margin-top: 2px; }

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ===== Section Common ===== */
.section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    display: inline-block;
    font-size: 13px; font-weight: 600;
    color: var(--primary);
    background: rgba(108,99,255,.08);
    padding: 5px 14px; border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 34px; font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -.5px;
}

.section-sub {
    font-size: 17px; color: var(--text-light);
    max-width: 560px;
}

/* ===== App Store (redesigned) ===== */
.app-store-new {
    padding: 72px 24px 80px;
    text-align: center;
    background: var(--bg);
}

.app-brand {
    margin-bottom: 40px;
}

.app-brand img {
    width: 80px; height: 80px;
    margin: 0 auto 16px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(108,99,255,.2);
}

.app-brand h1 {
    font-size: 26px; font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.app-brand .tagline {
    font-size: 15px; color: var(--text-light);
    font-weight: 400;
}

.app-store-new h2 {
    font-size: 20px; font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.app-store-new > p {
    font-size: 14px; color: var(--text-light);
    margin-bottom: 32px;
}

.app-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px; font-weight: 600;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.app-badge .ab-icon { width: 22px; height: 22px; }

.app-badge.live {
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.app-badge.live:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108,99,255,.35);
}

.app-badge.coming {
    background: var(--white);
    color: var(--text-light);
    border-color: #E5E7EB;
    cursor: default;
}

/* ===== Features Carousel ===== */
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 32px 0 24px;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 240px;
    scroll-snap-align: center;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 20px 24px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
    cursor: pointer;
}

.carousel-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    margin-bottom: 16px;
}

.carousel-item p {
    font-size: 16px; font-weight: 600;
    color: var(--text);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.85); z-index: 9999;
    align-items: center; justify-content: center;
    padding: 40px;
    animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.3);
}

/* ===== Feature Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(108,99,255,.12);
}

.card .icon {
    width: 44px; height: 44px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 17px; font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.card p {
    font-size: 14px; color: var(--text-light);
    line-height: 1.7;
}

/* ===== Killer / Difference ===== */
.killer { background: #F9FAFF; }

.killer-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.killer-item {
    display: flex;
    gap: 18px;
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}

.killer-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.ki-icon { width: 48px; height: 48px; flex-shrink: 0; }

.killer-item h3 {
    font-size: 17px; font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.killer-item p {
    font-size: 14px; color: var(--text-light);
    line-height: 1.7;
}

/* ===== Roadmap ===== */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.roadmap-phase {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--card-shadow);
    position: relative;
    border-top: 4px solid transparent;
}

.phase-done { border-top-color: #10B981; }
.phase-now { border-top-color: var(--primary); }
.phase-next { border-top-color: #F59E0B; }

.rp-icon { width: 36px; height: 36px; margin-bottom: 12px; }

.roadmap-phase h3 {
    font-size: 18px; font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.roadmap-phase ul {
    list-style: none;
    padding: 0;
}

.roadmap-phase li {
    font-size: 14px; color: var(--text-light);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.roadmap-phase li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: .5;
}

/* ===== QR Modal ===== */
.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(4px);
}

.qr-body {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 36px 28px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.qr-body h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.qr-img {
    width: 200px; height: 200px;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #E5E7EB;
}

.qr-tip {
    font-size: 14px; color: var(--text-light);
    margin-bottom: 20px;
}

.qr-close {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 36px;
    border-radius: 50px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.qr-close:hover { background: var(--primary-dark); }

/* ===== Footer ===== */
.footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid #E5E7EB;
    background: var(--white);
}

.icp {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 4px 12px;
}

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

.icp-icon { width: 16px; height: 16px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .killer-list { grid-template-columns: 1fr; }
    .roadmap-grid { grid-template-columns: 1fr; }
    .hero-carousel { height: 340px; }
    .hero-slide h2 { font-size: 28px; }
    .hero-slide p { font-size: 16px; }
    .section-title { font-size: 28px; }
    .section { padding: 56px 20px; }
}

@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13px; }
    .hero-carousel { height: 300px; }
    .hero-slide h2 { font-size: 24px; }
    .hero-slide p { font-size: 14px; }
    .app-badges { flex-direction: column; align-items: center; }
    .carousel-item { flex: 0 0 200px; }
    .section-title { font-size: 24px; }
    .app-brand img { width: 64px; height: 64px; }
    .app-brand h1 { font-size: 26px; }
    .section { padding: 48px 16px; }
}
