:root {
    --bg-dark: #09090b;
    --bg-secondary: #18181b;
    --accent: #535DE0;
    --accent-dark: #535DE0;
    --text-primary: #fafafa;
    --text-muted: #a1a1aa;
    --border: rgba(255,255,255,0.08);
    --card-bg: rgba(24, 24, 27, 0.6);
    --gradient: linear-gradient(135deg, #535DE0 0%, #3a43bd 100%);
}

[lang="en"] .lang-id { display: none; }
[lang="id"] .lang-en { display: none; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .btn-primary, .btn-secondary, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj48ZmlsdGVyIGlkPSJnoiPjhmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    opacity: 0.4;
    pointer-events: none;
    z-index: 999;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.8);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-box {
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img { width: 30px; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switch {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.lang-btn.active {
    background: var(--bg-dark);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Buttons */
.btn-primary-sm {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 140px 6% 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    display: inline-block;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-window {
    width: 100%;
    max-width: 450px;
    background: #0f0f11;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: 0.5s;
}

.app-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.title-bar {
    padding: 12px 16px;
    background: #18181b;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex; gap: 6px; margin-right: 16px;
}
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #27272a; }

.url-bar {
    flex: 1;
    background: #09090b;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 12px;
    font-family: monospace;
}

.app-content { padding: 24px; }

.feature-grid-visual { display: grid; gap: 12px; }

.v-card {
    background: #18181b;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
}

.v-card.highlight {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.float-badge {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    font-family: monospace;
    font-size: 0.9rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}
.float-badge span { color: var(--text-muted); margin-right: 8px; }

.f1 { top: 40px; right: 20px; animation-delay: 0s; }
.f2 { bottom: 60px; left: 0px; animation-delay: 3s; }

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}

.float-animation {
    animation: float 8s ease-in-out infinite;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Features */
.features { background: #0c0c0e; }
.section-padding { padding: 100px 6%; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
}

.f-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.clr-1 { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.clr-2 { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.clr-3 { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.clr-4 { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.feature-box h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
.feature-box p { color: var(--text-muted); line-height: 1.6; }

/* Tutorial */
.tutorial .section-header { margin-bottom: 60px; }

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
}

.step {
    position: relative;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 2;
}

.step-num {
    font-family: 'Space Grotesk';
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    position: absolute;
    top: 10px; right: 20px;
    pointer-events: none;
}

.step h3 { margin-bottom: 12px; font-size: 1.1rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }
.step code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; color: #a5b4fc; font-size: 0.85em; }

.cta-final { text-align: center; margin-top: 80px; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 6% 30px;
    background: #050505;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

footer h4 { margin-bottom: 24px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-primary); }
footer a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; font-size: 0.9rem; transition: 0.2s; }
footer a:hover { color: var(--accent); }

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
    .heroes { grid-template-columns: 1fr; text-align: center; }
    .hero { display: flex; flex-direction: column-reverse; gap: 40px; padding-top: 120px; }
    .hero-content { text-align: center; }
    .hero-desc { margin: 0 auto 30px; }
    .cta-group { justify-content: center; }
    h1 { font-size: 2.5rem; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.modal-close:hover { color: var(--text-primary); }

.modal-body { display: none; }
.modal-body.active { display: block; }

.modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.legal-text h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.legal-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}
