/**
 * WhiteGen228 - Home Page Styles
 */

/* ==================== Hero Section ==================== */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-bg);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

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

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==================== Features Section ==================== */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

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

.feature-card p {
    font-size: 14px;
    line-height: 1.7;
}

/* ==================== How It Works ==================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-body);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    opacity: 0.3;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== Pricing ==================== */
.pricing {
    padding: 100px 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--accent);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(124, 92, 255, 0.15);
}

.pricing-card.popular::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
}

/* ==================== Testimonials ==================== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-body);
}

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

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-light);
}

.testimonial-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== CTA Section ==================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, #5a3fd6 100%);
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: #fff;
    color: var(--accent);
}

.cta .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* ==================== FAQ ==================== */
.faq {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question h4 {
    font-size: 15px;
    font-weight: 600;
}

.faq-question .icon {
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
    color: var(--accent-light);
}

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

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 24px; }
    
    .features, .how-it-works, .pricing, .testimonials, .cta, .faq {
        padding: 60px 0;
    }
    
    .features-grid, .steps, .pricing-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
