/* ========================================================== PaymentPro — Immersive 3D Homepage Scroll-driven storytelling with Webflow-style 3D effects ========================================================== */ /* ---- Global Homepage Overrides ---- */

.public-content .homepage {
    overflow-x: hidden;
}
/* Navbar: transparent over dark hero → dark glass inside hero → white on light sections */ /* 1. Base: fixed + transparent — overlays the hero fully */

.navbar.homepage-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background 0.4s cubic-bezier(0.4,0,0.2,1), border-color 0.4s ease, backdrop-filter 0.4s ease;
}

    .navbar.homepage-nav .nav-link {
        color: rgba(255,255,255,0.75) !important;
        transition: color 0.3s ease;
    }

        .navbar.homepage-nav .nav-link:hover {
            color: #fff !important;
            background: rgba(255,255,255,0.08) !important;
        }
    /* 2. Scrolled inside hero — dark frosted glass */

    .navbar.homepage-nav.navbar-scrolled {
        background: rgba(11,10,26,0.82) !important;
        border-bottom-color: rgba(255,255,255,0.07) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
    }
    /* Logo swap: white variant on dark, dark variant on light */

    .navbar.homepage-nav .logo-dark-bg {
        display: block;
    }

    .navbar.homepage-nav .logo-light-bg {
        display: none;
    }

    .navbar.homepage-nav.navbar-on-light .logo-dark-bg {
        display: none;
    }

    .navbar.homepage-nav.navbar-on-light .logo-light-bg {
        display: block;
    }
    /* 3. Past the hero, over white sections — white frosted glass */

    .navbar.homepage-nav.navbar-on-light {
        background: rgba(255,255,255,0.92) !important;
        border-bottom-color: rgba(226,232,240,0.8) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-shadow: 0 1px 24px rgba(0,0,0,0.06) !important;
    }

        .navbar.homepage-nav.navbar-on-light .nav-link {
            color: var(--text-secondary) !important;
        }

            .navbar.homepage-nav.navbar-on-light .nav-link:hover {
                color: var(--text-primary) !important;
                background: var(--gray-100);
            }
/* Override public-layout background to dark for homepage */

.public-layout:has(.homepage), .public-layout:has(.hp-hero) {
    background: #0b0a1a;
}
/* ---- Scroll-triggered animation base ---- */

.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

    .scroll-reveal.from-left {
        transform: translateX(-80px);
    }

    .scroll-reveal.from-right {
        transform: translateX(80px);
    }

    .scroll-reveal.from-scale {
        transform: scale(0.85);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }

    .scroll-reveal.delay-1 {
        transition-delay: 0.1s;
    }

    .scroll-reveal.delay-2 {
        transition-delay: 0.2s;
    }

    .scroll-reveal.delay-3 {
        transition-delay: 0.3s;
    }

    .scroll-reveal.delay-4 {
        transition-delay: 0.4s;
    }

    .scroll-reveal.delay-5 {
        transition-delay: 0.5s;
    }

    .scroll-reveal.delay-6 {
        transition-delay: 0.6s;
    }
/* =================================== Section 1 — HERO (Full Viewport) =================================== */

.hp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0b0a1a; /* push content down enough to clear the transparent navbar */
    padding: 5rem 1.5rem 4rem;
}
/* Animated gradient mesh background */

.hp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

    .hp-hero-bg .orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(130px);
        opacity: 0.35;
        animation: orbFloat 12s ease-in-out infinite alternate;
        pointer-events: none;
    }

    .hp-hero-bg .orb-1 {
        width: 480px;
        height: 480px;
        top: -5%;
        left: -5%;
        background: #4f46e5;
        animation-duration: 14s;
    }

    .hp-hero-bg .orb-2 {
        width: 400px;
        height: 400px;
        bottom: -10%;
        right: -8%;
        background: #7c3aed;
        animation-duration: 10s;
        animation-delay: -4s;
    }

    .hp-hero-bg .orb-3 {
        width: 280px;
        height: 280px;
        top: 25%;
        right: 18%;
        background: #06b6d4;
        opacity: 0.2;
        animation-duration: 16s;
        animation-delay: -8s;
    }
/* Dot grid overlay */

.hp-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}
/* Announce bar — feature chips, not a generic label */

.hp-hero-announce {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: heroFadeUp 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    flex-wrap: wrap;
    justify-content: center;
}

.hp-announce-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #818cf8;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
}

.hp-announce-divider {
    color: rgba(255,255,255,0.15);
    font-size: 1rem;
}

.hp-announce-items {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.01em;
}

.hp-hero-title {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #fff;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroFadeUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

    .hp-hero-title .text-gradient {
        background: linear-gradient(135deg, #818cf8 0%, #c084fc 30%, #22d3ee 70%, #34d399 100%);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradientFlow 6s ease infinite;
    }

.hp-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: heroFadeUp 1s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hp-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2.25rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(79,70,229,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .hp-btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .hp-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(79,70,229,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
        color: #fff;
        text-decoration: none;
    }

        .hp-btn-primary:hover::before {
            opacity: 1;
        }

.hp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2.25rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

    .hp-btn-ghost:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
        color: #fff;
        text-decoration: none;
    }
/* Scroll indicator — truly centred, no text wrapping */

.hp-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: heroFadeUp 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

    .hp-scroll-hint span {
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: rgba(255,255,255,0.25);
        font-weight: 600;
        white-space: nowrap;
    }

.hp-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    position: relative;
}

    .hp-scroll-mouse::before {
        content: '';
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 8px;
        background: rgba(255,255,255,0.5);
        border-radius: 2px;
        animation: scrollWheel 2s ease-in-out infinite;
    }
/* =================================== Section 2 — FLOATING 3D SHOWCASE =================================== */

.hp-showcase {
    padding: 7rem 0;
    background: #0d0c20;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.04);
}
/* Subtle crosshatch grid */

.hp-showcase-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 100% at 60% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 60% 50%, black 40%, transparent 100%);
}
/* Left-aligned text */

.hp-showcase-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #818cf8;
    margin-bottom: 1rem;
}

.hp-showcase-title-left {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hp-showcase-sub-left {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 380px;
}
/* KPI chips */

.hp-showcase-kpis {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.hp-kpi {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.hp-kpi-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    min-width: 72px;
    letter-spacing: -0.02em;
}

.hp-kpi-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

.hp-showcase-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0;
}
/* 3D perspective container */

.hp-3d-scene {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    position: relative;
}
/* Ambient glow beneath the card */

.hp-3d-card-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 120px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.3) 0%, transparent 70%);
    filter: blur(24px);
    z-index: 0;
    pointer-events: none;
}

.hp-3d-card {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    transform: rotateX(6deg) rotateY(-6deg);
    transition: transform 0.1s ease-out;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset, 0 0 80px rgba(79,70,229,0.15);
    position: relative;
    z-index: 1;
}
/* Floating UI elements inside the 3D card */

.hp-3d-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hp-3d-card-dots {
    display: flex;
    gap: 6px;
}

    .hp-3d-card-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

        .hp-3d-card-dots span:nth-child(1) {
            background: #ef4444;
        }

        .hp-3d-card-dots span:nth-child(2) {
            background: #f59e0b;
        }

        .hp-3d-card-dots span:nth-child(3) {
            background: #10b981;
        }

.hp-3d-card-title {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}
/* Mock dashboard rows */

.hp-mock-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hp-mock-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}

    .hp-mock-row:hover {
        background: rgba(255,255,255,0.06);
        border-color: rgba(99,102,241,0.2);
    }

.hp-mock-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .hp-mock-status.approved {
        background: #10b981;
        box-shadow: 0 0 8px rgba(16,185,129,0.4);
    }

    .hp-mock-status.pending {
        background: #f59e0b;
        box-shadow: 0 0 8px rgba(245,158,11,0.4);
    }

    .hp-mock-status.draft {
        background: #64748b;
    }

.hp-mock-info {
    flex: 1;
    min-width: 0;
}

.hp-mock-vendor {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.hp-mock-meta {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.3);
}

.hp-mock-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #34d399;
    font-family: 'Courier New', monospace;
}

.hp-mock-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .hp-mock-badge.approved {
        background: rgba(16,185,129,0.15);
        color: #34d399;
    }

    .hp-mock-badge.pending {
        background: rgba(245,158,11,0.15);
        color: #fbbf24;
    }

    .hp-mock-badge.draft {
        background: rgba(100,116,139,0.15);
        color: #94a3b8;
    }
/* Floating accent cards around 3D card */

.hp-float-accent {
    position: absolute;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    z-index: 3;
    transform-style: preserve-3d;
    transform: translateZ(40px);
}

    .hp-float-accent.accent-approved {
        top: 10%;
        right: -5%;
        animation: floatAccent 6s ease-in-out infinite;
    }

    .hp-float-accent.accent-stats {
        bottom: 10%;
        left: -5%;
        animation: floatAccent 7s ease-in-out infinite reverse;
    }

    .hp-float-accent .accent-label {
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: rgba(255,255,255,0.4);
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .hp-float-accent .accent-value {
        font-size: 1.5rem;
        font-weight: 800;
        color: #fff;
    }

        .hp-float-accent .accent-value.green {
            color: #34d399;
        }
/* =================================== Section 3 — STORY FEATURES =================================== */

.hp-features {
    padding: 8rem 0;
    background: #ffffff;
    position: relative;
}

.hp-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.hp-section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hp-section-sub {
    font-size: 1.0625rem;
    color: var(--text-tertiary);
    max-width: 520px;
    line-height: 1.7;
}
/* 3D tilt card effect */

.hp-tilt-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    cursor: default;
}

    .hp-tilt-card:hover {
        box-shadow: 0 25px 60px rgba(79, 70, 229, 0.12), 0 8px 24px rgba(0,0,0,0.06);
    }
    /* Shine / glare effect on tilt */

    .hp-tilt-card .tilt-glare {
        position: absolute;
        inset: 0;
        border-radius: 20px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79,70,229,0.06), transparent 40%);
    }

    .hp-tilt-card:hover .tilt-glare {
        opacity: 1;
    }
    /* Top gradient line */

    .hp-tilt-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--card-accent, var(--primary-gradient));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hp-tilt-card:hover::after {
        transform: scaleX(1);
    }

.hp-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(30px);
}

.hp-tilt-card:hover .hp-feature-icon {
    transform: translateZ(30px) scale(1.1) rotate(-3deg);
}

.hp-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hp-feature-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin: 0;
}
/* =================================== Section 4 — WORKFLOW JOURNEY =================================== */

.hp-journey {
    padding: 8rem 0;
    background: var(--gray-50);
    overflow: hidden;
}
/* Timeline track */

.hp-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
/* Vertical line that draws itself */

.hp-timeline-line {
    position: absolute;
    top: 0;
    left: 36px;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    z-index: 0;
}

.hp-timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #4f46e5, #06b6d4);
    border-radius: 2px;
    transition: height 0.05s linear;
}

.hp-timeline-step {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

    .hp-timeline-step:last-child {
        padding-bottom: 0;
    }

.hp-timeline-marker {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-tertiary);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.hp-timeline-step.active .hp-timeline-marker {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(79,70,229,0.35);
    transform: scale(1.05);
}

.hp-timeline-body {
    padding-top: 0.75rem;
    flex: 1;
}

.hp-timeline-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hp-timeline-desc {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin: 0;
}
/* =================================== Section 5 — STATS COUNTER =================================== */

.hp-stats {
    padding: 6rem 0;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

    .hp-stats::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
        background-size: 32px 32px;
    }

.hp-stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hp-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.hp-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
/* =================================== Section 6 — CTA (Full Viewport) =================================== */

.hp-cta {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0b0a1a;
    padding: 6rem 1.5rem;
}

.hp-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .hp-cta-bg .orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(150px);
        opacity: 0.3;
    }

    .hp-cta-bg .orb-1 {
        width: 380px;
        height: 380px;
        top: -15%;
        right: -8%;
        background: #4f46e5;
        animation: orbFloat 10s ease-in-out infinite alternate;
    }

    .hp-cta-bg .orb-2 {
        width: 320px;
        height: 320px;
        bottom: -15%;
        left: -8%;
        background: #7c3aed;
        animation: orbFloat 12s ease-in-out infinite alternate-reverse;
    }

.hp-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
}

.hp-cta-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hp-cta-sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hp-cta-links {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

    .hp-cta-links a {
        color: rgba(255,255,255,0.7);
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s;
    }

        .hp-cta-links a:hover {
            color: #fff;
        }
/* =================================== Keyframe Animations =================================== */

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -40px) scale(1.1);
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes floatAccent {
    0%, 100% {
        transform: translateZ(40px) translateY(0);
    }

    50% {
        transform: translateZ(40px) translateY(-12px);
    }
}

@keyframes drawLine {
    from {
        height: 0%;
    }

    to {
        height: 100%;
    }
}
/* =================================== Responsive =================================== */

@media (max-width: 991px) {
    .hp-showcase {
        padding: 5rem 0;
    }

    .hp-features {
        padding: 5rem 0;
    }

    .hp-journey {
        padding: 5rem 0;
    }

    .hp-stats {
        padding: 4rem 0;
    }

    .hp-float-accent {
        display: none;
    }

    .hp-3d-card {
        transform: none !important;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hp-hero {
        min-height: 90vh;
    }

    .hp-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hp-timeline-line {
        left: 20px;
    }

    .hp-timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hp-timeline-step {
        gap: 1rem;
    }

    .hp-stat-item + .hp-stat-item {
        margin-top: 2rem;
    }
}

/* ===================================
   Light Hero Refresh
   =================================== */

.public-layout:has(.homepage), .public-layout:has(.hp-hero) {
    background: #ffffff;
}

.navbar.homepage-nav {
    border-bottom: 1px solid transparent !important;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.homepage-nav .logo-dark-bg {
    display: none;
}

.navbar.homepage-nav .logo-light-bg {
    display: block;
}

.navbar.homepage-nav .nav-link {
    color: rgba(12, 57, 101, 0.78) !important;
}

.navbar.homepage-nav .nav-link:hover {
    color: #0a4f8c !important;
    background: rgba(27, 179, 255, 0.1) !important;
}

.navbar.homepage-nav .navbar-toggler {
    box-shadow: none;
}

.navbar.homepage-nav .navbar-toggler-icon {
    filter: saturate(0.75);
    opacity: 0.9;
}

.navbar.homepage-nav.navbar-on-light {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.navbar.homepage-nav.navbar-scrolled.navbar-on-light {
    background: rgba(255, 255, 255, 0.84) !important;
    border-bottom-color: rgba(158, 179, 204, 0.26) !important;
    box-shadow: 0 16px 40px rgba(25, 56, 93, 0.08) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

.navbar.homepage-nav.navbar-on-dark {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

.navbar.homepage-nav.navbar-on-dark .logo-dark-bg {
    display: block;
}

.navbar.homepage-nav.navbar-on-dark .logo-light-bg {
    display: none;
}

.navbar.homepage-nav.navbar-on-dark .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
}

.navbar.homepage-nav.navbar-on-dark .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.navbar.homepage-nav.navbar-on-dark .navbar-toggler-icon {
    filter: invert(1) brightness(1.7);
}

.navbar.homepage-nav.navbar-scrolled.navbar-on-dark {
    background: rgba(9, 22, 41, 0.82) !important;
    border-bottom-color: rgba(117, 170, 245, 0.18) !important;
    box-shadow: 0 18px 48px rgba(3, 10, 24, 0.35) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

.hp-hero {
    min-height: 100vh;
    padding: 7rem 1.5rem 4rem;
    background:
        radial-gradient(circle at 14% 20%, rgba(27, 179, 255, 0.2), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(60, 94, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #f5fbff 0%, #edf7ff 40%, #ffffff 100%);
}

.hp-hero-bg .orb {
    filter: blur(110px);
    opacity: 0.42;
}

.hp-hero-bg .orb-1 {
    background: #1bb3ff;
}

.hp-hero-bg .orb-2 {
    background: #5f6fff;
}

.hp-hero-bg .orb-3 {
    background: #7dd3fc;
    opacity: 0.26;
}

.hp-hero-grid {
    z-index: 0;
    background-image:
        linear-gradient(rgba(55, 116, 201, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 116, 201, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.9;
}

.hp-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hp-hero-particles canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hp-hero-shell {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hp-hero-content {
    width: min(100%, 920px);
    max-width: 920px;
    padding: clamp(1.75rem, 2vw + 1rem, 2.75rem);
    border: 1px solid rgba(94, 138, 201, 0.16);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 28px 90px rgba(19, 64, 104, 0.12);
}

.hp-hero-announce {
    margin-bottom: 1.75rem;
}

.hp-announce-tag {
    color: #0d63b1;
    background: rgba(27, 179, 255, 0.12);
    border-color: rgba(27, 179, 255, 0.24);
}

.hp-announce-divider {
    color: rgba(12, 57, 101, 0.18);
}

.hp-announce-items {
    color: rgba(12, 57, 101, 0.62);
}

.hp-hero-title {
    color: #072846;
    text-shadow: 0 10px 35px rgba(255, 255, 255, 0.35);
}

.hp-hero-title .text-gradient {
    background: linear-gradient(135deg, #0f4f8c 0%, #17b6ff 42%, #2f6eff 100%);
    background-size: 220% 220%;
}

.hp-hero-subtitle {
    max-width: 640px;
    color: rgba(12, 57, 101, 0.76);
}

.hp-hero .hp-btn-primary {
    background: linear-gradient(135deg, #18b4ff 0%, #0e91e8 42%, #255fff 100%);
    box-shadow: 0 20px 40px rgba(24, 180, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hp-hero .hp-btn-primary:hover {
    box-shadow: 0 24px 48px rgba(17, 136, 236, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hp-hero .hp-btn-ghost {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(64, 127, 214, 0.16);
    color: #0d4f8f;
    box-shadow: 0 14px 28px rgba(17, 53, 92, 0.07);
}

.hp-hero .hp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(27, 179, 255, 0.3);
    color: #083d6c;
}

.hp-hero-note {
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.4rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(64, 127, 214, 0.16);
    color: rgba(12, 57, 101, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: heroFadeUp 1s 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hp-hero.hp-hero-particles-ready .hp-hero-note {
    display: inline-flex;
}

.hp-hero-note-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #17b6ff, #255fff);
    box-shadow: 0 0 18px rgba(24, 180, 255, 0.65);
}

.hp-scroll-hint span {
    color: rgba(12, 57, 101, 0.36);
}

.hp-scroll-mouse {
    border-color: rgba(12, 57, 101, 0.2);
}

.hp-scroll-mouse::before {
    background: rgba(12, 57, 101, 0.52);
}

@media (max-width: 991px) {
    .navbar.homepage-nav .navbar-collapse {
        margin-top: 0.9rem;
        padding: 0.85rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(158, 179, 204, 0.24);
        box-shadow: 0 18px 42px rgba(25, 56, 93, 0.12);
    }

    .navbar.homepage-nav.navbar-on-dark .navbar-collapse {
        background: rgba(9, 22, 41, 0.94);
        border-color: rgba(117, 170, 245, 0.18);
    }

    .hp-hero {
        padding-top: 6.5rem;
    }
}

@media (max-width: 767px) {
    .hp-hero {
        min-height: 92vh;
        padding: 6rem 1rem 3rem;
    }

    .hp-hero-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .hp-hero-content {
        padding: 1.5rem 1.2rem;
        border-radius: 24px;
    }

    .hp-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hp-hero-note {
        width: 100%;
        justify-content: center;
        font-size: 0.78rem;
        text-align: center;
        border-radius: 18px;
    }
}

/* ===================================
   Hero Rebalance
   =================================== */

.hp-hero {
    display: block;
    padding: 7.5rem 1.5rem 4.5rem;
    background:
        radial-gradient(circle at 8% 18%, rgba(50, 194, 255, 0.18), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(86, 107, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 52%, #ffffff 100%);
}

.hp-hero-shell {
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-right: min(49vw, 610px);
}

.hp-hero-content {
    width: min(100%, 620px);
    max-width: 620px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    text-align: left;
}

.hp-hero-announce {
    justify-content: flex-start;
    margin-bottom: 1.35rem;
}

.hp-announce-items {
    line-height: 1.5;
}

.hp-hero-title {
    font-size: clamp(3.25rem, 7vw, 6.15rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    margin-bottom: 1.35rem;
}

.hp-hero-title .text-gradient {
    display: inline-block;
    color: #129be8;
    background: none;
    -webkit-text-fill-color: currentColor;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hp-hero-title .text-gradient {
        background: linear-gradient(135deg, #0c5a9f 0%, #19b8ff 48%, #2b65ff 100%);
        background-size: 220% 220%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

.hp-hero-subtitle {
    margin: 0 0 2.2rem;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    line-height: 1.8;
}

.hp-hero-actions {
    justify-content: flex-start;
}

.hp-hero-note {
    display: none !important;
}

.hp-hero-particles {
    position: absolute;
    top: 50%;
    right: clamp(1rem, 4vw, 3.5rem);
    width: min(46vw, 560px);
    height: min(66vh, 560px);
    min-height: 460px;
    transform: translateY(-50%);
    z-index: 1;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(118, 173, 235, 0.24);
    background:
        radial-gradient(circle at 22% 18%, rgba(84, 201, 255, 0.28), transparent 22%),
        radial-gradient(circle at 78% 30%, rgba(67, 105, 255, 0.26), transparent 26%),
        linear-gradient(160deg, rgba(8, 41, 77, 0.96), rgba(14, 73, 132, 0.94) 42%, rgba(22, 132, 204, 0.9) 100%);
    box-shadow:
        0 30px 80px rgba(13, 48, 86, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hp-hero-particles::before,
.hp-hero-particles::after {
    position: absolute;
    left: 1rem;
    z-index: 3;
    pointer-events: none;
}

.hp-hero-particles::before {
    content: "Interactive approval map";
    top: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(239, 250, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-hero-particles::after {
    content: "Hover inside to pull linked approvals together";
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(235, 248, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.hp-hero-particles canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hp-scroll-hint {
    bottom: 1.25rem;
}

.hp-scroll-hint span {
    color: rgba(12, 57, 101, 0.44);
}

.hp-scroll-mouse {
    border-color: rgba(12, 57, 101, 0.24);
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1199px) {
    .hp-hero-content {
        max-width: 560px;
    }

    .hp-hero-particles {
        width: min(44vw, 500px);
        min-height: 430px;
    }
}

@media (max-width: 991px) {
    .hp-hero {
        padding-top: 6.75rem;
    }

    .hp-hero-shell {
        min-height: auto;
        padding-right: 0;
        padding-bottom: clamp(340px, 58vw, 480px);
    }

    .hp-hero-content {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .hp-hero-announce,
    .hp-hero-actions {
        justify-content: center;
    }

    .hp-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hp-hero-particles {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        height: clamp(320px, 54vw, 460px);
        min-height: 320px;
        transform: none;
    }
}

@media (max-width: 767px) {
    .hp-hero {
        padding: 6.25rem 1rem 3rem;
    }

    .hp-hero-title {
        font-size: clamp(2.85rem, 13vw, 4.25rem);
    }

    .hp-hero-particles {
        border-radius: 26px;
    }

    .hp-hero-particles::before {
        top: 0.85rem;
        left: 0.85rem;
        font-size: 0.66rem;
    }

    .hp-hero-particles::after {
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.85rem;
        font-size: 0.82rem;
    }
}

/* ===================================
   Hero Positioning Fix
   =================================== */

.hp-hero {
    position: relative;
}

.hp-hero-shell {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.hp-hero-content {
    position: relative;
    z-index: 2;
}

.hp-hero-title {
    max-width: 7.2ch;
}

.hp-hero-subtitle {
    max-width: 34rem;
}

.hp-hero > .hp-hero-particles {
    left: auto;
    bottom: auto;
    right: clamp(1rem, 4vw, 3.5rem);
    top: 50%;
    width: min(41vw, 540px);
    height: clamp(420px, 60vh, 540px);
    transform: translateY(-50%);
}

@media (max-width: 991px) {
    .hp-hero-shell {
        padding-bottom: clamp(340px, 58vw, 480px);
    }

    .hp-hero-title,
    .hp-hero-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hp-hero > .hp-hero-particles {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: auto;
        height: clamp(320px, 54vw, 460px);
        transform: none;
    }
}

/* ===================================
   Hero Model Layout
   =================================== */

.hp-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    min-height: calc(100vh - 11rem);
    max-width: 1280px;
    margin: 0 auto;
    padding-right: 0;
}

.hp-hero-content {
    max-width: 600px;
    padding-right: clamp(0rem, 1vw, 0.75rem);
}

.hp-hero-announce,
.hp-hero-title,
.hp-hero-subtitle,
.hp-hero-metrics {
    -webkit-user-select: none;
    user-select: none;
}

.hp-hero-title {
    max-width: 7.2ch;
}

.hp-hero-subtitle {
    max-width: 34rem;
}

.hp-hero-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.hp-hero-metric {
    min-width: 180px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(118, 173, 235, 0.2);
    box-shadow: 0 14px 32px rgba(17, 53, 92, 0.06);
}

.hp-hero-metric strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #083b6a;
    font-size: 0.96rem;
    font-weight: 800;
}

.hp-hero-metric span {
    display: block;
    color: rgba(12, 57, 101, 0.72);
    font-size: 0.82rem;
    line-height: 1.5;
}

.hp-hero-model-panel {
    position: relative;
    min-height: 540px;
    border-radius: 36px;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 24%, rgba(83, 199, 255, 0.24), transparent 24%),
        radial-gradient(circle at 78% 18%, rgba(63, 96, 255, 0.18), transparent 28%),
        linear-gradient(160deg, #0a2646 0%, #103f73 48%, #1782c8 100%);
    border: 1px solid rgba(118, 173, 235, 0.22);
    box-shadow:
        0 28px 70px rgba(16, 48, 86, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hp-hero-model-stage {
    position: absolute;
    inset: 0;
}

.hp-hero-model-stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hp-hero-model-badge,
.hp-hero-model-note {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.hp-hero-model-badge {
    top: 1.1rem;
    left: 1.1rem;
    right: auto;
    display: inline-flex;
    width: auto;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(238, 248, 255, 0.94);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-hero-model-note {
    bottom: 1.1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(235, 248, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .hp-hero-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 0;
    }

    .hp-hero-content {
        max-width: none;
        text-align: center;
    }

    .hp-hero-announce,
    .hp-hero-actions,
    .hp-hero-metrics {
        justify-content: center;
    }

    .hp-hero-title,
    .hp-hero-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hp-hero-model-panel {
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .hp-hero-model-panel {
        min-height: 340px;
        border-radius: 28px;
    }

    .hp-hero-model-badge {
        font-size: 0.66rem;
    }

    .hp-hero-model-note {
        font-size: 0.8rem;
        padding: 0.85rem 0.9rem;
    }
}

/* ===================================
   Hero Card Cleanup
   =================================== */

.hp-hero-model-panel {
    justify-self: end;
    align-self: center;
    width: min(100%, 490px);
    min-height: 0;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    pointer-events: none;
}

.hp-hero-model-panel::before,
.hp-hero-model-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hp-hero-model-panel::before {
    inset: 24% 14% 26% 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 183, 255, 0.16), rgba(41, 183, 255, 0) 72%);
    filter: blur(40px);
}

.hp-hero-model-panel::after {
    left: 24%;
    right: 20%;
    bottom: 16%;
    height: 10%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(8, 39, 71, 0.2), rgba(8, 39, 71, 0) 72%);
    filter: blur(16px);
}

.hp-hero-model-stage {
    inset: 0;
}

.hp-hero-model-stage canvas {
    filter: drop-shadow(0 22px 38px rgba(7, 38, 71, 0.16));
}

.hp-hero-model-badge,
.hp-hero-model-note {
    display: none !important;
}

@media (max-width: 991px) {
    .hp-hero-model-panel {
        justify-self: center;
        width: min(100%, 430px);
        min-height: 0;
    }

    .hp-hero-model-stage {
        inset: 0;
    }
}

@media (max-width: 767px) {
    .hp-hero-model-panel {
        width: min(100%, 340px);
        min-height: 0;
    }
}

/* ===================================
   Hero Workflow Visual
   =================================== */

.hp-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
    gap: clamp(2.25rem, 4vw, 4.75rem);
}

.hp-hero-content {
    max-width: 610px;
}

.hp-hero-workflow-visual {
    position: relative;
    justify-self: end;
    align-self: center;
    width: min(100%, 540px);
    min-height: 540px;
    pointer-events: none;
}

.hp-workflow-halo {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(22px);
    opacity: 0.9;
}

.hp-workflow-halo-a {
    inset: 8% 4% auto 32%;
    height: 180px;
    background: radial-gradient(circle, rgba(36, 180, 255, 0.22), rgba(36, 180, 255, 0) 74%);
    animation: hpWorkflowHaloDrift 8s ease-in-out infinite;
}

.hp-workflow-halo-b {
    inset: auto 18% 6% 8%;
    height: 160px;
    background: radial-gradient(circle, rgba(72, 104, 255, 0.16), rgba(72, 104, 255, 0) 74%);
    animation: hpWorkflowHaloDrift 9.5s ease-in-out infinite reverse;
}

.hp-workflow-card {
    position: absolute;
    border-radius: 28px;
    border: 1px solid rgba(110, 172, 236, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 250, 255, 0.74));
    box-shadow:
        0 24px 55px rgba(10, 50, 90, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.hp-workflow-card-source {
    top: 4%;
    left: 0;
    width: 58%;
    padding: 1.3rem 1.35rem 1.1rem;
    animation: hpWorkflowFloat 7s ease-in-out infinite;
}

.hp-workflow-card-output {
    bottom: 5%;
    left: 10%;
    width: 54%;
    padding: 1.2rem 1.25rem 1.1rem;
    animation: hpWorkflowFloat 8.2s ease-in-out infinite reverse;
}

.hp-workflow-card-label {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(22, 168, 255, 0.1);
    color: #0a5ca1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-workflow-card strong {
    display: block;
    color: #0a2f57;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hp-workflow-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    color: rgba(10, 47, 87, 0.72);
    font-size: 0.9rem;
}

.hp-workflow-card-row b {
    color: #0a3c72;
    font-weight: 800;
}

.hp-workflow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.hp-workflow-tags span {
    padding: 0.45rem 0.68rem;
    border-radius: 999px;
    background: rgba(8, 59, 106, 0.06);
    color: rgba(8, 59, 106, 0.76);
    font-size: 0.76rem;
    font-weight: 700;
}

.hp-workflow-rail {
    position: absolute;
    top: 10%;
    right: 0;
    width: 41%;
    min-height: 380px;
    padding: 1.2rem 1rem 1.2rem 1.35rem;
    border-radius: 30px;
    border: 1px solid rgba(79, 167, 245, 0.24);
    background:
        radial-gradient(circle at 20% 18%, rgba(64, 203, 255, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(8, 41, 76, 0.96), rgba(16, 78, 130, 0.92));
    box-shadow:
        0 28px 60px rgba(8, 38, 71, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    animation: hpWorkflowFloat 7.8s ease-in-out infinite;
}

.hp-workflow-rail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.08));
    transform: translateX(-120%);
    animation: hpWorkflowSheen 7s linear infinite;
}

.hp-workflow-rail-line {
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 1.45rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(94, 213, 255, 0.18), rgba(94, 213, 255, 0.9), rgba(94, 213, 255, 0.14));
}

.hp-workflow-rail-pulse {
    position: absolute;
    top: 12%;
    left: calc(1.45rem - 4px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7fe4ff;
    box-shadow: 0 0 0 10px rgba(127, 228, 255, 0.12), 0 0 22px rgba(127, 228, 255, 0.9);
    animation: hpWorkflowPulseTravel 4.8s linear infinite;
}

.hp-workflow-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-top: 0.85rem;
    padding: 0.85rem 0.8rem 0.85rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(231, 245, 255, 0.96);
    animation: hpWorkflowStepGlow 4.8s ease-in-out infinite;
}

.hp-workflow-step-create {
    margin-top: 0;
    animation-delay: 0s;
}

.hp-workflow-step-check {
    animation-delay: 1.2s;
}

.hp-workflow-step-authorize {
    animation-delay: 2.4s;
}

.hp-workflow-step-ledger {
    animation-delay: 3.6s;
}

.hp-workflow-step strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hp-workflow-step > div span {
    display: block;
    margin-top: 0.18rem;
    color: rgba(218, 237, 255, 0.74);
    font-size: 0.78rem;
    line-height: 1.45;
}

.hp-workflow-step-dot {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 0.18rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ee5ff, #2ca6ff);
    box-shadow: 0 0 0 7px rgba(126, 229, 255, 0.12);
}

.hp-workflow-step-ledger .hp-workflow-step-dot {
    background: linear-gradient(135deg, #8cf6cb, #2fe29d);
    box-shadow: 0 0 0 7px rgba(140, 246, 203, 0.14);
}

.hp-workflow-connector {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(17, 124, 207, 0.12), rgba(27, 184, 255, 0.92), rgba(17, 124, 207, 0.12));
    overflow: hidden;
    opacity: 0.9;
}

.hp-workflow-connector::after {
    content: "";
    position: absolute;
    inset: -4px auto -4px 0;
    width: 72px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
    filter: blur(2px);
    animation: hpWorkflowConnectorRun 3.4s linear infinite;
}

.hp-workflow-connector-source {
    top: 31%;
    left: 54%;
    width: 12%;
}

.hp-workflow-connector-output {
    bottom: 23%;
    left: 56%;
    width: 12%;
}

.hp-workflow-ledger-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    margin-top: 1rem;
    height: 58px;
}

.hp-workflow-ledger-bars span {
    flex: 1 1 0;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, rgba(24, 184, 255, 0.94), rgba(47, 101, 255, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: hpWorkflowBarBounce 4.8s ease-in-out infinite;
}

.hp-workflow-ledger-bars span:nth-child(1) {
    height: 42%;
    animation-delay: 0s;
}

.hp-workflow-ledger-bars span:nth-child(2) {
    height: 78%;
    animation-delay: 0.6s;
}

.hp-workflow-ledger-bars span:nth-child(3) {
    height: 60%;
    animation-delay: 1.2s;
}

.hp-workflow-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    background: rgba(18, 184, 134, 0.12);
    color: #0f7a5f;
    font-size: 0.82rem;
    font-weight: 800;
}

.hp-workflow-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.68rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 181, 238, 0.2);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 36px rgba(9, 45, 82, 0.08);
    color: #0a3d72;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    animation: hpWorkflowChipFloat 6.6s ease-in-out infinite;
}

.hp-workflow-chip i {
    color: #149fea;
}

.hp-workflow-chip-a {
    top: 1%;
    left: 44%;
    animation-delay: 0s;
}

.hp-workflow-chip-b {
    top: 57%;
    left: 2%;
    animation-delay: 1.4s;
}

.hp-workflow-chip-c {
    right: 3%;
    bottom: 1%;
    animation-delay: 2.8s;
}

@keyframes hpWorkflowFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes hpWorkflowHaloDrift {
    0%,
    100% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.04) translate3d(8px, -12px, 0);
    }
}

@keyframes hpWorkflowPulseTravel {
    0% {
        top: 12%;
        opacity: 0;
    }
    8%,
    84% {
        opacity: 1;
    }
    100% {
        top: 80%;
        opacity: 0;
    }
}

@keyframes hpWorkflowStepGlow {
    0%,
    100% {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }
    18%,
    32% {
        background: rgba(128, 225, 255, 0.16);
        border-color: rgba(128, 225, 255, 0.32);
        box-shadow: 0 0 0 1px rgba(128, 225, 255, 0.08), 0 16px 32px rgba(4, 27, 54, 0.18);
    }
}

@keyframes hpWorkflowConnectorRun {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(220%);
    }
}

@keyframes hpWorkflowBarBounce {
    0%,
    100% {
        transform: scaleY(0.94);
    }
    50% {
        transform: scaleY(1.04);
    }
}

@keyframes hpWorkflowChipFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes hpWorkflowSheen {
    0% {
        transform: translateX(-120%);
    }
    55%,
    100% {
        transform: translateX(140%);
    }
}

@media (max-width: 991px) {
    .hp-hero-workflow-visual {
        justify-self: center;
        width: min(100%, 460px);
        min-height: 500px;
        margin-top: 0.5rem;
    }

    .hp-workflow-chip-b {
        left: 6%;
    }
}

@media (max-width: 767px) {
    .hp-hero-workflow-visual {
        width: min(100%, 360px);
        min-height: 410px;
    }

    .hp-workflow-card-source {
        width: 64%;
        padding: 1rem 1rem 0.95rem;
    }

    .hp-workflow-card-output {
        width: 62%;
        left: 4%;
        bottom: 8%;
        padding: 1rem;
    }

    .hp-workflow-rail {
        width: 46%;
        min-height: 300px;
        padding: 0.95rem 0.8rem 0.95rem 1rem;
    }

    .hp-workflow-step {
        gap: 0.65rem;
        padding: 0.72rem 0.62rem 0.72rem 0.75rem;
    }

    .hp-workflow-step strong {
        font-size: 0.84rem;
    }

    .hp-workflow-step span,
    .hp-workflow-chip,
    .hp-workflow-card-row,
    .hp-workflow-status-pill {
        font-size: 0.72rem;
    }

    .hp-workflow-chip-a {
        left: 38%;
    }

    .hp-workflow-chip-b {
        top: 58%;
        left: 0;
    }

    .hp-workflow-chip-c {
        right: 0;
        bottom: 2%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-workflow-halo,
    .hp-workflow-card,
    .hp-workflow-rail,
    .hp-workflow-rail::after,
    .hp-workflow-rail-pulse,
    .hp-workflow-step,
    .hp-workflow-connector::after,
    .hp-workflow-ledger-bars span,
    .hp-workflow-chip {
        animation: none !important;
    }
}

/* ===================================
   Hero Workflow Polish
   =================================== */

.hp-hero-workflow-visual {
    width: min(100%, 560px);
    min-height: 560px;
}

.hp-workflow-halo {
    filter: blur(48px);
    opacity: 0.55;
}

.hp-workflow-halo-a {
    inset: 8% 10% auto 34%;
    height: 140px;
    animation-duration: 12s;
}

.hp-workflow-halo-b {
    inset: auto 14% 10% 14%;
    height: 120px;
    animation-duration: 14s;
}

.hp-workflow-frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(220px, 0.94fr);
    grid-template-areas:
        "top top"
        "source rail"
        "source rail"
        "output output"
        "foot foot";
    gap: 1rem;
    min-height: 100%;
    padding: 1.25rem;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(247, 251, 255, 0.42));
    border: 1px solid rgba(122, 172, 231, 0.22);
    box-shadow:
        0 28px 70px rgba(17, 53, 92, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.hp-workflow-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 18%, rgba(40, 183, 255, 0.1), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(74, 97, 255, 0.08), transparent 26%);
    pointer-events: none;
}

.hp-workflow-frame-top,
.hp-workflow-frame-foot,
.hp-workflow-card,
.hp-workflow-rail {
    position: relative;
    z-index: 1;
}

.hp-workflow-frame-top {
    grid-area: top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.1rem;
}

.hp-workflow-frame-label {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(8, 59, 106, 0.06);
    color: #0b447e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-workflow-frame-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.hp-workflow-frame-tags span,
.hp-workflow-frame-foot span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.48rem 0.74rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(122, 172, 231, 0.18);
    color: rgba(9, 56, 100, 0.78);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 46, 82, 0.05);
}

.hp-workflow-frame-foot span i {
    color: #1399e7;
}

.hp-workflow-card {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    padding: 1.25rem 1.25rem 1.15rem;
    border-radius: 26px;
    border: 1px solid rgba(116, 177, 237, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 255, 0.78));
    box-shadow:
        0 18px 40px rgba(10, 50, 90, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    animation: none;
}

.hp-workflow-card-source {
    grid-area: source;
    align-self: start;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.hp-workflow-card-output {
    grid-area: output;
}

.hp-workflow-card-label {
    margin-bottom: 0.9rem;
    background: rgba(24, 180, 255, 0.1);
    color: #0b5ea6;
}

.hp-workflow-card strong {
    font-size: 1.15rem;
    line-height: 1.25;
}

.hp-workflow-card-row {
    margin-top: 0.82rem;
    padding-top: 0.82rem;
    border-top: 1px solid rgba(107, 160, 220, 0.12);
    font-size: 0.88rem;
}

.hp-workflow-card-row:first-of-type {
    margin-top: 1rem;
}

.hp-workflow-card-row b {
    text-align: right;
}

.hp-workflow-tags {
    margin-top: 1rem;
    gap: 0.5rem;
}

.hp-workflow-tags span {
    padding: 0.42rem 0.7rem;
    background: rgba(8, 59, 106, 0.05);
    color: rgba(8, 59, 106, 0.72);
    font-size: 0.73rem;
}

.hp-workflow-rail {
    grid-area: rail;
    inset: auto;
    width: auto;
    min-height: 0;
    padding: 1rem 0.95rem 1rem 1.15rem;
    border-radius: 28px;
    border: 1px solid rgba(79, 167, 245, 0.22);
    background:
        radial-gradient(circle at 22% 16%, rgba(64, 203, 255, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(9, 41, 74, 0.96), rgba(15, 68, 117, 0.94));
    box-shadow:
        0 22px 46px rgba(8, 38, 71, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: none;
}

.hp-workflow-rail::after {
    animation-duration: 9s;
    opacity: 0.65;
}

.hp-workflow-rail-line {
    left: 1.2rem;
    top: 1.4rem;
    bottom: 1.4rem;
    background: linear-gradient(180deg, rgba(94, 213, 255, 0.16), rgba(94, 213, 255, 0.82), rgba(94, 213, 255, 0.16));
}

.hp-workflow-rail-pulse {
    left: calc(1.2rem - 4px);
    animation: hpWorkflowPulseTravelSoft 5.6s linear infinite;
}

.hp-workflow-step {
    gap: 0.75rem;
    margin-top: 0.72rem;
    padding: 0.85rem 0.75rem 0.85rem 0.82rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
    animation: hpWorkflowStepGlowSoft 5.6s ease-in-out infinite;
}

.hp-workflow-step strong {
    font-size: 0.92rem;
}

.hp-workflow-step > div span {
    margin-top: 0.22rem;
    font-size: 0.77rem;
    line-height: 1.5;
}

.hp-workflow-step-dot {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 6px rgba(126, 229, 255, 0.1);
}

.hp-workflow-card-output strong {
    margin-bottom: 0.95rem;
}

.hp-workflow-ledger-lines {
    display: grid;
    gap: 0.6rem;
}

.hp-workflow-ledger-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.74rem 0.86rem;
    border-radius: 16px;
    background: rgba(8, 59, 106, 0.05);
    border: 1px solid rgba(107, 160, 220, 0.1);
}

.hp-workflow-ledger-line span {
    color: rgba(8, 59, 106, 0.66);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hp-workflow-ledger-line b {
    color: #0a3d72;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: right;
}

.hp-workflow-status-pill {
    margin-top: 0.95rem;
    padding: 0.62rem 0.82rem;
    background: rgba(18, 184, 134, 0.1);
    font-size: 0.79rem;
}

.hp-workflow-frame-foot {
    grid-area: foot;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.1rem;
}

@keyframes hpWorkflowPulseTravelSoft {
    0% {
        top: 1.4rem;
        opacity: 0;
    }
    10%,
    86% {
        opacity: 1;
    }
    100% {
        top: calc(100% - 1.8rem);
        opacity: 0;
    }
}

@keyframes hpWorkflowStepGlowSoft {
    0%,
    100% {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.07);
        box-shadow: none;
    }
    20%,
    32% {
        background: rgba(114, 222, 255, 0.12);
        border-color: rgba(114, 222, 255, 0.22);
        box-shadow: 0 10px 24px rgba(5, 25, 50, 0.14);
    }
}

@media (max-width: 991px) {
    .hp-hero-workflow-visual {
        width: min(100%, 500px);
        min-height: 0;
    }

    .hp-workflow-frame {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .hp-hero-workflow-visual {
        width: min(100%, 380px);
    }

    .hp-workflow-frame {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "source"
            "rail"
            "output"
            "foot";
        padding: 1rem;
    }

    .hp-workflow-frame-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-workflow-frame-tags {
        justify-content: flex-start;
    }

    .hp-workflow-rail {
        min-height: 288px;
    }

    .hp-workflow-card,
    .hp-workflow-rail {
        border-radius: 22px;
    }

    .hp-workflow-ledger-line {
        padding: 0.68rem 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-workflow-rail-pulse,
    .hp-workflow-step {
        animation: none !important;
    }
}

/* ===================================
   Hero Viewport Fit Fix
   =================================== */

.hp-hero {
    --hp-hero-pad-top: clamp(5.75rem, 8vh, 7.5rem);
    --hp-hero-pad-bottom: clamp(2.5rem, 4vh, 4.5rem);
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: var(--hp-hero-pad-top);
    padding-bottom: var(--hp-hero-pad-bottom);
}

.hp-hero-shell {
    min-height: calc(100svh - var(--hp-hero-pad-top) - var(--hp-hero-pad-bottom));
    min-height: calc(100dvh - var(--hp-hero-pad-top) - var(--hp-hero-pad-bottom));
}

.hp-hero-workflow-visual {
    min-height: clamp(470px, calc(100svh - var(--hp-hero-pad-top) - var(--hp-hero-pad-bottom) - 1rem), 560px);
    min-height: clamp(470px, calc(100dvh - var(--hp-hero-pad-top) - var(--hp-hero-pad-bottom) - 1rem), 560px);
}

@media (max-height: 850px) and (min-width: 992px) {
    .hp-hero {
        --hp-hero-pad-top: 5.25rem;
        --hp-hero-pad-bottom: 2.25rem;
    }

    .hp-hero-shell {
        gap: clamp(1.75rem, 3vw, 3.5rem);
    }

    .hp-hero-title {
        font-size: clamp(3rem, 5.4vw, 5.2rem);
        margin-bottom: 1rem;
    }

    .hp-hero-subtitle {
        margin-bottom: 1.75rem;
        line-height: 1.7;
    }
}

@media (max-width: 991px) {
    .hp-hero {
        --hp-hero-pad-top: 6.5rem;
        --hp-hero-pad-bottom: 3rem;
    }

    .hp-hero-shell,
    .hp-hero-workflow-visual {
        min-height: 0;
    }
}

/* ===================================
   Navbar Pill Morph
   =================================== */

.navbar.homepage-nav {
    --nav-progress: 0;
    --nav-surface-rgb: 255, 255, 255;
    --nav-border-rgb: 164, 186, 214;
    --nav-shadow-rgb: 24, 54, 92;
    padding: calc(0.15rem + 0.85rem * var(--nav-progress)) clamp(0.5rem, 1.4vw, 1rem) 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition:
        padding 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.homepage-nav > .container {
    position: relative;
    z-index: 0;
    isolation: isolate;
    max-width: calc(1320px - 112px * var(--nav-progress));
    padding-top: calc(0.32rem + 0.16rem * var(--nav-progress));
    padding-bottom: calc(0.32rem + 0.16rem * var(--nav-progress));
    padding-left: calc((var(--bs-gutter-x, 1.5rem) * 0.5) + (0.9rem * var(--nav-progress)));
    padding-right: calc((var(--bs-gutter-x, 1.5rem) * 0.5) + (0.9rem * var(--nav-progress)));
    border-radius: calc(22px + 999px * var(--nav-progress));
    transition:
        max-width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.homepage-nav > .container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    background: rgba(var(--nav-surface-rgb), calc(0.12 + 0.76 * var(--nav-progress)));
    border: 1px solid rgba(var(--nav-border-rgb), calc(0.08 + 0.16 * var(--nav-progress)));
    box-shadow:
        0 18px 44px rgba(var(--nav-shadow-rgb), calc(0.02 + 0.12 * var(--nav-progress))),
        inset 0 1px 0 rgba(255, 255, 255, calc(0.18 + 0.26 * var(--nav-progress)));
    backdrop-filter: blur(calc(8px + 14px * var(--nav-progress)));
    -webkit-backdrop-filter: blur(calc(8px + 14px * var(--nav-progress)));
    opacity: var(--nav-progress);
    transform: translateY(calc(-10px + 10px * var(--nav-progress))) scale(calc(0.975 + 0.025 * var(--nav-progress)));
    transform-origin: center top;
    transition:
        background 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.62s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.navbar.homepage-nav > .container::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, calc(0.34 * var(--nav-progress))), rgba(255, 255, 255, 0) 48%);
    opacity: calc(0.18 + 0.82 * var(--nav-progress));
    pointer-events: none;
    transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.homepage-nav > .container > * {
    position: relative;
    z-index: 1;
}

.navbar.homepage-nav .navbar-brand {
    margin-right: clamp(0.75rem, 2vw, 1.5rem);
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.homepage-nav .navbar-brand img {
    transform-origin: left center;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.navbar.homepage-nav.navbar-scrolled .navbar-brand img {
    transform: scale(0.97);
}

.navbar.homepage-nav .nav-link {
    padding: 0.58rem 0.92rem;
    border-radius: 999px;
    font-weight: 600;
    transition:
        color 0.35s ease,
        background-color 0.35s ease,
        transform 0.35s ease;
}

.navbar.homepage-nav .nav-link:hover {
    transform: translateY(-1px);
}

.navbar.homepage-nav .btn.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0.56rem 1.2rem !important;
    background: linear-gradient(135deg, #18b4ff 0%, #1096ed 48%, #255fff 100%);
    box-shadow:
        0 14px 28px rgba(17, 136, 236, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.navbar.homepage-nav .btn.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 18px 32px rgba(17, 136, 236, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    filter: saturate(1.05);
}

.navbar.homepage-nav.navbar-on-light {
    --nav-surface-rgb: 255, 255, 255;
    --nav-border-rgb: 164, 186, 214;
    --nav-shadow-rgb: 24, 54, 92;
}

.navbar.homepage-nav.navbar-on-light .logo-dark-bg {
    display: none;
}

.navbar.homepage-nav.navbar-on-light .logo-light-bg {
    display: block;
}

.navbar.homepage-nav.navbar-on-light .nav-link {
    color: rgba(12, 57, 101, 0.82) !important;
}

.navbar.homepage-nav.navbar-on-light .nav-link:hover {
    color: #083d6c !important;
    background: rgba(27, 179, 255, calc(0.08 + 0.08 * var(--nav-progress))) !important;
}

.navbar.homepage-nav.navbar-on-light .navbar-toggler-icon {
    filter: saturate(0.75);
    opacity: 0.9;
}

.navbar.homepage-nav.navbar-on-dark {
    --nav-surface-rgb: 10, 24, 44;
    --nav-border-rgb: 103, 157, 228;
    --nav-shadow-rgb: 4, 13, 28;
}

.navbar.homepage-nav.navbar-on-dark .logo-dark-bg {
    display: block;
}

.navbar.homepage-nav.navbar-on-dark .logo-light-bg {
    display: none;
}

.navbar.homepage-nav.navbar-on-dark .nav-link {
    color: rgba(245, 249, 255, 0.84) !important;
}

.navbar.homepage-nav.navbar-on-dark .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, calc(0.08 + 0.08 * var(--nav-progress))) !important;
}

.navbar.homepage-nav.navbar-on-dark .navbar-toggler-icon {
    filter: invert(1) brightness(1.7);
}

@media (max-width: 991px) {
    .navbar.homepage-nav {
        padding-top: calc(0.25rem + 0.5rem * var(--nav-progress));
    }

    .navbar.homepage-nav > .container {
        max-width: none;
        padding-left: calc((var(--bs-gutter-x, 1.5rem) * 0.5) + (0.45rem * var(--nav-progress)));
        padding-right: calc((var(--bs-gutter-x, 1.5rem) * 0.5) + (0.45rem * var(--nav-progress)));
    }

    .navbar.homepage-nav .navbar-collapse {
        margin-top: 0.7rem;
        padding: 0.55rem;
        border-radius: 24px;
        background: rgba(var(--nav-surface-rgb), 0.96);
        border: 1px solid rgba(var(--nav-border-rgb), 0.22);
        box-shadow: 0 18px 42px rgba(var(--nav-shadow-rgb), 0.12);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .navbar.homepage-nav .navbar-nav {
        align-items: stretch !important;
        gap: 0.25rem !important;
    }

    .navbar.homepage-nav .nav-link {
        padding: 0.75rem 0.92rem;
    }

    .navbar.homepage-nav .btn.btn-primary {
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar.homepage-nav,
    .navbar.homepage-nav > .container,
    .navbar.homepage-nav > .container::before,
    .navbar.homepage-nav > .container::after,
    .navbar.homepage-nav .navbar-brand,
    .navbar.homepage-nav .navbar-brand img,
    .navbar.homepage-nav .nav-link,
    .navbar.homepage-nav .btn.btn-primary {
        transition: none !important;
    }
}
