:root {
    --primary: #529b55;
    /* Emerald Green */
    --primary-dark: #3e7a41;
    --accent: #529b55;
    --accent-gold: #c39c63;
    --bg-light: #f4e7d5;
    /* Warmer Latte/Brown Background */
    --bg-card: #ffffff;
    --text-dark: #4a342a;
    /* Deep Cocoa Brown */
    --text-muted: #857468;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(166, 124, 69, 0.15);
    --font-main: 'Barlow', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.center {
    text-align: center;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-main);
    font-weight: 700;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 20px rgba(82, 155, 85, 0.2);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(82, 155, 85, 0.3);
}

.btn.secondary {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--primary);
}

.btn.secondary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

.btn.lg {
    padding: 1.3rem 2.8rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.02);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(244, 231, 213, 0.8), rgba(244, 231, 213, 0.3));
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1;
    margin-bottom: 1.8rem;
    color: var(--text-dark);
}

.accent {
    color: var(--primary);
    position: relative;
    font-style: italic;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 2.2rem;
    /* Increased Gap */
}

/* Features Section */
.section {
    padding: 3rem 0;
    /* Narrowed Section Spacing */
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.0rem;
    /* Tighter Margin */
    color: var(--text-dark);
}

.section-header p {
    margin-bottom: 3rem;
    /* Balanced Breathing Room */
    font-size: 1.25rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(74, 52, 42, 0.05);
    border: 1px solid rgba(166, 124, 69, 0.1);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(74, 52, 42, 0.1);
    border-color: var(--primary);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Showcase Section */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.showcase-item {
    text-align: center;
    background: #bb825c;
    padding: 1.0rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.showcase-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.0rem;
}

.showcase-item h4 {
    color: var(--text-dark);
    font-size: 1.0rem;
}

/* Architecture Section */
.architecture-details {
    margin-bottom: 2.5rem;
    /* Balanced space before diagram */
}

.architecture-img {
    max-width: 850px;
    width: 100%;
    margin: 4rem auto;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 2rem;
    display: block;
}

.architecture-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.arch-item h5 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

/* Final Integration Section (with Vector Hall Background) */
.final-integration {
    position: relative;
    width: 100%;
}

.hall-vector-bg {
    position: relative;
    padding: 15rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-light), rgba(244, 231, 213, 0.15), var(--bg-light));
    z-index: 1;
}

.final-integration .container {
    position: relative;
    z-index: 2;
}

.milestone-badge {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gold-text {
    color: var(--primary);
    font-weight: 800;
}

/* Restructured CTA Box */
.cta-box {
    padding: 4rem 3rem;
    border-radius: 24px;
    background: #ffffff;
    /* Solid bg for text clarity */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0;
}

.tokopedia-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 5rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .architecture-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.15rem;
        color: var(--text-dark);
        /* Darker for accessibility */
        font-weight: 500;
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
        /* Better Mobile Separation */
    }

    .hero .btn {
        width: 100%;
        /* Consistent full-width buttons */
        text-align: center;
        padding: 1.1rem;
    }

    .feature-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2rem;
        gap: 1.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem 1.5rem;
    }

    .feature-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        padding: 2.5rem;
        min-height: 250px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .architecture-features {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .logo span {
        display: none;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoom 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: 0.3s ease;
    line-height: 0.8;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 30px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.showcase-item img {
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-item img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}