:root {
    --demo-ink: #10233d;
    --demo-muted: #617181;
    --demo-line: #dce4ea;
    --demo-soft: #f5f7fa;
}

.demo-hero {
    min-height: 0;
    padding: 72px 0;
    background: #fff;
}

.demo-hero::before,
.demo-hero::after {
    display: none;
}

.demo-hero .page-hero-grid {
    display: block;
}

.demo-hero .hero-copy {
    max-width: 900px;
}

.demo-hero h1 {
    max-width: 860px;
    color: var(--demo-ink);
}

.demo-hero .hero-text {
    max-width: 760px;
    color: var(--demo-muted);
}

.demo-listing {
    padding-top: clamp(56px, 7vw, 84px);
    background: var(--demo-soft);
}

.demo-listing-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 38px;
}

.demo-listing-heading h2 {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--demo-ink);
}

.demo-listing-heading > p {
    margin-bottom: 4px;
    color: var(--demo-muted);
}

.demo-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.demo-project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--demo-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(10, 31, 59, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 192, 0.42);
    box-shadow: 0 20px 44px rgba(10, 31, 59, 0.12);
}

.demo-project-card[hidden] {
    display: none !important;
}

.demo-project-media {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 16 / 9;
    background: #0a1115;
}

.demo-project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(5, 15, 24, 0.72));
    pointer-events: none;
}

.demo-project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.demo-project-card:hover .demo-project-media img {
    transform: scale(1.025);
}

.demo-project-preview {
    position: absolute;
    z-index: 1;
    right: 22px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}

.demo-project-preview svg,
.demo-project-body .portfolio-project-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.demo-project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 3vw, 34px);
}

.demo-project-body h3 {
    margin: 12px 0 10px;
    color: var(--demo-ink);
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.demo-project-body h3 a {
    color: inherit;
}

.demo-project-body > p {
    margin-bottom: 22px;
    color: var(--demo-muted);
}

.demo-project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.demo-project-features li {
    padding: 7px 11px;
    border: 1px solid var(--demo-line);
    border-radius: 999px;
    color: var(--demo-ink);
    font-size: 0.78rem;
    font-weight: 750;
}

.demo-project-body .portfolio-project-link {
    margin-top: auto;
}

.demo-final-cta {
    background-position: center;
}

@media (max-width: 820px) {
    .demo-hero {
        padding: 56px 0;
    }

    .demo-listing-heading,
    .demo-project-grid {
        grid-template-columns: 1fr;
    }

    .demo-listing-heading {
        gap: 20px;
    }

}

@media (max-width: 560px) {
    .demo-hero {
        padding: 44px 0;
    }

    .demo-listing .portfolio-filter-wrap {
        margin-bottom: 28px;
    }

    .demo-project-preview {
        right: 16px;
        bottom: 14px;
    }

    .demo-final-cta {
        padding: 68px 0;
        background-image:
            linear-gradient(rgba(6, 24, 38, 0.88), rgba(6, 24, 38, 0.94)),
            url("../assets/cta-forecast-consultoria.webp");
    }
}
