:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-color: #00c805;
    --accent-hover: #00a004;
    --accent-subtle: #e6f9e6;
    --dark-card: #090d16;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

code, .mono {
    font-family: var(--font-mono);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 72px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-name .dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icons a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.mobile-socials {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background-color: var(--accent-subtle);
    border: 1px solid rgba(0, 200, 5, 0.2);
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--accent-hover);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #005a02 0%, #00c805 50%, #72ea75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--text-primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-hover);
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 960px;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contract-section { padding: 60px 0; }
.contract-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.status-live {
    background-color: var(--accent-subtle);
    color: var(--accent-hover);
    border: 1px solid #86efac;
}

.pulse-ring-live {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.7);
    animation: pulse-live 2s infinite;
}

.chain-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background-color: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.contract-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.ca-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
}

.ca-text-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ca-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ca-code {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-all;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-copy:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.section-header { margin-bottom: 50px; }
.section-header.center { text-align: center; }

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 8px;
    display: block;
}

.section-header h2 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.architecture-section, .tokenomics-section, .docs-section { padding: 90px 0; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.tech-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.tech-card.active-card {
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px -10px rgba(0, 200, 5, 0.12);
}

.tech-icon {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-hover);
    background-color: var(--accent-subtle);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-card h4 { font-size: 1.25rem; margin-bottom: 12px; }
.tech-card p { color: var(--text-secondary); font-size: 0.925rem; margin-bottom: 20px; }
.tech-list { list-style: none; }
.tech-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}
.tech-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.tokenomics-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; }
.token-spec-box, .distribution-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }

.dist-bar-wrapper {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: var(--border-color);
}
.dist-bar { height: 100%; transition: opacity var(--transition-fast); }
.dist-bar:hover { opacity: 0.85; }

.dist-ecosystem { background-color: #00c805; }
.dist-dev { background-color: #0d9488; }
.dist-treasury { background-color: #0284c7; }
.dist-public { background-color: #6366f1; }
.dist-liquidity { background-color: #f59e0b; }

.legend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.color-dot { width: 10px; height: 10px; border-radius: 50%; }
.color-dot.ecosystem { background-color: #00c805; }
.color-dot.dev { background-color: #0d9488; }
.color-dot.treasury { background-color: #0284c7; }
.color-dot.public { background-color: #6366f1; }
.color-dot.liquidity { background-color: #f59e0b; }

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.docs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.doc-tab-btn {
    text-align: left;
    background: none;
    border: none;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.doc-tab-btn:hover { background-color: var(--bg-secondary); color: var(--text-primary); }
.doc-tab-btn.active { background-color: var(--accent-subtle); color: var(--accent-hover); font-weight: 600; }

.docs-content-area { padding: 12px 0; overflow-x: hidden; }
.doc-panel { display: none; }
.doc-panel.active { display: block; animation: fadeIn 0.3s ease; }
.doc-panel h3 { font-size: 1.4rem; margin-bottom: 16px; }
.doc-panel p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }

.code-preview {
    background-color: var(--dark-card);
    color: #f8fafc;
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 16px;
}

.spec-table-container { overflow-x: auto; }
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
    margin-top: 16px;
    min-width: 500px;
}
.spec-table th, .spec-table td { padding: 12px; border-bottom: 1px solid var(--border-color); }
.spec-table th { background-color: var(--bg-secondary); font-weight: 600; }

.footer { border-top: 1px solid var(--border-color); padding: 80px 0 40px 0; background-color: var(--bg-secondary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.875rem; margin-top: 12px; max-width: 280px; }

.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 6px; }
.footer-links-col a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-links-col a:hover { color: var(--accent-color); }

.float-anim { animation: floating 4s ease-in-out infinite; }

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 200, 5, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-motion { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.section-motion.visible { opacity: 1; transform: translateY(0); }

/* --- AI AGENTS POST SECTION STYLES --- */
.ai-agents-section {
    padding: 90px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.agents-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.agents-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.agent-feature-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all var(--transition-fast);
}

.agent-feature-card:hover {
    border-color: var(--accent-color);
}

.agent-feature-card.active-feature {
    border-color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 10px 20px -5px rgba(0,200,5,0.1);
}

.agent-feature-card h5 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.agent-feature-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
}

.agents-terminal {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-dots span:nth-child(1) { background: #ff5f56; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: auto;
    padding-right: 44px; /* balance out the dots */
}

.terminal-body {
    padding: 24px;
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    background: transparent;
    margin: 0;
}

/* --- TOKENOMICS UPDATE STYLES --- */
.dist-community { background-color: var(--accent-color); }
.color-dot.community { background-color: var(--accent-color); }
.color-dot.zero { background-color: var(--border-hover); }

.launchpad-promo {
    margin-top: 24px;
    padding: 20px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    border: 1px solid #86efac;
    text-align: center;
}

.launchpad-promo p {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.launch-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,200,5,0.2);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablets & Small Laptops */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr; }
    .tokenomics-grid { grid-template-columns: 1fr; }
    .agents-layout { grid-template-columns: 1fr; gap: 30px; }
    
    /* FIX DOCS SIDEBAR UNTUK TABLET/HP */
    .docs-layout { 
        grid-template-columns: 1fr; 
        padding: 20px;
    }
    
    .docs-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 12px;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }
    
    /* Modifikasi Scrollbar pada Docs Mobile */
    .docs-sidebar::-webkit-scrollbar { height: 4px; }
    .docs-sidebar::-webkit-scrollbar-track { background: transparent; }
    .docs-sidebar::-webkit-scrollbar-thumb { background-color: var(--border-hover); border-radius: 10px; }

    .doc-tab-btn { 
        white-space: nowrap; 
        border: 1px solid var(--border-color);
    }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero-title { font-size: 2.25rem; }
    .hero-stats-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
        
    .terminal-body { font-size: 0.75rem; padding: 16px; overflow-x: auto; }
    .social-icons { display: none; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .mobile-socials {
        display: flex;
        gap: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
        width: 100%;
        justify-content: center;
    }

    .mobile-socials a { font-weight: 600; color: var(--accent-color); }

    .ca-box { flex-direction: column; align-items: stretch; }
    .btn-copy { width: 100%; justify-content: center; }
    .ca-text-wrapper { flex-direction: column; align-items: flex-start; }

    .section-header h2 { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .legend-grid { grid-template-columns: 1fr; }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .hero-stats-strip { grid-template-columns: 1fr; }
    .spec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    
.dist-bar-wrapper {
        flex-direction: row !important; /* Memaksa agar tetap mendatar */
        height: 24px !important; /* Membuat tinggi bar ramping dan responsif */
        border-radius: 12px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .dist-bar {
        width: 100% !important;
        height: 100% !important;
    }
    .dist-ecosystem { height: 40%; }
    .dist-dev { height: 20%; }
    .dist-treasury { height: 15%; }
    .dist-public { height: 15%; }
    .dist-liquidity { height: 10%; }
}

/* --- BACKGROUND ANIMATED DATA LINES --- */
.animated-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    display: flex;
    justify-content: space-evenly;
    opacity: 0.5;
}

.animated-lines .line {
    width: 1px;
    height: 100%;
    background: rgba(226, 232, 240, 0.4); /* Warna garis vertikal pudar */
    position: relative;
}

.animated-lines .line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -1px;
    width: 3px;
    height: 25vh;
    background: linear-gradient(to bottom, rgba(0, 200, 5, 0), rgba(0, 200, 5, 1), rgba(0, 200, 5, 0));
    animation: dropDataLine 6s infinite;
    opacity: 0;
    border-radius: 4px;
}

/* Delay dan durasi acak agar terlihat natural */
.animated-lines .line:nth-child(1)::after { animation-delay: 0.5s; animation-duration: 5s; }
.animated-lines .line:nth-child(2)::after { animation-delay: 2.5s; animation-duration: 7s; }
.animated-lines .line:nth-child(3)::after { animation-delay: 1.2s; animation-duration: 6.5s; }
.animated-lines .line:nth-child(4)::after { animation-delay: 4.5s; animation-duration: 5.5s; }
.animated-lines .line:nth-child(5)::after { animation-delay: 1.8s; animation-duration: 8s; }
.animated-lines .line:nth-child(6)::after { animation-delay: 3.2s; animation-duration: 6s; }

@keyframes dropDataLine {
    0% { top: -50%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 150%; opacity: 0; }
}