/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #61DAFB;
    --primary-dark: #4FC3DC;
    --secondary: #98C379;
    --accent: #C678DD;
    --dark: #1E1E1E;
    --dark-2: #252525;
    --dark-3: #2D2D2D;
    --dark-4: #3D3D3D;
    --light: #E0E0E0;
    --light-2: #BBB;
    --light-3: #999;
    --error: #E06C75;
    --warning: #D19A66;
    --success: #98C379;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

code, pre {
    font-family: 'Fira Code', 'Courier New', monospace;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

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

.logo {
    width: 40px;
    height: 40px;
    background: #000000;
    color: #61DAFB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

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


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

.nav-links a {
    color: var(--light-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--dark-3);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(97, 218, 251, 0.1);
    border: 1px solid rgba(97, 218, 251, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #61DAFB 0%, #98C379 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--light-2);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

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

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(97, 218, 251, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--light-3);
}

.hero-image {
    margin-top: 80px;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(97, 218, 251, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: glow 8s ease-in-out infinite;
}

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

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-2);
}

/* Features Section */
.features {
    background: var(--dark-2);
}

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

.feature-card {
    background: var(--dark-3);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(97, 218, 251, 0.15);
}

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

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--light);
}

.feature-card p {
    color: var(--light-3);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(97, 218, 251, 0.1);
    border: 1px solid rgba(97, 218, 251, 0.3);
    border-radius: 4px;
    color: var(--primary);
    font-size: 12px;
    font-family: 'Fira Code', monospace;
}

/* Download Section */
.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.download-card {
    background: var(--dark-3);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(97, 218, 251, 0.15);
}

.download-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.version-icon {
    font-size: 48px;
}

.version-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.version-subtitle {
    color: var(--light-3);
    font-size: 14px;
}

.card-size {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(152, 195, 121, 0.1);
    border: 1px solid rgba(152, 195, 121, 0.3);
    border-radius: 4px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light-2);
    font-size: 14px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Comparison Table */
.comparison-table-wrapper {
    background: var(--dark-3);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-title {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: var(--dark-4);
    font-weight: 700;
    color: var(--primary);
}

.comparison-table td {
    color: var(--light-2);
}

.comparison-table .check {
    color: var(--success);
    font-size: 18px;
}

.comparison-table .cross {
    color: var(--light-3);
    font-size: 18px;
}

/* Installation Section */
.installation {
    background: var(--dark-2);
}

.installation-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.install-method {
    background: var(--dark-3);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.method-icon {
    font-size: 40px;
}

.method-header h3 {
    font-size: 24px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.step:last-child {
    margin-bottom: 0;
}

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

.step-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--light-3);
    line-height: 1.7;
}

.step-content code {
    background: var(--dark-4);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary);
    font-size: 13px;
}

.step-content ol {
    margin-top: 12px;
    padding-left: 20px;
    color: var(--light-3);
}

.step-content ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.debug-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 8px 16px;
    background: var(--dark-4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--light-3);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Usage Section */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.usage-card {
    background: var(--dark-3);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s;
}

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

.usage-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: rgba(97, 218, 251, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.usage-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.usage-card p {
    color: var(--light-3);
    line-height: 1.7;
}

/* Shortcuts */
.shortcuts-wrapper {
    background: var(--dark-3);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcuts-title {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.shortcut-item {
    background: var(--dark-4);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.shortcut-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.shortcut-item kbd {
    display: inline-block;
    padding: 4px 8px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    margin: 2px;
}

.shortcut-item span {
    display: block;
    margin-top: 12px;
    color: var(--light-3);
    font-size: 13px;
}

/* Examples Section */
.examples {
    background: var(--dark-2);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.example-card {
    background: var(--dark-3);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--dark-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.example-header h3 {
    font-size: 16px;
    color: var(--primary);
}

.copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 6px;
    color: var(--light-3);
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(97, 218, 251, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.example-card pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.example-card code {
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-3);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--light-3);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-2);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--light-3);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--light-3);
    font-size: 14px;
    margin-bottom: 8px;
}

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

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(97, 218, 251, 0.3);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(97, 218, 251, 0.4);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 48px;
    }

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

    .download-cards,
    .installation-methods {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 32px;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
