:root {
    --bg: #080808;
    --bg-alt: #0b0b0b;
    --surface: #111111;
    --surface-2: #1a1a1a;
    --surface-3: #222222;
    --border: #1e1e1e;
    --border-light: #2a2a2a;
    --accent: #c8a44e;
    --accent-dim: rgba(200,164,78,0.12);
    --accent-glow: rgba(200,164,78,0.25);
    --warm: #d4956a;
    --warm-dim: rgba(212,149,106,0.12);
    --text: #f0ece4;
    --text-2: #a09888;
    --text-3: #6a6258;
    --font-display: 'Cormorant Garamond', 'Noto Serif SC', 'Source Han Serif CN', serif;
    --font-body: 'Source Serif 4', 'Noto Serif SC', 'Source Han Serif CN', serif;
    --font-mono: 'DM Mono', 'Noto Sans Mono', monospace;
}
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent); text-decoration: none; }

/* Grain */
.grain {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9999;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 4vw; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(8,8,8,0.75);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.55rem; font-weight: 600;
    letter-spacing: 0.08em; color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.4rem; align-items: center; }
.nav-links a {
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-2); transition: color 0.25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.5rem 1.3rem; border: 1px solid var(--accent);
    color: var(--accent); background: transparent;
    cursor: pointer; transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* ── HERO ── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 10vh 6vw 6vh;
    overflow: hidden;
}
.hero-canvas {
    position: absolute; inset: 0; z-index: 0;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse 70% 50% at 25% 45%, rgba(200,164,78,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 75% 35%, rgba(212,149,106,0.04) 0%, transparent 65%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(8,8,8,0.95) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 2.5rem;
    padding: 0.45rem 1.3rem;
    border: 1px solid rgba(200,164,78,0.18);
    background: rgba(200,164,78,0.04);
}
.hero-badge .dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { opacity: 0.4; }
    50% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7.5vw, 5.8rem);
    font-weight: 300; line-height: 1.08;
    letter-spacing: -0.02em; margin-bottom: 2rem;
}
.hero h1 em {
    font-style: italic; color: var(--accent);
    display: inline-block;
}
.hero-sub {
    font-family: var(--font-mono);
    font-size: 0.78rem; line-height: 2.1;
    color: var(--text-2); letter-spacing: 0.03em;
    max-width: 600px; margin: 0 auto 3.2rem;
}
.hero-actions {
    display: flex; gap: 1.2rem;
    justify-content: center; flex-wrap: wrap;
}
.btn-primary {
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.95rem 2.6rem;
    background: var(--accent); color: var(--bg);
    border: none; cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover {
    background: #d9b55f;
    letter-spacing: 0.18em;
    box-shadow: 0 0 35px rgba(200,164,78,0.25);
}
.btn-outline {
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.95rem 2.6rem;
    background: transparent; color: var(--text-2);
    border: 1px solid var(--border-light);
    cursor: pointer; transition: all 0.35s;
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
}
.hero-stats {
    display: flex; gap: 3.5rem; justify-content: center;
    margin-top: 5rem; padding-top: 3rem;
    border-top: 1px solid var(--border);
}
.hero-stat .num {
    font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 300;
    color: var(--accent);
}
.hero-stat .label {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-3); margin-top: 0.35rem;
}

/* ── SECTIONS ── */
section { padding: 7rem 6vw; }
.section-label {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300; line-height: 1.15;
    letter-spacing: -0.01em; margin-bottom: 1rem;
}
.section-desc {
    font-size: 0.95rem; color: var(--text-2);
    max-width: 560px; line-height: 1.85;
}

/* ── WORKFLOW ── */
.workflow-section { background: var(--bg-alt); }
.workflow-header { text-align: center; margin-bottom: 4.5rem; }
.workflow-header .section-desc { margin: 1rem auto 0; }

.wf-track {
    display: flex; align-items: flex-start;
    justify-content: center; gap: 0;
    max-width: 1200px; margin: 0 auto;
    position: relative; flex-wrap: wrap;
}
.wf-step {
    flex: 1; min-width: 200px; max-width: 260px;
    text-align: center; position: relative;
    padding: 0 1rem;
}
.wf-num {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 300;
    color: var(--accent); opacity: 0.2;
    line-height: 1; margin-bottom: 0.8rem;
}
.wf-icon {
    width: 56px; height: 56px;
    border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; font-size: 1.4rem;
    background: var(--surface);
    transition: all 0.4s;
}
.wf-step:hover .wf-icon {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(200,164,78,0.12);
    transform: translateY(-3px);
}
.wf-name {
    font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.08em; color: var(--text);
    margin-bottom: 0.6rem;
}
.wf-desc {
    font-size: 0.78rem; color: var(--text-3);
    line-height: 1.65;
}
.wf-connector {
    position: absolute; top: 52px; right: -18px;
    width: 36px; display: flex; align-items: center;
    justify-content: center; z-index: 2;
}
.wf-connector svg { width: 36px; height: 12px; }
.wf-connector line {
    stroke: var(--accent); stroke-width: 1;
    stroke-dasharray: 4 3;
    animation: dashMove 1.5s linear infinite;
}
.wf-connector polygon { fill: var(--accent); }
@keyframes dashMove {
    to { stroke-dashoffset: -14; }
}

.wf-note {
    text-align: center; margin-top: 3rem;
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--text-3); letter-spacing: 0.04em;
}
.wf-note span { color: var(--accent); }

/* ── AGENTS ── */
.agents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; max-width: 1100px;
    margin: 0 auto; align-items: center;
}
.agent-info { padding-right: 1rem; }
.agent-info .section-desc { margin-bottom: 2.5rem; }
.agent-list { display: flex; flex-direction: column; gap: 0.6rem; }
.agent-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s;
}
.agent-item:hover {
    border-color: var(--accent);
    background: rgba(200,164,78,0.03);
}
.agent-dot {
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0; animation: dotPulse 2.5s ease-in-out infinite;
}
.agent-item:nth-child(1) .agent-dot { background: #c8a44e; animation-delay: 0s; }
.agent-item:nth-child(2) .agent-dot { background: #4ea4c8; animation-delay: 0.3s; }
.agent-item:nth-child(3) .agent-dot { background: #c8784e; animation-delay: 0.6s; }
.agent-item:nth-child(4) .agent-dot { background: #78c84e; animation-delay: 0.9s; }
.agent-item:nth-child(5) .agent-dot { background: #a44ec8; animation-delay: 1.2s; }
.agent-item:nth-child(6) .agent-dot { background: #c84e78; animation-delay: 1.5s; }
.agent-name {
    font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.04em; color: var(--text);
    white-space: nowrap;
}
.agent-role {
    font-size: 0.72rem; color: var(--text-3);
    margin-left: auto;
}

.agent-viz {
    position: relative; height: 420px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}
.agent-viz::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(200,164,78,0.04) 0%, transparent 70%);
}
.agent-viz svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.agent-viz svg line.conn {
    stroke: var(--accent); stroke-width: 0.5;
    opacity: 0.18;
    stroke-dasharray: 3 4;
    animation: dashMove 2.5s linear infinite;
}
.agent-viz svg circle.hub {
    fill: none; stroke: var(--accent);
    stroke-width: 0.5; opacity: 0.12;
}
.agent-viz .node {
    position: absolute; text-align: center;
    transform: translate(-50%,-50%);
    z-index: 2;
}
.agent-viz .node-ring {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid;
    display: flex; align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
    font-size: 1rem;
    transition: all 0.3s;
}
.agent-viz .node:hover .node-ring {
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(200,164,78,0.2);
}
.agent-viz .node-label {
    font-family: var(--font-mono); font-size: 0.55rem;
    letter-spacing: 0.06em; color: var(--text-3);
    white-space: nowrap;
}

/* ── FEATURES ── */
.features-section { background: var(--bg-alt); }
.features-header { text-align: center; margin-bottom: 4rem; }
.features-header .section-desc { margin: 1rem auto 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; max-width: 1100px;
    margin: 0 auto;
    background: var(--border);
}
.feature-card {
    background: var(--bg-alt);
    padding: 2.5rem 2rem;
    transition: background 0.4s;
}
.feature-card:hover { background: var(--surface); }
.feature-icon {
    font-size: 1.5rem; margin-bottom: 1.2rem;
    display: block;
}
.feature-card h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text); margin-bottom: 0.8rem;
}
.feature-card p {
    font-size: 0.8rem; color: var(--text-3);
    line-height: 1.75;
}

/* ── MODELS ── */
.models-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px; max-width: 1100px;
    margin: 3.5rem auto 0;
    background: var(--border);
}
.model-card {
    background: var(--surface);
    padding: 3rem 2.5rem;
    transition: all 0.4s;
}
.model-card:hover { background: var(--surface-2); }
.model-tag {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.2rem;
}
.model-card h3 {
    font-family: var(--font-display);
    font-size: 1.9rem; font-weight: 300;
    margin-bottom: 1rem; color: var(--text);
}
.model-card p {
    font-size: 0.82rem; color: var(--text-2);
    line-height: 1.85;
}
.model-specs {
    display: flex; gap: 2rem;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.model-spec .val {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 300;
    color: var(--accent);
}
.model-spec .lbl {
    font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-3); margin-top: 0.2rem;
}

/* ── PRICING ── */
.pricing-section { background: var(--bg-alt); }
.pricing-header { text-align: center; margin-bottom: 4rem; }
.pricing-header .section-desc { margin: 1rem auto 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px; max-width: 1100px;
    margin: 0 auto;
    background: var(--border);
}
.pricing-card {
    background: var(--bg-alt);
    padding: 2.8rem 2.2rem;
    position: relative;
    transition: background 0.4s;
}
.pricing-card:hover { background: var(--surface); }
.pricing-card.featured {
    background: var(--surface);
    border: 1px solid var(--accent);
    margin: -1px;
    z-index: 2;
}
.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 0.55rem;
    letter-spacing: 0.2em;
    padding: 0.2rem 1rem;
    background: var(--accent); color: var(--bg);
}
.pricing-name {
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-2); margin-bottom: 1.5rem;
}
.pricing-price {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 300;
    color: var(--text); margin-bottom: 0.3rem;
    line-height: 1;
}
.pricing-price .yuan { font-size: 1.2rem; color: var(--text-3); }
.pricing-period {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: var(--text-3); letter-spacing: 0.08em;
    margin-bottom: 2rem;
}
.pricing-features {
    list-style: none;
    padding: 1.8rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.pricing-features li {
    font-size: 0.78rem; color: var(--text-2);
    padding: 0.4rem 0;
    padding-left: 1.3rem;
    position: relative;
}
.pricing-features li::before {
    content: '—';
    position: absolute; left: 0;
    color: var(--accent); font-family: var(--font-mono);
}
.pricing-btn {
    display: block; width: 100%;
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.85rem;
    text-align: center; cursor: pointer;
    transition: all 0.35s;
    border: none;
}
.pricing-btn.primary {
    background: var(--accent); color: var(--bg);
}
.pricing-btn.primary:hover {
    background: #d9b55f;
    box-shadow: 0 0 25px rgba(200,164,78,0.2);
}
.pricing-btn.outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-2);
}
.pricing-btn.outline:hover {
    border-color: var(--accent); color: var(--accent);
}

.pricing-note {
    text-align: center; margin-top: 3rem;
    max-width: 1100px; margin-left: auto; margin-right: auto;
}
.pricing-note-main {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text-2); margin-bottom: 0.5rem;
}
.pricing-note-sub {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--text-3); line-height: 2;
}

/* ── CTA ── */
.cta-section {
    text-align: center;
    padding: 9rem 6vw;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200,164,78,0.06) 0%, transparent 70%);
}
.cta-section .section-title { margin-bottom: 1.2rem; position: relative; z-index: 1; }
.cta-section .section-desc {
    margin: 0 auto 3rem; text-align: center;
    position: relative; z-index: 1;
}
.cta-section .btn-primary { position: relative; z-index: 1; }

/* ── FOOTER ── */
footer {
    padding: 3.5rem 6vw;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 600;
    color: var(--text);
}
.footer-brand span { color: var(--accent); }
.footer-links {
    display: flex; gap: 2rem;
}
.footer-links a {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--text-3); letter-spacing: 0.04em;
}

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .agents-grid { grid-template-columns: 1fr; }
    .agent-viz { height: 320px; margin-top: 1rem; }
    .features-grid,
    .pricing-grid { grid-template-columns: 1fr; }
    .models-grid { grid-template-columns: 1fr; }
    .wf-track { flex-direction: column; align-items: center; gap: 2rem; }
    .wf-connector {
        top: auto; right: auto; bottom: -1.4rem;
        transform: rotate(90deg);
    }
    .pricing-card.featured { margin: 0; }
}
@media (max-width: 680px) {
    section { padding: 5rem 5vw; }
    .hero { padding: 8vh 5vw 5vh; }
    .hero-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
    .nav-links a:not(.nav-cta) { display: none; }
    .features-grid { grid-template-columns: 1fr; }
}