/* Cashflow hero: one immersive motion system, with graceful static fallbacks. */
.cashflow-hero {
    --flow-shift-x: 0px;
    --flow-shift-y: 0px;
    isolation: isolate;
    width: 100%;
    max-width: none;
    min-height: calc(100svh - 78px);
    overflow: hidden;
    padding: clamp(38px, 6vh, 72px) clamp(18px, 4vw, 64px) 44px;
    background-image: none;
}

.cashflow-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: rgba(4, 8, 17, 0.52);
    pointer-events: none;
}

.cashflow-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 8, 17, 0.08) 0%, rgba(4, 8, 17, 0.18) 58%, rgba(4, 8, 17, 0.78) 100%);
}

.cashflow-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.96;
}

.cashflow-hero .hero-col {
    position: relative;
    z-index: 3;
    width: min(1240px, 100%);
    min-height: calc(100svh - 160px);
    justify-content: flex-start;
    gap: 0;
}

.cashflow-hero .hero-content {
    width: min(980px, 100%);
    margin: 0 auto;
    text-align: center;
    z-index: 6;
}

.cashflow-hero .tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #a5f3fc;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.cashflow-hero .tagline::before {
    content: '';
    width: 30px;
    height: 1px;
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.cashflow-hero h1 {
    max-width: 900px;
    margin: 0 auto 12px;
    color: #f8fafc;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-family: 'STSong', 'SimSun', 'Noto Serif SC', serif;
    font-size: clamp(2.7rem, 6.8vw, 5.7rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
    animation: cashflowTitleIn 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
    text-shadow: 0 18px 55px rgba(0, 0, 0, 0.7);
}

.cashflow-hero h1 strong {
    display: block;
    color: #67e8f9;
    font: inherit;
    text-shadow: 0 0 34px rgba(34, 211, 238, 0.28), 0 18px 55px rgba(0, 0, 0, 0.76);
}

.cashflow-command {
    margin: 0 auto 14px;
    color: #f8fafc;
    font-size: clamp(1rem, 2vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.cashflow-hero .hero-subtitle {
    max-width: 720px;
    margin: 0 auto 22px;
    color: #cbd5e1;
    font-size: clamp(0.94rem, 1.6vw, 1.08rem);
    line-height: 1.75;
}

.cashflow-hero .cta-group,
.cashflow-hero .hero-service-chips {
    position: relative;
    z-index: 7;
}

.cashflow-hero .hero-service-chips {
    margin-top: 12px;
}

.cashflow-hero .btn {
    border-radius: 10px;
}

.cashflow-product-stage {
    position: absolute;
    left: 50%;
    bottom: -7%;
    z-index: 1;
    width: min(1160px, 92vw);
    margin: 0;
    transform:
        translate3d(calc(-50% + var(--flow-shift-x)), var(--flow-shift-y), 0)
        perspective(1300px) rotateX(54deg) scale(1.04);
    transform-origin: center bottom;
    filter: drop-shadow(0 34px 72px rgba(0, 0, 0, 0.7));
    transition: transform 180ms ease-out;
    pointer-events: none;
}

.cashflow-product-stage::before {
    content: '';
    position: absolute;
    inset: -3%;
    z-index: 2;
    border: 1px solid rgba(103, 232, 249, 0.28);
    box-shadow: inset 0 0 42px rgba(34, 211, 238, 0.08), 0 0 40px rgba(6, 182, 212, 0.08);
    pointer-events: none;
}

.cashflow-product-stage picture,
.cashflow-product-stage img {
    display: block;
    width: 100%;
}

.cashflow-product-stage img {
    height: auto;
    opacity: 0.78;
    filter: saturate(0.94) contrast(1.08) brightness(0.8);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.cashflow-product-scan {
    position: absolute;
    top: 8%;
    bottom: 7%;
    left: 12%;
    z-index: 3;
    width: 1px;
    background: rgba(165, 243, 252, 0.92);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.92), 0 0 70px rgba(6, 182, 212, 0.48);
    animation: cashflowScan 5.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.cashflow-live-tape {
    position: absolute;
    left: 50%;
    bottom: 58px;
    z-index: 5;
    display: flex;
    width: min(1080px, calc(100% - 40px));
    transform: translateX(-50%);
    border-top: 1px solid rgba(103, 232, 249, 0.26);
    border-bottom: 1px solid rgba(103, 232, 249, 0.14);
    background: rgba(4, 8, 17, 0.68);
    overflow: hidden;
}

.cashflow-live-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 16px;
    text-align: left;
    border-right: 1px solid rgba(103, 232, 249, 0.14);
}

.cashflow-live-item:last-child {
    border-right: 0;
}

.cashflow-live-item-wide {
    flex: 1.55 1 0;
}

.cashflow-live-item span,
.cashflow-live-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashflow-live-item span {
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.cashflow-live-item strong {
    color: #ecfeff;
    font-size: clamp(0.86rem, 1.5vw, 1.05rem);
    font-variant-numeric: tabular-nums;
}

.cashflow-live-item strong[data-tone='gold'] {
    color: #fcd34d;
}

.cashflow-live-item strong[data-tone='green'] {
    color: #6ee7b7;
}

.cashflow-hero .scroll-hint {
    bottom: 10px;
    z-index: 7;
}

.cashflow-contact {
    position: relative;
    z-index: 3;
    isolation: isolate;
    margin-top: 0;
    padding-top: clamp(44px, 7vw, 78px);
}

.cashflow-contact::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -48px;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        #040811 0%,
        rgba(4, 8, 17, 0.94) 20%,
        rgba(4, 8, 17, 0.64) 52%,
        rgba(4, 8, 17, 0.18) 82%,
        rgba(4, 8, 17, 0) 100%
    );
    pointer-events: none;
}

@keyframes cashflowTitleIn {
    from {
        opacity: 0.2;
        filter: blur(14px);
        clip-path: inset(0 0 100% 0);
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        clip-path: inset(0);
        transform: translateY(0);
    }
}

@keyframes cashflowScan {
    0%, 12% { left: 10%; opacity: 0; }
    20% { opacity: 1; }
    76% { opacity: 0.9; }
    88%, 100% { left: 90%; opacity: 0; }
}

@media (max-height: 760px) and (min-width: 841px) {
    .cashflow-hero {
        min-height: calc(100svh - 78px);
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .cashflow-hero .hero-col {
        min-height: calc(100svh - 126px);
    }
    .cashflow-hero .tagline {
        margin-bottom: 8px;
    }
    .cashflow-hero h1 {
        max-width: 760px;
        margin-bottom: 6px;
        font-size: clamp(3.1rem, 5.4vw, 4.35rem);
    }
    .cashflow-command {
        margin-bottom: 6px;
        font-size: 1rem;
    }
    .cashflow-hero .hero-subtitle {
        margin-bottom: 12px;
        font-size: 0.92rem;
    }
    .cashflow-hero .hero-service-chips {
        display: none;
    }
    .cashflow-product-stage {
        bottom: -34%;
        width: min(1040px, 84vw);
    }
    .cashflow-live-tape {
        bottom: 18px;
    }
    .cashflow-hero .scroll-hint {
        display: none;
    }
}

@media (max-width: 840px) {
    .cashflow-hero {
        min-height: calc(100svh - 64px);
        padding: 38px 16px 34px;
    }
    .cashflow-hero .hero-col {
        min-height: calc(100svh - 136px);
    }
    .cashflow-hero h1 {
        font-size: clamp(2.45rem, 12vw, 4.2rem);
    }
    .cashflow-product-stage {
        bottom: 40px;
        width: min(920px, 128vw);
        transform: translate3d(-50%, 0, 0) perspective(1000px) rotateX(58deg) scale(1.02);
    }
    .cashflow-live-tape {
        bottom: 42px;
    }
    .cashflow-live-item:nth-child(n + 4) {
        display: none;
    }
    .cashflow-live-item {
        padding: 9px 10px;
    }
    .cashflow-hero .scroll-hint {
        display: none;
    }
}

@media (max-width: 520px) {
    .cashflow-hero {
        min-height: 780px;
        padding-top: 30px;
    }
    .cashflow-hero .hero-subtitle {
        max-width: 35ch;
        font-size: 0.9rem;
        line-height: 1.65;
    }
    .cashflow-command {
        max-width: 24ch;
        font-size: 0.9rem;
        line-height: 1.65;
    }
    .cashflow-hero .cta-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 10px;
    }
    .cashflow-hero .btn {
        min-width: 0;
        padding: 11px 10px;
        font-size: 0.86rem;
    }
    .cashflow-hero .hero-service-chips {
        display: none;
    }
    .cashflow-product-stage {
        bottom: 82px;
        width: 156vw;
    }
    .cashflow-product-stage img {
        opacity: 0.58;
    }
    .cashflow-live-tape {
        bottom: 28px;
        width: calc(100% - 24px);
    }
    .cashflow-live-item:nth-child(n + 3) {
        display: none;
    }
    .cashflow-live-item span {
        font-size: 0.62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cashflow-hero h1,
    .cashflow-product-scan {
        animation: none;
    }
    .cashflow-product-stage {
        transition: none;
    }
}
