:root {
    --primary: #6366f1;
    --primary-light: #e0e7ff;
    --secondary: #fb7185;
    --accent: #facc15;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #ededed;
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-hero: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    h2 {
        font-size: 40px;
    }
}

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.img-logo {
    /* width: 32px; */
    height: 72px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn-login {
    color: var(--primary);
}

.btn-nav {
    background: var(--grad-primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* HERO */
.hero {
    background: var(--grad-hero);
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    padding: 16px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.btn-secondary:hover {
    color: var(--primary);
}

/* HERO IMAGE */
.image-wrapper {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.c1 {
    top: 10%;
    right: -5%;
    animation: float 5s ease-in-out infinite 1s;
}
.c2 {
    bottom: 20%;
    left: -10%;
    animation: float 7s ease-in-out infinite 2s;
}
.c3 {
    top: 60%;
    right: -10%;
    animation: float 6s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* WHY SIRA LEARNING */
.why-sira {
    padding: 100px 0;
    background: #f3f3f3;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.why-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon--agama {
    background: #fef3c7;
}
.why-icon--logika {
    background: #dbeafe;
}
.why-icon--bahasa {
    background: #d1fae5;
}
.why-icon--kreasi {
    background: #fce7f3;
}
.why-icon--eksplorasi {
    background: #ede9fe;
}
.why-icon--cerita {
    background: #dcfce7;
}

.why-body h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.why-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Summary box */
.why-summary {
    background: var(--grad-primary);
    border-radius: 24px;
    padding: 36px 48px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--white);
    margin-top: 16px;
}

.why-summary-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.why-summary p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

.why-summary strong {
    color: var(--accent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.problem-card:hover {
    transform: translateY(-10px);
}

.problem-card .icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.problem-card h3 {
    margin-bottom: 16px;
    font-weight: 800;
}

.problem-card p {
    color: var(--text-light);
}

/* MATERI */
.featured-list {
    padding: 100px 0;
}

/* MATERI SLIDER */
.slider-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 40px;
}

.modul-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
}

.modul-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.modul-slider:active {
    cursor: grabbing;
}

.modul-card {
    min-width: 300px;
    flex: 0 0 300px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}

.modul-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modul-img {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modul-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modul-body {
    padding: 24px;
}

.modul-meta {
    margin-bottom: 12px;
}

.badge-plan {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    text-transform: uppercase;
}

.modul-body h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
}

.modul-body p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
    height: 42px;
    overflow: hidden;
}

/* SEE ALL CARD */
.see-all-card {
    background: var(--grad-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.see-all-content .icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.see-all-content h3 {
    margin-bottom: 8px;
}

.see-all-content p {
    opacity: 0.9;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-primary-small {
    background: var(--white);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
}

/* SLIDER BUTTONS */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.slider-btn.prev {
    left: 0;
}
.slider-btn.next {
    right: 0;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #f8fafc;
    margin: 5% auto;
    padding: 0;
    border-radius: 32px;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 30px 40px;
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin-bottom: 0;
    font-size: 28px;
}

.close-modal {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--secondary);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.category-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--primary-light);
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.modal-modul-item {
    background: var(--white);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.modal-modul-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img-small {
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
}

.item-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.badge-plan-small {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    background: #f1f5f9;
    color: var(--text-light);
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.btn-play {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-play:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .slider-wrapper {
        padding: 0;
    }
    .slider-btn {
        display: none;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    .modal-header {
        padding: 20px;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

/* PRICING */
.pricing {
    padding: 100px 0;
    background: #f3f3f3;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: var(--white);
    padding: 48px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 3px solid var(--primary);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.amount {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 32px;
}

.amount span {
    font-size: 18px;
    color: var(--text-light);
}

.features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.features li i {
    color: #10b981;
}

.btn-pricing {
    display: block;
    text-align: center;
    background: #f1f5f9;
    color: var(--text-dark);
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.featured .btn-pricing {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-pricing:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* PROMO */
.promo {
    padding: 100px 0;
}

.promo-box {
    background: var(--grad-primary);
    padding: 60px;
    border-radius: 40px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.promo-text h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.promo-text p {
    font-size: 18px;
    opacity: 0.9;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 18px 36px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: scale(1.05);
}

/* SPINNER */
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* FOOTER */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 24px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    .mobile-toggle {
        display: block;
    }
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        transition: left 0.3s;
        z-index: 999;
    }
    nav.active {
        left: 0;
    }

    .hero-grid,
    .grid-3,
    .grid-2,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid .why-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .why-summary {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image {
        margin-top: 60px;
    }

    .logo-text {
        display: none;
    }

    .floating-card {
        font-size: 12px;
        padding: 6px 10px !important;
    }

    .promo-box {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .img-logo {
        /* height: 65px; */
        padding: 10px 0;
    }
}
