/* Base Reset and Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure no horizontal scrolling on the entire page */
html, body {
    background-color: #0b0b0b; /* Deep dark background */
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 40px);
}

/* Background Glow Effect behind the phone */
.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 145, 66, 0.08) 0%, rgba(255, 255, 255, 0.03) 30%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar - Fixed to top */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(11, 11, 11, 0.85); /* Slight transparency */
    backdrop-filter: blur(12px); /* Blurred glass effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    height: 32px;
    object-fit: contain;
}

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 60;
    padding: 8px;
    margin: -8px;
}

.hamburger svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Nav Menu Container */
.nav-menu {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    margin-left: 40px;
}

.nav-center {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.chevron {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.nav-right {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-nav {
    padding: 8px 20px;
    border: 1px solid #333;
    color: #fff;
}

.btn-outline-nav:hover {
    border-color: #666;
}

.btn-filled-nav {
    padding: 8px 20px;
    background-color: #1f1f1f;
    border: 1px solid #333;
    color: #fff;
}

.btn-filled-nav:hover {
    background-color: #2a2a2a;
}

.btn-white {
    background-color: #ffffff;
    color: #000000;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-white:hover {
    background-color: #e6e6e6;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #444;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: #888;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px;
    padding-top: 120px; /* Offset for fixed navbar */
    min-height: 100vh;
}

.hero-col {
    flex: 1;
}

/* Left Column */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-right: 20px;
    padding-left: 55px;
}

.left-col h1 {
    font-size: 3.0rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-group {
    display: flex;
    gap: 16px;
}

/* Center Column */
.center-col {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.phone-img {
    max-width: 100%;
    height: auto;
    max-height: 85vh; 
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8));
}

/* Right Column */
.right-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 40px;
}

.trust-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.trust-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-header h2 {
    font-size: 2.0rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
}

.info-block p {
    color: #999999;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
}

/* =========================================
   Content Sections (Download / Games / Prestasi / FAQ)
   ========================================= */
:root {
    --surface: #141414;
    --surface-2: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-muted: #999999;
    --accent: #ff9142;
    --accent-soft: rgba(255, 145, 66, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-desc a,
.section-lead a,
.callout a,
.text-block a {
    color: #ff9a00;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.hero-desc a:hover,
.section-lead a:hover,
.callout a:hover,
.text-block a:hover {
    color: var(--accent);
}

.left-col {
    gap: 20px;
}

.left-col .cta-group {
    margin-top: 16px;
}

.trust-header h2 {
    font-size: 1.6rem;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.btn-contact:hover {
    filter: brightness(1.1);
}

.btn-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-telegram {
    background-color: #229ED9;
}

/* Floating WhatsApp/Telegram contact stack (mobile) */
.fab-stack {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 55;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fab-stack.fab-stack--hidden {
    transform: translateX(80px);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .fab-stack {
        transition: none;
    }
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.fab:hover {
    transform: scale(1.06);
}

.fab svg {
    width: 26px;
    height: 26px;
}

.fab-whatsapp {
    background-color: #25D366;
}

.fab-telegram {
    background-color: #229ED9;
}

@media (max-width: 992px) {
    .fab-stack {
        display: flex;
    }
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 48px;
}

.section-head {
    margin-bottom: 48px;
}

.section-head h1,
.section-head h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 16px;
}

.intro-line {
    max-width: 1230px;
    margin: 0 auto 0;
    padding: 0 48px;
    text-align: center;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card-note {
    color: #b3b3b3 !important;
}

.card a {
    color: var(--accent);
}

/* Download cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.device-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.device-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.device-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.meta-list li {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #e5e5e5;
}

.meta-list li span {
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
}

.card-cta {
    width: 100%;
    margin-top: 16px;
}

.callout {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    margin-top: 32px;
}

.legal-doc h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 40px 0 14px;
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-doc .dash-list {
    margin-bottom: 16px;
}

.legal-doc strong {
    color: #ffffff;
}

.legal-doc .last-updated {
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 40px;
}

/* Steps */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.step {
    flex: 1;
    min-width: 160px;
    padding-top: 20px;
    border-top: 1px solid var(--border-strong);
}

.step-num {
    display: block;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.text-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-block p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Games */
.game-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.game-pill {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: #e5e5e5;
    font-size: 0.9rem;
}

/* Factor / issue lists */
.factor-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 12px;
}

.dash-list li {
    color: #e5e5e5;
    font-size: 0.92rem;
    padding-left: 24px;
    position: relative;
}

.dash-list li::before {
    content: "\2014";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
}

/* Compare block */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.compare-card {
    background: var(--surface-2);
    padding: 24px;
}

.compare-card--accent {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
}

.cta-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    font-size: 1rem;
    padding: 20px 24px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .chevron-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-item[open] .chevron-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 24px 20px;
    margin-top: -4px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 48px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 32ch;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    color: #666666;
    font-size: 0.82rem;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================
   Sub-page components (Android / iOS guides)
   ========================================= */
.hero--compact {
    min-height: auto;
}

.hero--compact h1 {
    font-size: 3.4rem;
}

.cta-inline {
    margin-bottom: 32px;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.spec-table thead th {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    background: var(--surface);
}

.spec-table tbody td:first-child {
    color: #ffffff;
    font-weight: 500;
}

.spec-table tbody td {
    color: var(--text-muted);
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-detail {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.step-detail:first-child {
    padding-top: 0;
}

.step-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-detail .step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.step-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.step-body p:last-child {
    margin-bottom: 0;
}

.path-pill {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 14px;
    font-family: 'Courier New', monospace;
    color: #e5e5e5 !important;
    font-size: 0.88rem;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e5e5e5;
    font-size: 0.98rem;
}

.check-list li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.check-list li a {
    color: var(--accent);
}

/* =========================================
   Responsive Adjustments (Tablet)
   ========================================= */
@media (max-width: 1200px) {
    .left-col h1 { font-size: 4rem; }
    .hero { flex-direction: column; text-align: center; gap: 60px; padding: 120px 24px 40px 24px; }
    .right-col { height: auto; gap: 40px; padding-left: 0; align-items: center; }
    .trust-header { justify-content: center; }
    .info-block { margin-left: 0; justify-content: center; text-align: center; }
    .trust-list { align-items: center; }
    .trust-list li { justify-content: center; }
    .cta-group { justify-content: center; }
    .contact-buttons { justify-content: center; }
    .hero-desc { max-width: none; margin-left: auto; margin-right: auto; }

    .section { padding: 80px 24px; }
    .section-head { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
}

@media (max-width: 992px) {
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 16px 24px;
    }

    .nav-left {
        justify-self: start;
    }

    .hamburger {
        display: block; /* Show hamburger */
        justify-self: end;
    }

    /* Mobile Dropdown Menu */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-left: 0;
        background: #0b0b0b;
        flex-direction: column;
        padding: 24px;
        gap: 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden */
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Visible */
    }

    .nav-center {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .nav-center .nav-link {
        width: 100%;
        min-height: 44px;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-outline-nav, .btn-filled-nav {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }

    /* Jom Mula is physically moved here by JS on mobile, so this targets the
       actual <a id="jom-mula-btn"> element — only one node exists at a time. */
    .navbar > #jom-mula-btn {
        justify-self: center;
        width: auto;
        min-height: 44px;
        padding: 8px 20px;
        transform: translateX(12px);
    }

    .card-grid,
    .compare-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================
   Mobile Version Fix (Phone)
   ========================================= */
@media (max-width: 768px) {
    /* Dynamic font sizing to prevent long words breaking layout */
    .left-col h1 { 
        font-size: 7vw; 
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    /* Adjust spacing */
    .hero { 
        padding: 100px 16px 40px 16px; 
    }
    
    /* Constrain the background glow so it doesn't push width */
    .bg-glow {
        width: 100vw;
        max-width: 100%;
    }

    .navbar {
        padding: 16px 20px;
    }

    .right-col {
        gap: 24px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-group .btn {
        width: 100%;
    }

    .section { padding: 64px 16px; }
    .intro-line { padding: 0 16px; margin-top: 48px; }
    .cta-inline { text-align: center; }
    .steps { flex-direction: column; }
    .site-footer { padding: 48px 16px 24px; }
}

@media(max-width:768px){
    .left-col{
        padding-left:0px;
        padding-right:0px;
    }
}