/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #111;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1821 / 864;
    background-color: #0a0a0a;
    background-image: url('/assets/banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark blurred scrim on the left, clearing to the untouched image on the right */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.55) 30%,
        rgba(0, 0, 0, 0.2) 55%,
        rgba(0, 0, 0, 0) 78%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 85%);
    mask-image: linear-gradient(to right, #000 0%, #000 31%, transparent 85%);
    pointer-events: none;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 50px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    background-color: rgba(10, 10, 10, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    z-index: 101; 
}

.header-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101; 
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Secondary page links (Tentang Kami / Terma & Syarat / Dasar Privasi) declutter the
   desktop header — still reachable there via the footer nav — but stay in the mobile
   full-screen menu, where there's room and no footer in view yet. */
.nav-links a.nav-secondary {
    display: none;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a[aria-current="page"] {
    color: #f1c40f;
}

.btn-contact {
    background-color: #f1c40f;
    color: #1a1a1a !important; 
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn-contact:hover {
    background-color: #f3d03b;
}

/* Bottom Content Area */
.bottom-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.more-products {
    display: inline-block;
    text-decoration: none;
    color: #cccccc;
    font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.875rem);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.more-products strong {
    color: #f1c40f;
}

.more-products .divider {
    margin: 0 5px;
    color: #666;
}

.main-heading {
    font-size: clamp(12px, 35px, 40px);
    line-height: 1.1;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -1px;
}

/* Social Buttons Container */
.social-buttons {
    display: flex;
    gap: 20px; 
    align-items: center;
}

/* Individual Button Styling */
.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
    padding: 15px 30px; 
    border-radius: 40px; 
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.75rem, 0.65rem + 1.3vw, 1.0625rem);
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.social-btn svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.telegram {
    background-color: #229ED9;
}
.telegram:hover {
    background-color: #1c88ba;
}

.whatsapp {
    background-color: #25D366;
    position: relative;
    overflow: visible;
}
.whatsapp:hover {
    background-color: #20b858;
}

/* Floating register badge: fixed to the viewport at all times, above the
   mobile sticky-cta bar's reach; pops in once, then gives a periodic shake
   to draw the eye. */
.floating-badge {
    position: fixed;
    right: 20px;
    bottom: 281px;
    z-index: 300;
    display: block;
    line-height: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    animation:
        badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        badge-shake 2.8s ease-in-out 0.6s infinite;
}

.floating-badge-img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

@keyframes badge-pop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes badge-shake {
    0%, 22%, 100% { transform: rotate(0deg); }
    4% { transform: rotate(-14deg); }
    8% { transform: rotate(11deg); }
    12% { transform: rotate(-9deg); }
    16% { transform: rotate(6deg); }
    20% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-badge {
        animation: none;
    }
}

/* Hero subtext + primary CTA */
.hero-subtext {
    max-width: 520px;
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(0.8125rem, 0.77rem + 0.3vw, 0.9375rem);
    line-height: 1.6;
}

/* Read-more toggle: only relevant in the 768–1089px range below, hidden elsewhere. */
.hero-subtext-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    color: #f1c40f;
    font-size: clamp(0.8125rem, 0.77rem + 0.3vw, 0.9375rem);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-subtext-toggle:hover {
    color: #f3d03b;
}

/* Tablet band: hero-subtext gets cramped next to the social buttons, so truncate
   it to 2 lines with a click-to-expand toggle instead of letting it wrap tall.
   Starts above the mobile cutoff (998px) — mobile stacks the text full-width
   instead, so no truncation is needed there. */
@media screen and (min-width: 999px) and (max-width: 1089px) {
    .hero-subtext {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    .hero-subtext.expanded {
        display: block;
        overflow: visible;
    }

    .hero-subtext:not(.expanded) + .hero-subtext-toggle {
        display: inline-block;
    }
}

.cta-primary {
    background-color: #f1c40f;
    color: #1a1a1a;
    font-weight: 700;
}

.cta-primary:hover {
    background-color: #f3d03b;
}

/* ===== Content Sections ===== */
main {
    background-color: #0d0d0d;
    color: #cfcfcf;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px;
}

.section {
    padding: 70px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section:nth-child(even) {
    background-color: #131313;
}

.section-title {
    font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-lead {
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    line-height: 1.7;
    margin-bottom: 24px;
    color: #cfcfcf;
}

/* Simple content pages (Tentang Kami, Terma & Syarat, Dasar Privasi) — no full hero,
   so the first section needs extra top clearance to clear the fixed navbar. */
.page-header-section {
    padding-top: 160px;
}

.page-title {
    font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.inline-link {
    color: #f1c40f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inline-link:hover {
    color: #f3d03b;
}

.section p {
    line-height: 1.7;
    margin-bottom: 14px;
}

.note {
    font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    color: #999999;
    line-height: 1.6;
    margin: 16px 0;
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.plain-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.6;
    max-width: 720px;
}

.plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f1c40f;
}

/* File info table */
.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.file-table th,
.file-table td {
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
}

.file-table th {
    color: #f1c40f;
    font-weight: 600;
    background-color: #1a1a1a;
}

.file-table td {
    color: #dddddd;
}

.file-table tr:last-child td {
    border-bottom: none;
}

/* Platform tabs */
.platform-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #cccccc;
    font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background-color: #f1c40f;
    color: #1a1a1a;
    border-color: #f1c40f;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 40px;
    background-color: #f1c40f;
    color: #1a1a1a;
    font-weight: 700;
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.install-col {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
}

.install-col h3 {
    color: #ffffff;
    font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
    margin-bottom: 18px;
}

.step-list {
    padding-left: 20px;
    margin-bottom: 16px;
}

.step-list li {
    line-height: 1.7;
    margin-bottom: 10px;
    color: #cfcfcf;
}

.step-list li strong {
    color: #ffffff;
}

/* Login cards */
.login-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.login-card {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.login-card h3 {
    color: #f1c40f;
    font-size: clamp(0.9375rem, 0.87rem + 0.35vw, 1.0625rem);
    margin-bottom: 10px;
}

.login-card p {
    font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    color: #cfcfcf;
    margin-bottom: 0;
}

/* App preview screenshots */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.preview-card {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
}

.preview-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.preview-card figcaption {
    padding: 16px 18px;
    font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    color: #cfcfcf;
    line-height: 1.5;
}

.preview-card figcaption strong {
    color: #f1c40f;
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.game-card {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    color: #eeeeee;
    font-weight: 600;
    font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.game-card:hover {
    border-color: #f1c40f;
    transform: translateY(-3px);
}

.tips-box {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
}

.tips-box h3 {
    color: #ffffff;
    font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
    margin-bottom: 12px;
}

/* FAQ / Troubleshoot accordions */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: #f1c40f;
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
    font-weight: 400;
    margin-left: 16px;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p,
.faq-item .plain-list {
    margin-top: 14px;
}

/* Contact section */
.contact-list {
    margin-bottom: 30px;
}

.hours-text {
    font-weight: 600;
    color: #ffffff;
    margin-top: 20px;
}

/* Footer */
.site-footer {
    background-color: #0a0a0a;
    padding: 40px 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-nav a[aria-current="page"] {
    color: #f1c40f;
}

.footer-disclaimer {
    font-size: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
    line-height: 1.7;
    color: #888888;
    max-width: 800px;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem);
    color: #666666;
}

/* Mobile sticky CTA bar */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background-color: rgba(17, 17, 17, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-btn {
    flex: 1;
    text-align: center;
    background-color: #f1c40f;
    color: #1a1a1a;
    font-weight: 700;
    font-size: clamp(0.875rem, 3vw, 0.9375rem);
    padding: 14px 0;
    border-radius: 30px;
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-icon-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
}

.sticky-icon-btn[aria-label="WhatsApp"] {
    background-color: #25D366;
}

.sticky-icon-btn[aria-label="Telegram"] {
    background-color: #229ED9;
}

/* Mobile Responsiveness (extended to 998px: below this width the layout goes
   straight to the mobile treatment instead of an intermediate tablet state) */
@media screen and (max-width: 998px) {
    /* Fixed-height hero on mobile: the box size no longer depends on viewport width,
       so only the (already fluid clamp()) text shrinks at narrow widths — it can't
       overflow the box, and the banner stays a normal cover background inside it. */
    .hero-section {
        aspect-ratio: auto;
        height: 640px;
        overflow: hidden;
    }

    /* No side-by-side text/image split on mobile (stacked layout instead),
       so the scrim mask covers the full width — blur applies everywhere
       instead of just fading in from the left. */
    .hero-section::before {
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 100%, transparent 85%);
        mask-image: linear-gradient(to right, #000 0%, #000 100%, transparent 85%);
    }

    .navbar {
        padding: 20px;
    }

    .header-logo {
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98); 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: clamp(1.25rem, 1rem + 3vw, 1.625rem);
    }

    .nav-links a.nav-secondary {
        display: block;
    }

    /* Numbered badges for the full-screen mobile menu — a small editorial touch
       that reinforces the menu's sequence; desktop nav stays plain. */
    .nav-links {
        counter-reset: navindex;
    }

    .nav-links a:not(.btn-contact) {
        counter-increment: navindex;
        display: inline-flex;
        align-items: center;
        gap: 16px;
    }

    .nav-links a:not(.btn-contact)::before {
        content: counter(navindex, decimal-leading-zero);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        border: 1px solid rgba(241, 196, 15, 0.5);
        border-radius: 50%;
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.6875rem;
        font-weight: 600;
        color: #f1c40f;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-links a[aria-current="page"]::before {
        background-color: #f1c40f;
        border-color: #f1c40f;
        color: #1a1a1a;
    }

    .bottom-content {
        left: 20px;
        right: 20px;
        bottom: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .hero-subtext {
        margin-top: 20px;
    }

    .social-buttons {
        align-self: flex-start;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .social-btn {
        padding: 12px 8px;
        gap: 6px;
    }

    .floating-badge {
        right: 14px;
        bottom: calc(426px + env(safe-area-inset-bottom));
    }

    .floating-badge-img {
        width: 52px;
        height: 52px;
    }

    .social-btn.cta-primary {
        order: 2;
        flex: 1 1 100%;
    }

    .social-btn.telegram,
    .social-btn.whatsapp {
        order: 1;
        flex: 1 1 calc(50% - 5px);
    }

    .social-btn svg {
        width: 18px;
        height: 18px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 50px 0;
    }

    .page-header-section {
        padding-top: 110px;
    }

    .login-cards {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .file-table th,
    .file-table td {
        padding: 12px 14px;
    }

    .sticky-cta {
        display: flex;
    }

    .site-footer {
        padding-bottom: calc(40px + 68px);
    }
}