/* Intro Section */
.intro {
    padding: 52px 0 8px;
    border-top: 1px solid var(--border-soft);
}

.intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.ecossistema-main-subt {
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-top: 14px;
}

/* Products Timeline Grid */
.ecossistema-main-title {
    font-size: clamp(32px, 10vw, 54px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;

}

.products {
    padding: 40px 0 8px;
}

.product-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 28px;
    padding: 56px 0;
    border-top: 1px solid var(--border-soft);
}

.product-row:last-child {
    border-bottom: 1px solid var(--border-soft);
}

.rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.rail::before {
    content: "";
    position: absolute;
    top: -56px;
    bottom: -56px;
    left: 50%;
    width: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.product-row:first-child .rail::before {
    top: 50%;
}

.product-row:last-child .rail::before {
    bottom: 50%;
}

.num {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 4px;
}

.product-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.product-row:nth-child(even) .product-body {
    direction: rtl;
}

.product-row:nth-child(even) .product-body > * {
    direction: ltr;
}

.product-description .eyebrow {
    margin-bottom: 14px;
}

.product-title {
    margin-top: 10px;
    
}

.product-description {
    margin-top: 14px;
    
}

.title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-pill {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .03em;
    color: var(--ink-mute);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 11px;
    margin-top: 2px;
}



.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    font-size: 12.5px;
    color: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

.product-link svg {
    transition: transform .15s ease;
}

.product-link:hover svg {
    transform: translateX(3px);
}

.product-link.muted {
    color: var(--ink-mute);
    border-bottom-color: var(--border);
    cursor: default;
}

.product-link.muted:hover svg {
    transform: none;
}

.trust-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--good);
    background: var(--good-soft);
    border-radius: 99px;
    padding: 6px 13px;
}

.trust-note i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--good);
    flex: none;
}

.visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.visual svg {
    width: 100%;
    height: 100%;
}

/* UI Mockups */
.mock {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-soft);
}

.mock-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.mock-badge {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .03em;
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--good-soft);
    color: var(--good);
}

.mock-badge.plain, .mock-badge.soon {
    background: var(--surface-alt);
    color: var(--ink-mute);
}

.mock-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6px 22px;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-soft);
}

.mock-row:last-child {
    border-bottom: none;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
    background: var(--good);
}

.dot.warn {
    background: var(--warn);
}

.mock-name {
    font-size: 12.5px;
    color: var(--ink-soft);
    width: 112px;
    flex: none;
}

.mock-bar {
    flex: 1;
    height: 5px;
    background: var(--surface-alt);
    border-radius: 99px;
    overflow: hidden;
}

.mock-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
}

.mock-bar-fill.warn {
    background: var(--warn);
}

.mock-score {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-mute);
    width: 34px;
    text-align: right;
    flex: none;
}

.mock-score.warn {
    color: var(--warn);
    font-weight: 500;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 10.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.mock-person {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mock-person-name {
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 500;
}

.mock-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-mute);
}

.mock-tag.warn {
    color: var(--warn);
    font-weight: 500;
}

/* Container, Thumb e Vídeo da Demo */
.dq-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    cursor: pointer;
}

.dq-video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    border: 1px solid var(--border);
}

.thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.dq-video-container:hover .thumb-video {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Etiqueta flutuante por cima do vídeo */
.video-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botão de Play centralizado */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 3;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.play-btn-overlay svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.dq-video-container:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    color: #0071e3;
}

/* Estilos do Modal de Vídeo (Lightbox) */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #000;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.close-modal-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsividade Geral */
@media (max-width: 860px) {
    .intro-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-row {
        grid-template-columns: 1fr;
    }
    .rail {
        display: none;
    }
    .product-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .product-row:nth-child(even) .product-body {
        direction: ltr;
    }
    .visual {
        order: -1;
        height: 220px;
    }
}

@media (max-width: 480px) {
  .product-row {
    padding: 32px 0; /* Reduz o espaço vertical para o usuário rolar menos a tela */
  }

  .mock-name {
    width: 85px; /* Diminui o nome fixo para a barra de progresso não ser esmagada */
    font-size: 11px;
  }

  .visual {
    height: 200px; /* Diminui a altura da caixa cinza para caber melhor na tela do celular */
  }
}