:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --transition: 200ms ease;
    --max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img, svg { display: block; max-width: 100%; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
}

.nav-brand .logo {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: #cbd5e1;
    background: var(--bg-alt);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 13px;
}

.btn-ghost:hover { color: var(--text); }

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius);
}

/* ── Hero ── */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 40%, #ecfdf5 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99,102,241,0.15);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-code {
    margin: 48px auto 0;
    max-width: 520px;
    background: #1e293b;
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: left;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
    box-shadow: var(--shadow-lg);
    border: 1px solid #334155;
    position: relative;
}

.hero-code .comment { color: #64748b; }
.hero-code .str { color: #a5b4fc; }
.hero-code .cmd { color: #34d399; }

/* ── Section Common ── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(99,102,241,0.3);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: #fff;
}

.feature-icon svg { width: 22px; height: 22px; }

.fi-indigo { background: linear-gradient(135deg, #6366f1, #818cf8); }
.fi-green { background: linear-gradient(135deg, #10b981, #34d399); }
.fi-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.fi-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.fi-rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.fi-violet { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Integrations ── */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.integration-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.integration-card.is-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
    position: relative;
}

.integration-card.is-featured::after {
    content: "推荐";
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

.integration-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.integration-card h4 { margin: 0; font-size: 15px; font-weight: 600; }
.integration-card p { margin: 0; font-size: 12px; color: var(--text-secondary); }

/* ── Steps ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}

.step h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.step p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* ── CTA Section ── */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #312e81, #4338ca, #6366f1);
    color: #fff;
}

.cta-section h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
}

.cta-section p {
    margin: 0 auto 32px;
    max-width: 480px;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Footer ── */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer a { color: var(--text-secondary); font-weight: 500; }
.footer a:hover { color: var(--primary); }

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .steps::before { display: none; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .integrations-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 32px; }
    .section { padding: 56px 0; }
}
