﻿/* ========================================
   HOME PAGE SECTIONS - PEARL THEME
   Features, Stats, Modules, Clients, CTA
   ======================================== */

/* ===== SECTION CONTAINER ===== */
html[data-theme="pearl"] .home-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

html[data-theme="pearl"] .home-section-alt {
    background: var(--gradient-pearl);
}

html[data-theme="pearl"] .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

html[data-theme="pearl"] .section-eyebrow {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}

html[data-theme="pearl"] .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== FEATURES GRID ===== */
html[data-theme="pearl"] .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-xl);
}

html[data-theme="pearl"] .feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

    html[data-theme="pearl"] .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-xl);
        border-color: var(--brand-green);
    }

html[data-theme="pearl"] .feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 184, 124, 0.3);
    transition: all var(--transition-base);
}

    html[data-theme="pearl"] .feature-icon .k-svg-icon,
    html[data-theme="pearl"] .feature-icon svg {
        color: var(--brand-green) !important;
        fill: var(--brand-green) !important;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

html[data-theme="pearl"] .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

html[data-theme="pearl"] .feature-card h3 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .feature-card p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== STATS SECTION ===== */
html[data-theme="pearl"] .stats-section-pearl {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-brand);
    color: white;
}

html[data-theme="pearl"] .section-stats-banner {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-brand);
    color: white;
}

html[data-theme="pearl"] .stats-grid-pearl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

html[data-theme="pearl"] .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

html[data-theme="pearl"] .stat-card-pearl {
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[data-theme="pearl"] .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[data-theme="pearl"] .stat-number-pearl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

html[data-theme="pearl"] .stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

html[data-theme="pearl"] .stat-label-pearl {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="pearl"] .stat-label {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

html[data-theme="pearl"] .stat-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 280px;
    margin-top: 0.5rem;
}

/* ===== BENEFITS SECTION ===== */
html[data-theme="pearl"] .benefits-section {
    padding: var(--spacing-3xl) 0;
    background: white;
}

html[data-theme="pearl"] .benefits-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
}

html[data-theme="pearl"] .benefits-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}
html[data-theme="pearl"] .benefit-card-inner {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;          /* mniejszy padding */
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-base);
    overflow: hidden;

    display: flex;                    /* flex kolumnowy wewnątrz */
    flex-direction: column;
    align-items: flex-start;
}

html[data-theme="pearl"] .benefits-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    gap: 1.75rem;
}
html[data-theme="pearl"] .benefit-card-with-image {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-base);
    height: 100%; /* wypełnia komórkę grida */
}

    html[data-theme="pearl"] .benefit-card-with-image:hover {
        transform: translateY(-8px);
    }

html[data-theme="pearl"] .benefit-card-inner {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem; /* mniejszy padding */
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-base);
    overflow: hidden;
    display: flex; /* flex kolumnowy wewnątrz */
    flex-direction: column;
    align-items: flex-start;
}

html[data-theme="pearl"] .benefit-card-with-image:hover .benefit-card-inner {
    box-shadow: var(--shadow-2xl);
    border-color: var(--brand-green);
}

html[data-theme="pearl"] .benefit-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.05;
    pointer-events: none;
}

html[data-theme="pearl"] .benefit-bg-1 {
    background: radial-gradient(circle, var(--brand-green) 0%, transparent 70%);
}

html[data-theme="pearl"] .benefit-bg-2 {
    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
}

html[data-theme="pearl"] .benefit-bg-3 {
    background: radial-gradient(circle, var(--brand-green) 0%, transparent 70%);
}

html[data-theme="pearl"] .benefit-bg-4 {
    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
}

html[data-theme="pearl"] .benefit-content {
    position: relative;
    z-index: 1;
}

html[data-theme="pearl"] .benefit-icon-spacing {
    margin-bottom: 1.25rem;
}

html[data-theme="pearl"] .benefit-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

html[data-theme="pearl"] .benefit-text {
    font-size: 0.975rem;
    line-height: 1.6;
}

/* ===== HOW IT WORKS SECTION ===== */
html[data-theme="pearl"] .how-section-bg {
    padding: var(--spacing-3xl) 0;
    background: var(--pearl-light);
}

html[data-theme="pearl"] .how-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

html[data-theme="pearl"] .how-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}

html[data-theme="pearl"] .how-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .step-grid,
html[data-theme="pearl"] .step-grid-reverse,
html[data-theme="pearl"] .step-grid-last {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

    html[data-theme="pearl"] .step-grid-reverse > :first-child {
        grid-column: 1;
    }

    html[data-theme="pearl"] .step-grid-reverse > :last-child {
        grid-column: 2;
    }

    html[data-theme="pearl"] .step-grid-last > :first-child {
        grid-column: 1;
    }

    html[data-theme="pearl"] .step-grid-last > :last-child {
        grid-column: 2;
    }

html[data-theme="pearl"] .step-icon-container {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 184, 124, 0.3);
    transition: all var(--transition-base);
    margin-bottom: 1.5rem;
}

    html[data-theme="pearl"] .step-icon-container.step-green {
        box-shadow: 0 8px 20px rgba(0, 184, 124, 0.3);
    }

        html[data-theme="pearl"] .step-icon-container.step-green span {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--brand-green);
        }

    html[data-theme="pearl"] .step-icon-container.step-blue {
        box-shadow: 0 8px 20px rgba(0, 153, 204, 0.3);
    }

        html[data-theme="pearl"] .step-icon-container.step-blue span {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--brand-blue);
        }

html[data-theme="pearl"] .step-h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .step-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

html[data-theme="pearl"] .step-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

html[data-theme="pearl"] .step-li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

html[data-theme="pearl"] .step-icon-green {
    color: var(--brand-green) !important;
    flex-shrink: 0;
}

html[data-theme="pearl"] .step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

html[data-theme="pearl"] .step-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
/* ===== HOW IT WORKS - RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {

    html[data-theme="pearl"] .step-grid,
    html[data-theme="pearl"] .step-grid-reverse,
    html[data-theme="pearl"] .step-grid-last {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: var(--spacing-2xl);
    }

    html[data-theme="pearl"] .step-grid-reverse > :first-child,
    html[data-theme="pearl"] .step-grid-reverse > :last-child,
    html[data-theme="pearl"] .step-grid-last > :first-child,
    html[data-theme="pearl"] .step-grid-last > :last-child {
        grid-column: auto;
    }

    html[data-theme="pearl"] .step-grid-reverse .step-content-col,
    html[data-theme="pearl"] .step-grid-last .step-content-col {
        order: -1;
    }
}

/* ===== MOCKUP SECTION - ZOBACZ SYSTEM W AKCJI ===== */
html[data-theme="pearl"] .mockup-section-bg {
    padding: var(--spacing-3xl) 0;
    background: white;
}

html[data-theme="pearl"] .mockup-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
}

html[data-theme="pearl"] .mockup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}

html[data-theme="pearl"] .mockup-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .mockup-container {
    max-width: 1400px;
    margin: 0 auto;
}

html[data-theme="pearl"] .mockup-browser {
    background: #1e293b;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

html[data-theme="pearl"] .mockup-header-bar {
    height: 40px;
    background: #2d3748;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

html[data-theme="pearl"] .mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

html[data-theme="pearl"] .mockup-dot-red {
    background: #ff5f56;
}

html[data-theme="pearl"] .mockup-dot-yellow {
    background: #ffbd2e;
}

html[data-theme="pearl"] .mockup-dot-green {
    background: #27c93f;
}

html[data-theme="pearl"] .mockup-title-text {
    margin-left: auto;
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
}

html[data-theme="pearl"] .mockup-img {
    width: 100%;
    height: auto;
    display: block;
}

/* responsywność mockupu */
@media (max-width: 768px) {
    html[data-theme="pearl"] .mockup-section-bg {
        padding: var(--spacing-2xl) 0;
    }

    html[data-theme="pearl"] .mockup-header {
        margin-bottom: var(--spacing-xl);
    }
}
/* ===== MODULES SHOWCASE ===== */
html[data-theme="pearl"] .modules-section-bg {
    padding: var(--spacing-3xl) 0;
    background: var(--pearl-light);
}

html[data-theme="pearl"] .modules-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

html[data-theme="pearl"] .modules-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}

html[data-theme="pearl"] .modules-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-xl);
}

html[data-theme="pearl"] .modules-grid-index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

html[data-theme="pearl"] .module-h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .module-p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

html[data-theme="pearl"] .modules-btn-wrapper {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* ===== ICON CONTAINERS ===== */
html[data-theme="pearl"] .icon-container-white {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 184, 124, 0.3);
    transition: all var(--transition-base);
    margin-bottom: 1.5rem;
}

    html[data-theme="pearl"] .icon-container-white .k-svg-icon,
    html[data-theme="pearl"] .icon-container-white svg {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    html[data-theme="pearl"] .icon-container-white.icon-green .k-svg-icon,
    html[data-theme="pearl"] .icon-container-white.icon-green svg {
        color: var(--brand-green) !important;
        fill: var(--brand-green) !important;
    }

    html[data-theme="pearl"] .icon-container-white.icon-blue .k-svg-icon,
    html[data-theme="pearl"] .icon-container-white.icon-blue svg {
        color: var(--brand-blue) !important;
        fill: var(--brand-blue) !important;
    }

html[data-theme="pearl"] .benefit-card-with-image:hover .icon-container-white,
html[data-theme="pearl"] .module-card:hover .icon-container-white {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 28px rgba(0, 184, 124, 0.35);
}

/* ===== MODULE CARDS ===== */
html[data-theme="pearl"] .module-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-slow);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

    html[data-theme="pearl"] .module-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-brand);
        transform: scaleX(0);
        transition: transform var(--transition-base);
    }

    html[data-theme="pearl"] .module-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-2xl);
        border-color: var(--brand-green);
    }

        html[data-theme="pearl"] .module-card:hover::before {
            transform: scaleX(1);
        }

    html[data-theme="pearl"] .module-card .icon-container-white {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

        html[data-theme="pearl"] .module-card .icon-container-white .k-svg-icon,
        html[data-theme="pearl"] .module-card .icon-container-white svg {
            width: 32px;
            height: 32px;
        }

    html[data-theme="pearl"] .module-card h4 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--text-primary);
    }

    html[data-theme="pearl"] .module-card p {
        font-size: 1.0625rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

/* ===== CLIENTS SECTION ===== */
html[data-theme="pearl"] .clients-section-pearl {
    padding: var(--spacing-3xl) 0;
    background: var(--pearl-light);
    position: relative;
    overflow: hidden;
}

    html[data-theme="pearl"] .clients-section-pearl::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 200px;
        background: linear-gradient(180deg, rgba(0, 184, 124, 0.03) 0%, transparent 100%);
        pointer-events: none;
    }

html[data-theme="pearl"] .clients-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

html[data-theme="pearl"] .clients-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}

html[data-theme="pearl"] .clients-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .clients-carousel-pearl {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-lg);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

html[data-theme="pearl"] .clients-track-pearl {
    display: flex;
    gap: 3rem;
    animation: scrollPearl 40s linear infinite;
    width: fit-content;
}

    html[data-theme="pearl"] .clients-track-pearl:hover {
        animation-play-state: paused;
    }

@keyframes scrollPearl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

html[data-theme="pearl"] .client-logo-wrapper-pearl {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

    html[data-theme="pearl"] .client-logo-wrapper-pearl::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-brand-soft);
        opacity: 0;
        transition: opacity var(--transition-base);
    }

    html[data-theme="pearl"] .client-logo-wrapper-pearl:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: var(--shadow-xl);
        border-color: var(--brand-green);
    }

        html[data-theme="pearl"] .client-logo-wrapper-pearl:hover::before {
            opacity: 1;
        }

html[data-theme="pearl"] .client-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

html[data-theme="pearl"] .client-logo-wrapper-pearl:hover .client-logo-img {
    transform: scale(1.1);
}

html[data-theme="pearl"] .client-logo-clickable {
    cursor: pointer;
}

html[data-theme="pearl"] .client-logo-tooltip {
    display: none;
}

/* ========================================
   REFERENCE MODAL - REFERENCJE KLIENTÓW
   ======================================== */
html[data-theme="pearl"] .reference-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 45, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9998;
    animation: fadeInOverlay 0.3s ease-out;
    cursor: pointer;
}

/* Główne okno modalu – wysokie, wyśrodkowane, prawie cała wysokość ekranu */
html[data-theme="pearl"] .reference-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1200px;
    width: 90%;
    height: 90vh; /* ✅ stała wysokość ~cały ekran */
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* ✅ brak scrolla na samym oknie */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

    html[data-theme="pearl"] .reference-modal.modal-visible {
        opacity: 1;
        transform: translate(-50%, -50%);
        pointer-events: all;
    }

/* Wewnętrzna zawartość – TUTAJ jest scroll (tytuł + linia + PDF razem) */
html[data-theme="pearl"] .reference-modal-content {
    flex: 1;
    padding: 3rem 2.5rem 2.5rem;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Nagłówek jak w starej wersji – wycentrowany */
html[data-theme="pearl"] .reference-company-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

html[data-theme="pearl"] .reference-company-name {
    font-size: 2rem;
    font-weight: 800;
    color: #00b47a;
    letter-spacing: 0.06em;
}

html[data-theme="pearl"] .reference-company-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-tertiary);
}

/* Kontener na obraz – brak scrolla, tylko rozmiar */
html[data-theme="pearl"] .reference-screenshot-container {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

/* Obraz/PDF – 100% szerokości, rośnie w pionie, BEZ własnego scrolla */
html[data-theme="pearl"] .reference-screenshot {
    display: block;
    width: 100%;
    height: auto; /* ✅ tylko proporcje, brak overflow */
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

/* Przycisk X – przy prawym górnym rogu modalu (jak na starym screenie) */
html[data-theme="pearl"] .reference-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    background: #192341;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease-out, background 0.15s ease-out;
    z-index: 1;
}

    html[data-theme="pearl"] .reference-modal-close .k-svg-icon,
    html[data-theme="pearl"] .reference-modal-close svg {
        color: #ffffff !important;
        fill: #ffffff !important;
    }

    html[data-theme="pearl"] .reference-modal-close:hover {
        background: #00b47a;
        transform: scale(1.05);
    }

/* Mobile – nadal prawie cały ekran, mniejsze paddingi */
@media (max-width: 768px) {
    html[data-theme="pearl"] .reference-modal {
        width: 95%;
        height: 90vh;
    }

    html[data-theme="pearl"] .reference-modal-content {
        padding: 3.5rem 1.25rem 1.75rem;
    }

    html[data-theme="pearl"] .reference-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    html[data-theme="pearl"] .reference-company-name {
        font-size: 1.6rem;
    }
}

/* ===== FAQ SECTION ===== */
html[data-theme="pearl"] .faq-section-bg {
    padding: var(--spacing-3xl) 0;
    background: white;
}

html[data-theme="pearl"] .wrap-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

html[data-theme="pearl"] .faq-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

html[data-theme="pearl"] .faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 184, 124, 0.2);
}

html[data-theme="pearl"] .faq-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

html[data-theme="pearl"] .faq-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

    html[data-theme="pearl"] .faq-card:hover {
        border-color: var(--brand-green);
        box-shadow: var(--shadow-md);
    }

html[data-theme="pearl"] .faq-h3 {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

html[data-theme="pearl"] .faq-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

html[data-theme="pearl"] .faq-answer-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-left: 48px;
}

html[data-theme="pearl"] .faq-answer-intro {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

html[data-theme="pearl"] .faq-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

html[data-theme="pearl"] .faq-li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

html[data-theme="pearl"] .faq-bullet {
    color: var(--brand-green);
    font-weight: 700;
    flex-shrink: 0;
}

html[data-theme="pearl"] .faq-li strong {
    font-weight: 600;
}

/* CTA – biały tekst */
.product-cta-section .product-cta-content,
.product-cta-section .product-cta-content .cta-h2,
.product-cta-section .product-cta-content .cta-p {
    color: white;
}

/* ========================================
   RESPONSIVE - MEDIA QUERIES
   ======================================== */

@media (max-width: 1300px) {
    html[data-theme="pearl"] .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    html[data-theme="pearl"] .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    html[data-theme="pearl"] .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    html[data-theme="pearl"] .modules-grid-index {
        grid-template-columns: repeat(2, 1fr);
    }

    html[data-theme="pearl"] .step-grid,
    html[data-theme="pearl"] .step-grid-reverse,
    html[data-theme="pearl"] .step-grid-last {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    html[data-theme="pearl"] .step-grid-reverse > :first-child,
    html[data-theme="pearl"] .step-grid-reverse > :last-child,
    html[data-theme="pearl"] .step-grid-last > :first-child,
    html[data-theme="pearl"] .step-grid-last > :last-child {
        grid-column: auto;
    }
}


@media (max-width: 768px) {
    html[data-theme="pearl"] .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    html[data-theme="pearl"] .stats-grid-pearl {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    html[data-theme="pearl"] .benefits-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme="pearl"] .icon-container-white {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

        html[data-theme="pearl"] .icon-container-white .k-svg-icon,
        html[data-theme="pearl"] .icon-container-white svg {
            width: 28px;
            height: 28px;
        }

    html[data-theme="pearl"] .step-icon-container {
        width: 50px;
        height: 50px;
    }

        html[data-theme="pearl"] .step-icon-container span {
            font-size: 1.25rem;
        }

    html[data-theme="pearl"] .module-card {
        padding: 1.5rem;
    }

        html[data-theme="pearl"] .module-card .icon-container-white {
            margin-bottom: 1.5rem;
            width: 60px;
            height: 60px;
        }

    html[data-theme="pearl"] .feature-icon {
        width: 60px;
        height: 60px;
    }

    html[data-theme="pearl"] .module-icon {
        width: 60px;
        height: 60px;
    }

    html[data-theme="pearl"] .client-logo-wrapper-pearl {
        width: 160px;
        height: 80px;
        padding: 1rem;
    }

    html[data-theme="pearl"] .clients-track-pearl {
        gap: 2rem;
        animation-duration: 30s;
    }

    html[data-theme="pearl"] .clients-section-pearl {
        padding: var(--spacing-2xl) 0;
    }

    /* ✅ MODAL RESPONSIVE */
    html[data-theme="pearl"] .reference-modal {
        width: 95%;
        max-height: 95vh;
    }

    html[data-theme="pearl"] .reference-modal-content {
        padding: 4rem 1rem 1.5rem;
    }

    html[data-theme="pearl"] .reference-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 48px;
        height: 48px;
    }

    html[data-theme="pearl"] .reference-company-name {
        font-size: 1.5rem;
    }

    html[data-theme="pearl"] .reference-company-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    html[data-theme="pearl"] .home-section {
        padding: var(--spacing-2xl) 0;
    }

    html[data-theme="pearl"] .features-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme="pearl"] .modules-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme="pearl"] .modules-grid-index {
        grid-template-columns: 1fr;
    }

    html[data-theme="pearl"] .stats-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    html[data-theme="pearl"] .stats-grid-pearl {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    html[data-theme="pearl"] .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    html[data-theme="pearl"] .btn-cta-white,
    html[data-theme="pearl"] .btn-cta-outline {
        width: 100%;
        justify-content: center;
    }

    html[data-theme="pearl"] .client-logo-wrapper-pearl {
        width: 140px;
        height: 70px;
        padding: 0.75rem;
    }

    html[data-theme="pearl"] .clients-track-pearl {
        gap: 1.5rem;
        animation-duration: 25s;
    }
    html[data-theme="pearl"] .benefits-grid {
        grid-template-columns: 1fr;
    }
}
