/* ============================================================
   KODE LENGKAP HOME.CSS - JASAWEB DIGITAL
   Penataan Alur: Global -> Hero -> Promo -> Layanan -> FAQ -> Stats -> Footer
   ============================================================ */

/* 1. ROOT & GLOBAL SETTINGS */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --dark-card: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 2. UTILITY COMPONENTS */
.text-gradient {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

/* 3. HERO SECTION */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.2);
    top: 10%;
    left: -5%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.15);
    bottom: 10%;
    right: -5%;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 45px;
}

/* 4. BUTTONS */
.btn-hero-primary,
.btn-hero-secondary,
.btn-wa-modern {
    padding: 14px 34px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    margin-right: 15px;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
}

.btn-wa-modern {
    background: #10b981;
    color: white;
    margin-top: 15px;
}

.btn-hero-primary:hover,
.btn-wa-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    color: white;
}

/* 5. FLOATING VISUALS */
.hero-card-stack {
    position: relative;
    height: 300px;
}

.floating-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    border-radius: 18px;
    border: 1px solid var(--border);
    position: absolute;
    font-weight: bold;
    font-size: 0.9rem;
    animation: floatAnim 6s infinite ease-in-out;
}

.c-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.c-2 {
    top: 45%;
    right: 25%;
    animation-delay: 2s;
}

.c-3 {
    bottom: 10%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* 6. LAYANAN CARDS */
.card-layanan-modern {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-layanan-modern:hover {
    border-color: var(--primary);
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.card-header-icon {
    width: 65px;
    height: 65px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.price-tag {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.price-start {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #10b981;
    display: block;
}

.btn-order-modern {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn-order-modern:hover {
    background: var(--primary);
}

/* 7. INFO BOX & FAQ */
.info-card-box {
    background: var(--dark-card);
    padding: 35px;
    border-radius: 28px;
    border: 1px solid var(--border);
    height: 100%;
}

.announcement-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item-modern {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
    margin-bottom: 15px;
}

.faq-item-modern:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h6 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

/* 8. STATS SECTION */
.stats-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.counter-val {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 10px;
}

/* 9. FULL-WIDTH FOOTER */
.main-footer {
    background-color: #0b1222;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-bottom {
    background: #080e1a;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.footer-logo span {
    color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* 10. RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .hero-visual {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-section {
        padding: 40px 0;
    }

    .counter-val {
        font-size: 2.5rem;
    }
}

/* 11. PROMO & DISCOUNT STYLES */

/* Promo Banner Top */
.promo-banner-top {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.3);
    position: relative;
    overflow: hidden;
}

.promo-banner-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px);
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.promo-icon-pulse {
    font-size: 2rem;
    animation: pulse-fire 1s ease-in-out infinite;
}

@keyframes pulse-fire {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.promo-text {
    flex: 1;
    min-width: 200px;
}

.promo-title-banner {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.promo-desc-banner {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.promo-code-banner {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.code-label {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Card with Promo */
.card-layanan-modern.has-promo {
    position: relative;
    border: 2px solid #f97316 !important;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
}

.card-layanan-modern.has-promo::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
    border-radius: 20px 20px 0 0;
}

/* Promo Ribbon */
.promo-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 6px 45px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    z-index: 10;
}

.ribbon-text {
    display: block;
    white-space: nowrap;
}

/* Price with Promo */
.price-tag.with-promo {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 191, 36, 0.1));
    border-radius: 12px;
    padding: 1rem !important;
    border: 1px dashed #f97316 !important;
    margin: 20px 0 !important;
}

.price-promo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.price-original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.price-badge-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.price-value.promo-price {
    color: #f97316 !important;
    font-size: 2rem !important;
    animation: price-pop 0.5s ease;
}

@keyframes price-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button Promo Active */
.btn-order-modern.btn-promo-active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    animation: btn-glow 2s ease-in-out infinite;
}

.btn-order-modern.btn-promo-active:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5);
}

@keyframes btn-glow {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    }

    50% {
        box-shadow: 0 8px 35px rgba(249, 115, 22, 0.6);
    }
}

/* Responsive Promo */
@media (max-width: 768px) {
    .promo-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .promo-ribbon {
        right: -40px;
        padding: 5px 50px;
        font-size: 0.65rem;
    }

    .price-promo-wrapper {
        justify-content: center;
    }
}

/* 12. SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 5px;
}