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

:root {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #0a0a0a;
    --card-foreground: #fafafa;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --secondary: #262626;
    --secondary-foreground: #f5f5f5;
    --muted: #171717;
    --muted-foreground: #a3a3a3;
    --accent: #262626;
    --accent-foreground: #f5f5f5;
    --border: #404040;
    --input: #171717;
    --ring: #3b82f6;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

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

/* Grid Background */
body {
    background-image: radial-gradient(circle at 1px 1px, #333 1px, transparent 0);
    background-size: 20px 20px;
}

/* Navigation - FIXED LAYOUT */
.nav {
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    background-color: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between; /* This pushes logo left and nav links right */
    align-items: center;
    height: 4rem;
}

.nav-container, .footer-content {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}


.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Logo will be on the far left */
}

.logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: white;
    padding: 0.25rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Nav links will be on the far right */
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
    text-decoration: none; /* remove underline */
    gap: 8px; /* spacing between icon and text */
}

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

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--accent);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-icon {
    margin-right: 0.5rem;
}

.btn-arrow {
    margin-left: 0.5rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid;
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge-icon {
    margin-right: 0.25rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background-image: radial-gradient(circle at 1px 1px, #333 1px, transparent 0),
                      radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, rgba(10, 10, 10, 0.8) 70%);
    background-size: 20px 20px, 100% 100%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 600px;
    line-height: 1.7;
}

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

.hero-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

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

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Sections Common */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

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

.feature-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: background-color 0.2s;
}

.feature-card:hover {
    background-color: var(--accent);
}

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

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* How to Use Section */
.how-to-use {
    padding: 6rem 0;
    background-color: var(--card);
}

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

.step-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
}

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

.testimonial-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.testimonial-content {
    color: var(--muted-foreground);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Browsers Section */
.browsers {
    padding: 6rem 0;
    background-color: var(--card);
}

.browsers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.browser-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: background-color 0.2s;
}

.browser-card.supported:hover {
    background-color: var(--accent);
}

.browser-card.coming-soon {
    opacity: 0.7;
}

.browser-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.browser-name {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.browsers-note {
    text-align: center;
    color: var(--muted-foreground);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Footer items spaced to edges */
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--foreground);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
    position: relative;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    text-align: center;
}
.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.modal-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--foreground);
}

/* Responsive */
@media (max-width: 600px) {
    .modal-actions {
        gap: 0.75rem;
    }
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row; /* Keep horizontal on mobile */
        justify-content: space-between;
        height: 4rem;
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        display: none; /* Hide text links on very small screens */
    }
    
    .nav-link:last-child {
        display: inline-flex; /* Keep the install button visible */
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
}