/* ========================================
 * JNSLAB — UPGRADES (illustrations, layout)
 * Override additions on top of jnslab.css
 * Accent: #8B5CF6 (violet — AML / conformité)
 * ======================================== */

body { opacity: 1 !important; }

.jnslab-content .container {
    max-width: 1240px;
}

/* ----- Hero upgrade ----- */
.jnslab-hero {
    padding: calc(var(--spacing-xl) + 2rem) var(--spacing-md) var(--spacing-xl);
    text-align: left;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 55%),
        linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    position: relative;
}

.jnslab-hero .hero-content { text-align: left; max-width: none; }
.jnslab-hero .hero-icon { display: none; }

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--spacing-lg);
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.hero-text-col {
    text-align: left;
    max-width: 100%;
    align-self: start;
    padding-top: 0.35rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #ddd6fe;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}
.hero-eyebrow .hero-eyebrow-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border-radius: 6px;
    padding: 0;
    box-shadow: none;
}
.hero-eyebrow .hero-eyebrow-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: none;
}

.jnslab-hero .hero-title {
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.2rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
    color: #ffffff;
}

.jnslab-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.85;
    margin-bottom: 0.9rem;
}

.jnslab-hero .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}
.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.55);
}

.hero-btn.ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.55);
}
.hero-btn.ghost:hover {
    background: rgba(139, 92, 246, 0.12);
}

.hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--color-text-secondary);
    font-size: 0.82rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta i { color: #8B5CF6; }

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: start;
}
.hero-visual img {
    width: 100%;
    height: auto;
    max-width: 640px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    border-radius: 18px;
}

/* ----- Stats strip ----- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(139, 92, 246, 0.22);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 18px;
    overflow: hidden;
    margin: 0 auto var(--spacing-xl);
    max-width: 1120px;
}
.stat-cell {
    background: linear-gradient(180deg, #141414, #0f0f0f);
    padding: 1.3rem 1.2rem;
    text-align: left;
}
.stat-cell .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8B5CF6;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.stat-cell .stat-label {
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ----- NPLAB focus ----- */
.nplab-section {
    max-width: 1120px;
    margin: var(--spacing-xl) auto var(--spacing-xxl, 5rem);
    padding: var(--spacing-lg);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(18, 18, 18, 0.78)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 24px;
}

.nplab-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.nplab-section .section-title {
    text-align: left;
    margin-bottom: 0.8rem;
}

.nplab-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.nplab-card {
    padding: 1.25rem;
    min-height: 230px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 18px;
    background: rgba(12, 12, 12, 0.7);
    display: flex;
    flex-direction: column;
}

.nplab-card-index {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #ddd6fe;
    font-size: 0.78rem;
    font-weight: 700;
}

.nplab-card h3 {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.nplab-card p {
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
}

/* ----- Feature cards with illustrations ----- */
.features-section .section-title { text-align: left; }
.section-kicker {
    display: block;
    color: #8B5CF6;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
.section-sub {
    color: var(--color-text-secondary);
    max-width: 640px;
    margin-bottom: var(--spacing-lg);
    font-size: 0.98rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: var(--spacing-md);
    gap: 1.5rem;
    max-width: 1120px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.55), rgba(15, 15, 15, 0.55));
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 20px;
    padding: 0;
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.feature-card .feature-illus {
    width: 100%;
    aspect-ratio: 280 / 200;
    background: #0f0f0f;
    display: block;
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
}
.feature-card .feature-illus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card .feature-body {
    padding: 1.25rem 1.4rem 1.5rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.55);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.feature-card::before { display: none; }
.feature-card .feature-icon { display: none; }

/* ----- Showcase (Workflow) ----- */
.showcase-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1120px;
    margin: var(--spacing-xxl, 5rem) auto;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(10, 10, 10, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 24px;
}
.showcase-visual img { width: 100%; height: auto; border-radius: 16px; }
.showcase-text h2 {
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
    color: #8B5CF6;
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.showcase-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.65;
}
.showcase-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 10px; }
.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ffffff;
    font-size: 0.92rem;
}
.showcase-list li::before {
    content: '';
    flex-shrink: 0;
    margin-top: 6px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #8B5CF6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* ----- Benefits rework ----- */
.benefits-section { background: transparent; padding: var(--spacing-xl) 0; margin: 0 auto; max-width: 1120px; }
.benefits-section .section-title { text-align: left; }
.benefits-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1120px; }
.benefit-item {
    display: block;
    text-align: left;
    padding: 1.6rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.55), rgba(15, 15, 15, 0.55));
    border: 1px solid rgba(139, 92, 246, 0.22);
    margin: 0;
    transition: all 0.25s ease;
}
.benefit-item:hover {
    border-color: rgba(139, 92, 246, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}
.benefit-icon {
    margin-bottom: 1rem;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #8B5CF6;
}
.benefit-text h3 { font-size: 1.05rem; color: #ffffff; margin-bottom: 0.5rem; }
.benefit-text p { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.55; margin: 0; }

/* ----- CTA rework ----- */
.cta-section {
    max-width: 1120px;
    margin: var(--spacing-xxl, 5rem) auto 0;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 24px;
    background:
      radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.25), transparent 60%),
      radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.14), transparent 60%),
      linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

/* ----- CTA card: override any theme color to violet ----- */
.jnslab-content .cta-section {
    --color-accent: #8B5CF6;
    --color-accent-secondary: #6D28D9;
    --color-accent-glow: rgba(139, 92, 246, 0.3);
    --modules-sidebar-accent: #8B5CF6;
    --modules-sidebar-glow: rgba(139, 92, 246, 0.35);
}

.jnslab-content .cta-section .cta-content h2 {
    color: #8B5CF6;
    text-shadow: 0 0 13.5px rgba(139, 92, 246, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .nplab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase-section { grid-template-columns: 1fr; }
    .benefits-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .jnslab-hero { padding: 2.5rem 1rem; }
    .hero-visual img { max-width: 100%; }
}
@media (max-width: 480px) {
    .stats-strip { grid-template-columns: 1fr; }
    .stat-cell { text-align: center; }
    .stat-cell .stat-value { font-size: 1.6rem; }
    .nplab-section { padding: 1.1rem; }
    .nplab-grid { grid-template-columns: 1fr; }
    .nplab-card { min-height: 0; }
}
