/* ==========================================================================
   COMMON DESIGN SYSTEM & CORE TOKENS
   Theme: Vibrant Orange & Dark Slate (Corporate Luxury iGaming)
   ========================================================================== */

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

:root {
    /* Brand Orange Spectrum */
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #fb923c;
    --primary-glow: rgba(249, 115, 22, 0.28);
    --primary-glow-strong: rgba(249, 115, 22, 0.45);
    --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --primary-gradient-alt: linear-gradient(135deg, #ff8c38 0%, #f97316 50%, #ea580c 100%);

    /* Gold / Amber Accents */
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

    /* Dark Neutrals (Hero, Header, Footer) */
    --dark-bg: #0e1422;
    --dark-surface: #141c2e;
    --dark-card: #192338;
    --dark-card-hover: #1e2a44;
    --border-dark: #222e47;

    /* Light Neutrals (Sections) */
    --light-bg: #ffffff;
    --light-section: #f8fafc;
    --light-card: #ffffff;
    --border-light: #e2e8f0;

    /* Text Colors */
    --text-dark: #0f172a;
    --text-dark-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --text-light-muted: #94a3b8;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-orange: 0 8px 24px rgba(249, 115, 22, 0.35);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Dark Mode Token Overrides
   ========================================================================== */
[data-theme="dark"] {
    --light-bg: #090d16;
    --light-section: #0e1422;
    --light-card: #141c2e;
    --border-light: #1e2a44;
    --text-dark: #f8fafc;
    --text-dark-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Base Resets & Global Styles
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
}

/* ==========================================================================
   Typography System
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p {
    font-size: 0.975rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.highlight {
    color: var(--primary);
}

.badge-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 12px;
}

.badge-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ==========================================================================
   Header & Navigation (Sleek Dark Slate Bar matching Reference)
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    height: 74px;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.logo img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.logo-text .brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-body);
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-links li a:hover,
.nav-links li.active a {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
}

.btn-login {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-register,
.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
    border: 1.5px solid var(--primary);
}

.btn-register:hover,
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-links__mobile-only {
    display: none;
}

/* Theme Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
    color: #f59e0b;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Mobile Nav Styles */
@media (max-width: 980px) {
    nav {
        padding: 0 20px;
        height: 66px;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        border-bottom: 2px solid var(--primary);
        padding: 20px 24px;
        gap: 6px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 12px 14px;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-dark);
    }

    .nav-links__mobile-only {
        display: block;
        margin-top: 10px;
    }

    /* Keep CTA Buttons (Masuk & Daftar) and Theme Toggle visible on mobile */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-actions .btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        letter-spacing: 0.02em;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 0 12px;
        height: 60px;
        gap: 6px;
    }

    .logo img {
        height: 32px;
        max-width: 100px;
    }

    .logo-text {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn {
        padding: 6px 10px;
        font-size: 0.74rem;
    }

    .nav-actions .btn-login {
        padding: 5px 8px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .hamburger {
        font-size: 1.35rem;
    }
}

@media (max-width: 380px) {
    nav {
        padding: 0 8px;
        gap: 4px;
    }

    .nav-actions {
        gap: 4px;
    }

    .nav-actions .btn {
        padding: 5px 7px;
        font-size: 0.68rem;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
    }

    .logo img {
        height: 28px;
        max-width: 85px;
    }
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    .container {
        padding: 0 16px;
    }
}

/* Section Header Shared Component */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-head h2 {
    color: var(--text-dark);
    margin-bottom: 14px;
}

.section-head p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.section-head.section-head--white h2 {
    color: #ffffff;
}

.section-head.section-head--white p {
    color: rgba(255, 255, 255, 0.85);
}

.section-head.section-head--white .badge-eyebrow {
    color: #ffffff;
}
.section-head.section-head--white .badge-eyebrow::before {
    background: #ffffff;
}

/* ==========================================================================
   3-Box Contact Strip (Directly matching Reference Image)
   ========================================================================== */
.contact-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 20;
}

.contact-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.4);
}

.contact-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
}

.contact-card__info {
    display: flex;
    flex-direction: column;
}

.contact-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.contact-card__value {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .contact-strip {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
}

/* ==========================================================================
   Footer Component (Matching Reference Image)
   ========================================================================== */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 90px 0 30px;
    position: relative;
    border-top: 1px solid var(--border-dark);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
    color: var(--text-light-muted);
    font-size: 0.925rem;
    line-height: 1.7;
    margin: 18px 0 24px;
    max-width: 360px;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--primary-light);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-subscribe p {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.subscribe-form input {
    background: var(--dark-surface);
    border: 1px solid var(--border-dark);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.subscribe-form input:focus {
    border-color: var(--primary);
}

.subscribe-form .btn {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    font-size: 0.85rem;
    color: var(--text-light-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: var(--text-light-muted);
}

@media (max-width: 980px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Dark Mode Comprehensive Overrides
   ========================================================================== */
[data-theme="dark"] body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

[data-theme="dark"] .about-section,
[data-theme="dark"] .blog-section,
[data-theme="dark"] .payment-section,
[data-theme="dark"] .faq-section,
[data-theme="dark"] .rg-section {
    background-color: var(--light-bg);
}

[data-theme="dark"] .why-section,
[data-theme="dark"] .bonus-section,
[data-theme="dark"] .gallery-section,
[data-theme="dark"] .testimonials-section {
    background-color: var(--light-section);
    border-color: var(--border-light);
}

[data-theme="dark"] .why-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .bonus-card,
[data-theme="dark"] .payment-box,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .rg-box,
[data-theme="dark"] .show-info__text,
[data-theme="dark"] .card {
    background-color: var(--light-card);
    border-color: var(--border-light);
    color: var(--text-dark);
}

[data-theme="dark"] .payment-method-item,
[data-theme="dark"] .rg-tool {
    background: var(--light-section);
    border-color: var(--border-light);
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .faq-toggle-icon {
    background: #192338;
    color: var(--primary-light);
}

[data-theme="dark"] .testimonial-author {
    color: var(--text-dark);
    border-top-color: var(--border-light);
}

[data-theme="dark"] .about-image-card {
    background: var(--light-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .hex-card {
    background: var(--light-card);
    color: var(--text-dark);
}

[data-theme="dark"] .hex-card h3,
[data-theme="dark"] .blog-body h3,
[data-theme="dark"] .why-card h3,
[data-theme="dark"] .bonus-card h3,
[data-theme="dark"] .gallery-card h3,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .testimonial-card h3,
[data-theme="dark"] .show-info__text h2,
[data-theme="dark"] .card__body h3,
[data-theme="dark"] .about-content h2,
[data-theme="dark"] .why-left h2,
[data-theme="dark"] .blog-head-bar h2,
[data-theme="dark"] .section-head h2,
[data-theme="dark"] .list-section__header h2 {
    color: #ffffff;
}

[data-theme="dark"] .why-icon-circle {
    background: rgba(249, 115, 22, 0.12);
}

[data-theme="dark"] .about-content p,
[data-theme="dark"] .why-left p,
[data-theme="dark"] .show-info__content {
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .ad-slot-box {
    border-color: var(--border-light);
}

