/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent-primary: #fbbf24;
    --accent-secondary: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --accent-alt: #22d3ee;
    --accent-alt-gradient: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --code-bg: #0d0d14;
    --shadow-glow: 0 0 60px rgba(251, 191, 36, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== Navigation ===== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-github {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.btn-github:hover {
    background: var(--card-hover);
    border-color: var(--accent-primary);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 40px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-gradient);
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--accent-primary);
}

.hero-install {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--code-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.hero-install code {
    color: var(--accent-primary);
    font-size: 1rem;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--accent-primary);
}

.hero-code {
    padding: 0 40px 60px;
    display: flex;
    justify-content: center;
}

.code-window {
    background: var(--code-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27ca40;
}

.code-title {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.code-content {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Code Syntax Highlighting */
.kw {
    color: #c792ea;
}

.fn {
    color: #82aaff;
}

.str {
    color: #c3e88d;
}

.num {
    color: #f78c6c;
}

.cm {
    color: #546e7a;
}

.tp {
    color: #ffcb6b;
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-icon-svg {
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.feature-icon-svg svg {
    stroke: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== Installation Section ===== */
.installation {
    padding: 120px 0;
}

.install-steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.install-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #000;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.code-block {
    padding: 14px 20px;
    background: var(--code-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.code-block code {
    color: var(--accent-alt);
}

/* ===== Usage Section ===== */
.usage {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.usage-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
}

.tab-panel {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.tab-panel.active {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.panel-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.panel-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.panel-info ul {
    list-style: none;
}

.panel-info li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.panel-info code {
    background: var(--code-bg);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-alt);
}

.panel-code {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    overflow-x: auto;
}

.panel-code pre {
    margin: 0;
    line-height: 1.7;
}

/* ===== Roadmap Section ===== */
.roadmap {
    padding: 120px 0;
}

.roadmap-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.roadmap-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.roadmap-marker {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
    z-index: 1;
}

.roadmap-item.completed .roadmap-marker {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #000;
}

.roadmap-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.roadmap-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.roadmap-status {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(39, 202, 64, 0.15);
    color: #27ca40;
    font-size: 0.8rem;
    border-radius: 50px;
}

.roadmap-status.upcoming {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-primary);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-license {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== PraboGo Section ===== */
.prabogo {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.prabogo-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.prabogo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.prabogo-info>p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.prabogo-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.prabogo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.prabogo-feature svg {
    color: var(--accent-primary);
    stroke: var(--accent-primary);
    flex-shrink: 0;
}

.prabogo-code .code-window {
    max-width: 100%;
}

.prabogo-code .code-content {
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        justify-content: center;
    }

    .hero-code {
        padding: 0 20px 40px;
    }

    .tab-panel.active {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .prabogo-content {
        grid-template-columns: 1fr;
    }
}