/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid var(--primary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--text);
}

.btn-secondary:hover {
    background: var(--text);
    color: white;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== Code Preview ===== */
.code-preview {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.terminal-header {
    background: #1f2937;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #374151;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4B5563;
}

.terminal-dots span:nth-child(1) { background: #EF4444; }
.terminal-dots span:nth-child(2) { background: #F59E0B; }
.terminal-dots span:nth-child(3) { background: #10B981; }

.terminal-header span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.code-preview pre {
    padding: 2rem;
    margin: 0;
    overflow-x: auto;
    text-align: left;
}

.code-preview code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #E5E7EB;
}

.code-preview .comment { color: #6B7280; }
.code-preview .keyword { color: #F59E0B; }
.code-preview .success { color: #10B981; }

/* ===== Features Section ===== */
.features {
    padding: 6rem 0;
    background: var(--bg-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Quick Start Section ===== */
.quickstart {
    padding: 6rem 0;
}

.quickstart-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quickstart-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.quickstart-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.quickstart-features {
    margin-bottom: 2rem;
}

.quickstart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quickstart-item svg {
    flex-shrink: 0;
}

.quickstart-item span {
    color: var(--text-muted);
}

/* ===== Stats Section ===== */
.stats {
    padding: 4rem 0;
    background: var(--bg-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== CTA Section ===== */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Index Responsive ===== */
@media (max-width: 1024px) {
    .quickstart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 2rem;
    }

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

    .hero-title br {
        display: none;
    }

    .hero-title .gradient-text {
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: row;
        gap: 0.75rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .code-preview {
        max-width: 100%;
    }

    .code-preview pre {
        padding: 1.25rem;
    }

    .code-preview code {
        font-size: 0.8rem;
        line-height: 1.6;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
