/* ══════════════════════════════════════════════════
   Business Lending — Page Styles
   ══════════════════════════════════════════════════ */

/* ── Hero Layout ────────────────────────────────── */
.bl-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

.bl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    animation: gridDrift 20s linear infinite;
}

.bl-hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 900px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(120, 75, 250, 0.08) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes glowPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.06); }
}

.bl-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bl-hero-text {
    animation: fadeSlideUp 0.8s ease-out both;
}

.bl-hero-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(120, 75, 250, 0.08);
    color: #784bfa;
    margin-bottom: 24px;
}

.bl-hero-text .headline-hero {
    margin-bottom: 20px;
}

.bl-gradient {
    background: linear-gradient(135deg, #784bfa, #0071e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bl-hero-text .subhead {
    margin-bottom: 36px;
    max-width: 480px;
}

.bl-hero-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.bl-hero-trust-dots {
    display: flex;
    gap: 4px;
}

.bl-hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Phone Mockup ───────────────────────────────── */
.bl-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeSlideUp 0.8s 0.3s ease-out both;
}

.bl-phone {
    position: relative;
    width: 290px;
    background: #111;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: phoneFloat 6s ease-in-out infinite;
    z-index: 2;
}

.bl-phone::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(120, 75, 250, 0.12), transparent 70%);
    filter: blur(16px);
    z-index: -1;
}

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

.bl-screen {
    background: var(--bg-section);
    border-radius: 34px;
    overflow: hidden;
}

.bl-screen-header {
    padding: 12px 16px 10px;
    text-align: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bl-screen-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #784bfa, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.bl-screen-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.bl-chat {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 330px;
}

.bl-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bl-msg.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bl-msg-ai {
    align-self: flex-start;
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px;
}

.bl-msg-user {
    align-self: flex-end;
    background: #784bfa;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bl-typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: #e9e9eb;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.bl-typing.visible { opacity: 1; }

.bl-typing-dot {
    width: 7px;
    height: 7px;
    background: #86868b;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.bl-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.bl-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.bl-screen-input {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bl-screen-input-field {
    flex: 1;
    height: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.bl-screen-input-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #784bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bl-screen-input-send svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* ── Consultation Booked Notification ──────────── */
.bl-notif {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.bl-notif.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bl-notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bl-notif-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

/* ── Floating Badges ────────────────────────────── */
.bl-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 3;
}

.bl-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.bl-badge-1 {
    top: 12%;
    right: -60px;
    animation: badgeFloat1 4s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.bl-badge-2 {
    bottom: 35%;
    left: -70px;
    animation: badgeFloat2 4.5s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.bl-badge-3 {
    bottom: 12%;
    right: -50px;
    animation: badgeFloat3 3.8s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.bl-badge.visible { animation-play-state: running; }

.bl-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bl-badge-icon svg {
    width: 14px;
    height: 14px;
}

@keyframes badgeFloat1 { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes badgeFloat2 { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@keyframes badgeFloat3 { 0% { transform: translateY(0); } 100% { transform: translateY(-7px); } }

/* ── Section Spacing ───────────────────────────── */
.bl-process,
.bl-benefits,
.bl-related { padding: 100px 0; }

/* ── Process Steps ──────────────────────────────── */
.bl-process { text-align: center; }
.bl-process .headline-section { margin-bottom: 12px; }
.bl-process .subhead { margin: 0 auto 56px; max-width: 500px; }

.bl-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.bl-step {
    text-align: center;
    padding: 0 16px;
}

.bl-step-num {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(120, 75, 250, 0.08);
    color: #784bfa;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bl-step:hover .bl-step-num {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(120, 75, 250, 0.15);
}

.bl-step .headline-card {
    margin-bottom: 10px;
    font-size: 20px;
}

.bl-step .body-text {
    font-size: 15px;
}

/* ── Benefits Bento Grid ── */
.bl-benefits { text-align: center; }
.bl-benefits .headline-section { margin-bottom: 12px; }
.bl-benefits .subhead { margin: 0 auto 56px; max-width: 520px; }

.bl-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.bl-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
.bl-bento-grid .bento-card:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.bl-bento-grid .bento-card:nth-child(6) { grid-column: 2 / 4; }

.bl-bento-grid .bento-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bl-bento-grid .bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.bl-bento-grid .bento-card-graphic svg {
    transition: transform 0.4s ease;
}

.bl-bento-grid .bento-card:hover .bento-card-graphic svg {
    transform: scale(1.05);
}

/* Pulse animation for accent elements */
@keyframes blIconPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.bl-bento-grid .bento-card-graphic .pulse-ring {
    animation: blIconPulse 3s ease-in-out infinite;
}

/* Floating animation for integration icons */
@keyframes blIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.bl-bento-grid .bento-app-icon:nth-child(1) { animation: blIconFloat 3s ease-in-out infinite; }
.bl-bento-grid .bento-app-icon:nth-child(2) { animation: blIconFloat 3s 0.3s ease-in-out infinite; }
.bl-bento-grid .bento-app-icon:nth-child(3) { animation: blIconFloat 3s 0.6s ease-in-out infinite; }
.bl-bento-grid .bento-app-icon:nth-child(4) { animation: blIconFloat 3s 0.9s ease-in-out infinite; }

/* Spin animation for clock hand */
@keyframes blClockSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bl-clock-hand {
    transform-origin: 80px 50px;
    animation: blClockSpin 8s linear infinite;
}

/* ── Stats Banner Override ── */
.stats {
    background: var(--bg-card);
}

/* ── Related Industries ── */
.bl-related { text-align: center; }
.bl-related .headline-section { margin-bottom: 12px; }
.bl-related .subhead { margin: 0 auto 48px; max-width: 480px; }

.bl-related .feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bl-related .feature-card .ind-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #784bfa;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.bl-related .feature-card:hover .ind-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.bl-related .ind-icon-graphic {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bl-related .ind-icon-graphic-blue  { background: rgba(0, 113, 227, 0.04); }
.bl-related .ind-icon-graphic-green { background: rgba(29, 185, 84, 0.04); }

.bl-related .feature-card:hover .ind-icon-graphic {
    transform: translateY(-4px);
}

.bl-related .ind-icon-graphic svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bl-related .feature-card:hover .ind-icon-graphic svg {
    transform: scale(1.08);
}

/* ── Device Morph Dashboard Section ───────────── */
.bl-device-morph {
    position: relative;
    height: 300vh;
    background: var(--bg-primary);
}

.bl-device-morph-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bl-device-frame {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 56vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

/* Override app-demo styles within Device Morph */
.bl-device-frame .app-demo-titlebar {
    flex-shrink: 0;
}

.bl-device-frame .app-demo-body {
    flex: 1;
    height: auto;
}

.bl-device-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 110;
}

.bl-device-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 111;
    opacity: 0;
    transform: translateY(24px);
}

.bl-device-content .headline-section {
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.bl-device-content .subhead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
    .bl-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .bl-hero-text .subhead {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .bl-hero-text .hero-actions {
        justify-content: center;
    }

    .bl-hero-trust {
        justify-content: center;
    }

    .bl-badge { display: none; }

    .bl-phone { width: 260px; }

    .bl-device-frame {
        width: 90%;
    }

    .bl-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .bl-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
    .bl-bento-grid .bento-card:nth-child(2) { grid-column: 1; grid-row: auto; }
    .bl-bento-grid .bento-card:nth-child(6) { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
    .bl-hero { padding: 140px 0 60px; }

    .bl-process,
    .bl-benefits,
    .bl-related { padding: 80px 0; }

    .bl-phone { width: 240px; border-radius: 36px; padding: 10px; }
    .bl-screen { border-radius: 28px; }
    .bl-chat { min-height: 280px; padding: 12px 10px; }
    .bl-msg { font-size: 12px; }

    .bl-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }

    .bl-device-morph { height: 250vh; }
    .bl-device-frame {
        width: 94%;
        height: 40vh;
    }
    .bl-device-frame .app-demo-sidebar { display: none; }
    .bl-device-frame .app-demo-body { grid-template-columns: 1fr; }
    .bl-device-content { padding: 24px; }
    .bl-device-content .headline-section { font-size: 28px; }
    .bl-device-content .subhead { font-size: 16px; }

    .bl-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .bl-bento-grid .bento-card:nth-child(1),
    .bl-bento-grid .bento-card:nth-child(2),
    .bl-bento-grid .bento-card:nth-child(6) { grid-column: 1; grid-row: auto; }
}
