:root {
    --bg: #0a0e1a;
    --bg-soft: #0f1424;
    --card: rgba(22, 28, 46, 0.72);
    --card-hover: rgba(28, 36, 58, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --border-hi: rgba(139, 92, 246, 0.45);
    --text: #e6e9f0;
    --muted: #8b93a7;
    --g1: #6366f1;
    --g2: #8b5cf6;
    --g3: #ec4899;
    --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g1), var(--g3));
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 22px;
    font-size: 14px;
    transition: color .2s;
}

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

/* ---------- hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 110px 22px 90px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--g2), transparent 65%);
    top: -120px; left: -80px;
}

.glow-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--g3), transparent 65%);
    bottom: -160px; right: -60px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
}

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

.grad-text {
    background: linear-gradient(120deg, var(--g1), var(--g2) 50%, var(--g3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-tags a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: all .25s;
}

.hero-tags a:hover {
    border-color: var(--border-hi);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--muted);
    animation: bob 1.6s infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: .3; }
}

/* ---------- content ---------- */
.content {
    padding: 40px 22px 70px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 34px 30px;
    box-shadow: var(--shadow);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
    backdrop-filter: blur(6px);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hi);
    background: var(--card-hover);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(236, 72, 153, 0.22));
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 22px;
    margin: 0 0 16px;
    line-height: 1.3;
}

.card p { margin: 0 0 14px; color: #d6dae6; }

.card ul {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
}

.card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    color: #c8cdd9;
}

.card ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g1), var(--g3));
}

.chip-list li { margin-bottom: 11px; }
.chip-list li b { color: var(--text); }

.callout {
    margin-top: 4px !important;
    padding: 14px 18px;
    border-left: 3px solid var(--g2);
    background: rgba(139, 92, 246, 0.1);
    border-radius: 0 10px 10px 0;
    color: var(--text) !important;
    font-size: 15px;
}

/* mcp layers */
.layers { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.layer {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: #c8cdd9;
    font-size: 15px;
}
.layer-tag {
    display: inline-block;
    min-width: 64px;
    font-weight: 700;
    font-size: 13px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--g1), var(--g2));
    padding: 3px 10px;
    border-radius: 6px;
    margin-right: 12px;
}

/* cli vs */
.vs { margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vs-item {
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: #c8cdd9;
    font-size: 14.5px;
}
.vs-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    color: var(--g2);
    margin-bottom: 6px;
    letter-spacing: .5px;
}

.note-card {
    border-color: rgba(139, 92, 246, 0.25);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), var(--card));
}

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 30px 0;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-meta { color: var(--muted); font-size: 14px; margin: 4px 0; }
.footer-icp { margin: 6px 0 0; }
.footer-icp a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all .2s;
}
.footer-icp a:hover { color: var(--text); background: rgba(139, 92, 246, 0.14); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
    .hero { padding: 80px 20px 70px; }
    .hero h1 { font-size: 34px; }
    .subtitle { font-size: 15.5px; }
    .card { padding: 26px 20px; }
    .vs { grid-template-columns: 1fr; }
    .nav a { margin-left: 14px; }
}
