/* PixelAI Landing Page Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Features */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    padding: 80px 0;
    background: var(--bg-card);
}

.pricing h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
}

.price-card.popular {
    border-color: var(--primary);
}

.price-card.popular::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    margin: 16px 0;
}

.price-amount span {
    font-size: 18px;
    color: var(--text-muted);
}

.price-credits {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    margin-bottom: 24px;
    text-align: left;
}

.price-features li {
    padding: 8px 0;
    color: var(--text-muted);
}

.price-features li::before {
    content: '✓';
    color: var(--success);
    margin-right: 8px;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.page-content h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.page-content p, .page-content li {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    padding-left: 24px;
}

.legal-doc {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
}

.legal-doc p {
    text-align: justify;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer ul a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}

.footer-legal strong {
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 12px;
}

/* Placeholder for images */
.placeholder-img {
    background: var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Gallery placeholder */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 48px 0;
}

.gallery-preview .placeholder-img {
    aspect-ratio: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        gap: 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-doc {
        padding: 24px;
    }
}
