/* ========== AppGrowing API & MCP Page ========== */
.api-page {
    background: #17151B;
    color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
}

.api-container {
    max-width: 1140px;
    width: calc(100% - 48px);
    margin: 0 auto;
}

.api-hero-logo {
    display: inline-block;
    margin-bottom: 32px;
}

.api-hero-logo img {
    width: 150px;
    display: block;
}

.api-breadcrumb {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 18px;
}

.api-breadcrumb a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 1px;
}

.api-breadcrumb a:hover {
    color: #9EB0FF;
    border-color: #9EB0FF;
}

/* ---------- Hero ---------- */
.api-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 56px 0 48px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 12% 0%, rgba(104, 77, 238, 0.4), transparent 42%),
        radial-gradient(circle at 90% 10%, rgba(0, 230, 160, 0.16), transparent 34%),
        linear-gradient(180deg, #17151B 0%, #201d29 55%, #17151B 100%);
}

.api-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 80%);
    mask-image: radial-gradient(circle at 50% 30%, #000, transparent 80%);
    pointer-events: none;
}

.api-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
    gap: 56px;
    align-items: center;
}

.api-hero h1 {
    font-size: 48px;
    line-height: 1.06;
    margin: 0 0 26px;
    max-width: 720px;
    background: linear-gradient(90deg, #684DEE, #9EB0FF, #00E6A0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.api-lede {
    color: #c9c6d2;
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 34px;
    max-width: 640px;
}

.api-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.api-btn {
    border: none;
    border-radius: 999px;
    height: 52px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.api-btn-primary {
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    color: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.api-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(104, 77, 238, 0.45);
    transform: translateY(-1px);
}

.api-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.api-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

.api-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.api-proof span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

/* ---------- Hero demo (video-like) ---------- */
.hero-demo {
    position: relative;
}

.hero-demo-window {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% 0%, rgba(104, 77, 238, 0.24), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(0, 230, 160, 0.12), transparent 52%),
        linear-gradient(160deg, #1c1530 0%, #141120 55%, #0f1426 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.demo-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #8d91a0;
    font-size: 12px;
    font-weight: 700;
}

.demo-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f57;
}

.demo-bar span:nth-child(2) {
    background: #ffbd2e;
}

.demo-bar span:nth-child(3) {
    background: #28c840;
    margin-right: auto;
}

.hero-demo-body {
    padding: 22px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2a2830 transparent;
}

.hero-bubble {
    max-width: 92%;
    margin: 0 0 14px;
    padding: 12px 15px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.6;
}

.hero-bubble.user {
    margin-left: auto;
    background: linear-gradient(135deg, #4216FB, #684DEE);
    color: #fff;
}

.hero-plan {
    color: #9fd8ff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    border-left: 2px solid rgba(104, 77, 238, 0.6);
    padding-left: 12px;
    margin: 0 0 8px 4px;
    animation: fadeUp 0.3s ease;
}

.hero-result {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    animation: fadeUp 0.4s ease;
}

.hero-result .hr-kicker {
    color: #00E6A0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 10px;
}

.hero-result .hr-row {
    color: #dedbe6;
    font-size: 13px;
    line-height: 1.55;
    padding: 4px 0;
}

.hero-result .hr-row b {
    display: block;
    color: #9EB0FF;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.hero-demo-replay {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hero-demo-replay:hover {
    border-color: rgba(104, 77, 238, 0.6);
}

/* ---------- Media marquee ---------- */
.media-band {
    padding: 18px 0 6px;
}

.media-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.media-track {
    display: flex;
    width: max-content;
    animation: marquee 46s linear infinite;
}

.media-marquee:hover .media-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.media-pill {
    flex: 0 0 auto;
    margin-right: 12px;
    padding: 10px 18px;
    border: 1px solid #2a2830;
    border-radius: 999px;
    color: #cfcbd8;
    font-size: 13px;
    font-weight: 700;
    background: #1e1c24;
}

.media-marquee-inline {
    margin-top: 32px;
}

/* ---------- Sections ---------- */
.api-demo {
    padding: 84px 0 20px;
}

.api-h2 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #fff;
}

.api-sub {
    color: #a9a6b2;
    font-size: 17px;
    line-height: 1.7;
    max-width: 720px;
    margin: 0;
}

.api-section {
    padding: 80px 0;
}

.api-section.dark {
    background:
        radial-gradient(circle at 20% 20%, rgba(104, 77, 238, 0.16), transparent 42%),
        linear-gradient(180deg, #1b1922, #17151B);
}

.api-section .api-h2 {
    margin-bottom: 12px;
}

.api-section .api-sub {
    margin-bottom: 26px;
}

/* ---------- Grid + cards ---------- */
.api-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.api-card {
    border: 1px solid #2a2830;
    border-radius: 16px;
    padding: 26px;
    background: #1e1c24;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.api-card:hover {
    border-color: rgba(104, 77, 238, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(104, 77, 238, 0.12);
}

.api-card h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 10px;
}

.api-card p {
    color: #b0b0b0;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

/* Capability cards with mini-visuals */
.cap-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(104, 77, 238, 0.16);
    border: 1px solid rgba(104, 77, 238, 0.3);
    color: #9EB0FF;
    margin-bottom: 14px;
}

.cap-icon svg {
    width: 22px;
    height: 22px;
}

.cap-mini {
    margin-top: 14px;
    border: 1px solid #2a2830;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    color: #8d91a0;
    background: #17151B;
}

.input-mini {
    color: #c9c6d2;
    font-style: italic;
}

.input-mini::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00E6A0;
    margin-right: 7px;
}

.thread-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thread-mini span {
    max-width: 88%;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.4;
}

.thread-mini .t-user {
    align-self: flex-end;
    background: rgba(104, 77, 238, 0.22);
    color: #cfd3ff;
}

.thread-mini .t-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    color: #b9b6c4;
}

.file-mini {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.file-mini span::before {
    content: "\25B8 ";
    color: #684DEE;
}

.mode-mini {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mode-mini span {
    background: rgba(0, 230, 160, 0.1);
    border: 1px solid rgba(0, 230, 160, 0.2);
    color: #00E6A0;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 800;
}

/* Use-case chat mockups */
.use-chat {
    margin-top: 16px;
    border: 1px solid #2a2830;
    border-radius: 12px;
    background: #17151B;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.use-chat span {
    max-width: 92%;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.5;
}

.use-chat .u-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #4216FB, #684DEE);
    color: #fff;
}

.use-chat .u-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dedbe6;
}

/* Use-case pyramid */
.pyramid {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pyramid-apex {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 24px solid #9EB0FF;
    filter: drop-shadow(0 4px 12px rgba(158, 176, 255, 0.5));
}

.pyramid-tier {
    border-radius: 14px;
    text-align: center;
    padding: 20px 18px;
    border: 1px solid;
    transition: transform 0.2s, border-color 0.2s;
}

.pyramid-tier:hover {
    transform: translateY(-2px);
}

.pyramid-tier .pt-name {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.pyramid-tier .pt-desc {
    display: block;
    font-size: 13px;
    color: #b9b6c4;
    margin-top: 5px;
}

.tier-top {
    width: 56%;
    max-width: 360px;
    background: linear-gradient(135deg, rgba(104, 77, 238, 0.55), rgba(0, 230, 160, 0.3));
    border-color: rgba(158, 176, 255, 0.6);
}

.tier-mid {
    width: 78%;
    max-width: 500px;
    background: rgba(104, 77, 238, 0.2);
    border-color: rgba(104, 77, 238, 0.4);
}

.tier-base {
    width: 100%;
    max-width: 640px;
    background: rgba(104, 77, 238, 0.12);
    border-color: rgba(104, 77, 238, 0.26);
}

.pyramid-note {
    margin-top: 26px;
    text-align: center;
    color: #8d91a0;
    font-size: 14px;
}

/* ---------- Workflow prompt tabs ---------- */
.wf-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 22px;
}

.wf-tab {
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid #2a2830;
    background: #1e1c24;
    color: #cfcbd8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.wf-tab:hover {
    border-color: rgba(104, 77, 238, 0.6);
    color: #fff;
}

.wf-tab.active {
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    border-color: transparent;
    color: #fff;
}

.wf-panel {
    border: 1px solid #33303d;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 0%, rgba(104, 77, 238, 0.22), transparent 55%),
        radial-gradient(circle at 95% 100%, rgba(0, 230, 160, 0.1), transparent 50%),
        linear-gradient(160deg, #1c1530 0%, #1b1824 55%, #12162a 100%);
    padding: 28px;
}

.wf-head h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #fff;
}

.wf-head p {
    margin: 0 0 18px;
    color: #a9a6b2;
    font-size: 15px;
    line-height: 1.6;
}

.wf-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.wf-prompts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wf-prompt {
    border: 1px solid #2a2830;
    border-radius: 12px;
    background: #17151B;
    padding: 16px;
}

.wf-plabel {
    display: inline-block;
    color: #00E6A0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.wf-ptext {
    margin: 0;
    color: #cfcbd8;
    font-size: 13.5px;
    line-height: 1.7;
}

/* ---------- Charts ---------- */
.wf-viz {
    border: 1px solid #2a2830;
    border-radius: 12px;
    background: #17151B;
    padding: 18px;
}

.wf-viz-title {
    color: #8d91a0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-row {
    display: grid;
    grid-template-columns: 96px 1fr 42px;
    gap: 10px;
    align-items: center;
}

.bar-label {
    color: #a9a6b2;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #684DEE, #00E6A0);
}

.bar-val {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.chart-line-wrap {
    position: relative;
}

.chart-line {
    width: 100%;
    height: 200px;
    display: block;
}

.chart-line polyline {
    vector-effect: non-scaling-stroke;
}

.metric-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric {
    border: 1px solid #2a2830;
    border-radius: 12px;
    background: #17151B;
    padding: 14px 16px;
}

.metric-num {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #9EB0FF, #00E6A0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    color: #a9a6b2;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

@media (max-width: 920px) {
    .wf-body {
        grid-template-columns: 1fr;
    }
}

/* ---------- Comparison ---------- */
.api-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 34px;
}

.compare-card {
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #2a2830;
    background: #1e1c24;
}

.compare-card h3 {
    font-size: 18px;
    margin: 0 0 12px;
}

.compare-card p {
    color: #b0b0b0;
    line-height: 1.7;
    margin: 0;
    font-size: 14.5px;
}

.compare-card.raw {
    opacity: 0.85;
}

.compare-card.raw h3 {
    color: #8d91a0;
}

.raw-mock {
    margin: 16px 0;
    border: 1px solid #2a2830;
    border-radius: 10px;
    background: #17151B;
    padding: 10px 12px;
}

.raw-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    color: #6f6c7a;
}

.raw-row:last-child {
    border-bottom: 0;
}

.raw-row i {
    width: 30%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.compare-card.agg {
    border-color: rgba(104, 77, 238, 0.5);
    background: linear-gradient(135deg, rgba(104, 77, 238, 0.16), rgba(0, 230, 160, 0.08));
}

.compare-card.agg h3 {
    color: #fff;
}

.agg-mock {
    margin: 16px 0;
    border: 1px solid rgba(104, 77, 238, 0.4);
    border-radius: 12px;
    background: rgba(18, 16, 22, 0.7);
    padding: 14px 16px;
}

.agg-mock .am-kicker {
    color: #00E6A0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 10px;
}

.agg-mock .am-line {
    color: #dedbe6;
    font-size: 13px;
    padding: 4px 0;
}

.agg-mock .am-line b {
    color: #fff;
}

/* ---------- Stats ---------- */
.api-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.api-stat {
    border: 1px solid #2a2830;
    border-radius: 16px;
    padding: 26px;
    background: #1e1c24;
    text-align: center;
}

.api-stat-num {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #9EB0FF, #00E6A0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.api-stat-label {
    color: #a9a6b2;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.4;
}

/* ---------- Agent flow ---------- */
.agent-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 34px 0 36px;
}

.agent-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.at-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #3b3f4d, #2b2e37);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.at-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.at-code {
    font-size: 14px;
    letter-spacing: 0.02em;
}

.agent-tile .at-name {
    font-size: 12px;
    color: #a9a6b2;
    font-weight: 700;
}

.agent-tile.ag-core .at-mark {
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    border-color: rgba(255, 255, 255, 0.2);
}

.agent-tile.ag-core .at-mark.ag-logo {
    width: 60px;
    height: 60px;
    background: #fff;
    border-color: rgba(23, 21, 27, 0.1);
}

.at-mark.ag-logo img {
    object-fit: contain;
    padding: 11px;
    box-sizing: border-box;
}

.agent-tile.ag-core .at-name {
    color: #fff;
}

.flow-arrow {
    color: #00E6A0;
    display: flex;
    align-items: center;
}

.flow-arrow svg {
    width: 28px;
    height: 28px;
}

/* ---------- Demo tabs ---------- */
.demo-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 36px;
}

.demo-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-chip {
    text-align: left;
    padding: 16px 18px;
    border-radius: 12px;
    background: #1e1c24;
    border: 1px solid #2a2830;
    color: #cfcbd8;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-chip:hover {
    border-color: rgba(104, 77, 238, 0.6);
    color: #fff;
}

.demo-chip.active {
    border-color: #684DEE;
    background: rgba(104, 77, 238, 0.16);
    color: #fff;
    box-shadow: 0 0 0 1px #684DEE;
}

.demo-window {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% 0%, rgba(104, 77, 238, 0.24), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(0, 230, 160, 0.12), transparent 52%),
        linear-gradient(160deg, #1c1530 0%, #141120 55%, #0f1426 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.demo-body {
    padding: 22px;
}

.demo-bubble {
    max-width: 92%;
    margin: 0 0 16px;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.65;
}

.demo-bubble.user {
    margin-left: auto;
    background: linear-gradient(135deg, #4216FB, #684DEE);
    color: #fff;
}

.demo-bubble.ai {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dedbe6;
}

.demo-bubble.ai h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
}

.demo-bubble.ai ul {
    margin: 0 0 10px;
    padding-left: 18px;
}

.demo-bubble.ai li {
    margin-bottom: 5px;
}

.demo-bubble.ai strong {
    color: #00E6A0;
    font-weight: 700;
}

.demo-evidence {
    display: inline-block;
    margin-top: 4px;
    color: #00E6A0;
    background: rgba(0, 230, 160, 0.1);
    border: 1px solid rgba(0, 230, 160, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .api-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .api-hero h1 {
        font-size: 42px;
    }

    .api-grid,
    .api-compare {
        grid-template-columns: 1fr;
    }

    .api-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .api-hero {
        padding: 52px 0 46px;
    }

    .api-hero h1 {
        font-size: 32px;
    }

    .api-demo,
    .api-section {
        padding: 56px 0;
    }

    .api-container {
        width: calc(100% - 36px);
    }

    .api-h2 {
        font-size: 28px;
    }

    .api-stats {
        grid-template-columns: 1fr;
    }

    .api-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .api-btn {
        text-align: center;
    }

    .agent-flow {
        gap: 12px;
    }
}

/* ---------- Hero capability chips (replaces Replay) ---------- */
/* ---------- Install command ---------- */
.install-cmd {
    max-width: 560px;
    margin: 30px auto 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #121016;
    border: 1px solid #2a2830;
    border-radius: 12px;
    padding: 8px 8px 8px 16px;
}

.install-cmd-text {
    flex: 1;
    color: #9EB0FF;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.install-copy {
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    color: #fff;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.install-copy svg {
    width: 16px;
    height: 16px;
}

/* ---------- Mini WhatsApp buttons (matches floating bar style) ---------- */
.api-mini-wa,
.faq-mini-wa {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.api-mini-wa:hover,
.faq-mini-wa:hover {
    box-shadow: 0 4px 16px rgba(104, 77, 238, 0.5);
}

/* ---------- Prompt copy button ---------- */
.wf-prompt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wf-prompt-top .wf-plabel {
    margin-bottom: 0;
}

.wf-copy {
    border: 1px solid rgba(104, 77, 238, 0.5);
    background: rgba(104, 77, 238, 0.15);
    color: #fff;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
}

.wf-copy svg {
    width: 14px;
    height: 14px;
}

.wf-copy:hover {
    background: rgba(104, 77, 238, 0.3);
}

/* ---------- Floating bar two-button (api page) ---------- */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.sf-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sf-btn-primary {
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    color: #fff;
}

.sf-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(104, 77, 238, 0.5);
}

@media (max-width: 560px) {
    .hero-demo-models {
        justify-content: center;
    }

    .install-cmd {
        max-width: 100%;
    }

    .skill-float {
        flex-wrap: wrap;
    }

    .sf-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ---------- Script table viz ---------- */
.script-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.script-table th {
    text-align: left;
    color: #00E6A0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.script-table td {
    padding: 8px 10px;
    color: #cfcbd8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.script-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ---------- Dashboard viz ---------- */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.dash-card {
    border: 1px solid #2a2830;
    border-radius: 10px;
    background: #17151B;
    padding: 12px;
    text-align: center;
}

.dash-num {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #9EB0FF, #00E6A0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-label {
    color: #8d91a0;
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

.dash-bars {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 90px;
}

.dash-bar-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dash-bar-track {
    flex: 1;
    width: 100%;
    max-width: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.dash-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #684DEE, #00E6A0);
    border-radius: 6px;
}

.dash-bar-label {
    color: #8d91a0;
    font-size: 10px;
    font-weight: 700;
}

/* ---------- Mind map viz ---------- */
.mindmap {
    padding: 18px 6px 8px;
}

.mm-center {
    width: 140px;
    margin: 0 auto;
    padding: 12px 8px;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(104, 77, 238, 0.55), rgba(0, 230, 160, 0.3));
    border: 1px solid rgba(158, 176, 255, 0.5);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    position: relative;
}

.mm-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 2px;
    height: 16px;
    background: rgba(104, 77, 238, 0.5);
}

.mm-branch {
    margin: 16px auto 0;
    width: 92%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #2a2830;
    border-radius: 10px;
    background: #17151B;
    position: relative;
}

.mm-branch::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -16px;
    width: 2px;
    height: 16px;
    background: rgba(104, 77, 238, 0.4);
}

.mm-bname {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.mm-bsub {
    color: #8d91a0;
    font-size: 11px;
}

/* ---------- Info-feed viz ---------- */
.feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2a2830;
    border-radius: 10px;
    background: #17151B;
    padding: 9px 10px;
}

.feed-tag {
    flex: 0 0 auto;
    background: rgba(0, 230, 160, 0.12);
    border: 1px solid rgba(0, 230, 160, 0.25);
    color: #00E6A0;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.feed-text {
    color: #cfcbd8;
    font-size: 12px;
}

@media (max-width: 560px) {
    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mm-branch {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* ---------- Contrast balance (brighter text, lighter panels) ---------- */
.api-sub {
    color: #c7c4d0;
}

.api-card p,
.compare-card p {
    color: #c4c1cd;
}

.wf-ptext {
    color: #d4d1dc;
}

.wf-head p {
    color: #b9b6c4;
}

.wf-panel {
    border-color: #33303d;
}

.wf-prompt {
    background: #1b1922;
}

.metric,
.dash-card,
.feed-item,
.mm-branch {
    background: #1b1922;
}

.api-card {
    background: #22202b;
}

.compare-card {
    background: #22202b;
}

.metric-label,
.dash-label,
.mm-bsub,
.feed-text,
.api-stat-label {
    color: #a4a8b5;
}



/* ---------- Hero aurora canvas ---------- */
.api-hero #aurora-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* ---------- 底部悬浮大条（试用价值 + Google 登录 + WhatsApp 主 CTA） ---------- */
.api-page .skill-float {
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 26px 28px;
    min-height: 100px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.api-page .skill-float.is-visible {
    transform: translateY(0);
}

/* 顶部蓝紫渐变线条，让黑色条更醒目 */
.api-page .skill-float::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #684DEE, #00E6A0);
    z-index: 2;
}

.api-page .sf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-page .sf-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.api-page .sf-text {
    font-size: 18px;
    font-weight: 800;
}

.api-page .sf-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
}

.api-page .api-google-login {
    display: inline-flex;
    align-items: center;
}

.api-page .sf-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* 主 CTA 更突出 */
.api-page .sf-btn-primary {
    padding: 13px 26px;
    font-size: 15px;
}

/* 返回首页弱化为次级链接 */
.api-page .sf-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.api-page .sf-link:hover {
    color: #fff;
    border-color: #9EB0FF;
}

/* 让位给更高的底部大条（只影响 agent 页页脚） */
.api-page .huise {
    padding-bottom: 130px;
}

@media (max-width: 560px) {
    .api-page .skill-float {
        padding: 16px 14px;
        min-height: 0;
    }

    .api-page .sf-actions {
        width: 100%;
        justify-content: center;
    }

    .api-page .sf-actions .sf-btn {
        flex: 1;
    }
}

/* ---------- Hero interactive composer (lead-capture) ---------- */
.hero-demo-composer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    background: #121016;
}

.hd-suggests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hd-suggest {
    border: 1px solid rgba(104, 77, 238, 0.45);
    background: rgba(104, 77, 238, 0.12);
    color: #cfcbd8;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.hd-suggest:hover {
    background: rgba(104, 77, 238, 0.28);
    color: #fff;
}

.hd-form {
    display: flex;
    gap: 8px;
}

.hd-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.hd-input::placeholder {
    color: #8d91a0;
}

.hd-input:focus {
    border-color: rgba(104, 77, 238, 0.6);
}

.hd-send {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    color: #fff;
    width: 42px;
    font-size: 16px;
    cursor: pointer;
    flex: 0 0 auto;
}

.hd-cta {
    margin-top: 14px;
}

.hd-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #684DEE, #00E6A0);
    color: #fff;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.hd-cta-btn:hover {
    box-shadow: 0 6px 20px rgba(104, 77, 238, 0.45);
}

/* ---------- Composer entrance animation (interactive hint) ---------- */
.hd-suggest,
.hd-form {
    opacity: 0;
    animation: hdIn 0.5s ease forwards;
}
.hd-suggest:nth-child(1) { animation-delay: 0.35s; }
.hd-suggest:nth-child(2) { animation-delay: 0.5s; }
.hd-suggest:nth-child(3) { animation-delay: 0.65s; }
.hd-form { animation-delay: 0.8s; }

@keyframes hdIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hd-suggest,
    .hd-form {
        opacity: 1;
        animation: none;
    }
}

/* ---------- Report-generated card (interactive mode) ---------- */
.hb-title {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.hb-sub {
    font-size: 12px;
    color: #8d91a0;
    margin-bottom: 12px;
}


/* ---------- Skill 区块标题/介绍居中 ---------- */
#skill .api-h2,
#skill .api-sub {
    text-align: center;
}

#skill .api-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 全局标题与描述居中 ---------- */
.api-h2,
.api-sub,
.api-card,
.api-card h3,
.api-card p,
.compare-card,
.compare-card h3,
.compare-card p,
.wf-head h3,
.wf-head p,
.wf-plabel,
.wf-ptext {
    text-align: center;
}

.api-sub {
    margin-left: auto;
    margin-right: auto;
}
