/* ---------- Komponen Utilitas ---------- */
.container {
    width: 100%;
    max-width: var(--site-max-width, 1520px);
    margin: 0 auto;
    padding: 0 var(--site-gutter, clamp(1.25rem, 3.5vw, 4rem));
}

/* ---------- Hero Section ---------- */
.hero-section {
    background-color: #f9fafb;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 5vw, 5rem);
    min-height: calc(100vh - 115px);
    display: flex;
    align-items: center;
    width: 100%;
    margin-left: 0;
    overflow-x: hidden;
}

.hero-container {
    width: 100%;
    max-width: var(--site-max-width, 1520px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 4vw, 5.5rem);
    padding: 0 var(--site-gutter, clamp(1.25rem, 3.5vw, 4rem));
    align-items: center;
}

/* --- Konten Teks --- */
.hero-content {
    text-align: left;
    color: #111827;
}

.hero-header {
    font-size: clamp(2.35rem, 3.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-header-color {
    color: #D81251;
}

/* --- Deskripsi Hero --- */
.hero-description {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.85;
    margin-bottom: 2.75rem;
    color: #4b5563;
    max-width: 720px;
    text-align: left !important; 
    margin-left: 0;
    margin-right: auto;
}

/* --- Tombol CTA --- */
.hero-button {
    display: inline-block;
    padding: 1.05rem 2.4rem;
    background-color: #D81251;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.hero-button:hover,
.hero-button:focus {
    background-color: #b3124a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

/* --- Hero Beranda Statis (index.html root) --- */
.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
    background-color: #fdecf2;
    color: #D81251;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2.1rem, 3.4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #111827;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-btn-primary {
    background-color: #D81251;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background-color: #b3124a;
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background-color: #ffffff;
    color: #D81251;
    border: 2px solid #D81251;
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    background-color: #fdecf2;
    transform: translateY(-2px);
}

/* --- Statistik Hero --- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    position: relative;
    width: 100%;
    max-width: 560px;
}

/* Garis pembatas halus di atas section statistik */
.hero-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #e5e7eb 0%, rgba(229, 231, 235, 0.4) 100%);
}

.hero-stat-item {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

/* Garis aksen merah khas Mitra Cerdas Nusantara di atas kartu */
.hero-stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D81251, #f43f5e);
    opacity: 0.85;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(216, 18, 81, 0.3);
}

.hero-stat-item:hover::before {
    opacity: 1;
    height: 4px;
}

.hero-stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
    width: 100%;
}

.hero-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(216, 18, 81, 0.08);
    color: #D81251;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat-icon svg {
    width: 18px;
    height: 18px;
}

.hero-number {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: #D81251;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    white-space: nowrap;
}

.hero-number-description {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
    line-height: 1.35;
}

/* --- Gambar Laptop (Kanan) --- */
.hero-image {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

/* ---------- Media Card / Bingkai Aestetik ---------- */
.media-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
}

/* Glow di belakang kartu */
.media-glow {
    position: absolute;
    inset: -10px;
    z-index: 0;
    background: linear-gradient(135deg, rgba(255, 228, 235, 0.6), rgba(241, 245, 249, 0.5));
    border-radius: 28px;
    filter: blur(16px);
    opacity: 0.9;
}

/* Kartu / frame utama */
.media-frame {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

/* Thumbnail / area gambar laptop */
.media-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

.laptop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay gradient lembut di bawah gambar */
.media-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.25), transparent 40%);
    pointer-events: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* Kartu stats bawah: Tingkat Kepuasan */
.media-card-stats {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.stats-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #D81251;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-icon svg {
    width: 18px;
    height: 18px;
}

.stats-text {
    flex: 1;
    text-align: left;
    line-height: 1.3;
}

.stats-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.stats-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.stats-tag {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    color: #D81251;
    background: #fff0f3;
    border: 1px solid #ffd6df;
    padding: 6px 10px;
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .hero-stat-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 1024px) {
    .hero-header {
        font-size: 2.25rem;
    }

    .media-card-stats {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 12px;
        width: 100%;
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0 2rem;
        min-height: 100vh;
    }

    .container,
    .hero-container {
        padding: 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-header {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-align: left;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        margin-top: 2rem;
        padding-top: 1.25rem;
        max-width: 100%;
    }

    .hero-stat-item {
        padding: 1rem 1rem;
        border-radius: 14px;
        align-items: flex-start;
        text-align: left;
    }

    .hero-stat-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.35rem;
    }

    .hero-stat-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .hero-stat-icon svg {
        width: 14px;
        height: 14px;
    }

    .hero-number {
        font-size: clamp(1.2rem, 3.8vw, 1.45rem);
    }

    .hero-number-description {
        font-size: 0.85rem;
    }

    /* Tingkat Kepuasan card below image on mobile (does not cover image) */
    .media-card-stats {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 12px;
        width: 100%;
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-dot {
        animation: none !important;
    }
}

