/* Homepage hero overrides: deliberately scoped to avoid changing other pages. */
.hero-area {
    position: relative !important;
    isolation: isolate;
    width: 100%;
    min-height: 570px;
    height: 570px;
    padding: 0 !important;
    overflow: hidden;
    background-color: #f7fbff;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}
.hero-person {
    position: absolute;
    bottom: 0;
    left: 47%;
    transform: translateX(-50%);
    height: 88%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
}
.hero-area *, .hero-area *::before, .hero-area *::after { box-sizing: border-box; }
.hero-area .hero-container {
    position: relative;
    z-index: 3;
    width: min(100% - 48px, 1280px);
    max-width: 1280px;
    height: 100%;
    min-height: 570px;
    margin: 0 auto;
    padding: 42px 0 92px;
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    align-items: center;
    gap: 0;
}
.hero-growth-bg {
    position: absolute; z-index: 0; left: 0; top: 8px;
    width: 43%; height: 88%; opacity: .28;
    pointer-events: none;
}
.hero-area .hero-left {
    position: relative; z-index: 4;
    width: 100%; max-width: 535px; min-width: 0;
    align-self: center;
}
.hero-area .hero-main-heading {
    margin: 0 0 16px !important;
    color: #101d3a !important;
    font-size: clamp(38px, 3.5vw, 53px) !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -1.8px;
}
.hero-area .hero-main-heading > span { white-space: nowrap; }
.hero-area .hero-blue-word { color: #0875df; }
.hero-area .hero-description {
    max-width: 480px; margin: 0 0 22px !important;
    color: #27364a !important; font-size: 16px !important; line-height: 1.55;
}
.hero-area .hero-buttons {
    display: flex; align-items: center; flex-wrap: wrap; gap: 13px;
}
.hero-area .hero-buttons a {
    min-height: 49px; padding: 12px 21px !important;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px !important; text-align: center;
    text-decoration: none; font-size: 14px; font-weight: 700;
    line-height: 1.35; transition: .25s ease;
}
.hero-area .hero-buttons .btn-primary {
    color: #fff !important; border: 1px solid #1769e8;
    background: linear-gradient(120deg,#1769e8,#4963df);
}
.hero-area .hero-buttons .btn-outline {
    color: #0768d9 !important; border: 1.5px solid #0875ee;
    background: rgba(255,255,255,.9);
}
.hero-area .hero-buttons .btn-primary:hover,
.hero-area .hero-buttons .btn-outline:hover {
    transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,90,180,.15);
}
.hero-area .hero-buttons .btn-outline:hover { color: #fff !important; background: #0875ee; }
.hero-area .hero-highlights {
    width: 100%; max-width: 500px; margin: 32px 0 0;
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: center;
}
.hero-area .hero-highlight {
    min-height: 66px; padding: 0 10px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    border-right: 1px solid rgba(26,65,111,.2);
    color: #17263c; font-size: 11px; font-weight: 600; line-height: 1.35;
}
.hero-area .hero-highlight:first-child { padding-left: 0; }
.hero-area .hero-highlight:last-child { border-right: 0; }
.hero-area .highlight-icon { display: block; margin-bottom: 6px; font-size: 21px; line-height: 1; }
.hero-area .hero-right {
    position: absolute !important; z-index: 1;
    top: 48px; left: 55%; width: 30%; max-width: 365px;
    margin: 0 !important; padding: 0;
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px;
}
.hero-area .hero-card {
    width: auto !important; min-width: 0; min-height: 122px;
    padding: 15px 8px !important; margin: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid #80b7d5 !important; border-radius: 17px !important;
    background: rgba(255,255,255,.86); backdrop-filter: blur(7px);
    box-shadow: 0 5px 18px rgba(25,92,150,.06);
    text-align: center; cursor: pointer; transition: .25s ease;
}
.hero-area .hero-card:hover {
    transform: translateY(-4px); background: #fff;
    border-color: #1479e9 !important; box-shadow: 0 10px 25px rgba(26,104,190,.13);
}
.hero-area .hero-card .icon { margin: 0; font-size: 30px; line-height: 1; }
.hero-area .hero-card span { color: #111c32 !important; font-size: 14px; font-weight: 700; }
.hero-area .hero-person {
    position: absolute; z-index: 2; bottom: 0; left: 47.5%;
    width: auto; height: 88%; max-width: 39%; max-height: 530px;
    display: block; object-fit: contain; object-position: center bottom;
    transform: translateX(-50%); pointer-events: none;
}
.hero-area .tw-hero-apps {
    position: absolute; z-index: 5; top: 50%; right: max(calc((100% - 1280px)/2), 18px);
    display: flex; flex-direction: column; gap: 13px;
    transform: translateY(-50%);
}
.hero-area .tw-hero-app {
    width: 98px; min-height: 116px; padding: 9px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    border: 1px solid #80b7d5; border-radius: 14px;
    background: rgba(255,255,255,.95); box-shadow: 0 6px 20px rgba(28,85,140,.12);
    text-decoration: none; transition: .25s ease;
}
.hero-area .tw-hero-app:hover { transform: translateY(-3px); border-color: #0875ee; }
.hero-area .tw-hero-app img { display: block; width: 67px; height: 67px; object-fit: contain; }
.hero-area .tw-hero-app span { color: #14233e; font-size: 11px; font-weight: 700; text-align: center; }
@media (max-width: 1100px) {
    .hero-area, .hero-area .hero-container { min-height: 535px; height: 535px; }
    .hero-area .hero-container { width: calc(100% - 40px); grid-template-columns: 43% 57%; }
    .hero-area .hero-main-heading { font-size: 39px !important; }
    .hero-area .hero-description { font-size: 14px !important; }
    .hero-area .hero-buttons { gap: 8px; }
    .hero-area .hero-buttons a { padding: 10px 13px !important; font-size: 12px; }
    .hero-area .hero-person { height: 78%; max-width: 39%; left: 48%; }
    .hero-area .hero-right { left: 55%; top: 45px; width: 29%; gap: 10px; }
    .hero-area .hero-card { min-height: 103px; }
    .hero-area .hero-highlights { max-width: 440px; }
    .hero-area .hero-highlight { padding: 0 6px; font-size: 10px; }
    .hero-area .tw-hero-app { width: 82px; min-height: 98px; }
    .hero-area .tw-hero-app img { width: 54px; height: 54px; }
}
@media (max-width: 767px) {
    .hero-area { height: auto !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; }
    .hero-area .hero-container {
        width: 100%; height: auto; min-height: 0; padding: 38px 18px 0;
        display: flex; flex-direction: column; align-items: stretch;
    }
    .hero-area .hero-left { max-width: 100%; text-align: center; }
    .hero-area .hero-main-heading { font-size: clamp(34px,8vw,43px) !important; line-height: 1.12 !important; letter-spacing: -1px; }
    .hero-area .hero-main-heading > span { white-space: normal; }
    .hero-area .hero-description { max-width: 390px; margin: 0 auto 18px !important; font-size: 14px !important; }
    .hero-area .hero-buttons { justify-content: center; gap: 9px; }
    .hero-area .hero-buttons a { min-height: 44px; padding: 10px 13px !important; font-size: 12px; }
    .hero-area .hero-highlights { margin: 25px auto 24px; max-width: 450px; }
    .hero-area .hero-highlight { min-height: 62px; align-items: center; padding: 0 4px; text-align: center; font-size: 9px; }
    .hero-area .highlight-icon { font-size: 19px; }
    .hero-area .hero-right {
        position: relative !important; top: auto; left: auto; width: 100%; max-width: 390px;
        margin: 0 auto 22px !important; gap: 11px;
    }
    .hero-area .hero-card { min-height: 88px; }
    .hero-area .hero-card .icon { font-size: 26px; }
    .hero-area .hero-card span { font-size: 12px; }
    .hero-area .hero-person {
        position: relative; left: auto; bottom: auto; transform: none;
        width: min(82%,360px); height: auto; max-width: 360px; max-height: 340px;
        margin: 0 auto; object-position: center bottom;
    }
    .hero-area .tw-hero-apps {
        position: relative; top: auto; right: auto; transform: none;
        flex-direction: row; justify-content: center; gap: 13px; padding: 0 12px 24px;
    }
    .hero-area .tw-hero-app { width: 100px; min-height: 108px; }
    .hero-area .tw-hero-app img { width: 62px; height: 62px; }
    .hero-growth-bg { width: 100%; height: 42%; opacity: .16; }
}
@media (max-width: 380px) {
    .hero-area .hero-container { padding-left: 13px; padding-right: 13px; }
    .hero-area .hero-buttons a { padding: 9px 10px !important; font-size: 11px; }
    .hero-area .hero-highlight { font-size: 8px; }
}


/* =========================================
   HOMEPAGE HEADER / HERO CLEARANCE FIX
   The desktop navigation is absolutely positioned by the theme.
   Return it to document flow on the homepage so it cannot cover
   the first part of the hero content.
========================================= */
@media (min-width: 992px) {
    body > header,
    body header {
        position: relative !important;
        z-index: 1200 !important;
    }

    body header > .header__main.header-main-2 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: 1200 !important;
    }

    .hero-area {
        margin-top: 0 !important;
        clear: both;
    }
}

/* The mobile navigation remains fixed; reserve its 60px height
   before the hero content begins. */
@media (max-width: 991px) {
    .hero-area {
        margin-top: 60px !important;
    }
}
