/* ─── CSS Variables (same system as Services page) ─── */
:root {
    --primary: #563AFF;
    --primary-dark: #3d20e0;
    --title: #211F54;
    --para: #5A5F96;
    --light: #F7F7FC;
    --gray: #D8D4EB;
    --n8: #fff;
    --accent: #00D998;
    --warning: #FF813A;
}

/* ─── Hero Section ─── */
.eng-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F0EDFF 0%, #E8F4FF 50%, #F7F7FC 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.eng-hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(86,58,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.eng-hero::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -150px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,217,152,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.eng-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(86,58,255,0.08);
    border: 1px solid rgba(86,58,255,0.22);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: "Jost", sans-serif;
}

.eng-hero__title {
    font-family: "Jost", sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    color: var(--title);
    line-height: 1.15;
    margin-bottom: 20px;
}

.eng-hero__subtitle {
    font-family: "Jost", sans-serif;
    font-size: 18px;
    color: var(--para);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.eng-hero__btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.eng-hero__stats {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(86,58,255,0.10);
    padding: 30px 40px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.eng-stat {
    flex: 1;
    min-width: 160px;
    padding: 0 20px;
    border-right: 1px solid var(--gray);
    text-align: center;
}

.eng-stat:last-child { border-right: none; }

.eng-stat__num {
    font-family: "Jost", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.eng-stat__label {
    font-size: 13px;
    color: var(--para);
    font-weight: 500;
}

/* ─── Scroll reveal (same as Services page) ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal--left { transform: translateX(-50px); }
.reveal.reveal--right { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: translate(0, 0) !important; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Engagement Model Sections (Alternating) ─── */
.eng-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.eng-section--alt { background: var(--light); }

.eng-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.eng-section-header h2 {
    font-family: "Jost", sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--title);
    margin-bottom: 12px;
}

.eng-section-header p {
    font-family: "Jost", sans-serif;
    font-size: 16px;
    color: var(--para);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Image / icon panel */
.eng-media--mockup {
    background: linear-gradient(135deg, #E8F4FF 0%, #EDE8FF 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    overflow: hidden;
}

.eng-media--mockup img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Text panel */
.eng-content__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
    font-family: "Jost", sans-serif;
}

.eng-content__eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.eng-content__title {
    font-family: "Jost", sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    color: var(--title);
    line-height: 1.2;
    margin-bottom: 14px;
}

.eng-content__desc {
    font-family: "Jost", sans-serif;
    font-size: 16px;
    color: var(--para);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Feature items list */
.eng-items {
    list-style: none;
    padding: 0; margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eng-items__item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray);
    transition: all 0.25s;
    gap: 14px;
}

.eng-items__item:last-child { border-bottom: none; }
.eng-items__item:hover { padding-left: 8px; }

.eng-items__icon {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.eng-items__name {
    flex: 1;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--title);
    transition: color 0.2s;
}

.eng-items__item:hover .eng-items__name { color: var(--primary); }

/* Buttons */
.eng-btn-primary,
.btn-primary.eng-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff !important;
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 50px;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(86,58,255,0.25);
}
.eng-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.eng-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--primary) !important;
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 50px;
    transition: all 0.25s;
}
.eng-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.eng-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1.5px solid var(--gray);
    color: var(--title) !important;
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 50px;
    transition: all 0.25s;
}
.eng-btn-outline:hover { border-color: var(--primary); color: var(--primary) !important; }

.eng-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff !important;
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 50px;
    transition: all 0.25s;
}
.eng-btn-outline-white:hover { background: rgba(255,255,255,0.12); }

/* ─── Comparison Table ─── */
.eng-compare {
    background: #fff;
    padding: 100px 0;
}

.eng-compare__wrap {
    border-radius: 16px;
    border: 1px solid var(--gray);
    overflow: hidden auto;
    box-shadow: 0 8px 32px rgba(86,58,255,0.06);
}

.eng-compare table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-family: "Jost", sans-serif;
}

.eng-compare thead tr { background: var(--primary); }

.eng-compare th {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 18px 20px;
    text-align: center;
    letter-spacing: 0.02em;
}

.eng-compare th:first-child { text-align: left; }

.eng-compare td {
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--gray);
}

.eng-compare td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--title);
}

.eng-compare tbody tr:nth-child(even) { background: var(--light); }
.eng-compare tbody tr:hover { background: rgba(86,58,255,0.05); }
.eng-compare tbody tr:last-child td { border-bottom: none; }

.eng-compare .yes { color: var(--accent); font-size: 20px; }
.eng-compare .no { color: #C7C4DE; font-size: 20px; }

/* ─── Process Steps (Timeline style) ─── */
.eng-process {
    background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
    padding: 100px 0;
}

.eng-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.eng-timeline__line {
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--gray);
    z-index: 0;
}

.eng-timeline__line-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 1.5s ease;
    border-radius: 2px;
}

.eng-timeline__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.eng-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 0 8px;
}

.eng-step.is-visible { opacity: 1; transform: translateY(0); }

.eng-step__circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Jost", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--para);
    margin-bottom: 18px;
    transition: all 0.4s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

.eng-step.is-visible .eng-step__circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(86,58,255,0.3);
}

.eng-step__title {
    font-family: "Jost", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 8px;
}

.eng-step__desc {
    font-family: "Jost", sans-serif;
    font-size: 14.5px;
    color: var(--para);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .eng-timeline__line { display: none; }
    .eng-timeline__steps {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 0;
    }
    .eng-step {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        padding-bottom: 30px;
        position: relative;
    }
    .eng-step::before {
        content: '';
        position: absolute;
        left: 29px;
        top: 60px;
        width: 2px;
        height: calc(100% - 30px);
        background: var(--gray);
    }
    .eng-step:last-child::before { display: none; }
    .eng-step__circle { flex-shrink: 0; margin-bottom: 0; }
    .eng-step__content { padding-top: 12px; }
}

/* ─── Why Work With Us ─── */
.eng-why {
    background: linear-gradient(135deg, var(--primary) 0%, #3d20e0 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.eng-why::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.eng-why::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 320px; height: 320px;
    background: rgba(0,217,152,0.1);
    border-radius: 50%;
}

.eng-why .eng-section-header h2,
.eng-why .eng-section-header h5 { color: #fff; }
.eng-why .eng-section-header p { color: rgba(255,255,255,0.75); }

.eng-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.eng-why-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.eng-why-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}

.eng-why-card__icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
    color: #fff;
}

.eng-why-card__title {
    font-family: "Jost", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.eng-why-card__desc {
    font-family: "Jost", sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
}

/* ─── Testimonials ─── */
.eng-testimonials { background: #fff; padding: 100px 0; }

.eng-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.eng-t-card {
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.eng-t-card:hover {
    border-color: rgba(86,58,255,0.4);
    box-shadow: 0 8px 32px rgba(86,58,255,0.12);
    transform: translateY(-4px);
}

.eng-t-card__stars { color: #FFB800; font-size: 14px; margin-bottom: 16px; display: flex; gap: 3px; }

.eng-t-card__quote {
    font-family: "Jost", sans-serif;
    font-size: 15px;
    color: var(--para);
    line-height: 1.7;
    margin-bottom: 24px;
}

.eng-t-card__person { display: flex; align-items: center; gap: 12px; }

.eng-t-card__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.eng-t-card__name {
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--title);
}

.eng-t-card__role {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    color: var(--para);
}

/* ─── CTA ─── */
.eng-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #3d20e0 100%);
    padding: 80px 0px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 0 16px 100px;
}

@media (min-width: 1200px) { .eng-cta { margin-left: auto; margin-right: auto; max-width: 1320px; } }

.eng-cta::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 350px; height: 350px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.eng-cta::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 280px; height: 280px;
    background: rgba(0,217,152,0.1);
    border-radius: 50%;
}

.eng-cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    font-family: "Jost", sans-serif;
    position: relative;
    z-index: 1;
}

.eng-cta h2 {
    font-family: "Jost", sans-serif;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.eng-cta p {
    font-family: "Jost", sans-serif;
    color: rgba(255,255,255,0.75);
    font-size: 17px;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.eng-cta__btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .eng-hero__stats { padding: 20px 16px; }
    .eng-stat { border-right: none; border-bottom: 1px solid var(--gray); padding: 16px 0; }
    .eng-stat:last-child { border-bottom: none; }
    .eng-section { padding: 70px 0; }
    .eng-compare, .eng-process, .eng-why, .eng-testimonials { padding: 70px 0; }
    .eng-cta { padding: 60px 20px 70px; margin: 0 12px 70px; }
}

/* ─── Feature Highlight Mini-Cards (used inside content panel) ─── */
.eng-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.eng-mini-card {
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s;
}

.eng-mini-card:hover {
    border-color: rgba(86,58,255,0.4);
    transform: translateY(-2px);
}

.eng-mini-card__icon {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.eng-mini-card__title {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--title);
    margin-bottom: 4px;
}

.eng-mini-card__desc {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    color: var(--para);
    line-height: 1.5;
}

/* ─── Tech Stack Grid ─── */
.eng-tech {
    background: #fff;
    padding: 100px 0;
}

.eng-tech__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (min-width: 640px) { .eng-tech__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 900px) { .eng-tech__grid { grid-template-columns: repeat(6, 1fr); } }

.eng-tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: 16px;
    padding: 18px 12px;
    transition: all 0.3s;
}

.eng-tech-card:hover {
    border-color: var(--primary);
    background: rgba(86,58,255,0.05);
    transform: translateY(-3px);
}

.eng-tech-card__icon {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.eng-tech-card__icon img { width: 100%; height: 100%; object-fit: contain; }

.eng-tech-card__name {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--title);
    line-height: 1.3;
}

/* ─── Use Case Cards ─── */
.eng-usecases { background: var(--light); padding: 100px 0; }

.eng-usecases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.eng-uc-card {
    background: #fff;
    border: 1px solid var(--gray);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.eng-uc-card:hover {
    border-color: rgba(86,58,255,0.4);
    box-shadow: 0 8px 32px rgba(86,58,255,0.12);
    transform: translateY(-4px);
}

.eng-uc-card__icon {
    width: 50px; height: 50px;
    background: rgba(86,58,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
    color: var(--primary);
    transition: background 0.3s;
}

.eng-uc-card:hover .eng-uc-card__icon { background: var(--primary); color: #fff; }

.eng-uc-card__title {
    font-family: "Jost", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 10px;
}

.eng-uc-card__desc {
    font-family: "Jost", sans-serif;
    font-size: 14px;
    color: var(--para);
    line-height: 1.65;
}

@media (max-width: 767px) {
    .eng-mini-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .eng-tech, .eng-usecases { padding: 70px 0; }
}

/* ─── Standalone Stats Bar (below hero) ─── */
.eng-stats {
    background: #fff;
    border-bottom: 1px solid var(--gray);
}

.eng-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.eng-stats__item {
    padding: 32px 20px;
    border-right: 1px solid var(--gray);
}

.eng-stats__item:last-child { border-right: none; }

.eng-stats__num {
    font-family: "Jost", sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.eng-stats__label {
    font-size: 13px;
    color: var(--para);
    font-weight: 500;
}

@media (max-width: 767px) {
    .eng-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .eng-stats__item {
        border-right: 1px solid var(--gray);
        border-bottom: 1px solid var(--gray);
        padding: 22px 12px;
    }
    .eng-stats__item:nth-child(2n) { border-right: none; }
    .eng-stats__item:nth-last-child(-n+2) { border-bottom: none; }
}