/* =========================================================================
   1. BASE STYLES & RESET
   ========================================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

body {
    animation: fadeInPage 0.45s ease-in-out forwards;
}

body.fade-out {
    animation: fadeOutPage 0.28s ease-in-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutPage {
    from { opacity: 1; }
    to { opacity: 0; }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================================================
   2. NAVBAR & BUTTONS
   ========================================================================= */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: #d1d1d1;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover, .tag:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:active, .tag:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #e0e0e0;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* =========================================================================
   3. HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 1) 100%),
                url('https://i.pinimg.com/736x/a0/fa/6b/a0fa6b5fb4b1b15658d5e5d42bace91f.jpg') no-repeat center center/cover;
    padding: 0 2rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.tag-clickable {
    cursor: pointer;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero p {
    font-size: 1rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    max-width: 600px;
}

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

/* =========================================================================
   4. LOGO TICKER & TEXT SLIDER
   ========================================================================= */
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    opacity: 0.4;
    flex-wrap: wrap;
}

.client-logos span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.text-slider-container {
    position: relative;
    min-height: 280px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.slide-block {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: none;
}

.slide-block.active {
    pointer-events: auto;
    z-index: 2;
}

.slide-block p {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: #f3f4f6;
    text-align: left;
    opacity: 0;
    transform: translateY(-40px);
}

.slide-block.active p {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.7s ease;
}

.slide-block.exit p {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.7s ease;
}

.slide-block p:nth-child(1) { transition-delay: 0s; }
.slide-block p:nth-child(2) { transition-delay: 0.15s; }
.slide-block p:nth-child(3) { transition-delay: 0.30s; }
.slide-block p:nth-child(4) { transition-delay: 0.45s; }

/* =========================================================================
   5. FEATURES SECTION
   ========================================================================= */
.features-section {
    max-width: 1200px;
    margin: 8rem auto 5rem auto;
    padding: 0 2rem;
}

.features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.features-title-box {
    max-width: 500px;
}

.features-title-box h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-top: 1rem;
    line-height: 1.2;
}

.features-desc {
    max-width: 300px;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: right;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
}

.feature-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #222;
    color: #666;
    cursor: pointer;
    transition: color 0.25s ease;
    font-size: 1.1rem;
}

.feature-item:hover, .feature-item.active {
    color: #ffffff;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-mockup {
    background-color: #161618;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding-top: 40px;
}

.feature-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #1f1f22;
    border-bottom: 1px solid #2a2a2a;
}

/* =========================================================================
   6. MODAL FLOATING (RIWAYAT PEMBARUAN & DISCLAIMER) — GPU ACCELERATED
   ========================================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 14, 24, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.update-box {
    background: #131926;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    position: relative;
    width: 70%;
    max-width: 900px;
    height: 75vh;
    padding: 40px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.modal-overlay.show .update-box {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.update-box h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 14px;
}

.update-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 12px;
    text-align: left;
}

.update-content::-webkit-scrollbar { width: 7px; }
.update-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); border-radius: 10px; }
.update-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); border-radius: 10px; }
.update-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.45); }

.update-version {
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.32);
    padding: 20px;
    border-radius: 12px;
}

.update-version h3 {
    font-size: 22px;
    color: #ff6b6b;
    margin-bottom: 14px;
}

.update-version ul {
    list-style-type: none;
    padding-left: 6px;
}

.update-version ul li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    opacity: 0.92;
}

.update-version ul li::before {
    content: "•";
    color: #5586ff;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* =========================================================================
   7. TOAST NOTIFIKASI
   ========================================================================= */
.home-toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translate3d(-50%, 20px, 0);
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.home-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate3d(-50%, 0, 0);
}

/* =========================================================================
   8. RESPONSIVE TABLET & MOBILE
   ========================================================================= */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .features-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .features-desc { text-align: left; }
    .features-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.1rem 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    nav .btn {
        padding: 0.45rem 0.95rem;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 100svh;
        padding: 5.5rem 1.25rem 3rem 1.25rem;
    }

    .hero .tag {
        font-size: 0.72rem;
        margin-bottom: 1.1rem;
    }

    .hero h1 {
        font-size: 1.95rem;
        line-height: 1.25;
        max-width: 100%;
        margin-bottom: 0.85rem;
    }

    .hero p {
        font-size: 0.88rem;
        line-height: 1.5;
        max-width: 95%;
        margin-bottom: 1.6rem;
    }

    .hero-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .client-logos {
        gap: 1.15rem;
        padding: 2.25rem 1rem;
    }

    .client-logos span {
        font-size: 0.95rem;
    }

    .text-slider-container {
        min-height: 240px;
        padding: 0 1.4rem;
    }

    .slide-block {
        width: calc(100% - 2.8rem);
        gap: 14px;
    }

    .slide-block p {
        font-size: 1.32rem;
        line-height: 1.4;
    }

    .features-section {
        margin: 3.5rem auto 3rem auto;
        padding: 0 1.25rem;
    }

    .features-header {
        gap: 0.85rem;
        margin-bottom: 2rem;
    }

    .features-title-box h2 {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-top: 0.4rem;
    }

    .features-desc {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .features-content {
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1rem 0;
        font-size: 0.98rem;
    }

    .feature-mockup {
        height: 260px;
        border-radius: 14px;
    }

    .update-box {
        width: 92%;
        height: 80vh;
        padding: 22px 16px;
        border-radius: 16px;
    }

    .modal-close-btn {
        top: 14px;
        right: 14px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .update-box h2 {
        font-size: 20px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .update-content {
        padding-right: 6px;
    }

    .update-version {
        padding: 14px;
        margin-bottom: 16px;
    }

    .update-version h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .update-version ul li {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
}