/* ==================== */
/* Global Styles */
/* ==================== */

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

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --bg-dark: #0f172a;
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-dark: #0f172a;
    --border: #334155;
    --border-dark: #1e293b;
    
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;
    
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ==================== */
/* Navigation */
/* ==================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo code {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-family: var(--font-mono);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-github {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.btn-github:hover {
    background: var(--primary-dark) !important;
}

/* ==================== */
/* Buttons */
/* ==================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.hero-demo {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.terminal-demo {
    background: #1e293b;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 600px;
}

.terminal-header {
    background: #0f172a;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

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

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-align: left;
    overflow-x: auto;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-line.output {
    color: #86efac;
}

.prompt {
    color: #60a5fa;
    margin-right: 0.5rem;
}

.command {
    color: #e2e8f0;
}

.bracket {
    color: #f472b6;
}

.pr {
    color: #a78bfa;
    font-weight: bold;
}

.label {
    color: #60a5fa;
}

.current {
    color: #10b981;
    font-weight: bold;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.hero-cta .btn {
    min-width: 200px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ==================== */
/* Sections */
/* ==================== */

section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* ==================== */
/* Features Section */
/* ==================== */

.features {
    background: #0f172a;
}

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

.feature-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

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

.feature-card p {
    color: var(--text-light);
}

.feature-card code {
    background: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

/* ==================== */
/* Commands Section */
/* ==================== */

.commands {
    background: #0f172a;
}

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

.command-group {
    background: #1e293b;
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.command-group h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.command-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.command-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.command-item code {
    background: #0f172a;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
    word-break: break-word;
    border: 1px solid var(--border);
}

.command-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==================== */
/* Examples Section */
/* ==================== */

.examples {
    background: #0f172a;
}

.examples-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    transition: color 0.3s ease;
}

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

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

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

.example-code {
    background: #1e293b;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.code-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.code-block {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    overflow-x: auto;
    background: #1e293b;
    color: #e2e8f0;
}

.code-block pre {
    margin: 0;
}

/* ==================== */
/* Installation Section */
/* ==================== */

.installation {
    background: #0f172a;
}

.installation-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: var(--surface);
    padding: 2rem;
    border-radius: 0.75rem;
    position: relative;
    padding-left: 4rem;
    display: block !important;
    width: 100% !important;
    flex-basis: 100% !important;
}

.step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.install-group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.install-item {
    font-size: 0.95rem;
    color: var(--text-light);
}

.install-item a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 0.5rem;
}

.install-item a:hover {
    text-decoration: underline;
}

.install-code {
    margin-top: 1rem;
}

.install-tabs {
    margin-top: 3rem;
}

.install-content {
    background: #1e293b;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.install-pane {
    display: none;
    padding: 2rem;
}

.install-pane.active {
    display: block;
}

.install-pane h4 {
    margin-bottom: 1rem;
}

/* ==================== */
/* Benefits Section */
/* ==================== */

.benefits {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.benefits h2,
.benefits .section-subtitle {
    color: white;
}

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

.benefit {
    text-align: center;
    padding: 2rem;
}

.benefit h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==================== */
/* FAQ Section */
/* ==================== */

.faq {
    background: #0f172a;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #1e293b;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: #1e293b;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #334155;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer code {
    background: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

.faq-answer pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* ==================== */
/* CTA Section */
/* ==================== */

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background: #0f172a;
    color: var(--text-lighter);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section p {
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.heart {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== */
/* Responsive */
/* ==================== */

@media (max-width: 768px) {
    .arena h1 {
        font-size: 2.5rem;
    }

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

    section h2 {
        font-size: 1.875rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .terminal-demo {
        max-width: 100%;
    }

    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .terminal-body {
        font-size: 0.8rem;
        padding: 1rem;
    }
}
