:root {
    --coral: #ff7f50;
    --sky: #0ea5e9;
    --sage: #84cc16;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border: rgba(0, 0, 0, 0.06);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 960px;
}

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

body {
    background: #fafbfc;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Accent Colors ── */
.accent-coral { color: var(--coral); }
.accent-sky { color: var(--sky); }
.accent-sage { color: var(--sage); }

/* ── Header ── */
.site-header {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(250, 251, 252, 0.85);
}

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

.logo {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--coral);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 127, 80, 0.35);
}

.btn-outline {
    background: #fff;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ── Pipeline Diagram ── */
.flow {
    padding: 2rem 0 5rem;
}

.flow-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-align: center;
}

.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.node-model {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.node-input {
    padding: 0.6rem 1.2rem;
}

.node-orchestrator {
    background: #fff;
    border: 2px solid var(--coral);
    border-radius: 12px;
    padding: 0.8rem 1.4rem;
}

.node-orchestrator .node-model {
    color: var(--coral);
}

.node-planner {
    background: #fff;
    border: 2px solid var(--sky);
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.node-planner .node-model {
    color: var(--sky);
}

.node-coder {
    background: #fff;
    border: 2px solid var(--coral);
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.node-coder .node-model {
    color: var(--coral);
}

.node-designer {
    background: #fff;
    border: 2px solid var(--sage);
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.node-designer .node-model {
    color: var(--sage);
}

.pipeline-line {
    width: 50px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
}

.pipeline-fan {
    width: 50px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
}

.fan-line {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--border);
}

.fan-top {
    top: 16px;
    transform: rotate(-22deg);
    transform-origin: left center;
}

.fan-mid {
    top: 50%;
    transform: translateY(-50%);
}

.fan-bot {
    bottom: 16px;
    transform: rotate(22deg);
    transform-origin: left center;
}

.pipeline-agents {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ── Agent Detail Rows ── */
.agents {
    padding: 3rem 0 4rem;
}

.agent-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem 0;
}

.agent-name {
    flex-shrink: 0;
    min-width: 200px;
}

.agent-model {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

.agent-role {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

.agent-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    line-height: 1.65;
}

.divider {
    border: none;
    height: 1px;
    background: var(--border);
}

/* ── Install ── */
.install {
    text-align: center;
    padding: 4rem 0 3rem;
}

.install h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.install-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 460px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.install-sub em {
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

.install-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Install Cards ── */
.install-cards {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    max-width: 640px;
    margin: 0 auto;
}

.install-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    width: calc(50% - 0.625rem);
    margin-bottom: 1.25rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.install-card:nth-child(odd) {
    margin-right: 1.25rem;
}

.install-card-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: baseline;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.install-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.install-card-model {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.install-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    -webkit-flex: 1;
    flex: 1;
    margin-bottom: 0.75rem;
}

.install-card-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-top: 0.25rem;
}

.install-card-buttons .btn + .btn {
    margin-left: 0.5rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

/* ── Prerequisites ── */
.prereqs {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.prereqs-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.prereq-row {
    padding: 1rem 0;
}

.prereq-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.prereq-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    line-height: 1.55;
}

.prereq-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.prereq-link:hover {
    color: var(--text-primary);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
    }

    .pipeline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pipeline-line {
        width: 2px;
        height: 30px;
    }

    .pipeline-fan {
        width: 100%;
        height: 20px;
    }

    .fan-top { transform: none; top: 0; }
    .fan-mid { display: none; }
    .fan-bot { transform: none; bottom: 0; }

    .pipeline-agents {
        width: 100%;
        align-items: center;
    }

    .agent-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .agent-name {
        min-width: 0;
    }

    .install-cards {
        display: block;
    }

    .install-card {
        width: 100%;
        margin-right: 0;
    }

    .install-card:nth-child(odd) {
        margin-right: 0;
    }
}
