/* ===========================================================
   INTENTOS — unique layouts for Build / Agents / Deploy
   =========================================================== */

/* ---------- BUILD: split hero + bento + horizontal timeline ---------- */
.page-build .build-hero {
    padding: clamp(3rem, 7vw, 6rem) 1.5rem 2rem;
}

.page-build .build-hero-grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.page-build .build-hero-copy { text-align: left; }
.page-build .build-hero-copy .lead { margin: 1.1rem 0 0; max-width: 32rem; }
.page-build .build-hero-copy .hero-actions { justify-content: flex-start; margin-top: 1.75rem; }

.page-build .build-preview {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid var(--t-border);
    background: var(--t-surface);
    box-shadow: var(--t-shadow);
    overflow: hidden;
    min-height: 22rem;
}

.page-build .build-preview-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--t-border);
    background: var(--t-surface-2);
}

.page-build .build-preview-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--t-border);
}

.page-build .build-preview-body {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 18rem;
}

.page-build .build-preview-chat {
    padding: 1rem;
    border-right: 1px solid var(--t-border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: color-mix(in srgb, var(--t-bg) 50%, var(--t-surface));
}

.page-build .build-bubble {
    max-width: 92%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    font-size: 0.72rem;
    line-height: 1.45;
}

.page-build .build-bubble.is-user {
    align-self: flex-end;
    background: var(--t-accent);
    color: var(--t-accent-text);
    border-bottom-right-radius: 0.2rem;
}

.page-build .build-bubble.is-agent {
    align-self: flex-start;
    background: var(--t-surface-3);
    border: 1px solid var(--t-border);
    border-bottom-left-radius: 0.2rem;
}

.page-build .build-preview-code {
    padding: 0.85rem;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.68rem;
    line-height: 1.55;
    color: var(--t-text-muted);
    background: var(--t-surface-2);
}

.page-build .build-preview-code .kw { color: var(--t-text); font-weight: 600; }
.page-build .build-preview-code .tag { opacity: 0.85; }

.page-build .build-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.page-build .build-bento-item {
    grid-column: span 4;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: 1.35rem;
    padding: 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-build .build-bento-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--t-shadow);
}

.page-build .build-bento-item.is-wide { grid-column: span 6; }
.page-build .build-bento-item.is-tall { grid-row: span 1; }
.page-build .build-bento-item h3 { font-size: 1.05rem; font-weight: 600; margin: 0.85rem 0 0.4rem; }
.page-build .build-bento-item p { font-size: 0.9rem; color: var(--t-text-muted); line-height: 1.5; }

.page-build .build-timeline-wrap { overflow-x: auto; padding-bottom: 0.5rem; }

.page-build .build-timeline {
    display: flex;
    gap: 0;
    min-width: min(100%, 46rem);
    margin: 0 auto;
    position: relative;
}

.page-build .build-timeline::before {
    content: '';
    position: absolute;
    top: 1.65rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--t-border);
    z-index: 0;
}

.page-build .build-timeline-step {
    flex: 1;
    text-align: center;
    padding: 0 0.75rem;
    position: relative;
    z-index: 1;
}

.page-build .build-timeline-dot {
    width: 3.3rem;
    height: 3.3rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background: var(--t-accent);
    color: var(--t-accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 3px solid var(--t-bg);
}

.page-build .build-timeline-step h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.page-build .build-timeline-step p { font-size: 0.82rem; color: var(--t-text-muted); line-height: 1.45; }

.page-build .build-cta {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem 2.25rem;
    border-radius: 1.75rem;
    border: 1px solid var(--t-border);
    background: var(--t-surface);
}

.page-build .build-cta h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 700; }
.page-build .build-cta p { color: var(--t-text-muted); margin-top: 0.35rem; font-size: 0.95rem; }

/* ---------- AGENTS: hub diagram + zigzag roster + vertical flow ---------- */
.page-agents .agents-hero {
    padding: clamp(3rem, 7vw, 5.5rem) 1.5rem 1rem;
    text-align: center;
}

.page-agents .agents-hero .lead { max-width: 36rem; margin: 1rem auto 0; }
.page-agents .agents-hero .hero-actions { margin-top: 1.5rem; }

.page-agents .agents-hub {
    max-width: 40rem;
    margin: 2.5rem auto 0;
    position: relative;
    aspect-ratio: 1;
    max-height: 26rem;
}

.page-agents .agents-hub-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    background: var(--t-accent);
    color: var(--t-accent-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    font-weight: 700;
    font-size: 0.78rem;
    z-index: 2;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--t-accent) 18%, transparent);
}

.page-agents .agents-hub-core img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.page-agents .agents-hub-ring {
    position: absolute;
    inset: 8%;
    border: 1px dashed var(--t-border);
    border-radius: 50%;
}

.page-agents .agents-hub-node {
    position: absolute;
    width: 6.5rem;
    padding: 0.65rem 0.5rem;
    border-radius: 1rem;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    box-shadow: var(--t-shadow);
}

.page-agents .agents-hub-node .feature-ico {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.35rem;
    border-radius: 0.55rem;
}

.page-agents .agents-hub-node .feature-ico svg { width: 1rem; height: 1rem; }

.page-agents .agents-roster {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-agents .agents-island {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.2rem 1.35rem;
    border-radius: 1.35rem;
    border: 1px solid var(--t-border);
    background: var(--t-surface);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-agents .agents-island:hover {
    transform: translateY(-3px);
    box-shadow: var(--t-shadow);
}

.page-agents .agents-island-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-surface-3);
    flex-shrink: 0;
}

.page-agents .agents-island-badge svg { width: 1.35rem; height: 1.35rem; }

.page-agents .agents-island h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.page-agents .agents-island p {
    color: var(--t-text-muted);
    line-height: 1.5;
    font-size: 0.82rem;
    margin: 0;
}

.page-agents .agents-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 34rem;
    margin: 0 auto;
}

.page-agents .agents-pipe-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    position: relative;
}

.page-agents .agents-pipe-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: 3.5rem;
    bottom: -0.25rem;
    width: 2px;
    background: linear-gradient(var(--t-border), transparent);
}

.page-agents .agents-pipe-marker {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    background: var(--t-surface-3);
    border: 1px solid var(--t-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.page-agents .agents-pipe-step h3 { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.3rem; }
.page-agents .agents-pipe-step p { color: var(--t-text-muted); font-size: 0.9rem; line-height: 1.5; }

.page-agents .agents-cta {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
}

.page-agents .agents-cta-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 2px solid var(--t-border);
}

.page-agents .agents-cta h2 { font-size: 1.5rem; font-weight: 700; }
.page-agents .agents-cta p { color: var(--t-text-muted); margin: 0.65rem 0 1.25rem; }

/* ---------- DEPLOY: terminal hero + infra stack + progress rail ---------- */
.page-deploy .deploy-hero {
    padding: clamp(3rem, 7vw, 5rem) 1.5rem 2rem;
}

.page-deploy .deploy-hero-grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.page-deploy .deploy-hero-copy { text-align: left; }
.page-deploy .deploy-hero-copy .lead { margin: 1rem 0 0; max-width: 30rem; }
.page-deploy .deploy-hero-copy .hero-actions { justify-content: flex-start; margin-top: 1.5rem; }

.page-deploy .deploy-terminal {
    border-radius: 1.25rem;
    border: 1px solid var(--t-border);
    background: #0a0a0a;
    color: #e4e4e7;
    overflow: hidden;
    box-shadow: var(--t-shadow);
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
}

[data-theme="light"] .page-deploy .deploy-terminal,
[data-theme="gray"] .page-deploy .deploy-terminal {
    background: #18181b;
}

.page-deploy .deploy-terminal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: #27272a;
    border-bottom: 1px solid #3f3f46;
    font-size: 0.7rem;
    color: #a1a1aa;
}

.page-deploy .deploy-terminal-body { padding: 1rem 1.1rem 1.25rem; min-height: 14rem; }
.page-deploy .deploy-log-line { opacity: 0; animation: deployLogIn 0.4s ease forwards; }
.page-deploy .deploy-log-line:nth-child(1) { animation-delay: 0.2s; }
.page-deploy .deploy-log-line:nth-child(2) { animation-delay: 0.55s; }
.page-deploy .deploy-log-line:nth-child(3) { animation-delay: 0.9s; }
.page-deploy .deploy-log-line:nth-child(4) { animation-delay: 1.25s; }
.page-deploy .deploy-log-line:nth-child(5) { animation-delay: 1.6s; }
.page-deploy .deploy-log-line:nth-child(6) { animation-delay: 1.95s; }
.page-deploy .deploy-log-ok { color: #4ade80; }
.page-deploy .deploy-log-info { color: #60a5fa; }
.page-deploy .deploy-log-warn { color: #fbbf24; }

@keyframes deployLogIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-deploy .deploy-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 52rem;
    margin: 0 auto;
}

.page-deploy .deploy-layer {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--t-border);
    background: var(--t-surface);
    transition: background 0.15s ease;
}

.page-deploy .deploy-layer:first-child { border-radius: 1.25rem 1.25rem 0 0; }
.page-deploy .deploy-layer:last-child { border-radius: 0 0 1.25rem 1.25rem; }
.page-deploy .deploy-layer + .deploy-layer { border-top: none; }
.page-deploy .deploy-layer:hover { background: var(--t-surface-2); }

.page-deploy .deploy-layer-ico {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-surface-3);
}

.page-deploy .deploy-layer-ico svg { width: 1.5rem; height: 1.5rem; }
.page-deploy .deploy-layer h3 { font-weight: 600; font-size: 1.05rem; }
.page-deploy .deploy-layer p { color: var(--t-text-muted); font-size: 0.88rem; margin-top: 0.2rem; line-height: 1.45; }

.page-deploy .deploy-layer-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, #4ade80 15%, var(--t-surface));
    color: #16a34a;
    white-space: nowrap;
}

[data-theme="dark"] .page-deploy .deploy-layer-tag { color: #4ade80; }

.page-deploy .deploy-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    position: relative;
    padding-top: 2rem;
}

.page-deploy .deploy-rail::before {
    content: '';
    position: absolute;
    top: 0.55rem;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--t-border);
    border-radius: 2px;
}

.page-deploy .deploy-rail-step {
    text-align: center;
    position: relative;
}

.page-deploy .deploy-rail-dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--t-accent);
    margin: 0 auto 1rem;
    position: relative;
    top: -1.55rem;
    box-shadow: 0 0 0 4px var(--t-bg);
}

.page-deploy .deploy-rail-step h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.3rem; }
.page-deploy .deploy-rail-step p { font-size: 0.8rem; color: var(--t-text-muted); line-height: 1.4; }

.page-deploy .deploy-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.page-deploy .deploy-stat {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 1.25rem;
    border: 1px solid var(--t-border);
    background: var(--t-surface);
}

.page-deploy .deploy-stat-val {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.page-deploy .deploy-stat-label {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--t-text-muted);
}

.page-deploy .deploy-cta {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 2.5rem;
    border-radius: 2rem;
    background: var(--t-accent);
    color: var(--t-accent-text);
}

.page-deploy .deploy-cta h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
.page-deploy .deploy-cta p { opacity: 0.88; margin-top: 0.5rem; max-width: 28rem; }
.page-deploy .deploy-cta .btn-ghost {
    background: var(--t-accent-text);
    color: var(--t-accent);
    border-color: transparent;
    padding: 1rem 2.25rem;
}

/* ---------- Shared section headings ---------- */
.fp-section-head { margin-bottom: 2rem; }
.fp-section-head.is-center { text-align: center; }
.fp-section-head .h-section { margin-bottom: 0.5rem; }
.fp-section-head p { color: var(--t-text-muted); max-width: 32rem; }
.fp-section-head.is-center p { margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .page-build .build-hero-grid,
    .page-deploy .deploy-hero-grid {
        grid-template-columns: 1fr;
    }

    .page-build .build-preview-body { grid-template-columns: 1fr; }
    .page-build .build-preview-chat { border-right: none; border-bottom: 1px solid var(--t-border); }
    .page-build .build-bento-item,
    .page-build .build-bento-item.is-wide { grid-column: span 12; }

    .page-agents .agents-roster {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-agents .agents-hub { max-height: 20rem; }
    .page-agents .agents-hub-node { width: 5.5rem; font-size: 0.62rem; }

    .page-deploy .deploy-rail { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .page-deploy .deploy-rail::before { display: none; }
    .page-deploy .deploy-rail-dot { top: 0; margin-bottom: 0.75rem; }
    .page-deploy .deploy-stats { grid-template-columns: 1fr; }
    .page-deploy .deploy-cta { grid-template-columns: 1fr; text-align: center; }
    .page-deploy .deploy-cta p { margin: 0.5rem auto 0; }
    .page-deploy .deploy-cta .hero-actions { justify-content: center; }
}

@media (max-width: 540px) {
    .page-agents .agents-roster {
        grid-template-columns: 1fr;
    }

    .page-build .build-timeline { flex-direction: column; gap: 1.25rem; }
    .page-build .build-timeline::before { display: none; }
    .page-build .build-timeline-step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
    .page-build .build-timeline-dot { margin: 0; flex-shrink: 0; width: 2.5rem; height: 2.5rem; font-size: 0.85rem; }
    .page-build .build-cta { flex-direction: column; align-items: flex-start; }
}
