/* ===============================
O que fazemos Page Styles
=============================== */

/* Page Hero (Internal Pages) */
.page-hero {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    /* Compensate for fixed navbar */
}

/* Fundo quadriculado com cantos neon sutis (como no contato) */
.page-hero--grid {
    background-color: #0a0a0a;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size:
        24px 24px,
        24px 24px;
    background-position:
        top left,
        top left;
    /* Cantos com neon sutil - simplificado */
    box-shadow:
        inset 0 0 80px rgba(0, 255, 255, 0.04);
    background-attachment: scroll;
    background-repeat: repeat;
    background-position:
        center;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
    /* não bloqueia interações/hover */
}

.page-hero__content {
    position: relative;
    z-index: 3;
    /* acima do canvas */
    text-align: center;
    padding: 0 20px;
}

.page-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 0;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
}

.page-hero__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    border-radius: 2px;
}

.page-hero__title::before {
    display: none;
}

.page-hero__subtitle {
    margin: 12px 0 0;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    line-height: 1.35;
    color: #cfe7e7;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {

    .page-hero__title,
    .page-hero__subtitle {
        animation: none !important;
    }

    .page-hero__title::after,
    .page-hero__title::before {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 300px;
        margin-top: 60px;
    }

    .page-hero__title {
        font-size: 1.5rem;
    }
}

/* Services Page */
.services-page {
    padding: 48px 20px 64px;
}

.services-intro {
    max-width: 1100px;
    margin: 0 auto 18px;
    text-align: center;
}

.services-intro__lead {
    color: #cfe7e7;
    margin: 8px 0 0;
    line-height: 1.7;
}

/* Services Showcase (Split Layout) */
.services-showcase {
    max-width: 1200px;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.showcase-nav {
    position: sticky;
    top: 90px;
    align-self: start;
    display: grid;
    gap: 10px;
    padding: 12px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
}

.showcase-tab {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cfe7e7;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.18);
    cursor: pointer;
    text-align: left;
    transition: background .25s ease, border-color .25s ease, transform .15s ease;
}

.showcase-tab i {
    color: #7ffcff;
}

.showcase-tab:hover {
    background: rgba(0, 255, 255, 0.06);
    transform: translateX(2px);
}

.showcase-tab.is-active {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
}

.showcase-panel {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(0, 255, 255, 0.12), transparent 45%),
        radial-gradient(900px 600px at 120% 120%, rgba(0, 255, 255, 0.08), transparent 40%),
        rgba(8, 8, 8, 0.96);
}

.showcase-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.02) brightness(0.9);
    opacity: 0.12;
    transition: opacity .4s ease;
    pointer-events: none;
    background-image: var(--showcase-bg);
}

/* Panels layered */
.panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
}

.panel.is-active {
    opacity: 1;
    transform: none;
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-header h3 {
    margin: 0;
    color: #eaffff;
}

.panel-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-stats>div {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.25);
    padding: 8px 10px;
    border-radius: 10px;
}

.panel-stats strong {
    display: block;
    font-size: 1.05rem;
    color: #7ffcff;
}

.panel-stats span {
    font-size: 0.86rem;
    color: #cfe7e7;
}

.panel-body {
    align-self: start;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
}

/* Generic unstyled icon list */
.icon-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.icon-list i {
    color: #7ffcff;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
}

.icon-list li i+span {
    margin-left: 0.2vw;
    margin-top: -0.2vw;
    display: inline-block;
}

.panel-cta {
    align-self: end;
    justify-self: start;
    text-decoration: none;
    font-weight: 700;
    color: #071b0f;
    background: linear-gradient(180deg, #25D366, #1ebe57);
    padding: 10px 14px;
    border-radius: 9px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.20);
    font-size: 0.96rem;
    margin-top: 1vw;
}

.panel-cta:hover {
    filter: saturate(1.03);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.26);
}

/* Sub-tabs inside panels */
.panel-subnav {
    margin: 6px 18px 0 18px;
    display: flex;
    gap: 8px;
    align-items: stretch;
    position: relative;
}

.subtab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    color: #bfefff;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.18);
    transition: background .25s ease, border-color .25s ease, transform .15s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    max-width: 260px;
    position: relative;
    overflow: hidden;
}

.subtab:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-1px);
}

.subtab.is-active {
    background: rgba(0, 255, 255, 0.16);
    border-color: rgba(0, 255, 255, 0.35);
    color: #eaffff;
    box-shadow: 0 10px 24px rgba(0, 255, 255, 0.08) inset, 0 6px 22px rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.panel-sections {
    padding: 10px 0 0;
}

.subsection {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s ease, transform .28s ease;
}

.subsection.is-sub-active {
    display: block;
    opacity: 1;
    transform: none;
}

.panel-desc {
    color: #cfe7e7;
    line-height: 1.7;
    margin: 0 0 12px;
}

/* Services CTA */
.services-cta {
    padding: 22px 0 0;
}

.services-cta__box {
    max-width: 1000px;
    margin: 20px auto 0;
    text-align: center;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 12px;
    padding: 22px 18px;
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.12);
}

.services-cta__box h3 {
    margin: 0 0 8px;
    color: #eaffff;
}

.services-cta__box p {
    margin: 0 0 20px;
    color: #cfe7e7;
}

.services-cta__box .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.services-cta__box .cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.services-cta__box .cta-button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(0, 255, 255, 0.08) 100%);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #7ffcff;
}

.services-cta__box .cta-button:hover::before {
    left: 100%;
}

.services-cta__box .cta-button:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* Como Entregamos (Pipeline Flow) */
#como-entregamos.ce-section {
    padding: 40px 20px 54px;
    background: #000;
}

.ce-head {
    max-width: 1100px;
    margin: 0 auto 16px;
    text-align: left;
    padding: 0 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ce-head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #eaffff;
    position: relative;
}

.ce-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.0) 0%, rgba(0, 255, 255, 0.85) 25%, rgba(37, 211, 102, 0.85) 85%, rgba(37, 211, 102, 0.0) 100%);
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.35), 0 0 10px rgba(37, 211, 102, 0.25);
    border-radius: 2px;
}

.ce-head p {
    margin: 10px 0 0;
    color: #cfe7e7;
    line-height: 1.7;
}

.ce-grid {
    max-width: 1400px;
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* Pipeline Flow Layout */
.pipeline {
    position: relative;
    border-radius: 16px;
    padding: 32px 24px;
    overflow: hidden;
}

/* Flow Background */
.pipeline-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.flow-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(0, 255, 255, 0.0) 0%,
            rgba(0, 255, 255, 0.3) 25%,
            rgba(0, 255, 255, 0.6) 50%,
            rgba(37, 211, 102, 0.4) 75%,
            rgba(37, 211, 102, 0.0) 100%);
    transform: translateY(-50%);
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.3));
}

/* Data Particles Animation */
.data-particles {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    transform: translateY(-50%);
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    animation: flowParticle 3s linear infinite;
}

.particle.p1 {
    animation-delay: 0s;
}

.particle.p2 {
    animation-delay: 1s;
}

.particle.p3 {
    animation-delay: 2s;
}

@keyframes flowParticle {
    0% {
        left: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(100% + 10px);
        opacity: 0;
    }
}

/* Pipeline Stages */
.stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: rgba(12, 12, 12, 0.8);
    border: 1px solid #1b2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 2;
}

.stage:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 255, 255, 0.1);
}

.stage.is-active {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(16, 16, 16, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15), 0 0 40px rgba(37, 211, 102, 0.1);
}

.stage:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Stage Icon */
.stage-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: #00ffff;
    transition: all .3s ease;
}

.stage.is-active .stage-icon {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.stage-icon svg {
    width: 24px;
    height: 24px;
}

/* Stage Content */
.stage-content {
    flex: 1;
    min-width: 0;
}

.stage-content h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #eaffff;
    font-weight: 600;
}

.stage-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease;
}

.stage.is-active .stage-details {
    max-height: 120px;
    opacity: 1;
}

.stage-details p {
    margin: 0 0 8px;
    color: #cfe7e7;
    line-height: 1.6;
}

.stage-time {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #25d366;
    font-weight: 500;
}

/* Stage Connector */
.stage-connector {
    position: absolute;
    right: -8px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    opacity: 0;
    transition: opacity .3s ease;
}

.stage.is-active .stage-connector {
    opacity: 1;
    animation: pulseConnector 2s ease-in-out infinite;
}

.stage:last-child .stage-connector {
    display: none;
}

@keyframes pulseConnector {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

/* Aside cards */
.ce-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ce-card {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.95) 0%, rgba(12, 12, 12, 0.9) 100%);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 18px 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ce-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(0, 255, 255, 0.0) 0%,
            rgba(0, 255, 255, 0.6) 25%,
            rgba(37, 211, 102, 0.6) 75%,
            rgba(37, 211, 102, 0.0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ce-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ce-card:hover::before {
    opacity: 1;
}

.ce-card h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #eaffff;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ce-card h4::before {
    content: "";
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #00ffff, #25d366);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.ce-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #cfe7e7;
    line-height: 1.7;
}

.ce-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.ce-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: #00ffff;
    font-weight: bold;
    transition: all 0.2s ease;
}

.ce-card li:hover {
    color: #eaffff;
}

.ce-card li:hover::before {
    color: #25d366;
    transform: translateX(2px);
}

.ce-card li:last-child {
    margin-bottom: 0;
}

/* Scroll-triggered animations */
.fade-left-animation {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left-animation.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-right-animation {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-right-animation.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-up-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 0s;
}

.stagger-2 {
    transition-delay: 0s;
}

.stagger-3 {
    transition-delay: 0.5s;
}

.stagger-4 {
    transition-delay: 0.5s;
}

.stagger-5 {
    transition-delay: 1s;
}

.stagger-6 {
    transition-delay: 1.5s;
}

.stagger-7 {
    transition-delay: 2s;
}

.stagger-8 {
    transition-delay: 2.5s;
}

/* Responsive */
@media (max-width: 1200px) {
    .ce-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 900px;
    }

    .ce-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .services-showcase {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 820px) {
    .services-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-nav {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .ce-aside {
        grid-template-columns: 1fr;
    }

    .showcase-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-body {
        grid-template-columns: 1fr;
    }

    .panel-subnav {
        flex-direction: column;
    }

    .subtab {
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    .pipeline {
        padding: 24px 16px;
    }

    .stage {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stage-connector {
        display: none;
    }

    .flow-line,
    .data-particles {
        display: none;
    }
}

@media (max-width: 600px) {
    .stage {
        padding: 16px;
    }

    .stage-icon {
        width: 40px;
        height: 40px;
    }

    .stage-icon svg {
        width: 20px;
        height: 20px;
    }

    .stage.is-active .stage-details {
        max-height: none;
        /* Remove height restriction for small screens */
        overflow: visible !important;
        padding-bottom: 16px;
    }

    .stage-time {
        font-size: 0.8rem;
        padding: 3px 6px;
        margin-bottom: 8px;
        /* Add space below to prevent cutting */
        white-space: nowrap;
        /* Prevent text wrapping */
    }
}

/* Progress Indicator */
.pipeline-progress {
    margin-top: 24px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #00ffff 0%, #25d366 100%);
    border-radius: 3px;
    transition: width .5s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.progress-text {
    font-size: 0.9rem;
    color: #cfe7e7;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 980px) {
    .pipeline {
        padding: 24px 16px;
    }

    .stage {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stage.is-active .stage-details {
        max-height: none;
        /* Remove height restriction for mobile */
        overflow: visible !important;
        padding-bottom: 12px;
    }

    .stage-connector {
        display: none;
    }

    .flow-line,
    .data-particles {
        display: none;
    }
}

@media (max-width: 600px) {
    .stage {
        padding: 16px;
    }

    .stage-icon {
        width: 40px;
        height: 40px;
    }

    .stage-icon svg {
        width: 20px;
        height: 20px;
    }
}

.services-showcase {
    max-width: 1200px;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.showcase-nav {
    position: sticky;
    top: 90px;
    /* below fixed navbar */
    align-self: start;
    display: grid;
    gap: 10px;
    padding: 12px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
}

.showcase-tab {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cfe7e7;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.18);
    cursor: pointer;
    text-align: left;
    transition: background .25s ease, border-color .25s ease, transform .15s ease;
}

.showcase-tab i {
    color: #7ffcff;
}

.showcase-tab:hover {
    background: rgba(0, 255, 255, 0.06);
    transform: translateX(2px);
}

.showcase-tab.is-active {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
}

.showcase-panel {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(0, 255, 255, 0.12), transparent 45%),
        radial-gradient(900px 600px at 120% 120%, rgba(0, 255, 255, 0.08), transparent 40%),
        rgba(8, 8, 8, 0.96);
}

.showcase-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.02) brightness(0.9);
    opacity: 0.12;
    transition: opacity .4s ease;
    pointer-events: none;
    background-image: var(--showcase-bg);
}

/* Panels layered */
.panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
}

.panel.is-active {
    opacity: 1;
    transform: none;
}

/* quick fade flag for bg swap */
.showcase-panel.is-fading::before {
    opacity: 0.04;
}

/* Enter/Leave states for panels */
.panel.is-entering {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    filter: blur(2px);
}

.panel.is-active.panel.is-entering {
    opacity: 1;
    transform: none;
    filter: none;
    transition-duration: .6s;
}

.panel.is-leaving {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(2px);
    transition-duration: .4s;
}

/* Staggered children when panel becomes active */
.panel.run-stagger .panel-header {
    animation: fadeUp .45s ease both .06s;
}

.panel.run-stagger .panel-stats>div:nth-child(1) {
    animation: fadeUp .45s ease both .10s;
}

.panel.run-stagger .panel-stats>div:nth-child(2) {
    animation: fadeUp .45s ease both .18s;
}

.panel.run-stagger .panel-stats>div:nth-child(3) {
    animation: fadeUp .45s ease both .26s;
}

.panel.run-stagger .panel-list li:nth-child(1) {
    animation: fadeUp .45s ease both .14s;
}

.panel.run-stagger .panel-list li:nth-child(2) {
    animation: fadeUp .45s ease both .20s;
}

.panel.run-stagger .panel-list li:nth-child(3) {
    animation: fadeUp .45s ease both .26s;
}

.panel.run-stagger .panel-cta {
    animation: popIn .42s ease both .28s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: none;
    }
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-header h3 {
    margin: 0;
    color: #eaffff;
}

.panel-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-stats>div {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.25);
    padding: 8px 10px;
    border-radius: 10px;
}

.panel-stats strong {
    display: block;
    font-size: 1.05rem;
    color: #7ffcff;
}

.panel-stats span {
    font-size: 0.86rem;
    color: #cfe7e7;
}

.panel-body {
    align-self: start;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
}

.panel-list {
    margin: 0;
    list-style: none;
    padding-left: 0;
    color: #cfe7e7;
    line-height: 1.7;
}

/* Generic unstyled icon list */
.icon-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Icon color for service lists (blue-green) */
.icon-list i {
    color: #7ffcff;
}

/* Align icon + text and set spacing exactly to 1vw */
.icon-list li {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
}

/* Space between the <i> icon and the following <span> text */
.icon-list li i+span {
    margin-left: 0.2vw;
    margin-top: -0.2vw;
    display: inline-block;
}

.panel-cta {
    align-self: end;
    justify-self: start;
    text-decoration: none;
    font-weight: 700;
    color: #071b0f;
    background: linear-gradient(180deg, #25D366, #1ebe57);
    padding: 10px 14px;
    border-radius: 9px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.20);
    font-size: 0.96rem;
    margin-top: 1vw;
}

.panel-cta:hover {
    filter: saturate(1.03);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.26);
}

/* Sub-tabs inside panels */
.panel-subnav {
    margin: 6px 18px 0 18px;
    display: flex;
    gap: 8px;
    align-items: stretch;
    position: relative;
}

.subtab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    color: #bfefff;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.18);
    transition: background .4s ease, border-color .4s ease, transform .2s ease, flex-basis 1.2s cubic-bezier(.22, .61, .36, 1), max-width 1.2s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    max-width: 260px;
    position: relative;
    overflow: hidden;
}

.subtab:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-1px);
}

.subtab.is-active {
    background: rgba(0, 255, 255, 0.16);
    border-color: rgba(0, 255, 255, 0.35);
    color: #eaffff;
    box-shadow: 0 10px 24px rgba(0, 255, 255, 0.08) inset, 0 6px 22px rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.subtab.is-active {
    flex: 1 1 100%;
    max-width: 100%;
}

.subtab::after {
    content: "";
    position: absolute;
    left: 10px;
    right: auto;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #7ffcff, #25D366);
    transition: width 1.6s cubic-bezier(.22, .61, .36, 1) !important;
}

.subtab.is-active::after {
    width: 92%;
}

/* Enter/leave accent on switching */
.subtab.is-expanding {
    animation: subtabExpand 1.6s cubic-bezier(.22, .61, .36, 1) both !important;
}

.subtab.is-collapsing {
    animation: subtabCollapse 1.4s cubic-bezier(.22, .61, .36, 1) both !important;
}

@keyframes subtabExpand {
    from {
        transform: translateY(-1px) scale(0.992);
    }

    to {
        transform: none;
    }
}

@keyframes subtabCollapse {
    from {
        transform: none;
    }

    to {
        transform: translateY(-1px) scale(0.992);
    }
}

.subtab-label {
    font-weight: 600;
    white-space: nowrap;
}

.subtab-content {
    display: none;
    text-align: left;
    color: #cfe7e7;
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    transition: opacity 1.6s cubic-bezier(.22, .61, .36, 1), transform 1.6s cubic-bezier(.22, .61, .36, 1), max-height 1.8s cubic-bezier(.22, .61, .36, 1) !important;
}

.subtab.is-active .subtab-content {
    display: block;
    opacity: 1;
    transform: none;
    max-height: 320px;
}

/* Subtab expansion/collapse states */
.subtab.is-expanding .subtab-content {
    transition: opacity 2.0s cubic-bezier(.22, .61, .36, 1), transform 2.0s cubic-bezier(.22, .61, .36, 1), max-height 2.2s cubic-bezier(.22, .61, .36, 1) !important;
}

.subtab.is-collapsing .subtab-content {
    transition: opacity 1.6s cubic-bezier(.22, .61, .36, 1), transform 1.6s cubic-bezier(.22, .61, .36, 1), max-height 1.8s cubic-bezier(.22, .61, .36, 1) !important;
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
}

.subtab .subtab-content ul {
    margin: 0;
    padding-left: 18px;
}

/* Keep icon-list unstyled even inside expanded subtab content */
.subtab .subtab-content .icon-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
}

/* Stagger within expanded subtab content */
.subtab.run-stagger .subtab-content li:nth-child(1) {
    animation: fadeUp .6s cubic-bezier(.22, .61, .36, 1) both .1s;
}

.subtab.run-stagger .subtab-content li:nth-child(2) {
    animation: fadeUp .6s cubic-bezier(.22, .61, .36, 1) both .2s;
}

.subtab.run-stagger .subtab-content li:nth-child(3) {
    animation: fadeUp .6s cubic-bezier(.22, .61, .36, 1) both .3s;
}

.subtab.run-stagger .subtab-content li:nth-child(4) {
    animation: fadeUp .6s cubic-bezier(.22, .61, .36, 1) both .4s;
}

/* Pipeline Animation */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pipeline Styles (Alternative Implementation) */
.pipeline {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 20px;
    background: #000000;
}

.pipeline-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;
    gap: 12px;
    position: relative;
}

.pipeline .connector {
    display: none;
}

.pipeline-step {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.pipeline-step.animate {
    animation: fadeInDown 0.5s ease-out forwards;
}

.pipeline-step.animate[data-step="1"] {
    animation-delay: 0.05s;
}

.pipeline-step.animate[data-step="2"] {
    animation-delay: 0.15s;
}

.pipeline-step.animate[data-step="3"] {
    animation-delay: 0.25s;
}

.pipeline-step.animate[data-step="4"] {
    animation-delay: 0.35s;
}

.pipeline-step.animate[data-step="5"] {
    animation-delay: 0.45s;
}

.pipeline-step.animate[data-step="6"] {
    animation-delay: 0.55s;
}

.pipeline-step::before {
    content: attr(data-step);
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.75rem;
    color: rgba(127, 252, 255, 0.7);
}

.pipeline-step .step-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.pipeline-step h3 {
    margin: 4px 0 6px;
    font-size: 1.04rem;
}

.pipeline-step p {
    margin: 0;
    color: #cfe7e7;
    font-size: 0.94rem;
    line-height: 1.5;
}

.pipeline-step.active {
    border-color: rgba(0, 255, 255, 0.55);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.18), 0 0 30px rgba(37, 211, 102, 0.14);
    transform: translateY(-3px);
}

.pipeline-step:hover {
    border-color: rgba(0, 255, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.28), 0 0 40px rgba(37, 211, 102, 0.22);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .pipeline-track {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .pipeline-track {
        grid-template-columns: 1fr;
    }
}

.subtab.run-stagger .subtab-content li:nth-child(5) {
    animation: fadeUp .6s cubic-bezier(.22, .61, .36, 1) both .5s;
}

/* Expanded mode: hide below-panel sections */
.services-showcase.subtabs-expanded .panel-sections {
    display: none !important;
}

.panel-sections {
    padding: 10px 0 0;
}

.subsection {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s ease, transform .28s ease;
}

.subsection.is-sub-active {
    display: block;
    opacity: 1;
    transform: none;
}

/* Stagger within sub-sections */
.subsection.run-stagger .panel-list li:nth-child(1) {
    animation: fadeUp .4s ease both .04s;
}

.subsection.run-stagger .panel-list li:nth-child(2) {
    animation: fadeUp .4s ease both .08s;
}

.subsection.run-stagger .panel-list li:nth-child(3) {
    animation: fadeUp .4s ease both .12s;
}

.subsection.run-stagger .panel-list li:nth-child(4) {
    animation: fadeUp .4s ease both .16s;
}

.subsection.run-stagger .panel-list li:nth-child(5) {
    animation: fadeUp .4s ease both .20s;
}

/* Services container: start hidden to avoid flash before animation */
.services-showcase {
    opacity: 1;
    transform: none;
}

/* Becomes visible after intro */
.services-showcase.is-visible {
    opacity: 1;
    transform: none;
}

/* Fade-in animation on first load */
.services-showcase.fade-in-onload {
    animation: fadeInContainer .5s cubic-bezier(.22, .61, .36, 1) both !important;
}

@keyframes fadeInContainer {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .services-showcase {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 820px) {
    .services-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .showcase-nav {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        order: 2;
    }

    .showcase-panel {
        order: 1;
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative;
        min-height: auto;
        padding: 20px;
    }

    .panel {
        display: none !important;
        opacity: 0 !important;
        transform: none !important;
        position: relative;
    }

    .panel.is-active {
        display: block !important;
        opacity: 1 !important;
    }
}

@media (max-width: 560px) {
    .showcase-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .services-showcase {
        display: block !important;
    }

    .showcase-panel {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 15px;
        min-height: auto;
        margin-bottom: 20px;
    }

    .panel {
        display: none !important;
        opacity: 0 !important;
        transform: none !important;
        position: static !important;
    }

    .panel.is-active {
        display: block !important;
        opacity: 1 !important;
    }

    .panel-body {
        grid-template-columns: 1fr;
        padding: 15px;
        display: block !important;
    }

    .panel-subnav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-bottom: 20px;
        display: flex !important;
    }

    .subtab {
        max-width: 100%;
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
        display: block !important;
    }

    .panel-header {
        padding: 15px;
        text-align: center;
        display: block !important;
    }

    .panel-header h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .panel-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        display: flex !important;
    }

    .panel-stats>div {
        padding: 8px;
        border-radius: 6px;
        background: rgba(0, 255, 255, 0.1);
    }

    .panel-sections {
        display: block !important;
    }

    .subsection {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .icon-list {
        padding: 0 10px;
        display: block !important;
    }

    .icon-list li {
        font-size: 0.9rem;
        margin-bottom: 12px;
        display: flex !important;
    }

    .panel-cta {
        margin-top: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        display: block !important;
        box-sizing: border-box;
    }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .services-showcase {
        opacity: 1 !important;
        transform: none !important;
    }

    .showcase-panel::before {
        transition: none;
    }

    .panel,
    .panel.is-active,
    .panel.is-entering,
    .panel.is-leaving {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }

    .subsection {
        transition: none !important;
    }

    .subtab,
    .subtab-content {
        transition: none !important;
        animation: none !important;
    }

    .panel.run-stagger .panel-header,
    .panel.run-stagger .panel-stats>div,
    .panel.run-stagger .panel-list li,
    .panel.run-stagger .panel-cta {
        animation: none !important;
    }
}

/* ===============================
   Como Entregamos (Pipeline Flow)
   =============================== */
#como-entregamos.ce-section {
    padding: 40px 20px 54px;
    background: #000;
}

.ce-head {
    max-width: 1100px;
    margin: 0 auto 16px;
    text-align: left;
    padding: 0 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ce-head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #eaffff;
    position: relative;
}

.ce-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.0) 0%, rgba(0, 255, 255, 0.85) 25%, rgba(37, 211, 102, 0.85) 85%, rgba(37, 211, 102, 0.0) 100%);
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.35), 0 0 10px rgba(37, 211, 102, 0.25);
    border-radius: 2px;
}

.ce-head p {
    margin: 10px 0 0;
    color: #cfe7e7;
    line-height: 1.7;
}

.ce-grid {
    max-width: 1400px;
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* Pipeline Flow Layout */
.pipeline {
    position: relative;
    border-radius: 16px;
    padding: 32px 24px;
    overflow: hidden;
}

/* Flow Background */
.pipeline-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.flow-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(0, 255, 255, 0.0) 0%,
            rgba(0, 255, 255, 0.3) 25%,
            rgba(0, 255, 255, 0.6) 50%,
            rgba(37, 211, 102, 0.4) 75%,
            rgba(37, 211, 102, 0.0) 100%);
    transform: translateY(-50%);
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.3));
}

/* Data Particles Animation */
.data-particles {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    transform: translateY(-50%);
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    animation: flowParticle 3s linear infinite;
}

.particle.p1 {
    animation-delay: 0s;
}

.particle.p2 {
    animation-delay: 1s;
}

.particle.p3 {
    animation-delay: 2s;
}

@keyframes flowParticle {
    0% {
        left: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(100% + 10px);
        opacity: 0;
    }
}

/* Pipeline Stages */
.stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: rgba(12, 12, 12, 0.8);
    border: 1px solid #1b2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 2;
}

.stage:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 255, 255, 0.1);
}

.stage.is-active {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(16, 16, 16, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15), 0 0 40px rgba(37, 211, 102, 0.1);
}

.stage:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Stage Icon */
.stage-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: #00ffff;
    transition: all .3s ease;
}

.stage.is-active .stage-icon {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.stage-icon svg {
    width: 24px;
    height: 24px;
}

/* Stage Content */
.stage-content {
    flex: 1;
    min-width: 0;
}

.stage-content h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #eaffff;
    font-weight: 600;
}

.stage-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease;
}

.stage.is-active .stage-details {
    max-height: 120px;
    opacity: 1;
}

.stage-details p {
    margin: 0 0 8px;
    color: #cfe7e7;
    line-height: 1.6;
}

.stage-time {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #25d366;
    font-weight: 500;
}

/* Stage Connector */
.stage-connector {
    position: absolute;
    right: -8px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    opacity: 0;
    transition: opacity .3s ease;
}

.stage.is-active .stage-connector {
    opacity: 1;
    animation: pulseConnector 2s ease-in-out infinite;
}

.stage:last-child .stage-connector {
    display: none;
}

@keyframes pulseConnector {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

/* Progress Indicator */
.pipeline-progress {
    margin-top: 24px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #00ffff 0%, #25d366 100%);
    border-radius: 3px;
    transition: width .5s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.progress-text {
    font-size: 0.9rem;
    color: #cfe7e7;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 980px) {
    .pipeline {
        padding: 24px 16px;
    }

    .stage {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stage-connector {
        display: none;
    }

    .flow-line,
    .data-particles {
        display: none;
    }
}

@media (max-width: 600px) {
    .stage {
        padding: 16px;
    }

    .stage-icon {
        width: 40px;
        height: 40px;
    }

    .stage-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Legacy Process steps (kept for compatibility) */
.ce-steps {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid #1b2a2a;
    border-radius: 12px;
    counter-reset: step;
}

.ce-steps li {
    position: relative;
    padding: 14px 12px 14px 22px;
    border-left: 3px solid rgba(127, 252, 255, 0.25);
}

.ce-steps li+li {
    margin-top: 10px;
}

.ce-steps li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7ffcff;
    box-shadow: 0 0 8px rgba(127, 252, 255, 0.65);
}

.ce-steps h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    color: #eaffff;
}

.ce-steps p {
    margin: 0;
    color: #cfe7e7;
    line-height: 1.65;
}

/* Aside cards */
.ce-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ce-card {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.95) 0%, rgba(12, 12, 12, 0.9) 100%);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 18px 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ce-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(0, 255, 255, 0.0) 0%,
            rgba(0, 255, 255, 0.6) 25%,
            rgba(37, 211, 102, 0.6) 75%,
            rgba(37, 211, 102, 0.0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ce-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ce-card:hover::before {
    opacity: 1;
}

.ce-card h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #eaffff;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ce-card h4::before {
    content: "";
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #00ffff, #25d366);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.ce-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #cfe7e7;
    line-height: 1.7;
}

.ce-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.ce-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: #00ffff;
    font-weight: bold;
    transition: all 0.2s ease;
}

.ce-card li:hover {
    color: #eaffff;
}

.ce-card li:hover::before {
    color: #25d366;
    transform: translateX(2px);
}

.ce-card li:last-child {
    margin-bottom: 0;
}

/* Scroll-triggered animations */
.fade-left-animation {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left-animation.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-right-animation {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-right-animation.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-up-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 0s;
}

.stagger-2 {
    transition-delay: 0s;
}

.stagger-3 {
    transition-delay: 0.5s;
}

.stagger-4 {
    transition-delay: 0.5s;
}

.stagger-5 {
    transition-delay: 1s;
}

.stagger-6 {
    transition-delay: 1.5s;
}

.stagger-7 {
    transition-delay: 2s;
}

.stagger-8 {
    transition-delay: 2.5s;
}

/* Responsive */
@media (max-width: 1200px) {
    .ce-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 900px;
    }

    .ce-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .ce-aside {
        grid-template-columns: 1fr;
    }

    .ce-steps h3 {
        font-size: 1rem;
    }
}