:root{
    --bg:#f7f8fb;
    --surface:#ffffff;
    --surface-soft:#f1f4f9;
    --text:#111827;
    --sub:#667085;
    --muted:#98a2b3;
    --line:#e5e7eb;
    --primary:#111827;
    --primary-soft:#eef2ff;
    --accent:#2563eb;
    --success:#22c55e;
    --danger:#ef4444;
    --radius-lg:28px;
    --radius-md:18px;
    --shadow:0 24px 80px rgba(15,23,42,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(37,99,235,.12), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(17,24,39,.08), transparent 28rem),
        var(--bg);
    color:var(--text);
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
textarea,
select{
    font:inherit;
}

.container{
    width:min(1120px, calc(100% - 48px));
    margin:0 auto;
}

.site-header{
    position:sticky;
    top:0;
    z-index:20;
    border-bottom:1px solid rgba(229,231,235,.82);
    background:rgba(247,248,251,.82);
    backdrop-filter:blur(18px);
}

.nav{
    height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:800;
    letter-spacing:-.04em;
}

.brand-mark{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--primary);
    color:#fff;
    box-shadow:0 12px 30px rgba(17,24,39,.18);
}

.brand-text{
    font-size:20px;
}

.menu{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px;
    border:1px solid rgba(229,231,235,.9);
    border-radius:999px;
    background:rgba(255,255,255,.72);
}

.menu a,
.lang-btn{
    border:0;
    border-radius:999px;
    background:transparent;
    color:#475467;
    cursor:pointer;
    font:inherit;
    font-size:14px;
    padding:9px 13px;
    transition:.2s ease;
    white-space:nowrap;
}

.menu a:hover,
.lang-btn:hover,
.menu .active{
    background:var(--primary);
    color:#fff;
}

.hero{
    padding:96px 0 76px;
}

.hero-panel,
.error-panel{
    overflow:hidden;
    position:relative;
    border:1px solid rgba(229,231,235,.9);
    border-radius:var(--radius-lg);
    background:rgba(255,255,255,.78);
    box-shadow:var(--shadow);
}

.hero-panel{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:44px;
    align-items:center;
    padding:56px;
}

.hero-panel.two-col{
    grid-template-columns:1fr 1fr;
}

.hero-panel::after,
.error-panel::after{
    content:"";
    position:absolute;
    right:-120px;
    top:-120px;
    width:360px;
    height:360px;
    border-radius:50%;
    background:rgba(37,99,235,.12);
}

.kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:22px;
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    color:#475467;
    font-size:14px;
}

.kicker::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--success);
}

.hero h1{
    font-size:clamp(54px, 9vw, 118px);
    line-height:.92;
    letter-spacing:-.08em;
}

.hero h2{
    margin-top:24px;
    max-width:620px;
    font-size:clamp(28px, 4vw, 48px);
    line-height:1.12;
    letter-spacing:-.05em;
}

.hero p{
    margin-top:20px;
    max-width:620px;
    color:var(--sub);
    font-size:18px;
    line-height:1.8;
}

.actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:34px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 20px;
    border:0;
    border-radius:14px;
    cursor:pointer;
    font-weight:700;
    transition:.2s ease;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
    box-shadow:0 14px 34px rgba(17,24,39,.18);
}

.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 40px rgba(17,24,39,.22);
}

.btn-secondary{
    border:1px solid var(--line);
    background:#fff;
    color:var(--text);
}

.btn-secondary:hover{
    border-color:#cbd5e1;
    transform:translateY(-2px);
}

.hero-visual,
.pipeline{
    position:relative;
    z-index:1;
    display:grid;
    gap:16px;
}

.terminal{
    overflow:hidden;
    border:1px solid #1f2937;
    border-radius:22px;
    background:#0b1220;
    color:#dbeafe;
    box-shadow:0 24px 60px rgba(15,23,42,.2);
}

.terminal-bar{
    display:flex;
    gap:8px;
    padding:16px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ef4444;
}

.dot:nth-child(2){background:#f59e0b;}
.dot:nth-child(3){background:#22c55e;}

.terminal pre{
    padding:22px;
    overflow:auto;
    color:#bfdbfe;
    font-size:14px;
    line-height:1.8;
}

.stats-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.stat-card,
.pipeline-step,
.metric,
.editor-panel,
.docs-sidebar,
.docs-article{
    border:1px solid var(--line);
    background:#fff;
    box-shadow:0 12px 40px rgba(15,23,42,.04);
}

.stat-card{
    padding:18px;
    border-radius:18px;
}

.stat-card strong{
    display:block;
    font-size:24px;
}

.stat-card span{
    display:block;
    margin-top:4px;
    color:var(--sub);
    font-size:13px;
}

.pipeline-step{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px;
    border-radius:18px;
}

.pipeline-step span{
    color:var(--sub);
    font-size:14px;
}

.pipeline-step strong{
    letter-spacing:-.03em;
}

.section{
    padding:86px 0;
}

.section-head{
    max-width:720px;
    margin:0 auto 42px;
    text-align:center;
}

.section-eyebrow{
    color:var(--accent);
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    font-size:13px;
}

.section-title{
    margin-top:10px;
    font-size:clamp(34px, 5vw, 56px);
    line-height:1.08;
    letter-spacing:-.05em;
}

.section-sub{
    margin-top:16px;
    color:var(--sub);
    line-height:1.8;
}

.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.grid.three{
    grid-template-columns:repeat(3,1fr);
}

.card{
    min-height:190px;
    padding:26px;
    border:1px solid rgba(229,231,235,.92);
    border-radius:var(--radius-md);
    background:rgba(255,255,255,.82);
    box-shadow:0 12px 40px rgba(15,23,42,.04);
    transition:.2s ease;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 52px rgba(15,23,42,.08);
}

.card-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    margin-bottom:18px;
    border-radius:14px;
    background:var(--primary-soft);
    color:var(--accent);
    font-weight:900;
}

.card h3{
    font-size:22px;
    letter-spacing:-.03em;
}

.card p{
    margin-top:10px;
    color:var(--sub);
    line-height:1.75;
}

.flow{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

.flow-step{
    padding:13px 16px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#fff;
    font-weight:700;
}

.flow-arrow{
    color:var(--muted);
}

.metrics{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.metric{
    padding:28px;
    border-radius:var(--radius-md);
    text-align:center;
}

.metric h3{
    font-size:42px;
    letter-spacing:-.06em;
}

.metric p{
    margin-top:8px;
    color:var(--sub);
}

.cta{
    padding:0 0 86px;
}

.cta-panel{
    padding:56px;
    border-radius:var(--radius-lg);
    background:#111827;
    color:#fff;
    text-align:center;
    box-shadow:var(--shadow);
}

.cta-panel h2{
    font-size:clamp(34px, 5vw, 58px);
    letter-spacing:-.06em;
}

.cta-panel p{
    max-width:620px;
    margin:16px auto 30px;
    color:#cbd5e1;
    line-height:1.8;
}

.cta-panel .btn-secondary{
    border-color:rgba(255,255,255,.2);
    background:rgba(255,255,255,.08);
    color:#fff;
}

.docs-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:24px;
    align-items:start;
}

.docs-sidebar,
.docs-article,
.editor-panel{
    border-radius:var(--radius-md);
}

.docs-sidebar{
    position:sticky;
    top:100px;
    padding:18px;
}

.docs-sidebar h3{
    margin-bottom:12px;
}

.docs-nav{
    display:grid;
    gap:8px;
}

.docs-nav a{
    display:block;
    padding:12px 14px;
    border-radius:12px;
    color:var(--sub);
}

.docs-nav a:hover,
.docs-nav a.active{
    background:var(--primary);
    color:#fff;
}

.docs-article{
    padding:36px;
}

.docs-article h1{
    font-size:clamp(34px, 5vw, 54px);
    letter-spacing:-.05em;
}

.docs-meta{
    margin-top:12px;
    color:var(--sub);
}

.docs-content{
    margin-top:32px;
    color:#263244;
    line-height:1.85;
}

.docs-content h2,
.docs-content h3{
    margin:28px 0 12px;
    color:var(--text);
    letter-spacing:-.03em;
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content blockquote{
    margin:14px 0;
}

.docs-content ul,
.docs-content ol{
    padding-left:24px;
}

.docs-content blockquote{
    padding:16px 18px;
    border-left:4px solid var(--accent);
    border-radius:12px;
    background:var(--surface-soft);
    color:#475467;
}

.editor-panel{
    padding:28px;
}

.form-grid{
    display:grid;
    gap:16px;
}

.form-row{
    display:grid;
    gap:8px;
}

.form-row label{
    font-weight:700;
}

.form-row input,
.form-row textarea,
.form-row select{
    width:100%;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    padding:13px 14px;
    color:var(--text);
}

.form-row textarea{
    min-height:120px;
    resize:vertical;
}

.toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:10px;
    border:1px solid var(--line);
    border-radius:14px 14px 0 0;
    background:var(--surface-soft);
}

.tool-btn{
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    cursor:pointer;
    padding:8px 10px;
    font-weight:700;
}

.editor-canvas{
    min-height:320px;
    padding:22px;
    border:1px solid var(--line);
    border-top:0;
    border-radius:0 0 14px 14px;
    background:#fff;
    line-height:1.85;
    outline:none;
}

.notice{
    margin-bottom:18px;
    padding:14px 16px;
    border-radius:14px;
    background:#ecfdf3;
    color:#067647;
}

.notice.error{
    background:#fef2f2;
    color:#b42318;
}

.error-main{
    min-height:calc(100vh - 76px - 116px);
    display:grid;
    place-items:center;
    padding:72px 0;
}

.error-panel{
    width:100%;
    max-width:820px;
    margin:0 auto;
    padding:64px;
    text-align:center;
}

.error-code,
.error-panel h1,
.error-panel p,
.error-panel .actions{
    position:relative;
    z-index:1;
}

.error-code{
    font-size:clamp(82px, 18vw, 168px);
    line-height:.9;
    letter-spacing:-.09em;
}

.error-panel h1{
    margin-top:20px;
    font-size:clamp(30px, 5vw, 52px);
    letter-spacing:-.05em;
}

.error-panel p{
    max-width:560px;
    margin:18px auto 0;
    color:var(--sub);
    font-size:18px;
    line-height:1.8;
}

.site-footer{
    border-top:1px solid var(--line);
    padding:34px 0;
    color:var(--sub);
}

.footer-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.footer-links{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}

.footer-links a:hover{
    color:var(--text);
}

@media(max-width:920px){
    .hero-panel,
    .hero-panel.two-col,
    .docs-layout{
        grid-template-columns:1fr;
        padding:38px;
    }

    .docs-layout{
        padding:0;
    }

    .docs-sidebar{
        position:static;
    }

    .grid,
    .grid.three{
        grid-template-columns:repeat(2,1fr);
    }

    .metrics{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:720px){
    .container{
        width:min(100% - 32px, 1120px);
    }

    .nav{
        height:auto;
        padding:14px 0;
        align-items:flex-start;
        flex-direction:column;
    }

    .menu{
        width:100%;
        justify-content:flex-start;
        overflow-x:auto;
        border-radius:18px;
    }

    .hero{
        padding:42px 0 56px;
    }

    .hero-panel,
    .cta-panel,
    .error-panel,
    .docs-article,
    .editor-panel{
        padding:28px;
    }

    .stats-row,
    .grid,
    .grid.three,
    .metrics{
        grid-template-columns:1fr;
    }

    .section{
        padding:62px 0;
    }

    .footer-inner{
        align-items:flex-start;
        flex-direction:column;
    }
}
