/* ============================================================
   Agnes API Gateway — Landing Page
   ============================================================ */

:root {
    --ink: #0b1220;
    --text: #0f172a;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e6e9ef;
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --accent: #4f46e5;
    --accent-light: #818cf8;
    --radius: 16px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a { text-decoration: none; color: inherit; }
code { font-family: var(--mono); }
em { font-style: normal; }

/* ─── 导航 ─────────────────────────────────────────────── */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 18, 32, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .4);
    flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.brand-name em { color: #818cf8; font-weight: 500; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #b6c2d4; font-size: 13.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #f1f5f9; }

/* ─── 按钮 ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13.5px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .14); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
.btn-primary { background: #fff; color: var(--accent); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -6px rgba(0, 0, 0, .4); }
.btn-outline { border-color: rgba(255, 255, 255, .22); color: #e2e8f0; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .34); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
    background:
        radial-gradient(80% 90% at 20% -10%, rgba(99, 102, 241, .30) 0%, transparent 60%),
        radial-gradient(55% 60% at 85% 20%, rgba(139, 92, 246, .16) 0%, transparent 55%),
        var(--ink);
    color: #e2e8f0;
    padding: 96px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(65% 60% at 35% 25%, #000 0%, transparent 78%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12.5px; font-weight: 550; color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, .3);
    background: rgba(99, 102, 241, .1);
    padding: 5px 14px; border-radius: 999px;
    margin-bottom: 26px;
}
.pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .2);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .06); }
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 62px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 22px;
}
.hero h1 em {
    background: linear-gradient(90deg, #c7d2fe, #e9d5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    max-width: 560px;
    color: #94a3b8;
    font-size: 16.5px;
    margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-terminal {
    background: rgba(2, 6, 23, .72);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px -18px rgba(0, 0, 0, .55);
    max-width: 720px;
}
.term-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    background: rgba(148, 163, 184, .04);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(148, 163, 184, .22); }
.term-bar span:nth-child(1) { background: #f87171; }
.term-bar span:nth-child(2) { background: #fbbf24; }
.term-bar span:nth-child(3) { background: #34d399; }
.term-bar em { margin-left: auto; font-size: 11.5px; color: #64748b; font-style: normal; }
.hero-terminal pre { padding: 20px 22px; overflow-x: auto; }
.hero-terminal code { font-size: 13px; color: #cbd5e1; line-height: 1.75; }
.hero-terminal .c { color: #818cf8; }
.hero-terminal .s { color: #86efac; }

/* ─── 区块 ─────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }

.section-eyebrow {
    text-align: center;
    font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    text-align: center;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 750; letter-spacing: -.025em;
    margin-bottom: 12px;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 52px; }

/* ─── 特性 ─────────────────────────────────────────────── */
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px -14px rgba(15, 23, 42, .14);
    border-color: #d7dce4;
}
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef0fe, #f5f3ff);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature h3 { font-size: 16px; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 13.5px; }

/* ─── 文档 ─────────────────────────────────────────────── */
.doc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 36px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.doc-base {
    display: flex; align-items: center; gap: 16px;
    background: var(--ink);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.doc-base span { color: #64748b; font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.doc-base code { color: #a5b4fc; font-size: 13.5px; }
.doc-note { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.doc-note code.inline { background: #eef0f4; padding: 2px 7px; border-radius: 6px; font-size: 12px; color: #4338ca; }

.endpoint { margin-bottom: 28px; }
.endpoint:last-child { margin-bottom: 0; }
.ep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.method {
    font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
    padding: 3px 10px; border-radius: 6px; color: #fff;
}
.method-get { background: #059669; }
.method-post { background: #2563eb; }
.ep-head code { font-size: 14px; font-weight: 600; }
.ep-desc { color: var(--faint); font-size: 12.5px; }
.endpoint pre {
    background: var(--ink);
    border-radius: 10px;
    padding: 18px 20px;
    overflow-x: auto;
}
.endpoint code { font-size: 12.5px; color: #cbd5e1; line-height: 1.75; }
.endpoint .c { color: #818cf8; }
.endpoint .s { color: #86efac; }

/* ─── 模型 ─────────────────────────────────────────────── */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.model-card:hover { border-color: #c7cdf8; box-shadow: 0 12px 32px -14px rgba(79, 70, 229, .18); }
.model-card h3 {
    font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 14px;
}
.model-card ul { list-style: none; }
.model-card li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.model-card li:last-child { border-bottom: none; }
.model-card code { font-size: 12.5px; color: var(--accent-strong); }

/* ─── 页脚 ─────────────────────────────────────────────── */
.site-foot { background: var(--ink); color: #94a3b8; padding: 34px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot p { font-size: 12.5px; }
.site-foot a { color: #a5b4fc; font-size: 13px; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; }
.site-foot a:hover { color: #c7d2fe; }

/* ─── 响应式 ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .feature-grid, .model-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero { padding: 64px 0; }
    .section { padding: 60px 0; }
    .doc-card { padding: 24px 20px; }
}
