.erm-hero {
    min-height: 75vh;
    background: linear-gradient(160deg, #0F2B5B 0%, var(--b2e-primary) 40%, #1340A5 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
}

.erm-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.erm-hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.erm-hero-content {
    position: relative;
    z-index: 2;
}

.erm-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--b2e-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.erm-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.9;
}

.erm-hero-visual {
    position: relative;
    z-index: 2;
}

.erm-hero-mockup {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--b2e-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.erm-mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.erm-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .erm-mockup-dot:nth-child(1) { background: #FF6B6B; }
    .erm-mockup-dot:nth-child(2) { background: #FFD93D; }
    .erm-mockup-dot:nth-child(3) { background: #6BCB77; }

.erm-mockup-body {
    padding: 24px;
}

.erm-mockup-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--b2e-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    gap: 10px;
}

    .erm-mockup-placeholder i {
        font-size: 2.5rem;
    }

    .erm-mockup-placeholder span {
        font-size: 0.85rem;
        font-weight: 500;
    }

/* Hero badge — override main.css light-bg badge for dark hero */
.erm-hero .b2e-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(103, 232, 249, 0.25);
    color: #67E8F9;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    gap: 10px;
    margin-bottom: 24px;
}

.erm-hero .b2e-badge i {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Overview */
.erm-overview-bg {
    background: var(--b2e-white);
}

.erm-overview-text {
    font-size: 1.1rem;
    color: var(--b2e-gray-700);
    line-height: 2;
    max-width: 820px;
    margin: 0 auto 48px;
}

/* Capability cards */
.erm-cap-card {
    background: var(--b2e-white);
    border: 1px solid var(--b2e-gray-200);
    border-radius: var(--b2e-radius-md);
    padding: 32px 28px;
    height: 100%;
    transition: var(--b2e-transition);
    position: relative;
    overflow: hidden;
}

    .erm-cap-card::before {
        content: '';
        position: absolute;
        top: 0; right: 0; left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--b2e-primary), var(--b2e-accent));
        opacity: 0;
        transition: var(--b2e-transition);
    }

    .erm-cap-card:hover {
        border-color: transparent;
        box-shadow: var(--b2e-shadow-lg);
        transform: translateY(-4px);
    }

        .erm-cap-card:hover::before { opacity: 1; }

.erm-cap-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--b2e-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.erm-cap-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.erm-cap-card p {
    font-size: 0.95rem;
    color: var(--b2e-gray-500);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Screenshots gallery */
.erm-gallery-bg {
    background: var(--b2e-gray-50);
}

/* Permissions section */
.erm-permissions-bg {
    background: var(--b2e-gray-900);
    color: var(--b2e-white);
}

    .erm-permissions-bg .b2e-section-title {
        color: var(--b2e-white);
    }

    .erm-permissions-bg .b2e-section-subtitle {
        color: var(--b2e-gray-400);
    }

.erm-perm-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--b2e-radius-md);
    padding: 32px 28px;
    text-align: center;
    transition: var(--b2e-transition);
    height: 100%;
}

    .erm-perm-card:hover {
        background: rgba(255,255,255,0.08);
        transform: translateY(-3px);
    }

.erm-perm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.erm-perm-card h5 {
    color: var(--b2e-white);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.erm-perm-card p {
    color: var(--b2e-gray-400);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Highlights strip */
.erm-highlights-bg {
    background: var(--b2e-white);
}

.erm-highlight-item {
    text-align: center;
    padding: 36px 20px;
}

.erm-highlight-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--b2e-primary-light);
    color: var(--b2e-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.erm-highlight-item h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.erm-highlight-item p {
    color: var(--b2e-gray-500);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 991px) {
    .erm-hero h1 { font-size: 2.4rem; }
    .erm-hero-visual { margin-top: 48px; }
}

@media (max-width: 767px) {
    .erm-hero { min-height: auto; padding: 120px 0 70px; }
    .erm-hero h1 { font-size: 2rem; }
    .erm-hero .hero-subtitle { margin-bottom: 10px; }

    .erm-hero-visual { display: none; }

    .erm-hero-content {
        text-align: center;
    }

    .erm-hero-content .b2e-badge {
        display: flex;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .erm-hero-content .d-flex {
        justify-content: center;
    }

    .erm-hero .b2e-btn-primary,
    .erm-hero .b2e-btn-ghost {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 6px;
        white-space: nowrap;
    }

    .erm-cap-card { padding: 24px 20px; }
    .erm-perm-card { padding: 24px 20px; }
    .erm-highlight-item { padding: 24px 16px; }
}

@media (max-width: 400px) {
    .erm-hero .b2e-btn-primary,
    .erm-hero .b2e-btn-ghost {
        padding: 8px 14px;
        font-size: 0.78rem;
        gap: 4px;
    }
}