/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* SIWARGA Friendly Palette (Violet & Sunny Yellow) */
    --primary: #6366f1;
    /* Indigo/Violet */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --primary-light: #e0e7ff;

    --accent: #f59e0b;
    /* Sunny Yellow */
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --accent-glow: rgba(245, 158, 11, 0.4);

    --secondary: #ec4899;
    /* Playful Pink */
    --secondary-gradient: linear-gradient(135deg, #ec4899 0%, #be185d 100%);

    --text-dark: #1e293b;
    /* Softer Dark Blue */
    --text-light: #64748b;

    --bg-light: #fefce8;
    /* Warm Light Background (Yellow Tint) */
    --white: #ffffff;
    --border: #e2e8f0;

    --radius-lg: 24px;
    /* Friendly Roundness */
    --radius-md: 16px;
    --radius-sm: 12px;

    /* Legacy aliases */
    --primary-blue: var(--accent);
    --dark-blue: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent);
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(245, 158, 11, 0.6);
}

.btn-outline {
    background: white;
    border: 2px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================
   4. HERO SECTION (Friendly)
   ========================================= */
.hero {
    padding: 160px 0 100px;
    background: transparent;
    position: relative;
    overflow: visible;
    /* For blobs */
}

/* Background Blobs */
.blob-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.7;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-float 10s infinite alternate;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, 30px) rotate(5deg);
    }
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: var(--primary-light);
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: 50px;
    left: -80px;
    background: #fef3c7;
    animation-delay: -5s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Hero Illustration */
.hero-illustration-container {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mascot-img {
    max-height: 100%;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.2));
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

/* Floating Bubbles */
.hero-bubble {
    position: absolute;
    background: white;
    padding: 12px 24px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}

.hero-bubble i {
    font-size: 1.2rem;
}

.hero-bubble.b1 {
    top: 60px;
    right: 20px;
    color: var(--primary);
    animation-delay: 1s;
}

.hero-bubble.b2 {
    bottom: 80px;
    left: 0;
    color: var(--accent);
    animation-delay: 2s;
}

.hero-bubble.b3 {
    top: 40%;
    left: -30px;
    color: var(--secondary);
    animation-delay: 0.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* =========================================
   5. SECTIONS & CARDS
   ========================================= */
.shape-divider {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    left: 0;
}

.shape-divider svg {
    display: block;
    width: calc(130% + 1.3px);
    height: 80px;
}

.shape-divider.bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.shape-divider.top {
    top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Features */
.features-section {
    padding: 80px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: white;
    border: none;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.15);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Pricing */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    /* Space for floating badges */
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -5px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
}

/* Featured / Popular Card */
.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    transform: scale(1.05);
    /* Slight enlarge */
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Plan Title & Price */
.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card.featured .plan-name {
    color: var(--primary);
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Public Sans', sans-serif;
    letter-spacing: -2px;
}

.pricing-card.featured .plan-price {
    color: var(--primary);
}

.plan-price span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-right: 4px;
}

.plan-period {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Features List */
.plan-features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    text-align: left;
    flex-grow: 1;
    /* Push button to bottom */
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--border);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--success);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Promo Badge (Floating Pill) */
.promo-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    /* Fallback */
    color: white !important;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 10;
}

/* Discount Tag */
.discount-tag {
    display: inline-block;
    background: #ffe4e6;
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* Highlight Feature Box */
.highlight-feature {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #b45309;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Stats */
.stats-section {
    padding: 60px 0;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    margin: 60px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-item p {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* =========================================
   6. PREMIUM STATIC PAGES (Terms/Privacy)
   ========================================= */
.page-header-premium {
    background: var(--primary-gradient);
    padding: 160px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-content-wrapper {
    margin-top: -60px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

.legal-card {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.legal-card h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.legal-card p,
.legal-card ul,
.legal-card ol {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

.legal-card ul {
    padding-left: 1.5rem;
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-col a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-illustration-container {
        height: 400px;
    }

    .nav-menu {
        display: none;
    }

    /* Simplified mobile handling */
    .features-grid,
    .pricing-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        margin: 40px 0;
    }
}

/* =========================================
   9. BLOG STYLES
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
}

.article-image {
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--primary-light);
    font-size: 3rem;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    font-weight: 600;
}

.article-meta i {
    color: var(--accent);
}

.article-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: 0.2s;
}

.article-card:hover .article-title {
    color: var(--primary);
}

.article-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.read-more:hover {
    color: var(--accent);
    gap: 12px;
}

/* =========================================
   10. SINGLE ARTICLE
   ========================================= */
.article-header-single {
    padding: 160px 0 140px;
    background: var(--bg-light);
    box-shadow: inset 0 -40px 40px -40px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-meta-single {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.article-meta-single i {
    color: var(--accent);
    margin-right: 8px;
}

.article-title-single {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.2;
}

.article-featured-image-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding: 0 24px;
}

.article-featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    background: var(--border);
}

.article-body-wrapper {
    background: white;
    padding-top: 60px;
    padding-bottom: 100px;
}

.article-body-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.article-body-content p {
    margin-bottom: 25px;
}

.article-body-content h2,
.article-body-content h3 {
    color: var(--primary);
    font-weight: 700;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.article-body-content ul,
.article-body-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-body-content li {
    margin-bottom: 10px;
}

.share-box {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.share-links {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.bg-fb {
    background: #3b5998;
}

.bg-tw {
    background: #1da1f2;
}

.bg-wa {
    background: #25d366;
}

.bg-li {
    background: #0077b5;
}

@media (max-width: 768px) {
    .article-title-single {
        font-size: 2rem;
    }

    .article-featured-image {
        height: 250px;
    }

    .article-header-single {
        padding: 120px 0 120px;
    }
}