/* ============================================================
 * CMS Modern Theme Override — visual only
 * Loaded AFTER cms.css. Uses the theme's own CSS variables
 * (--primary, --secondary) so CMS color settings keep working.
 * ============================================================ */

/* ---------- Hero mobile fix: hide empty spacer + shrink row ---------- */
/* Note: original CMS CSS uses .hero_empty-column (single _), but HTML
   uses hero__empty-column (double _). We target BOTH to be safe. */
.hero__empty-column,
.hero_empty-column {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

@media (max-width: 991px) {
    .hero__row {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        position: relative !important;
        display: flex !important;
        flex-wrap: wrap;
    }

    .hero__row > div:first-child {
        display: none !important;
    }

    .hero__image-column {
        height: 220px !important;
        margin-top: 0.5rem;
        border-radius: 20px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .hero__body {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero__btns-container {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 992px) {
    .hero__empty-column,
    .hero_empty-column {
        display: block !important;
        height: 100% !important;
    }
}

/* ============================================================ */

:root {
    --modern-radius: 20px;
    --modern-shadow-sm: 0 2px 10px -2px rgba(10, 31, 68, 0.12);
    --modern-shadow-md: 0 14px 34px -14px rgba(10, 31, 68, 0.25);
    --modern-shadow-lg: 0 24px 60px -20px rgba(10, 31, 68, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Preevio', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- Buttons: pill + shadow ---------- */
.btn {
    border-radius: 999px !important;
    padding: 0.8rem 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6d28d9) !important;
    border: none !important;
    box-shadow: 0 12px 24px -10px rgba(25, 115, 254, 0.65) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 30px -10px rgba(25, 115, 254, 0.7) !important;
}

.btn-secondary {
    box-shadow: var(--modern-shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus {
    transform: translateY(-2px);
}

/* ---------- Navbar: glassy sticky ---------- */
.fixed-nav-container {
    position: sticky !important;
    top: 0;
    z-index: 1030;
}

.hero-nav {
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--modern-shadow-sm);
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

.hero-nav__logo {
    max-height: 42px;
    width: auto;
}

.hero-nav__link {
    font-weight: 600 !important;
    color: var(--secondary) !important;
    opacity: 0.85;
    padding: 0.5rem 0.9rem !important;
    border-radius: 999px;
    transition: background 0.2s, opacity 0.2s !important;
}

.hero-nav__link:hover {
    opacity: 1;
    background: rgba(25, 115, 254, 0.09);
    text-decoration: none !important;
}

.hero-nav .btn-primary {
    padding: 0.6rem 1.5rem !important;
}

/* ---------- Hero: gradient + glow ---------- */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 42%, #dbeafe 78%, #bae6fd 100%) !important;
    border-radius: 0 0 32px 32px;
    position: relative;
    overflow: hidden;
    padding-bottom: 4rem !important;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 480px;
    height: 480px;
    right: -140px;
    top: -140px;
    background: radial-gradient(circle, rgba(30, 27, 75, 0.08) 0%, rgba(30, 27, 75, 0) 68%);
}

.hero::after {
    width: 380px;
    height: 380px;
    left: -120px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 68%);
}

.hero__title {
    color: #1e1b4b !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.12 !important;
    font-size: clamp(2rem, 4.6vw, 3.4rem) !important;
    text-shadow: none !important;
}

.hero__paragraph {
    color: #33415c !important;
    font-size: 1.08rem !important;
    line-height: 1.7 !important;
    max-width: 36rem;
}

.hero__btns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0.5rem;
}

.hero__btn.btn-primary {
    background: #ffffff !important;
    color: #1e1b4b !important;
    box-shadow: 0 14px 28px -10px rgba(30, 27, 75, 0.3) !important;
    border: 1px solid #dbeafe !important;
}

.hero__btn.btn-primary:hover {
    color: #1e1b4b !important;
    background: #f0f4ff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -10px rgba(30, 27, 75, 0.4) !important;
}

.hero__image-column {
    border-radius: 24px !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-height: 340px;
    animation: heroFloat 7s ease-in-out infinite;
}

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

/* ---------- Section titles ---------- */
.block__pre-title {
    display: inline-block;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary) !important;
    background: rgba(25, 115, 254, 0.10);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    margin-bottom: 0.9rem;
}

.block__title,
.block__title--big {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
}

.block__paragraph,
.block__paragraph--big {
    line-height: 1.75 !important;
    opacity: 0.85;
}

/* ---------- Feature cards ---------- */
.card-1 {
    background: #ffffff;
    border: 1px solid #e6ebf4 !important;
    border-radius: var(--modern-radius) !important;
    box-shadow: var(--modern-shadow-sm) !important;
    padding: 1.75rem 1.5rem !important;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease !important;
}

.card-1:hover {
    transform: translateY(-6px);
    box-shadow: var(--modern-shadow-md) !important;
    border-color: rgba(25, 115, 254, 0.35) !important;
}

.fr-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 15px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #6d28d9) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px -8px rgba(25, 115, 254, 0.6);
    margin-bottom: 1rem;
}

.card-1__title {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: -0.01em;
}

.card-1__paragraph {
    font-size: 0.93rem !important;
    line-height: 1.65 !important;
    opacity: 0.8;
}

/* industry cards */
.block-2-card {
    border-radius: var(--modern-radius) !important;
    box-shadow: var(--modern-shadow-sm) !important;
    border: 1px solid #e6ebf4 !important;
    overflow: hidden;
}

/* ---------- Statistics ---------- */
.block-38 .stats {
    background: linear-gradient(135deg, #f4f6fd, #eef2ff) !important;
    border: 1px solid #e2e8f7 !important;
    border-radius: 24px !important;
    box-shadow: var(--modern-shadow-sm);
}

.stats__number {
    font-weight: 800 !important;
    font-size: 2.2rem !important;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats__text {
    font-weight: 600 !important;
    opacity: 0.75;
}

/* ---------- Testimonials ---------- */
.block-1-testimonial,
.block-20-person {
    border-radius: var(--modern-radius) !important;
    border: 1px solid #e6ebf4 !important;
    box-shadow: var(--modern-shadow-sm) !important;
}

.block-1-person__avatar,
.block-20-person__avatar {
    border-radius: 50% !important;
    border: 3px solid #eef2ff !important;
}

/* ---------- CTA banner ---------- */
.block-29 {
    background: linear-gradient(120deg, #1e1b4b, #3730a3 60%, #1d4ed8) !important;
    border-radius: 28px !important;
    box-shadow: var(--modern-shadow-lg) !important;
    position: relative;
    overflow: hidden;
}

.block-29::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    right: -100px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

.block-29__title {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.block-29__paragraph {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* ---------- FAQ ---------- */
.faq__item, details.faq {
    border-radius: 14px !important;
}

/* ---------- Footer ---------- */
.block-44__divider {
    opacity: 0.15;
}

.block-44__link {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    transition: transform 0.15s, background 0.2s !important;
}

.block-44__link:hover {
    transform: translateY(-2px);
    background: var(--primary) !important;
    color: #fff !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .hero {
        border-radius: 0 0 24px 24px;
        padding-bottom: 3rem !important;
    }

    .hero__image-column {
        min-height: 240px;
        margin: 1.5rem 1rem 0 1rem;
    }

    .hero-nav {
        border-radius: 0 0 14px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__image-column {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
 * ROUND 2 — interactions & product showcase
 * ============================================================ */

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Navbar shadow on scroll ---------- */
.fixed-nav-container.nav-scrolled .hero-nav {
    box-shadow: 0 10px 30px -10px rgba(10, 31, 68, 0.25) !important;
    background: rgba(255, 255, 255, 0.94) !important;
}

/* ---------- Hero floating badges ---------- */
.hero__image-column {
    position: relative;
    overflow: visible !important;
}

.hero-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.45);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a1f44;
    animation: badgeFloat 5s ease-in-out infinite;
    z-index: 2;
}

.hero-float-badge small {
    display: block;
    font-weight: 500;
    color: #5b6b8c;
    font-size: 0.72rem;
}

.hero-float-badge .badge-dot {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.hero-float-badge--top {
    top: 26px;
    left: -34px;
}

.hero-float-badge--bottom {
    bottom: 30px;
    right: -20px;
    animation-delay: 2.4s;
}

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

/* ---------- Product showcase ---------- */
.showcase-modern {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 100%);
}

.showcase-modern__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(25, 115, 254, 0.10);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    margin-bottom: 0.9rem;
}

.showcase-modern__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    color: var(--secondary);
}

.showcase-modern__sub {
    color: #5b6b8c;
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0.8rem auto 0 auto;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 2.5rem;
}

@media (max-width: 991px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.showcase-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6ebf4;
    border-radius: 22px;
    padding: 1.9rem 1.6rem;
    box-shadow: var(--modern-shadow-sm);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, linear-gradient(90deg, var(--primary), #6d28d9));
}

.showcase-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--modern-shadow-md);
    border-color: rgba(25, 115, 254, 0.35);
}

.showcase-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: var(--card-accent, linear-gradient(135deg, var(--primary), #6d28d9));
    box-shadow: 0 12px 22px -10px rgba(10, 31, 68, 0.5);
    margin-bottom: 1.1rem;
}

.showcase-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
}

.showcase-card p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #5b6b8c;
    margin: 0 0 1rem 0;
}

.showcase-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.showcase-card ul li {
    font-size: 0.85rem;
    color: #33415c;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.showcase-card ul li i {
    color: #00a761;
    margin-top: 3px;
    font-size: 0.8rem;
}

.showcase-modern__cta {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Back to top ---------- */
#cmsBackToTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 14px 28px -10px rgba(25, 115, 254, 0.7);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1040;
}

#cmsBackToTop.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

#cmsBackToTop:hover {
    filter: brightness(1.1);
}

/* ---------- Testimonials fix ---------- */
@media (max-width: 991px) {
    .block-20-person {
        transform: translateY(-2.5rem) !important;
        margin-bottom: -2rem !important;
    }

    .block-20-person__avatar {
        width: 72px !important;
        height: 72px !important;
    }

    .block-20-person__rating {
        display: block;
        margin-top: 6px;
    }

    .block-20-person__name {
        display: block;
        margin-top: 4px;
    }

    .testimonial-card-1 {
        padding: 1.4rem 1.2rem 2rem 1.2rem;
        margin-bottom: 4rem;
    }

    .block-20 {
        padding-top: var(--space-between-blocks-small-screens) !important;
        padding-bottom: var(--space-between-blocks-small-screens) !important;
    }

    /* Fix features overlap on mobile */
    #features .sticky {
        position: relative !important;
        z-index: auto !important;
    }

    #features [data-sticky-container] {
        overflow: visible !important;
    }

    #features .col-lg-4:first-child {
        margin-bottom: 2.5rem !important;
    }
}

/* ---------- Section spacing tighter ---------- */
.space-between-blocks {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

@media (min-width: 992px) {
    .space-between-blocks {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}
