:root {
    --clr-primary: #aeefff;
    --clr-primary-dark: #6ebad0;
    --clr-secondary: #ffffff;
    --clr-bg: #f0faff;
    --clr-text: #173f4b;
    --clr-accent: #25D366;
    /* WhatsApp Green */

    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 8px 32px 0 rgba(76, 161, 195, 0.15);
    --glass-blur: 16px;

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;

    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--clr-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #fff;
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #d0f0ff;
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

@media (max-width: 768px) {
    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
        right: -80px;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -60px) scale(1.1);
    }
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 12px 24px;
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.7);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--clr-primary-dark);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    display: none;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--clr-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: var(--transition);
}

@media (min-width: 480px) {
    .nav-btn {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 24px;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--clr-text);
        font-weight: 500;
        font-size: 0.9rem;
        transition: var(--transition);
        opacity: 0.8;
    }

    .nav-links a:hover {
        opacity: 1;
        color: var(--clr-primary-dark);
    }
}

/* General Layout */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    position: relative;
}

.hero-glass {
    padding: 60px 30px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--clr-text), var(--clr-primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Hero Slider */
.hero-slider-container {
    margin-top: 60px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 5;
}

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s infinite ease-in-out;
    cursor: grab;
    user-select: none;
}

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

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transform: scale(0.95);
    pointer-events: none;
}

.slider-img.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(110, 186, 208, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.dot.active {
    background: var(--clr-primary-dark);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(110, 186, 208, 0.5);
}

@keyframes float {

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), #86e4fc);
    color: var(--clr-text);
    box-shadow: 0 4px 20px rgba(174, 239, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(174, 239, 255, 0.7);
}

/* Grid Layouts */
.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* Feature Cards */
.feature-card {
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--clr-primary-dark);
}

/* Product Cards */
.product-card {
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    margin-bottom: 20px;
}

.product-card .benefit {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Checkout Section */
.checkout-container {
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 0 auto;
}

/* Article Cards */
.article-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-info {
    padding: 20px;
}

.article-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.article-info p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Iframe Viewer Overlay */
#article-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(240, 250, 255, 0.95);
    display: none;
    flex-direction: column;
    padding: 20px;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 20px;
    border-radius: 100px;
}

.iframe-container {
    flex-grow: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE RESPONSIVE FIXES ===== */

/* Tablet: 768px and below */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-glass {
        padding: 36px 18px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-slider-container {
        max-width: 280px;
        margin-top: 36px;
    }

    section {
        padding: 60px 16px;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    /* Fix company section: cancel span 2 on mobile */
    .company-wide {
        grid-column: span 1 !important;
    }

    /* grid-3 becomes 1 col on tablet */
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* Article overlay iframe on mobile */
    iframe {
        height: 70vh;
    }

    .overlay-header {
        padding: 12px 16px;
        border-radius: 50px;
        gap: 10px;
    }

    .overlay-header .btn {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    /* Company section styling */
    #company .glass {
        padding: 28px 20px !important;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.88rem;
    }

    .hero-glass {
        padding: 28px 14px;
    }

    section {
        padding: 48px 12px;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .grid-cards {
        gap: 14px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    /* Checkout cards nicer on phone */
    .checkout-card {
        padding: 16px;
    }

    .checkout-btn {
        font-size: 0.95rem;
        padding: 14px 20px;
    }

    /* Floating CTA — full width at bottom, nicely docked */
    .floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        text-align: center;
        padding: 14px;
        font-size: 0.9rem;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Give body a bottom padding so floating CTA doesn't cover content */
    body {
        padding-bottom: 60px;
    }

    .promo-badge {
        font-size: 0.78rem;
    }

    /* Article cards text */
    .article-info h3 {
        font-size: 1rem;
    }

    .article-thumb {
        height: 160px;
    }

    /* Product card image */
    .product-img {
        max-height: 180px;
    }

    /* Shopee/TikTok store buttons wrap nicely */
    #checkout>div>div[style*="flex"] {
        gap: 10px;
    }

    .btn {
        font-size: 0.88rem;
    }

    /* iframe overlay */
    iframe {
        height: 65vh;
    }

    /* Company section — fix span 2 */
    .grid-cards .glass[style*="grid-column"] {
        grid-column: span 1 !important;
    }

    #company .glass {
        padding: 22px 16px !important;
    }
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(240, 250, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.mobile-nav.active {
    right: 0;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu {
    background: transparent;
    border: none;
    color: var(--clr-text);
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-links a {
    text-decoration: none;
    color: var(--clr-text);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-links .mobile-cta {
    background: var(--clr-primary);
    color: var(--clr-text);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    border-bottom: none;
    margin-top: 10px;
}

/* Refinements */
.checkout-card {
    padding: 20px;
}

@media (max-width: 480px) {
    .grid-cards {
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
        padding: 12px;
        font-size: 0.9rem;
    }

    .promo-badge {
        font-size: 0.8rem;
    }
}

/* Checkout UI / Pilih Paket */
.promo-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(251, 146, 60, 0.15);
    color: #d97706;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 100px;
}

.checkout-cards {
    margin-top: 40px;
}

.checkout-card {
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.checkout-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.15);
}

.checkout-card.best-seller {
    border: 1px solid rgba(15, 118, 110, 0.4);
    box-shadow: 0 8px 32px 0 rgba(15, 118, 110, 0.1);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    letter-spacing: 0.5px;
}

.badge-hemat {
    background: #3b82f6;
}

.badge-best {
    background: #0399a4;
}

.badge-super {
    background: #eab308;
    color: #ffffff;
}

.checkout-btn {
    background: #0d7a90;
    color: white;
    border-radius: 12px;
    width: 100%;
    margin-top: auto;
    font-size: 1.05rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
    border: none;
}

.checkout-btn:hover {
    background: #0d6860;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 5px 15px rgba(15, 118, 110, 0.3);
    color: white;
    transform: translateY(-2px);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--clr-primary-dark);
    color: var(--clr-text);
    padding: 12px 25px;
    margin-top: 10px;
}

.btn-back:hover {
    background: var(--clr-primary-dark);
    color: white;
    border-color: var(--clr-primary-dark);
}