@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f8fafc;
    --bg-sidebar: #0f2e24;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --accent: #007A3E;
    --accent-hover: #005f30;
    --border-color: rgba(255, 255, 255, 0.45);
    --card-bg: rgba(255, 255, 255, 0.45);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: 'Outfit', sans-serif;
    background-color: #f5f8fa;
    /* Animated/liquid feeling soft color blobs */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 122, 62, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.08) 0px, transparent 60%),
        radial-gradient(at 0% 100%, rgba(245, 158, 11, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 122, 62, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
}

.landing-topbar {
    background: rgba(15, 46, 36, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Glass Navbar */
.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.landing-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    gap: 1rem;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.landing-brand img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.landing-brand span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--bg-sidebar);
    line-height: 1.2;
    max-width: 160px;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.landing-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: var(--transition);
}

.landing-nav a:hover {
    color: var(--accent-hover);
    background: rgba(0, 122, 62, 0.08);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00a854);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 122, 62, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 122, 62, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 62, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-hover);
    border: 1px solid rgba(0, 122, 62, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
}

/* Hero */
.landing-hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.landing-hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.landing-hero-badge {
    display: inline-block;
    background: rgba(0, 122, 62, 0.08);
    color: var(--accent-hover);
    font-size: 0.775rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border: 1px solid rgba(0, 122, 62, 0.15);
}

.landing-hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--bg-sidebar);
    letter-spacing: -0.75px;
}

.landing-hero h1 span {
    color: var(--accent);
}

.landing-hero .subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.landing-hero p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    font-size: 1.025rem;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.landing-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero card with glass effect */
.landing-hero-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.landing-hero-card img {
    height: 140px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.landing-hero-card h3 {
    font-size: 1.25rem;
    color: var(--bg-sidebar);
    margin-bottom: 0.5rem;
}

.landing-hero-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Sections */
.landing-section {
    padding: 5rem 0;
}

.landing-section.alt {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-header .label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--bg-sidebar);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Liquid Glass Cards */
.mission-card, .news-card, .stat-card, .price-card, .contact-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Mission cards */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mission-card {
    padding: 2.25rem 1.75rem;
}

.mission-card:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 122, 62, 0.35);
    box-shadow: 0 12px 40px rgba(0, 122, 62, 0.08);
    transform: translateY(-4px);
}

.mission-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 122, 62, 0.18), rgba(0, 168, 84, 0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-hover);
    border: 1px solid rgba(0, 122, 62, 0.15);
}

.mission-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
}

.mission-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--bg-sidebar);
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    overflow: hidden;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 122, 62, 0.35);
    box-shadow: 0 12px 40px rgba(0, 122, 62, 0.08);
    transform: translateY(-4px);
}

.news-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-sidebar), #1a4d3a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.news-card-image svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bg-sidebar);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.news-card-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Infografis */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card {
    padding: 1.75rem 1.25rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-hover);
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Harga sampah carousel */
.price-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.price-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0.5rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

/* Custom Scrollbar */
.price-grid::-webkit-scrollbar {
    height: 8px;
}
.price-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}
.price-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 62, 0.2);
    border-radius: 10px;
    transition: var(--transition);
}
.price-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.price-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    height: auto;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.price-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 122, 62, 0.35);
    box-shadow: 0 12px 40px rgba(0, 122, 62, 0.08);
    transform: translateY(-4px);
}

.price-card-image {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.price-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 122, 62, 0.05), rgba(0, 168, 84, 0.03));
    color: var(--accent);
}

.price-card-fallback svg {
    width: 64px;
    height: 64px;
    opacity: 0.8;
}

.price-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 1.25rem;
}

.price-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.price-card-info .code {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 122, 62, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.price-card-info .name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bg-sidebar);
    margin: 0;
    line-height: 1.3;
}

.price-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.price-card-footer .price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-card-footer .price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-hover);
    line-height: 1.2;
}

.price-card-footer .price .unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.1rem;
}

/* Nav Buttons Style */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-sidebar);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-nav-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(0, 122, 62, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: -24px;
}

.next-btn {
    right: -24px;
}

@media (max-width: 768px) {
    .price-carousel-wrapper {
        padding: 0;
    }
    
    .carousel-nav-btn {
        display: none !important;
    }
    
    .price-grid {
        gap: 1rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }
    
    .price-card {
        flex: 0 0 240px;
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 122, 62, 0.35);
    transform: translateY(-3px);
}

.contact-card svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.2;
    margin-bottom: 1.25rem;
}

.contact-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-card p {
    font-weight: 700;
    color: var(--bg-sidebar);
    font-size: 1.05rem;
}

/* Footer */
.landing-footer {
    background: rgba(15, 46, 36, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    text-align: center;
}

.landing-footer img {
    height: 54px;
    opacity: 0.95;
}

.landing-footer p {
    font-size: 0.875rem;
    font-weight: 500;
}

.landing-footer .copy {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
    .landing-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .landing-hero-actions {
        justify-content: center;
    }

    .mission-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 1.5rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .landing-nav.open {
        display: flex;
    }

    .landing-navbar .container {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .landing-topbar .container {
        justify-content: center;
        text-align: center;
    }
}
