:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --background: #0f172a;
    --background-light: #1e293b;
    --surface: #334155;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: #475569;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--background-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-brand h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-link {
    color: var(--text-secondary) !important;
}

.btn-primary {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent 50%);
    background-size: cover !important;
    background-position: center !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 1rem 2rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--background-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--surface);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-pricing:hover {
    transform: translateY(-2px);
}

/* Download Section */
.download {
    padding: 6rem 0;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.download-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    background: var(--gradient);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
}

.download-box {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    text-align: center;
}

.download-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.btn-download:hover {
    transform: translateY(-2px);
}

.download-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 !important;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--background-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--background);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots {
    padding: 6rem 0;
    background: var(--background-light);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    background: var(--background);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.screenshot-img {
    cursor: pointer;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #475569;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.screenshot-wide {
    grid-column: 1 / -1;
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
}

.screenshot-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--text-secondary);
    padding: 2rem;
}

.screenshot-placeholder span {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.screenshot-placeholder p {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Setup Section */
.setup {
    padding: 6rem 0;
}

.setup-content {
    max-width: 900px;
    margin: 0 auto;
}

.setup-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.setup-step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
}

.setup-step .step-number {
    background: var(--gradient);
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.step-content code {
    background: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .nav-brand .logo {
        height: 32px;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.875rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .nav-links .btn-primary {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .btn-hero,
    .btn-secondary,
    .btn-pricing {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-hero,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .screenshot-wide {
        grid-column: 1;
    }

    .setup-content {
        gap: 1.5rem;
    }

    .setup-step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .setup-step .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section a {
        justify-content: center;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 32px;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    .download-content {
        grid-template-columns: 1fr;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .price {
        font-size: 2rem;
    }
}
