:root {
    --brand: #7650FC;
    --brand-light: #9B7DFF;
    --brand-dark: #5A3AD6;
    --brand-gradient: linear-gradient(120deg, #A78BFA 0%, #7650FC 70%);
    --bg: #ffffff;
    --bg-secondary: #f8f7fc;
    --text: #213547;
    --text-secondary: #64748b;
    --border: #e8e5f2;
    --shadow: 0 2px 24px rgba(118, 80, 252, 0.08);
    --radius: 12px;
    --nav-height: 64px;
}

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

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;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.95);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
}

.nav-brand img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--brand);
}

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

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ===== Hero ===== */
.hero {
    padding: 140px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: 80vh;
}

.hero-left {
    flex: 0 0 40%;
}

.hero-right {
    flex: 1 1 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
}

.hero-shot {
    width: 100%;
    transform: rotateY(-10deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.hero-shot img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(118, 80, 252, 0.35), 0 4px 16px rgba(118, 80, 252, 0.2);
    display: block;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(118, 80, 252, 0.08);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--brand);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(118, 80, 252, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ===== Features ===== */
.section {
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.feature-card {
    padding: 40px 28px;
    text-align: center;
    transition: background 0.25s;
}

.feature-card:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Screenshot ===== */
.screenshot-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-frame {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ===== Tech Stack ===== */
.tech-stack {
    background: var(--bg-secondary);
}

.tech-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s;
}

.tech-item:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.tech-item .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tech-item .icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.tech-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tech-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== Quick Start ===== */
.quickstart {
    max-width: 1000px;
    margin: 0 auto;
}

.code-block {
    background: #1e1e2e;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #16162a;
    border-bottom: 1px solid #2d2d4a;
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-lang {
    font-size: 0.78rem;
    color: #8892b0;
    font-weight: 500;
}

.code-block pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #cdd6f4;
}

.code-block .keyword { color: #cba6f7; }
.code-block .string { color: #a6e3a1; }
.code-block .comment { color: #6c7086; }
.code-block .type { color: #89b4fa; }
.code-block .method { color: #89dceb; }

/* ===== Footer ===== */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 2;
}

.footer a {
    color: var(--brand);
    font-weight: 500;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--brand-dark);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
        min-height: auto;
    }
    .hero-right {
        width: 100%;
    }
    .hero-right img {
        max-width: 560px;
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .feature-card {
        padding: 24px 16px;
    }
}
