/* ============================================================
   INDEX HOMEPAGE — additions only
   Reuses the visual system/classes already in stylescto.css
   ============================================================ */

.home-index {
    background: #fff;
}

.home-index .navbar .btn-warning {
    width: auto;
    min-width: 0;
    padding: 8px 22px;
    border-radius: 10px;
}


/* ---------- HERO ---------- */

.home-index .hero.home-index-hero {
    min-height: calc(100svh - 250px) !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 132px 0 36px !important;
    background: radial-gradient(900px 480px at 78% 18%, #ffffff 0%, #eef6fc 50%, #e4f0fa 100%);
    overflow: hidden !important;
}

.home-index .hero.home-index-hero::before {
    display: none;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.home-hero-copy {
    text-align: left;
    max-width: 620px;
}

.home-hero-copy .section-eyebrow {
    display: block;
    margin-bottom: 16px;
    text-align: left;
}

.home-index-heading {
    margin: 0;
    max-width: none;
    color: var(--accent-blue);
    font-size: clamp(2.4rem, 4.2vw, 3.65rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.home-hero-sub {
    margin: 16px 0 0;
    color: var(--accent-blue);
    font-size: clamp(1.15rem, 1.7vw, 1.42rem);
    line-height: 1.35;
    font-weight: 600;
}

.home-index-hero-lede {
    max-width: 540px;
    margin: 18px 0 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-hero-actions .btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
}

.home-hero-actions .btn-outline-warning {
    background: #fff;
    border-width: 1.5px;
}


/* ---------- HERO VISUAL CARDS ---------- */

.home-hero-visual {
    position: relative;
    min-height: 460px;
}

.home-float-card {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(6, 26, 45, 0.14);
    overflow: hidden;
}

.home-float-card--savings {
    top: 8px;
    right: 12px;
    z-index: 3;
    width: 268px;
    padding: 18px 18px 14px;
    background: #0b1f36;
    color: #fff;
    animation: homeFloat 5.5s ease-in-out infinite;
}

.home-float-card-head span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-float-card-head strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
}

.home-savings-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 72px;
    margin: 16px 0 12px;
}

.home-savings-chart span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #7eb6ff, #3d7ad6);
}

.home-savings-chart span:nth-child(1) { height: 38%; }
.home-savings-chart span:nth-child(2) { height: 52%; }
.home-savings-chart span:nth-child(3) { height: 44%; }
.home-savings-chart span:nth-child(4) { height: 68%; }
.home-savings-chart span:nth-child(5) { height: 82%; }
.home-savings-chart span:nth-child(6) { height: 100%; background: linear-gradient(180deg, #ff9a78, #f26a4a); }

.home-float-card-foot {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 600;
}

.home-float-card--workflow {
    top: 168px;
    left: 0;
    z-index: 2;
    width: 300px;
    padding: 18px 18px 14px;
    background: #fff;
    border: 1px solid rgba(6, 26, 45, 0.08);
    animation: homeFloat 6.2s ease-in-out infinite 0.4s;
}

.home-float-card--workflow > strong {
    display: block;
    margin-bottom: 14px;
    color: var(--accent-blue);
    font-size: 0.95rem;
    font-weight: 800;
}

.home-workflow-flow {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.home-flow-node {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4fb;
    color: var(--accent-blue);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.home-flow-node--accent {
    background: rgba(242, 106, 74, 0.14);
    color: #f26a4a;
}

.home-flow-node--ok {
    background: rgba(46, 160, 90, 0.14);
    color: #2ea05a;
}

.home-flow-line {
    flex: 1;
    height: 2px;
    min-width: 8px;
    background: #d5e2ef;
}

.home-float-card--workflow .home-float-card-foot {
    color: var(--text-muted);
}

.home-float-card--software {
    right: 18px;
    bottom: 4px;
    z-index: 1;
    width: 250px;
    height: 168px;
    animation: homeFloat 7s ease-in-out infinite 0.8s;
}

.home-float-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-float-card-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(11, 31, 54, 0.82);
    color: #fff;
}

.home-float-card-overlay i {
    color: #7eb6ff;
    font-size: 0.9rem;
}

.home-float-card-overlay span {
    font-size: 0.78rem;
    line-height: 1.3;
    font-weight: 700;
}

@keyframes homeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .home-float-card {
        animation: none;
    }
}


/* ---------- STATS BAR ---------- */

.home-index .hero + section {
    margin-top: 0;
}

.home-stats-bar {
    margin: 0 !important;
    padding: 24px 0;
    background: #fff;
    border: none;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #f26a4a;
    color: #f26a4a;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.home-stat strong {
    display: block;
    color: var(--accent-blue);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-stat span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.86rem;
}


/* ---------- TRUSTED LOGOS ---------- */

.home-logo-strip {
    margin: 0;
    padding: 28px 0 32px;
    background: #071b2e;
}

.home-trusted-label {
    margin: 0 0 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-trusted-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px 36px;
}

.home-trusted-logos img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(1.35) contrast(1.15);
    mix-blend-mode: screen;
    opacity: 1;
}


/* ---------- WHAT WE DO ---------- */

.home-services {
    padding-top: 82px;
    padding-bottom: 90px;
    background: #fff;
}

.home-section-header {
    margin-bottom: 8px;
}

.home-section-header .section-eyebrow {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
}

.home-section-header .section-title {
    max-width: 720px;
    color: var(--accent-blue);
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-ways-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.home-way-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px 26px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(6, 26, 45, 0.10);
    box-shadow: 0 8px 24px rgba(6, 26, 45, 0.04);
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-way-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-5px);
    border-color: rgba(242, 106, 74, 0.28);
    box-shadow: 0 18px 40px rgba(6, 26, 45, 0.10);
}

.home-way-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.home-way-icon--orange {
    background: rgba(242, 106, 74, 0.12);
    color: #f26a4a;
}

.home-way-icon--blue {
    background: rgba(31, 59, 100, 0.10);
    color: #1f3b64;
}

.home-way-icon--green {
    background: rgba(46, 160, 90, 0.12);
    color: #2ea05a;
}

.home-way-card h3 {
    margin: 0 0 10px;
    color: var(--accent-blue);
    font-size: 1.18rem;
    line-height: 1.3;
    font-weight: 800;
}

.home-way-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.home-section-intro {
    max-width: 780px;
}


/* ---------- RESULTS ---------- */

.home-results {
    padding-top: 86px;
    padding-bottom: 90px;
}

.home-results .result-proof-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-results .result-proof-card:hover {
    transform: translateY(-5px);
}

.home-results .result-proof-body {
    display: flex;
    flex-direction: column;
}

.home-results .result-proof-body > p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-results .example-link {
    margin-top: auto;
    padding-top: 18px;
}


/* ---------- ENGAGEMENT ---------- */

.home-engagement {
    padding-top: 88px;
    padding-bottom: 90px;
}

.home-engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.home-engagement-card {
    min-height: 365px;
    display: flex;
    flex-direction: column;
}

.home-engagement-number {
    margin: 18px 0 20px;
    color: rgba(18, 59, 99, .18);
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 900;
}

.home-engagement-card.bpa-compare-primary .home-engagement-number {
    color: rgba(255, 255, 255, .26);
}

.home-engagement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-engagement-card.bpa-compare-primary p {
    color: rgba(255, 255, 255, .80);
}

.home-engagement-card .bpa-compare-link {
    margin-top: auto;
    padding-top: 22px;
}

.home-engagement-card.bpa-compare-primary .bpa-compare-link {
    color: #ff9a78;
}

.home-commercial-strip {
    margin-top: 26px;
}


/* ---------- TESTIMONIALS ---------- */

.home-testimonials-section {
    padding: 88px 0 90px;
    background: var(--bg-light-strong);
}

.home-testimonial-live {
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.home-testimonial-live .testimonial-quote {
    font-size: .98rem;
    line-height: 1.55;
}

.home-testimonial-live .testimonial-meta {
    margin-top: auto;
    padding-top: 22px;
}

.home-testimonial-live .testimonial-person {
    display: flex;
    flex-direction: column;
}

.home-testimonial-live .testimonial-person strong {
    color: #fff;
}

.home-testimonial-live .testimonial-person span {
    color: rgba(255, 255, 255, .72);
}


/* ---------- FINAL ROUTER ---------- */

.home-final-router {
    padding: 52px 0;
    background: #071b2e;
    color: #fff;
}

.home-final-router h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    line-height: 1.18;
    font-weight: 850;
}

.home-final-router p {
    max-width: 800px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1199px) {
    .home-engagement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-visual {
        min-height: 420px;
    }

    .home-float-card--savings {
        width: 250px;
    }

    .home-float-card--workflow {
        width: 280px;
    }
}

@media (max-width: 991px) {

    .home-index .hero.home-index-hero {
        padding: 112px 0 20px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .home-hero-copy {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }

    .home-hero-copy .section-eyebrow {
        text-align: center;
    }

    .home-index-hero-lede {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-visual {
        min-height: 400px;
        max-width: 520px;
        margin: 0 auto;
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .home-ways-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-services,
    .home-results,
    .home-engagement,
    .home-testimonials-section {
        padding-top: 68px;
        padding-bottom: 70px;
    }
}

@media (max-width: 767px) {

    .home-index-heading {
        font-size: clamp(2.1rem, 9vw, 2.7rem);
    }

    .home-index-hero-lede {
        font-size: 1rem;
    }

    .home-hero-visual {
        min-height: 360px;
        transform: scale(0.92);
        transform-origin: top center;
    }

    .home-engagement-grid {
        grid-template-columns: 1fr;
    }

    .home-engagement-card {
        min-height: auto;
    }

    .home-trusted-logos {
        gap: 18px 24px;
    }

    .home-trusted-logos img {
        height: 22px;
    }
}

@media (max-width: 520px) {
    .home-index .hero.home-index-hero {
        min-height: 0 !important;
        height: auto !important;
    }

    .home-stats-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-hero-visual {
        display: none;
    }
}
