/* Module Page Styles */

/* ============================================
   HERO SECTION - Modern Glass Design
   ============================================ */

.module-hero {
    background: radial-gradient(circle at 0% 0%, var(--dark-navy) 0%, var(--dark-navy-light) 100%);
    color: var(--white-color);
    padding: 20rem 0 12em;
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.module-hero .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

/* Animated mesh gradient and orbs */
.module-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    filter: blur(60px);
    animation: heroMeshReveal 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroMeshReveal {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.1) translate(2% , 2%); opacity: 1; }
}

/* Module-specific background colors - Accentuatued */
.module-uncovery .module-hero::before {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(11, 183, 131, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--security-15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, var(--threats-10) 0%, transparent 40%);
}

.module-security .module-hero::before {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 137, 247, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(161, 51, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, var(--uncovery-10) 0%, transparent 40%);
}

.module-threats .module-hero::before {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(161, 51, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--uncovery-15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, var(--security-10) 0%, transparent 40%);
}

.module-hero::after {
    content: '';
    position: absolute;
    top: -500px;
    left: -100%;
    right: -100%;
    bottom: -500px;
    background-image:
        linear-gradient(to right, var(--white-05) 1px, transparent 1px),
        linear-gradient(to bottom, var(--white-05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fade-in-up 0.6s ease-out;
}

/* Module logo with glow effect */
.module-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
    margin-right: 1.5rem;
    padding: 1.25rem;
    border-radius: 20px;
    filter: none;
    /* animation: float 6s ease-in-out infinite; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-logo:hover {
    transform: scale(1.05);
}

.module-uncovery .module-logo {
    background: linear-gradient(135deg, var(--uncovery-15) 0%, var(--uncovery-05) 100%);
    border: 1px solid rgba(11, 183, 131, 0.3);
    box-shadow: 0 8px 32px rgba(11, 183, 131, 0.2);
}

.module-security .module-logo {
    background: linear-gradient(135deg, var(--security-15) 0%, rgba(0, 137, 247, 0.05) 100%);
    border: 1px solid rgba(0, 137, 247, 0.3);
    box-shadow: 0 8px 32px rgba(0, 137, 247, 0.2);
}

.module-threats .module-logo {
    background: linear-gradient(135deg, rgba(161, 51, 255, 0.15) 0%, var(--threats-05) 100%);
    border: 1px solid rgba(161, 51, 255, 0.3);
    box-shadow: 0 8px 32px rgba(161, 51, 255, 0.2);
}

/* ============================================
   OFFERING TYPE BADGE - Product vs Service
   ============================================ */

.offering-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem 0.6rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-type:hover {
    transform: translateY(-2px);
}

.offering-type svg {
    flex-shrink: 0;
}

.offering-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-right: 0.5rem;
    border-right: 1px solid currentColor;
    opacity: 0.6;
}

.offering-category {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Product style (Uncovery) - Solid green emphasis */
.offering-product {
    background: linear-gradient(135deg, var(--uncovery-15) 0%, rgba(11, 183, 131, 0.08) 100%);
    color: var(--uncovery-color);
    border: 1.5px solid rgba(11, 183, 131, 0.35);
    box-shadow: 0 4px 15px var(--uncovery-15);
}

.offering-product:hover {
    box-shadow: 0 6px 25px rgba(11, 183, 131, 0.25);
}

.offering-product .offering-label {
    border-color: rgba(11, 183, 131, 0.4);
}

/* Service style (Security, Threats) - Outline with gradient */
.offering-service {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid currentColor;
}

.module-security .offering-service {
    color: var(--security-color);
    border-color: var(--security-40);
    box-shadow: 0 4px 15px var(--security-10);
}

.module-security .offering-service:hover {
    box-shadow: 0 6px 25px rgba(0, 137, 247, 0.2);
    background: rgba(0, 137, 247, 0.08);
}

.module-security .offering-service .offering-label {
    border-color: var(--security-40);
}

.module-threats .offering-service {
    color: var(--threats-color);
    border-color: rgba(161, 51, 255, 0.4);
    box-shadow: 0 4px 15px var(--threats-10);
}

.module-threats .offering-service:hover {
    box-shadow: 0 6px 25px rgba(161, 51, 255, 0.2);
    background: rgba(161, 51, 255, 0.08);
}

.module-threats .offering-service .offering-label {
    border-color: rgba(161, 51, 255, 0.4);
}

.module-hero h1 {
	font-size: 3.5rem;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 800;
}

/* Animated gradient text */

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .hero-cta .button.primary {
    background: var(--text);
    color: var(--dark-navy-light);
} */

.module-uncovery .hero-cta .button.primary:hover {
    background: var(--uncovery-color);
    color: white;
    box-shadow: 0 8px 30px rgba(11, 183, 131, 0.4);
}

.module-security .hero-cta .button.primary:hover {
    background: var(--security-color);
    color: white;
    box-shadow: 0 8px 30px var(--security-40);
}

.module-threats .hero-cta .button.primary:hover {
    background: var(--threats-color);
    color: white;
    box-shadow: 0 8px 30px rgba(161, 51, 255, 0.4);
}

.hero-image {
	position: relative;
	perspective: 1000px;
    z-index: 10;
}

.hero-image .browser-frame {
	transform: rotateY(-10deg) rotateX(5deg);
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
	box-shadow: -20px 40px 80px rgba(0,0,0,0.5);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	overflow: hidden;
}

.hero-image:hover .browser-frame {
	transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.hero-image .screenshot {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1100px) {
	.module-hero .hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
		padding-top: 4rem;
	}
    .module-hero .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
	.hero-image .browser-frame {
		transform: none;
		max-width: 700px;
		margin: 3rem auto 0;
	}
}

/* ============================================
   OVERVIEW SECTION
   ============================================ */

.module-overview {
    padding: 4rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.overview-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Screenshot with floating effect */
.module-screenshot {
    width: 100%;
    max-width: 580px;
    height: auto;
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.05),
        0 10px 20px rgba(0,0,0,0.08),
        0 20px 40px var(--black-10);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.module-screenshot:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 12px 20px rgba(0,0,0,0.08),
        0 24px 48px rgba(0,0,0,0.12),
        0 32px 64px rgba(0,0,0,0.15);
    filter: brightness(1.02);
}

/* Module-specific screenshot glow */
.module-uncovery .module-screenshot {
    border: 1px solid var(--uncovery-15);
}
.module-uncovery .module-screenshot:hover {
    box-shadow:
        0 8px 12px rgba(0,0,0,0.05),
        0 16px 32px var(--uncovery-15),
        0 24px 48px var(--uncovery-10);
}

.module-security .module-screenshot {
    border: 1px solid var(--security-15);
}
.module-security .module-screenshot:hover {
    box-shadow:
        0 8px 12px rgba(0,0,0,0.05),
        0 16px 32px var(--security-15),
        0 24px 48px var(--security-10);
}

.module-threats .module-screenshot {
    border: 1px solid rgba(161, 51, 255, 0.15);
}
.module-threats .module-screenshot:hover {
    box-shadow:
        0 8px 12px rgba(0,0,0,0.05),
        0 16px 32px rgba(161, 51, 255, 0.15),
        0 24px 48px var(--threats-10);
}

.overview-text .feature-badge {
    margin-top: 2rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
}

.module-uncovery .feature-badge {
    border: 2px solid var(--uncovery-color);
}
.module-uncovery .feature-badge svg {
    color: var(--uncovery-color);
}

.module-security .feature-badge {
    border: 2px solid var(--security-color);
}
.module-security .feature-badge svg {
    color: var(--security-color);
}

.module-threats .feature-badge {
    border: 2px solid var(--threats-color);
}
.module-threats .feature-badge svg {
    color: var(--threats-color);
}

/* ============================================
   HOW IT WORKS SECTION - Schema
   ============================================ */

/* Reusing banner styling for consistency on module pages */
.banner-flow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 1250px;
    margin: 0 auto;
}

.flow-step {
    padding: 3rem 2.5rem;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--black-05);
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-align: left;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    flex-shrink: 0;
    opacity: 0.8;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.flow-arrow svg {
    width: 48px;
    height: 48px;
}

/* Colors by module */
.module-uncovery .flow-arrow { color: var(--uncovery-color); }
.module-security .flow-arrow { color: var(--security-color); }
.module-threats .flow-arrow { color: var(--threats-color); }

/* Hover effects */
.flow-step:hover {
    transform: translateY(-10px);
    background: var(--white-color);
    box-shadow: 0 20px 40px var(--black-08);
}

.module-uncovery .flow-step:hover { border-color: var(--uncovery-color); }
.module-security .flow-step:hover { border-color: var(--security-color); }
.module-threats .flow-step:hover { border-color: var(--threats-color); }

.module-how-it-works .banner-flow-grid {
    margin-bottom: 2rem;
}

/* ============================================
   VALUE SECTION - Multi-checks Grid
   ============================================ */

.module-value {
    padding: 0 0 10rem;
    background: var(--white-color);
    position: relative;
    z-index: 10;
}

.module-value .banner-pricing {
    margin-top: 0;
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.module-value .pricing-header h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.module-value .pricing-intro {
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.module-value .agents-grid {
    gap: 2rem;
}

.module-value .agent-card {
    background: var(--gray-50);
    padding: 3rem 2.5rem;
    border-radius: 20px;
}

.module-value .agent-card h5 {
    font-size: 1.5rem;
}

.module-value .features-grid {
    margin-top: 5rem;
    padding-left: 0;
    justify-content: center;
}

.module-value .feature-item {
    font-size: 1.2rem;
}

/* Hover effect for Value section cards */
.module-value .agent-card:hover {
    transform: translateY(-10px);
    background: var(--white-color);
    box-shadow: 0 20px 40px var(--black-08);
}

.module-uncovery .module-value .agent-card:hover { border-color: var(--uncovery-color); }
.module-security .module-value .agent-card:hover { border-color: var(--security-color); }
.module-threats .module-value .agent-card:hover { border-color: var(--threats-color); }

/* Responsive */
@media (max-width: 1100px) {
    .module-value {
        padding-bottom: 6rem;
    }
    
    .module-value .pricing-header h3 {
        font-size: 2rem;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .module-how-it-works {
        padding: 6rem 0;
    }

    .banner-flow-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        height: 80px;
    }

    .flow-step {
        padding: 2.5rem 2rem;
    }
}

/* ============================================
   FEATURES SECTION - Glass Cards
   ============================================ */

/* ============================================
   SHARED SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.module-uncovery .section-badge { background: var(--uncovery-10); color: var(--uncovery-color); border-color: rgba(11, 183, 131, 0.2); }
.module-security .section-badge { background: var(--security-10); color: var(--security-color); border-color: rgba(0, 137, 247, 0.2); }
.module-threats .section-badge { background: var(--threats-10); color: var(--threats-color); border-color: rgba(161, 51, 255, 0.2); }

/* ============================================
   FEATURES SECTION - Premium Cards
   ============================================ */

.module-features, .module-how-it-works, .module-agents, .module-results {
    padding-top: 5rem;
}

.module-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;

    h3 {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        color: var(--text-primary);
        font-weight: 700;
        line-height: 1.3;
        /* letter-spacing: -0.01em; */
    }

    p {
        color: var(--text-secondary);
        line-height: 1.6;
        font-size: 1rem;
        margin: 0 !important;
        text-align: left;
        flex-grow: 1;
    }


    
}

.feature-card-inner {
    padding: 3.5rem 2.5rem;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Background patterns/effects */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px var(--black-08);
}

.module-uncovery .feature-card:hover { border-color: var(--uncovery-color); box-shadow: 0 30px 60px rgba(11, 183, 131, 0.12); }
.module-security .feature-card:hover { border-color: var(--security-color); box-shadow: 0 30px 60px var(--security-12); }
.module-threats .feature-card:hover { border-color: var(--threats-color); box-shadow: 0 30px 60px var(--threats-12); }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--black-03);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.module-uncovery .feature-icon { color: var(--uncovery-color); }
.module-security .feature-icon { color: var(--security-color); }
.module-threats .feature-icon { color: var(--threats-color); }

/* ============================================
   BENEFITS SECTION - Timeline Style
   ============================================ */

.benefits-list {
    max-width: 800px;
    margin: 5rem auto 0;
    position: relative;
}

/* Vertical line - centered on 56px number */
.benefits-list::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.module-uncovery .benefits-list::before {
    background: linear-gradient(180deg, var(--uncovery-color) 0%, var(--uncovery-10) 100%);
}
.module-security .benefits-list::before {
    background: linear-gradient(180deg, var(--security-color) 0%, var(--security-10) 100%);
}
.module-threats .benefits-list::before {
    background: linear-gradient(180deg, var(--threats-color) 0%, var(--threats-10) 100%);
}

.benefit-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: benefit-slide-in 0.5s ease forwards;

    p {
        margin: 0 !important;
    }
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }
.benefit-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes benefit-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.benefit-number {
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    -webkit-text-fill-color: initial;
}

/* Module-specific benefit numbers */
.module-uncovery .benefit-number {
    background: linear-gradient(135deg, var(--uncovery-color) 0%, rgba(11, 183, 131, 0.8) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(11, 183, 131, 0.3);
}

.module-security .benefit-number {
    background: linear-gradient(135deg, var(--security-color) 0%, rgba(0, 137, 247, 0.8) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 137, 247, 0.3);
}

.module-threats .benefit-number {
    background: linear-gradient(135deg, var(--threats-color) 0%, rgba(161, 51, 255, 0.8) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(161, 51, 255, 0.3);
}

.benefit-content {
    background: var(--card-bg);
    padding: 1.75rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-content:hover {
    transform: translateX(8px);
}

.module-uncovery .benefit-content:hover {
    box-shadow: 0 8px 30px var(--uncovery-10);
    border-color: rgba(11, 183, 131, 0.2);
}
.module-security .benefit-content:hover {
    box-shadow: 0 8px 30px var(--security-10);
    border-color: rgba(0, 137, 247, 0.2);
}
.module-threats .benefit-content:hover {
    box-shadow: 0 8px 30px var(--threats-10);
    border-color: rgba(161, 51, 255, 0.2);
}

.benefit-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.benefit-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.module-uncovery .module-cta::before {
    background: var(--uncovery-color);
}
.module-security .module-cta::before {
    background: var(--security-color);
}
.module-threats .module-cta::before {
    background: var(--threats-color);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cta-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cta-stat strong {
    font-size: 1.3rem;
    font-weight: 700;
}

.module-uncovery .cta-stat strong {
    color: var(--uncovery-color);
}

.module-security .cta-stat strong {
    color: var(--security-color);
}

.module-threats .cta-stat strong {
    color: var(--threats-color);
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.module-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-cta .btn-primary {
    color: white;
}

.module-cta .btn-primary:hover {
    transform: translateY(-3px);
}

.module-cta .btn-secondary {
    background: transparent;
}

.module-cta .btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
}

/* Module-specific CTA buttons */
.module-uncovery .module-cta .btn-primary {
    background: linear-gradient(135deg, var(--uncovery-color) 0%, rgba(11, 183, 131, 0.85) 100%);
    box-shadow: 0 4px 15px rgba(11, 183, 131, 0.3);
}
.module-uncovery .module-cta .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(11, 183, 131, 0.4);
}
.module-uncovery .module-cta .btn-secondary {
    border: 2px solid var(--uncovery-color);
    color: var(--uncovery-color);
}
.module-uncovery .module-cta .btn-secondary:hover {
    background: var(--uncovery-color);
    color: var(--white-color);
}

.module-security .module-cta .btn-primary {
    background: linear-gradient(135deg, var(--security-color) 0%, rgba(0, 137, 247, 0.85) 100%);
    box-shadow: 0 4px 15px rgba(0, 137, 247, 0.3);
}
.module-security .module-cta .btn-primary:hover {
    box-shadow: 0 8px 30px var(--security-40);
}
.module-security .module-cta .btn-secondary {
    border: 2px solid var(--security-color);
    color: var(--security-color);
}
.module-security .module-cta .btn-secondary:hover {
    background: var(--security-color);
    color: var(--white-color);
}

.module-threats .module-cta .btn-primary {
    background: linear-gradient(135deg, var(--threats-color) 0%, rgba(161, 51, 255, 0.85) 100%);
    box-shadow: 0 4px 15px rgba(161, 51, 255, 0.3);
}
.module-threats .module-cta .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(161, 51, 255, 0.4);
}
.module-threats .module-cta .btn-secondary {
    border: 2px solid var(--threats-color);
    color: var(--threats-color);
}
.module-threats .module-cta .btn-secondary:hover {
    background: var(--threats-color);
    color: var(--white-color);
}

/* ============================================
   AGENTS SECTION - Modern Cards
   ============================================ */

.agents-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Reset margin from section:nth-of-type(even) div:nth-child(2) rule */
.agents-grid .agent-card {
    margin-left: 0 !important;
}

.agents-grid.agents-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.agent-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Accent line at top */
.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-uncovery .agent-card::before {
    background: linear-gradient(90deg, var(--uncovery-color), rgba(11, 183, 131, 0.3));
}

.agent-card:hover::before {
    opacity: 1;
}

.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--black-10);
}

.module-uncovery .agent-card:hover {
    border-color: rgba(11, 183, 131, 0.25);
}

.agent-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agent-type.passive {
    background: rgba(11, 183, 131, 0.12);
    color: var(--uncovery-color);
    border: 1px solid rgba(11, 183, 131, 0.2);
}

.agent-type.active {
    background: var(--security-12);
    color: var(--security-color);
    border: 1px solid rgba(0, 137, 247, 0.2);
}

.agent-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.agent-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

.agent-screenshot {
    margin-top: 1.25rem;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.agent-card:hover .agent-screenshot {
    transform: scale(1.02);
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

@media (max-width: 768px) {
    .module-hero {
        padding: 4rem 0 3rem;
    }

    .module-hero h1 {
        font-size: 2.25rem;
    }

    .module-hero .subtitle {
        font-size: 1.05rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .overview-visual {
        order: -1;
    }

    .module-features .features-grid {
        grid-template-columns: 1fr;
    }

    .agents-grid,
    .agents-grid.agents-grid-3 {
        grid-template-columns: 1fr;
    }

    .benefits-list::before {
        left: 23px; /* centered on 48px number */
    }

    .benefit-item {
        gap: 1.5rem;
    }

    .benefit-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .benefit-content {
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .module-cta .btn {
        width: 100%;
    }
}

/* ============================================
   New Module Sections - Anomalies, Stats, Lifecycle, Sources
   ============================================ */

/* Uncovery Anomalies Section */
.module-anomalies {
    padding: 4rem 0;
    background: var(--foreground-color);
}

.module-anomalies h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.module-anomalies .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.anomalies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.anomaly-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.anomaly-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--black-10);
}

.anomaly-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--uncovery-color), var(--uncovery-color-dark, #089968));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.anomaly-icon svg {
    color: white;
}

.anomaly-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.anomaly-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Stats Section - Replicating #key-figures style */
.module-stats {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #1a2744 100%);
    padding: 5rem 0;
    margin: 0;
    border-radius: 0;

    h2 {
        color: var(--white-color);
    }
}

.module-stats .flex {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 1.5rem;
}

.module-stats .card {
    height: auto !important;
    flex: 1 1 0;
    min-width: 180px;
    max-width: 240px;
    padding: 1.75rem 1.25rem;
    margin: 0;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.module-stats .card:hover {
    transform: translateY(-4px);
    background: var(--white-08);
}

.module-stats .card strong {
    font-size: 2.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* Page-specific colors for stats */
.module-uncovery .module-stats .card strong {
    color: var(--uncovery-color);
}

.module-security .module-stats .card strong {
    color: var(--security-color);
}

.module-threats .module-stats .card strong {
    color: var(--threats-color);
}

.module-stats .card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--white-70);
    line-height: 1.4;
    text-align: center;
}

/* Responsive stats */
@media (max-width: 900px) {
    .module-stats .flex {
        flex-wrap: wrap !important;
    }

    .module-stats .card {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .module-stats .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Security Lifecycle Section */
.module-lifecycle .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.lifecycle-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.lifecycle-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 1.5rem;
    background: var(--foreground-color);
    border-radius: 12px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    background: var(--security-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.lifecycle-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--security-color);
}

.lifecycle-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.lifecycle-arrow {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lifecycle-arrow:hover {
    opacity: 1;
}

.module-security .lifecycle-arrow {
    color: var(--security-color);
}

.module-uncovery .lifecycle-arrow {
    color: var(--uncovery-color);
}

.module-threats .lifecycle-arrow {
    color: var(--threats-color);
}

/* Threats Sources Section */

.sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.source-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    border: 1px solid var(--border-color);
}

.source-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--threats-12);
    border-color: rgba(161, 51, 255, 0.3);
}

.source-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--threats-color), rgba(161, 51, 255, 0.7));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    flex-shrink: 0;
}

.source-icon svg {
    color: white;
}

.source-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.source-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Results Section */
.detection-list {
    list-style: none;
    padding: 0;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    max-width: 1000px;
}

.detection-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.5;
    transition: transform 0.2s ease;
    text-align: left;
}

.detection-list li:hover {
    transform: translateX(5px);
}

.detection-list li svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--primary-color);
}

.module-uncovery .detection-list li svg { color: var(--uncovery-color); }
.module-security .detection-list li svg { color: var(--security-color); }
.module-threats .detection-list li svg { color: var(--threats-color); }

/* Responsive for Results Section */
@media (max-width: 900px) {
    .detection-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .anomalies-grid,
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .anomalies-grid,
    .sources-grid,
    .module-stats .stats-grid {
        grid-template-columns: 1fr;
    }

    .lifecycle-steps {
        flex-direction: column;
        align-items: center;
    }

    .lifecycle-step {
        max-width: 100%;
        width: 100%;
    }

    .lifecycle-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
}

/* ============================================
   RELATED MODULES CROSS-NAVIGATION
   ============================================ */

.module-related {
    background: radial-gradient(circle at 0% 0%, var(--dark-navy) 0%, var(--dark-navy-light) 100%);
    color: var(--background-color);
    overflow: hidden;
    padding: 7rem 5rem;
}

/* Animated mesh gradient and orbs (replicated from platform-hero) */
.module-related::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(ellipse at 20% 30%, var(--uncovery-15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--threats-12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, var(--security-10) 0%, transparent 40%);
    filter: blur(60px);
    animation: heroMeshReveal 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.module-related::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse at center, var(--threats-12) 0%, transparent 55%);
    animation: heroOrbFloat 15s ease-in-out infinite reverse;
    pointer-events: none;
}

.module-related .container {
    position: relative;
    z-index: 1;
}

/* Grid overlay */
.module-related .container::before {
    content: '';
    position: absolute;
    top: -500px;
    left: -100%;
    right: -100%;
    bottom: -500px;
    background-image:
        linear-gradient(to right, var(--white-05) 1px, transparent 1px),
        linear-gradient(to bottom, var(--white-05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.module-related {
    h2 {
        margin-bottom: 0.75rem;
        color: var(--white-color);
    }

    .related-intro {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
    }

    .related-modules-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 900px;
        margin: 0 auto;
    }

    .related-module-card {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding: 1.5rem;
        background: var(--white-05);
        border: 1px solid var(--white-10);
        border-radius: var(--radius-lg);
        text-decoration: none;
        transition: all 0.25s ease;
        text-align: left;
        backdrop-filter: blur(10px);
    }

    .related-module-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px var(--black-10);
    }

    /* Module-specific hover border colors */
    .related-module-card.related-uncovery:hover {
        border-color: var(--uncovery-color);
        box-shadow: 0 12px 32px var(--uncovery-15);
    }

    .related-module-card.related-security:hover {
        border-color: var(--security-color);
        box-shadow: 0 12px 32px var(--security-15);
    }

    .related-module-card.related-threats:hover {
        border-color: var(--threats-color);
        box-shadow: 0 12px 32px rgba(161, 51, 255, 0.15);
    }

    .related-module-icon {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* Override global section img styles */
    .module-related .related-module-icon img,
    section.module-related .related-module-icon img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        object-fit: contain;
        display: inline-block !important;
    }

    .related-module-content {
        flex: 1;
        min-width: 0;

        h3 {
            font-size: 1.15rem;
            font-weight: 600;
            margin: 0 0 0.25rem 0;
        }

        p {
            text-align: left;
            font-size: 0.9rem;
            color: var(--white-70);
            margin: 0;
            line-height: 1.4;
        }

    }



    .related-arrow {
        flex-shrink: 0;
        font-size: 1.25rem;
        color: var(--gray-400);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .related-module-card:hover .related-arrow {
        transform: translateX(4px);
    }

    /* Dark mode adjustments */
    [data-theme="dark"] .module-related {
        background: var(--dark-foreground-color);
    }

    [data-theme="dark"] .related-module-card {
        background: var(--dark-background-color);
        border-color: var(--dark-border-color);
    }

    [data-theme="dark"] .related-module-card:hover {
        box-shadow: 0 12px 32px var(--black-30);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .related-modules-grid {
            grid-template-columns: 1fr;
        }

        .related-module-card {
            padding: 1.25rem;
        }
    }
}
