/* DPEC product page */

.dpec-page.row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

.dpec-page > section {
    width: 100%;
    max-width: 100%;
}

/* DPEC page header — transparent over hero */
.page-dpec header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.page-dpec header nav {
    background: transparent;
    animation: none;
    background-size: auto;
    border-bottom: none;
    box-shadow: none;
}

.page-dpec header nav ul li a {
    color: rgba(255, 255, 255, 0.92) !important;
}

.page-dpec header nav ul li a:hover {
    color: #8eb9d9 !important;
}

.page-dpec header nav a.nav-link.active {
    background: #ffffff;
    border: none;
    border-radius: 22px;
    color: #260f92 !important;
}

.page-dpec header nav a.nav-link.active:hover {
    color: #260f92 !important;
}

.page-dpec header nav .nav-btn {
    background: #ffffff;
    color: #260f92;
    border: 0;
}

.page-dpec header nav .nav-btn:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #0b0b0b;
    border-color: transparent;
}

.page-dpec header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.page-dpec header .navbar-toggler-icon {
    filter: invert(1);
}

/* Hero / cover */
.dpec-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(780px, 95vh, 1040px);
    display: flex;
    align-items: flex-start;
    padding: calc(130px + 4rem) 0 20rem;
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite alternate;
}

.dpec-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    padding-top: 2.5rem;
}

.dpec-hero__logo-showcase {
    max-width: 460px;
    margin: 0 auto;
}

.dpec-hero__logo-surface {
    position: relative;
    padding: 3rem 2.5rem;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dpec-hero__logo-surface::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e1145 0%, #8eb9d9 52%, #1c02f9 100%);
}

.dpec-hero__logo {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
    background: #ffffff;
}

.dpec-hero__copy {
    max-width: 34rem;
    margin-left: auto;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dpec-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0;
    border: none;
    background: none;
    color: #8eb9d9;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
}

.dpec-hero__eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: #8eb9d9;
    flex-shrink: 0;
}

.dpec-hero__title {
    margin: 0;
    font-family: "Modreg-ExtraBold", serif;
    font-size: clamp(3rem, 7vw, 5.25rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.dpec-hero__rule {
    width: 72px;
    height: 3px;
    margin: 1.5rem 0 1.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #8eb9d9 0%, #1c02f9 100%);
}

.dpec-hero__desc {
    margin: 0;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.dpec-hero__curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 96px;
    background: #f8f8fc;
    clip-path: ellipse(72% 100% at 50% 100%);
    z-index: 1;
}

/* Services */
.dpec-services {
    padding: 5rem 0 6rem;
    background: #f8f8fc;
}

.dpec-services .container {
    max-width: 1140px;
}

.dpec-services__head {
    margin-bottom: 3rem;
}

.dpec-services__title {
    font-family: "Modreg-ExtraBold", serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1c02f9;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.dpec-services__subtitle {
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5c6370;
}

.dpec-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.2rem 1.15rem 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(38, 15, 146, 0.08);
    border-radius: 16px;
    box-shadow:
        0 6px 22px rgba(14, 17, 69, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dpec-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0e1145 0%, #8eb9d9 55%, #1c02f9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dpec-service-card:hover {
    border-color: rgba(142, 185, 217, 0.35);
    box-shadow:
        0 14px 32px rgba(14, 17, 69, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: none;
}

.dpec-service-card:hover::before {
    opacity: 1;
}

.dpec-service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dpec-service-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f3f6fb;
    border: 1px solid rgba(142, 185, 217, 0.22);
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dpec-service-card__icon-symbol {
    font-size: 1.15rem;
    line-height: 1;
    color: #1c02f9;
    transition: color 0.3s ease;
}

.dpec-service-card:hover .dpec-service-card__icon {
    background: #0e1145;
    border-color: #0e1145;
}

.dpec-service-card:hover .dpec-service-card__icon-symbol {
    color: #ffffff;
}

.dpec-service-card__index {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(38, 15, 146, 0.22);
    line-height: 1;
    padding-top: 0.1rem;
}

.dpec-service-card__title {
    margin: 0;
    flex-grow: 1;
    font-family: "Modreg-ExtraBold", serif;
    font-size: 0.98rem;
    line-height: 1.35;
    color: #12141c;
    letter-spacing: -0.01em;
}

.dpec-service-card__accent {
    width: 32px;
    height: 2px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #8eb9d9 0%, #1c02f9 100%);
    opacity: 0.45;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.dpec-service-card:hover .dpec-service-card__accent {
    width: 48px;
    opacity: 1;
}

.dpec-services__footer {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(38, 15, 146, 0.08);
}

.dpec-services__powered {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5c6370;
}

.dpec-services__daf-logo {
    display: block;
    width: min(100%, 120px);
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
}

/* CTA — matches network page section-cta */
.dpec-cta {
    padding: 80px 32px !important;
    background: linear-gradient(180deg, #f8f8fc 0%, #00e18a 100%) !important;
    text-align: center;
    color: #0b0b0b;
}

.dpec-cta__title {
    font-family: "Modreg-ExtraBold", serif;
    font-size: clamp(1.5rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: #0b0b0b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dpec-cta__desc {
    max-width: 52rem;
    margin: 0 auto 2rem;
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    line-height: 1.55;
    color: #0b0b0b;
}

.dpec-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    background: #1c02f9;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #1c02f9;
}

.dpec-cta__btn:hover,
.dpec-cta__btn:focus-visible {
    background: #1c02f9;
    border-color: #1c02f9;
    color: #ffffff;
    outline: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .dpec-hero {
        min-height: clamp(680px, 90vh, 920px);
        padding: calc(88px + 3rem) 0 16rem;
    }

    .dpec-hero__copy {
        max-width: none;
        margin-left: 0;
        align-items: flex-start;
        text-align: left;
    }

    .dpec-hero__rule {
        margin-left: 0;
        margin-right: auto;
    }

    .dpec-hero__logo-showcase {
        max-width: 520px;
    }

    .dpec-hero__logo-surface {
        padding: 2.25rem 1.75rem;
        border-radius: 20px;
    }

    .dpec-services {
        padding: 4rem 0 5rem;
    }

    .dpec-services__head {
        margin-bottom: 2.25rem;
    }

    .dpec-cta {
        padding: 64px 24px !important;
    }
}

@media (max-width: 575.98px) {
    .dpec-hero {
        min-height: clamp(620px, 88vh, 860px);
        padding: calc(80px + 2.5rem) 0 13rem;
    }

    .dpec-hero__logo-surface {
        padding: 1.75rem 1.35rem;
        border-radius: 18px;
    }

    .dpec-hero__logo {
        max-width: 280px;
    }

    .dpec-hero__eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.09em;
    }

    .dpec-hero__curve {
        height: 64px;
    }

    .dpec-services {
        padding: 3rem 0 4rem;
    }

    .dpec-services__footer {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .dpec-services__daf-logo {
        width: min(100%, 100px);
        border-radius: 12px;
    }

    .dpec-service-card {
        padding: 1.05rem 1rem 1rem;
        border-radius: 14px;
    }

    .dpec-service-card__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .dpec-service-card__icon-symbol {
        font-size: 1rem;
    }

    .dpec-service-card__title {
        font-size: 0.92rem;
    }

    .dpec-cta {
        padding: 48px 16px !important;
    }

    .dpec-cta__btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dpec-hero {
        animation: none;
    }

    .dpec-service-card {
        transition: none;
    }

    .dpec-service-card:hover {
        transform: none;
    }
}
