/* ============================================================
   Neural Product Catalog — pipeline visualization (vanilla port)
   Sources → Enrichment → Outputs, with live flow animation.
   ============================================================ */

.pc-section {
    --pc-cyan: #2BA89E;
    --pc-purple: #B7A4F0;
    --pc-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    --pc-display: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
    --pc-ease: cubic-bezier(0.4, 0, 0.2, 1);
    background: #000000;
    color: #FFFFFF;
    padding: 96px 0 112px;
    position: relative;
}

.pc-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.pc-section__head { margin-bottom: 2.5rem; }

.pc-section__label {
    font-family: var(--pc-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
    display: block;
}

.pc-section__headline {
    font-family: var(--pc-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1rem 0;
    max-width: 820px;
    position: relative;
    display: inline-block;
}

.pc-section__headline::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
    margin-top: 0.875rem;
}

.pc-section__sub {
    font-family: var(--pc-display);
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    max-width: 720px;
    margin: 1rem 0 0;
}

/* Sticky stage */
.pc-stage-wrap { position: relative; }
.pc-stage-wrap__inner {
    position: sticky;
    top: calc(var(--header-height, 90px) + 20px);
}
.pc-stage-wrap::after {
    content: '';
    display: block;
    height: 50vh;
}

/* ── Shell ────────────────────────────────────────────── */
.pc-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(43, 168, 158, 0.35);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(43, 168, 158, 0.08),
        0 0 24px rgba(43, 168, 158, 0.18),
        0 0 64px rgba(43, 168, 158, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.4);
}

.pc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--pc-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.pc-head__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pc-cyan);
    box-shadow: 0 0 12px var(--pc-cyan);
}

.pc-head__spacer { flex: 1; }

.pc-head__meta {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

.pc-head__counter {
    font-family: var(--pc-mono);
    color: var(--pc-cyan);
    font-weight: 500;
    margin-left: 6px;
}

/* ── Body grid ────────────────────────────────────────── */
.pc-body {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 0;
    position: relative;
    padding: 32px 0;
    min-height: 520px;
}

.pc-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.pc-lines path { fill: none; }
.pc-lines .pc-line { stroke: rgba(43, 168, 158, 0.15); stroke-width: 1; }
.pc-lines .pc-pulse { fill: var(--pc-cyan); }

.pc-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.pc-col__label {
    font-family: var(--pc-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pc-col__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.pc-node {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.pc-node__icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-node__icon svg {
    width: 18px; height: 18px;
    stroke: rgba(255, 255, 255, 0.7);
    fill: none;
    stroke-width: 1.4;
}

.pc-node__body { flex: 1; min-width: 0; }

.pc-node__title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: rgba(255, 255, 255, 0.95);
}

.pc-node__sub {
    font-family: var(--pc-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.pc-node__pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pc-cyan);
    box-shadow: 0 0 10px var(--pc-cyan);
    animation: pc-pulse 1.6s ease-in-out infinite;
}

@keyframes pc-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.6); }
}

/* ── Center enrichment card ──────────────────────────── */
.pc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pc-enrich {
    border: 1px solid rgba(43, 168, 158, 0.4);
    background: rgba(43, 168, 158, 0.04);
    border-radius: 14px;
    padding: 22px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.pc-enrich__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(43, 168, 158, 0.18);
}

.pc-enrich__head-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--pc-cyan);
    box-shadow: 0 0 10px var(--pc-cyan);
}

.pc-enrich__title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.1px;
}

.pc-enrich__title-sub {
    font-family: var(--pc-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--pc-cyan);
    margin-left: auto;
}

.pc-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-family: var(--pc-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

.pc-step__num {
    font-family: var(--pc-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
    width: 18px;
}

.pc-step__label { flex: 1; }

.pc-step__tag {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(110, 86, 207, 0.08);
    border: 1px solid rgba(110, 86, 207, 0.3);
    color: var(--pc-purple);
}

.pc-step__tag--np {
    background: rgba(43, 168, 158, 0.08);
    border-color: rgba(43, 168, 158, 0.3);
    color: var(--pc-cyan);
}

.pc-current {
    border-top: 1px solid rgba(43, 168, 158, 0.18);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-current__lbl {
    font-family: var(--pc-mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.pc-current__item {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--pc-cyan);
    letter-spacing: -0.1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    transition: opacity 0.25s ease-out;
}

.pc-current__spinner {
    width: 12px; height: 12px;
    border: 1.5px solid rgba(43, 168, 158, 0.3);
    border-top-color: var(--pc-cyan);
    border-radius: 50%;
    animation: pc-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes pc-spin { to { transform: rotate(360deg); } }

/* ── Footer stats ────────────────────────────────────── */
.pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--pc-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    gap: 16px;
    flex-wrap: wrap;
}

.pc-foot__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--pc-display);
    text-transform: none;
    letter-spacing: -0.2px;
    color: rgba(255, 255, 255, 0.75);
}

.pc-foot__brand-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--pc-cyan);
}

.pc-foot__stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pc-foot__stat strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.pc-foot__stat--cyan strong { color: var(--pc-cyan); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 920px) {
    .pc-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px;
        min-height: 0;
    }
    .pc-col { padding: 0; }
    .pc-lines { display: none; }
}

@media (max-width: 880px) {
    .pc-section { padding: 64px 0 80px; }
    .pc-section__container { padding: 0 1.5rem; }
    .pc-stage-wrap__inner { position: relative; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-node__pulse,
    .pc-current__spinner { animation: none; }
}
