/* Shared presentation for every public inner-page hero. The pricing page is the visual source of truth. */
@keyframes inner-hero-grid-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes inner-hero-dots-fade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes inner-hero-badge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.2); }
    50% { box-shadow: 0 0 35px rgba(220, 38, 38, 0.4); }
}

@keyframes inner-hero-heading-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes inner-hero-orb-one {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.15); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes inner-hero-orb-two {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(25px, -25px) scale(0.85); }
}

@keyframes inner-hero-orb-three {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, -35px) scale(1.2); }
}

@keyframes inner-hero-orb-four {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 25px) scale(1.15); }
}

@keyframes inner-hero-shimmer-sweep {
    0% { left: -100%; }
    50%, 100% { left: 120%; }
}

@keyframes inner-hero-ray-rotate {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

@keyframes inner-hero-particle-float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
    25% { transform: translateY(-35px) translateX(18px); opacity: 0.7; }
    50% { transform: translateY(-18px) translateX(-12px); opacity: 0.3; }
    75% { transform: translateY(-45px) translateX(22px); opacity: 0.6; }
}

body.page-inner .pricing-style-hero {
    position: relative !important;
    min-height: 0 !important;
    padding: 80px 0 90px !important;
    overflow: hidden !important;
    isolation: isolate;
    background: linear-gradient(160deg, #0a0e1a 0%, #111827 30%, #1a1f35 60%, #0f1525 100%) !important;
    color: #ffffff;
}

body.page-inner .pricing-style-hero > :not(.pricing-style-hero__effects) {
    position: relative;
    z-index: 1;
}

body.page-inner .pricing-style-hero > .pricing-style-hero__legacy-effect {
    display: none !important;
}

.pricing-style-hero__effects,
.pricing-style-hero__grid,
.pricing-style-hero__dots,
.pricing-style-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pricing-style-hero__grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: inner-hero-grid-pulse 8s ease-in-out infinite;
}

.pricing-style-hero__dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: inner-hero-dots-fade 6s ease-in-out infinite;
}

.pricing-style-hero__orb {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.pricing-style-hero__orb--one {
    top: -100px;
    right: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.18) 0%, transparent 70%);
    animation: inner-hero-orb-one 10s ease-in-out infinite;
}

.pricing-style-hero__orb--two {
    bottom: -70px;
    left: -50px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    animation: inner-hero-orb-two 12s ease-in-out 2s infinite;
}

.pricing-style-hero__orb--three {
    top: 35%;
    left: 55%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: inner-hero-orb-three 14s ease-in-out 4s infinite;
}

.pricing-style-hero__orb--four {
    top: 20%;
    left: 20%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    animation: inner-hero-orb-four 9s ease-in-out 1s infinite;
}

.pricing-style-hero__shimmer {
    position: absolute;
    top: -50%;
    left: -100%;
    z-index: 0;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.005) 30%, rgba(255, 255, 255, 0.025) 50%, rgba(255, 255, 255, 0.005) 70%, transparent 100%);
    transform: skewX(-15deg);
    animation: inner-hero-shimmer-sweep 6s ease-in-out infinite;
    pointer-events: none;
}

.pricing-style-hero__ray {
    position: absolute;
    top: -35%;
    z-index: 0;
    width: 1px;
    height: 160%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, transparent 100%);
    transform-origin: top center;
    animation: inner-hero-ray-rotate 22s linear infinite;
    pointer-events: none;
}

.pricing-style-hero__ray--one { left: 12%; animation-duration: 20s; }
.pricing-style-hero__ray--two { left: 38%; width: 2px; animation-delay: 6s; animation-duration: 26s; }
.pricing-style-hero__ray--three { left: 62%; animation-delay: 12s; animation-duration: 24s; }
.pricing-style-hero__ray--four { left: 82%; width: 1.5px; animation-delay: 3s; animation-duration: 19s; }

.pricing-style-hero__particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    animation: inner-hero-particle-float 8s ease-in-out infinite;
}

.pricing-style-hero__particle:nth-child(1) { top: 8%; left: 12%; }
.pricing-style-hero__particle:nth-child(2) { top: 18%; left: 78%; width: 3px; height: 3px; animation-delay: .7s; }
.pricing-style-hero__particle:nth-child(3) { top: 42%; left: 35%; animation-delay: 1.4s; }
.pricing-style-hero__particle:nth-child(4) { top: 58%; left: 68%; width: 1.5px; height: 1.5px; animation-delay: 2.1s; }
.pricing-style-hero__particle:nth-child(5) { top: 72%; left: 15%; animation-delay: 2.8s; }
.pricing-style-hero__particle:nth-child(6) { top: 28%; left: 52%; width: 2.5px; height: 2.5px; animation-delay: 3.5s; }
.pricing-style-hero__particle:nth-child(7) { top: 82%; left: 58%; animation-delay: 4.2s; }
.pricing-style-hero__particle:nth-child(8) { top: 48%; left: 18%; width: 1.5px; height: 1.5px; animation-delay: 4.9s; }
.pricing-style-hero__particle:nth-child(9) { top: 12%; left: 42%; animation-delay: 5.6s; }
.pricing-style-hero__particle:nth-child(10) { top: 68%; left: 38%; width: 3px; height: 3px; animation-delay: 6.3s; }

body.page-inner .pricing-style-hero:not(.pricing-style-hero--structured) > :not(.pricing-style-hero__effects):not(.pricing-style-hero__legacy-effect) {
    width: 100% !important;
    max-width: 1280px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-top: 0 !important;
    padding-right: 32px !important;
    padding-bottom: 0 !important;
    padding-left: 32px !important;
    text-align: center !important;
}

body.page-inner .pricing-reference-page .pricing-reference__hero,
body.page-inner .pricing-style-hero:not(.pricing-style-hero--structured) {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    height: 344px !important;
    min-height: 344px !important;
    max-height: 344px !important;
    margin-top: 8px !important;
}

body.page-inner .pricing-style-hero--structured > :not(.pricing-style-hero__effects):not(.pricing-style-hero__legacy-effect) {
    position: relative;
    z-index: 1;
}

body.page-inner .pricing-style-hero h1 {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    color: #ffffff !important;
    font-size: 48px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.04em !important;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3) !important;
}

body.page-inner .pricing-style-hero h1 span {
    background: linear-gradient(135deg, #fca5a5, #f87171, #fca5a5) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: inner-hero-heading-shimmer 3s linear infinite;
    text-shadow: none !important;
}

body.page-inner .pricing-style-hero :is(.page-hero-badge, .gallery-ref__eyebrow, .hero-badge, .tool-badge, .ffc-hero-badge, .hero-eyebrow, .service-detail-kicker) {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    padding: 8px 18px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(220, 38, 38, 0.4) !important;
    border-radius: 25px !important;
    background: rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 1.5px !important;
    backdrop-filter: blur(10px);
    animation: inner-hero-badge-glow 3s ease-in-out infinite;
}

body.page-inner .pricing-style-hero:not(.pricing-style-hero--structured) p {
    max-width: 550px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

body.page-inner .pricing-style-hero--structured :is(.hero-lead, .service-detail-hero__text, .blog-detail-hero__summary) {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* The converter hero lives inside a constrained shell; let its background span the viewport. */
body.page-inner .ffc-hero.pricing-style-hero {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
}

@media (max-width: 991px) {
    body.page-inner .pricing-style-hero h1 {
        font-size: 42px !important;
    }

    body.page-inner .pricing-style-hero {
        padding-top: 72px !important;
        padding-bottom: 78px !important;
    }

    body.page-inner .pricing-reference-page .pricing-reference__hero,
    body.page-inner .pricing-style-hero:not(.pricing-style-hero--structured) {
        height: 318px !important;
        min-height: 318px !important;
        max-height: 318px !important;
    }
}

@media (max-width: 768px) {
    body.page-inner .pricing-style-hero:not(.pricing-style-hero--structured) > :not(.pricing-style-hero__effects):not(.pricing-style-hero__legacy-effect) {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }
}

@media (max-width: 640px) {
    body.page-inner .pricing-style-hero h1 {
        font-size: 36px !important;
    }

    body.page-inner .pricing-style-hero {
        padding-top: 56px !important;
        padding-bottom: 62px !important;
    }

    body.page-inner .pricing-reference-page .pricing-reference__hero,
    body.page-inner .pricing-style-hero:not(.pricing-style-hero--structured) {
        height: 276px !important;
        min-height: 276px !important;
        max-height: 276px !important;
    }

    body.page-inner .reviews-reference-page .page-hero.pricing-style-hero {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.page-inner .reviews-reference-page .page-hero.pricing-style-hero > .page-hero-inner {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0;
        margin-right: auto !important;
        margin-left: auto !important;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center !important;
    }

    body.page-inner .reviews-reference-page .page-hero.pricing-style-hero .page-hero-badge {
        align-self: center !important;
    }

    body.page-inner .reviews-reference-page .page-hero.pricing-style-hero :is(h1, .hero-stats) {
        width: 100%;
        margin-right: auto !important;
        margin-left: auto !important;
        text-align: center !important;
    }

    /* Reviews has three hero stats. Keep them on one row so the fixed-height
       inner-page hero cannot push its badge behind the mobile navbar. */
    body.page-inner .reviews-reference-page .pricing-style-hero .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        width: 100%;
        gap: 8px;
        margin-top: 22px;
    }

    body.page-inner .reviews-reference-page .pricing-style-hero .hero-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        text-align: center !important;
    }

    body.page-inner .reviews-reference-page .pricing-style-hero .hero-stat-num {
        width: 100%;
        white-space: nowrap;
        text-align: center !important;
    }

    body.page-inner .reviews-reference-page .pricing-style-hero .hero-stat-label {
        width: 100%;
        line-height: 1.25;
        text-align: center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-style-hero__effects *,
    body.page-inner .pricing-style-hero h1 span,
    body.page-inner .pricing-style-hero :is(.page-hero-badge, .gallery-ref__eyebrow, .hero-badge, .tool-badge, .ffc-hero-badge, .hero-eyebrow, .service-detail-kicker) {
        animation: none !important;
    }
}
