/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #343a40; /* Dipertahankan */
    --secondary: #ffffff; /* Dipertahankan */
    --bg-color: #343a40; /* Dark mode background */
    --card-bg: #ffffff; /* Dark mode card */
    --text-color: #ffffff; /* Dark mode text */
    --sidebar-bg: #343a40; /* Dipertahankan */
    --border: #ffffff; /* Dipertahankan */
    --light-bg: #ffffff; /* Light mode background */
    --light-card: #343a40; /* Light mode card */
    --light-text: #343a40; /* Light mode text */
    --light-border: #343a40; /* Light mode border */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Bayangan */
    --menu-gradient: linear-gradient(135deg, var(--sidebar-bg) 0%, rgba(52, 58, 64, 0.95) 100%); /* Gradient menu mobile */
}

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-light {
    --bg-color: var(--light-bg);
    --card-bg: var(--light-card);
    --text-color: var(--light-text);
    --sidebar-bg: var(--light-card);
    --border: var(--light-border);
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* Header */
.header {
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 64px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-img:hover .logo-img:hover {
    transform: scale(1.1);
}

.header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
}

.theme-light .header-title {
    color: var(--primary);
}

/* Theme Toggle */
.header-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.header-theme-toggle svg,
.header-theme-toggle .fallback-icon {
    width: 22px;
    height: 22px;
    stroke: var(--secondary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-light .header-theme-toggle svg,
.theme-light .header-theme-toggle .fallback-icon {
    stroke: var(--primary);
}

.header-theme-toggle:hover svg,
.header-theme-toggle:hover .fallback-icon {
    transform: rotate(15deg);
    opacity: 0.9;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    position: relative;
    transition: background 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.mobile-toggle:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 6px;
}

.theme-light .mobile-toggle:focus-visible {
    outline-color: var(--primary);
}

.mobile-toggle .icon {
    width: 22px;
    height: 22px;
    stroke: var(--secondary);
    stroke-width: 2.5;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.theme-light .mobile-toggle .icon {
    stroke: var(--primary);
}

.mobile-toggle[aria-expanded="true"] .icon {
    transform: rotate(90deg);
    opacity: 0.9;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    padding: 20px;
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
    border-right: 1px solid var(--border);
    z-index: 998;
    transition: transform 0.3s ease;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--secondary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.theme-light .sidebar-nav a {
    color: var(--primary);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--secondary);
    color: var(--primary);
}

.theme-light .sidebar-nav a:hover,
.theme-light .sidebar-nav a.active {
    background: var(--primary);
    color: var(--secondary);
}

.sidebar-nav a svg {
    margin-right: 4px;
    width: 16px;
    height: 16px;
    stroke: var(--secondary);
}

.theme-light .sidebar-nav a svg {
    stroke: var(--primary);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    background: var(--menu-gradient);
    position: fixed;
    top: 64px;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 64px);
    z-index: 1001;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav.active::before {
    content: '';
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    
    z-index: -1;
    animation: fadeIn 0.4s ease-in-out;
}

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

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

.mobile-nav:not(.active)::before {
    animation: fadeOut 0.4s ease-in-out;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--secondary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.theme-light .mobile-nav a {
    color: var(--secondary);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--secondary);
    color: var(--primary);
}

.theme-light .mobile-nav a:hover,
.theme-light .mobile-nav a.active {
    background: var(--primary);
    color: var(--secondary);
}

.mobile-nav a svg {
    margin-right: 10px;
    width: 20px; /* Dikurangi dari 24px untuk proporsi */
    height: 20px;
    stroke: var(--secondary);
    stroke-width: 2;
}

.theme-light .mobile-nav a svg {
    stroke: var(--secondary);
}

.mobile-theme-toggle .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 6px;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.theme-light .mobile-theme-toggle .theme-toggle {
    color: var(--secondary);
    border-color: var(--primary);
}

.mobile-theme-toggle .theme-toggle:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--primary);
}

.theme-light .mobile-theme-toggle .theme-toggle:hover {
    background: var(--primary);
    color: var(--secondary);
}

.mobile-theme-toggle .theme-toggle svg,
.mobile-theme-toggle .theme-toggle .fallback-icon {
    margin-right: 10px;
    width: 20px; /* Sesuai dengan link */
    height: 20px;
    stroke: var(--secondary);
}

.theme-light .mobile-theme-toggle .theme-toggle svg,
.theme-light .mobile-theme-toggle .theme-toggle .fallback-icon {
    stroke: var(--secondary);
}

/* Content */
.content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding-top: 64px;
    transition: margin-left 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--primary);
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 32px;
    color: var(--secondary);
    box-shadow: var(--shadow);
}

.theme-light .hero {
    background: var(--light-card);
    color: var(--secondary);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 24px;
}

.hero .btn {
    background: var(--secondary);
    color: var(--primary);
    padding: 12px 24px;
    font-size: 1rem;
}

.theme-light .hero .btn {
    background: var(--primary);
    color: var(--secondary);
}

/* Card */
.card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-color);
}

ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.theme-light .link {
    color: var(--primary);
}

.link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.btn,
.btn-custom {
    display: inline-flex;
    align-items: center;
    background: var(--secondary);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.theme-light .btn,
.theme-light .btn-custom {
    background: var(--primary);
    color: var(--secondary);
}

.btn:hover,
.btn-custom:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-light .btn:hover,
.theme-light .btn-custom:hover {
    background: var(--secondary);
    color: var(--primary);
}

.btn svg,
.btn-custom svg {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    transition: transform 0.3s ease;
}

.theme-light .btn svg,
.theme-light .btn-custom svg {
    stroke: var(--secondary);
}

.btn:hover svg,
.btn-custom:hover svg {
    transform: translateX(3px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: 2px solid var(--border);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--primary);
}

.theme-light .theme-toggle:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--secondary);
}

.theme-toggle svg,
.theme-toggle .fallback-icon {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    stroke: var(--text-color);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover svg,
.theme-toggle:hover .fallback-icon {
    opacity: 0.9;
    transform: rotate(15deg);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    margin-top: 6px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
}

.breadcrumb li + li:before {
    content: '>';
    margin: 0 8px;
    color: var(--text-color);
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.theme-light .breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-color);
}

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

.nav-prev a,
.nav-next a {
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.theme-light .nav-prev a,
.theme-light .nav-next a {
    color: var(--primary);
}

.nav-prev a:hover,
.nav-next a:hover {
    color: var(--primary);
}

.theme-light .nav-prev a:hover,
.theme-light .nav-next a:hover {
    color: var(--secondary);
}

.nav-prev svg,
.nav-next svg {
    width: 16px;
    height: 16px;
    margin: 0 8px;
    stroke: var(--secondary);
    transition: transform 0.3s ease;
}

.theme-light .nav-prev svg,
.theme-light .nav-next svg {
    stroke: var(--primary);
}

.nav-prev a:hover svg {
    transform: translateX(-3px);
}

.nav-next a:hover svg {
    transform: translateX(3px);
}

/* Footer Social Links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.social-link svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.social-link:hover svg {
    stroke: var(--secondary);
}

.theme-light .social-link:hover svg {
    stroke: var(--primary);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.theme-light .footer-links a {
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
}

.theme-light .footer-links a:hover {
    color: var(--secondary);
}

/* Tokenomics Table */
.tokenomics-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.tokenomics-table th,
.tokenomics-table td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
    color: var(--text-color);
}

.tokenomics-table th {
    background: var(--secondary);
    color: var(--primary);
}

.theme-light .tokenomics-table th {
    background: var(--primary);
    color: var(--secondary);
}

/* Responsive Table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tokenomics-table {
    min-width: 600px;
}

/* Form Styles */
.waiting-list-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.theme-light .form-group input:focus,
.theme-light .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 6px rgba(52, 58, 64, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    margin-top: 8px;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    .content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .content {
        margin-left: 0;
        width: 100%;
        padding-top: 56px;
    }
    .header {
        padding: 0 12px;
        height: 56px;
    }
    .mobile-toggle {
        display: block;
    }
    .header-theme-toggle {
        display: none;
    }
    .container {
        padding: 16px 14px;
    }
    .header-title {
        font-size: 1.2rem;
    }
    .logo-img {
        height: 32px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.1rem;
    }
    .card {
        padding: 16px;
    }
    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .nav-prev {
        flex: 0 0 auto;
        text-align: left;
    }
    .nav-next {
        flex: 0 0 auto;
        text-align: right;
        margin-left: auto;
    }
    .nav-prev a,
    .nav-next a {
        font-size: 0.85rem;
    }
    .nav-prev svg,
    .nav-next svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1rem;
    }
    .logo-img {
        height: 28px;
    }
    .mobile-toggle .icon {
        width: 20px;
        height: 20px;
    }
    .mobile-nav {
        width: 100%;
        max-width: none;
    }
    .mobile-nav a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    .mobile-nav a svg {
        width: 18px; /* Lebih kecil untuk layar kecil */
        height: 18px;
    }
    .mobile-theme-toggle .theme-toggle svg,
    .mobile-theme-toggle .theme-toggle .fallback-icon {
        width: 18px;
        height: 18px;
    }
    .container {
        padding: 12px 10px 20px;
    }
    .hero {
        padding: 40px 16px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .btn,
    .btn-custom {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .nav-links {
        font-size: 0.8rem;
        gap: 6px;
    }
    .nav-prev a,
    .nav-next a {
        font-size: 0.8rem;
    }
    .nav-prev svg,
    .nav-next svg {
        width: 12px;
        height: 12px;
    }
}