/* ============================================================
   BantuASN hero: "live product" hero.
   Loaded after style.css / responsive.css, scoped to .saas_banner_area.
   The matching behavior lives in assets/js/hero.js (CSP: script-src 'self',
   so no inline JS anywhere). Everything here must degrade gracefully:
   with JS off the hero renders fully visible and static.
   ============================================================ */

/* ---------- Section background: aurora + dot grid ---------- */

/* Suppress the template's banner_shap.png layer. */
.saas_banner_area::before {
    display: none;
}

.hero_bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Faint dot grid, fading out toward the bottom half. */
.hero_bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 45%, transparent 78%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 45%, transparent 78%);
}

/* Hand-off into the white promo section below. */
.hero_bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.hero_blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    will-change: transform;
}

.hero_blob_blue {
    width: 54vw;
    height: 54vw;
    max-width: 860px;
    max-height: 860px;
    top: -22%;
    right: -14%;
    background: radial-gradient(circle at 40% 40%, rgba(22, 101, 216, 0.17), rgba(22, 101, 216, 0) 65%);
    animation: heroDriftA 52s ease-in-out infinite alternate;
}

.hero_blob_green {
    width: 40vw;
    height: 40vw;
    max-width: 640px;
    max-height: 640px;
    top: 16%;
    left: -16%;
    background: radial-gradient(circle at 60% 40%, rgba(34, 165, 93, 0.11), rgba(34, 165, 93, 0) 65%);
    animation: heroDriftB 46s ease-in-out infinite alternate;
}

@keyframes heroDriftA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-9%, 12%, 0) scale(1.12); }
}

@keyframes heroDriftB {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(12%, -8%, 0) scale(1.08); }
}

/* Content sits above the background layers. */
.saas_banner_area .container {
    position: relative;
    z-index: 1;
}

/* ---------- Left column ---------- */

@media (min-width: 992px) {
    .saas_banner_area .saas_banner_content { padding-right: 44px; }
}

/* The headline is longer than the template's, so step the h1 down from the
   stock 70px to keep it at three lines. */
@media (min-width: 1200px) {
    .saas_banner_area .saas_banner_content h1 {
        font-size: 56px;
        line-height: 67px;
        letter-spacing: -1.5px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .saas_banner_area .saas_banner_content h1 {
        font-size: 46px;
        line-height: 56px;
        letter-spacing: -1.2px;
    }
}

@media (max-width: 991px) {
    .saas_banner_area .saas_banner_content h1 {
        font-size: 42px;
        line-height: 52px;
        letter-spacing: -1px;
    }
}

@media (max-width: 575px) {
    .saas_banner_area .saas_banner_content h1 {
        font-size: 34px;
        line-height: 44px;
    }
}

.hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d9e5f4;
    box-shadow: 0 4px 16px -10px rgba(15, 23, 42, 0.35);
    color: #33517a;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.1px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero_badge .dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22A55D;
    flex-shrink: 0;
}

.hero_badge .dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(34, 165, 93, 0.55);
    animation: heroPulse 2.2s ease-out infinite;
}

@keyframes heroPulse {
    0%   { transform: scale(0.45); opacity: 1; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Headline highlight: brand gradient text over a marker sweep. */
.hero_hl {
    position: relative;
    z-index: 0;
    white-space: nowrap;
    background: linear-gradient(92deg, #1665D8 5%, #0F4CA8 60%, #1D8A54 125%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero_hl::after {
    content: "";
    position: absolute;
    left: 1%;
    right: 1%;
    bottom: 7px;
    height: 13px;
    z-index: -1;
    border-radius: 7px;
    background: rgba(22, 101, 216, 0.14);
    transform-origin: left center;
}

/* The underline draws in only when hero.js runs the entrance. */
.saas_banner_area.hero-anim .hero_hl::after {
    transform: scaleX(0);
}

.saas_banner_area.hero-anim .hero_hl.hl-drawn::after {
    transform: scaleX(1);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

/* Words are wrapped in spans by hero.js for the staggered reveal. */
.hero_word {
    display: inline-block;
}

/* CTA: reconcile to the brand blue + a sheen sweep on hover. */
.saas_banner_content .saas_btn {
    background: #1665D8;
    box-shadow: 0 10px 26px -8px rgba(22, 101, 216, 0.55);
    overflow: hidden;
}

.saas_banner_content .saas_btn:hover {
    background: #0F4CA8;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(15, 76, 168, 0.6);
}

.saas_banner_content .saas_btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -75%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.saas_banner_content .saas_btn:hover::after {
    left: 135%;
}

.hero_actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.hero_ghost_link {
    font-weight: 600;
    color: #1665D8;
    white-space: nowrap;
}

.hero_ghost_link:hover {
    color: #0F4CA8;
}

.hero_ghost_link i {
    display: inline-block;
    transition: transform 0.25s ease;
}

.hero_ghost_link:hover i {
    transform: translateY(3px);
}

.hero_trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0;
    margin: 22px 0 0;
}

.hero_trust li {
    font-size: 15px;
    color: #4B5563;
}

.hero_trust li i {
    color: #22A55D;
    margin-right: 6px;
}

/* ---------- Right column: the stage ---------- */

.hero_stage {
    position: relative;
    z-index: 1;
    perspective: 1400px;
}

@media (min-width: 1200px) {
    .hero_stage { margin-right: -34px; }
}

.hero_scene {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

/* CSS browser chrome around the real dashboard screenshot. */
.hero_browser {
    background: #fff;
    border: 1px solid #E3EAF4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.06),
        0 30px 70px -24px rgba(15, 23, 42, 0.35),
        0 60px 120px -50px rgba(22, 101, 216, 0.28);
}

.hero_browser_bar {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    background: linear-gradient(180deg, #fbfcfe, #f2f5fa);
    border-bottom: 1px solid #E8EDF5;
}

.hero_browser_dots {
    display: flex;
    gap: 7px;
    flex: 1;
}

.hero_browser_dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.hero_browser_dots i:nth-child(1) { background: #FF5F57; }
.hero_browser_dots i:nth-child(2) { background: #FEBC2E; }
.hero_browser_dots i:nth-child(3) { background: #28C840; }

.hero_browser_url {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 18px;
    border-radius: 8px;
    background: #EDF1F8;
    color: #5B6B84;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.hero_browser_url i {
    font-size: 10px;
    color: #22A55D;
}

/* Right spacer keeps the URL pill visually centered. */
.hero_browser_spacer {
    flex: 1;
}

.hero_shot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: top left;
    background: #fff;
}

/* ---------- Floating cards ---------- */

.hero_card {
    position: absolute;
    z-index: 2;
    will-change: transform;
}

/* The bob runs on the inner element so it never fights the GSAP
   transforms (entrance + pointer parallax) on the outer one. */
.hero_card_inner {
    animation: heroBob 7s ease-in-out infinite;
}

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

/* Success notification, top right. */
.hero_card_notif {
    top: -28px;
    right: -12px;
}

.hero_card_notif .hero_card_inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 14px 14px;
    background: #fff;
    border: 1px solid #E6EBF2;
    border-radius: 14px;
    box-shadow: 0 18px 44px -16px rgba(15, 23, 42, 0.35);
    animation-duration: 6.2s;
}

.hero_notif_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #22A55D;
    flex-shrink: 0;
}

.hero_notif_icon i {
    color: #fff;
    font-size: 17px;
}

.hero_notif_text b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.hero_notif_text small {
    display: block;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
}

/* Auto SKP mini console, bottom left. */
.hero_card_console {
    bottom: -36px;
    left: -46px;
    width: 336px;
}

.hero_card_console .hero_card_inner {
    animation-duration: 7.6s;
    animation-delay: -1.2s;
}

.hero_console {
    background: #0C1424;
    border: 1px solid rgba(126, 179, 255, 0.16);
    border-radius: 13px;
    box-shadow: 0 24px 55px -18px rgba(4, 10, 24, 0.65);
    overflow: hidden;
}

.hero_console_bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero_console_dots {
    display: flex;
    gap: 6px;
}

.hero_console_dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.hero_console_title {
    color: #C9D6EC;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero_console_live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #4ADE80;
    font-size: 11px;
    font-weight: 600;
}

.hero_console_live .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    animation: heroBlink 1.6s ease-in-out infinite;
}

@keyframes heroBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

.hero_console_body {
    padding: 12px 14px 14px;
    min-height: 122px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    line-height: 1.8;
}

.hero_console_line {
    display: flex;
    gap: 8px;
    color: #C3CFE4;
    white-space: nowrap;
    overflow: hidden;
}

.hero_console_line .pfx {
    color: #6E9BFF;
    flex-shrink: 0;
    width: 10px;
    text-align: center;
}

.hero_console_line.ok .pfx i,
.hero_console_line.done .pfx i {
    color: #4ADE80;
    font-size: 10px;
}

.hero_console_line.done .txt {
    color: #4ADE80;
    font-weight: 600;
}

.hero_console_cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    margin-left: 3px;
    vertical-align: -2px;
    background: #8FB3FF;
    animation: heroBlink 0.9s steps(2, start) infinite;
}

/* Small document chip, bottom right. */
.hero_card_chip {
    bottom: -16px;
    right: 22px;
}

.hero_card_chip .hero_card_inner {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #E6EBF2;
    border-radius: 999px;
    box-shadow: 0 14px 34px -14px rgba(15, 23, 42, 0.35);
    font-size: 13px;
    font-weight: 600;
    color: #33517a;
    animation-delay: -2.4s;
}

.hero_card_chip .hero_card_inner i {
    color: #1665D8;
    font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1399px) {
    .hero_card_console { left: -20px; }
}

@media (max-width: 991px) {
    .hero_stage {
        max-width: 620px;
        margin: 44px auto 0;
        perspective: none;
    }
    .hero_badge { font-size: 13px; }
    .hero_card_notif { top: -18px; right: -6px; }
    .hero_card_notif .hero_card_inner { padding: 11px 14px 11px 11px; gap: 10px; }
    .hero_notif_icon { width: 34px; height: 34px; border-radius: 10px; }
    .hero_notif_text b { font-size: 13px; }
    .hero_notif_text small { font-size: 11.5px; }
    .hero_card_console {
        left: -6px;
        bottom: -26px;
        width: min(320px, 86%);
    }
    .hero_card_chip { bottom: -12px; right: 10px; }
}

@media (max-width: 767px) {
    .hero_card_chip { display: none; }
    .hero_console_body { font-size: 11px; min-height: 112px; }
    .hero_hl::after { bottom: 5px; height: 10px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .hero_blob,
    .hero_badge .dot::after,
    .hero_card_inner,
    .hero_console_live .pulse,
    .hero_console_cursor {
        animation: none !important;
    }
    .saas_banner_content .saas_btn::after {
        display: none;
    }
    .saas_banner_content .saas_btn:hover {
        transform: none;
    }
}
