/* ============================================================================
   LANDING STYLES - Landing Page Specific
   ============================================================================ */

   body.landing-page {
    background: var(--bg);
}

/* Header */
.lp-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 16px 5vw; 
    background: var(--glass); 
    backdrop-filter: blur(12px); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.lp-logo { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 24px; 
    font-weight: 500;
    transition: opacity var(--duration);
}
.lp-logo:hover { opacity: 0.7; }

.lp-nav { 
    display: flex; 
    align-items: center; 
    gap: 32px; 
}
.lp-nav a { 
    font-size: 14px; 
    color: var(--text-secondary); 
    transition: color var(--duration);
}
.lp-nav a:hover { color: var(--text); }

.mobile-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text);
    padding: 8px;
}

/* Hero Section */
.hero { 
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5vw;
}

.hero-starfield-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26,26,26,0.8) 0%,
        rgba(26,26,26,0.4) 50%,
        rgba(26,26,26,0.8) 100%
    );
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge { 
    display: inline-block; 
    padding: 6px 14px; 
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full); 
    font-size: 12px; 
    font-weight: 600; 
    color: rgba(255,255,255,0.9);
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero h1 { 
    font-size: 56px; 
    margin-bottom: 24px; 
    letter-spacing: -0.02em;
    color: var(--text-inverse);
    line-height: 1.1;
}

.hero-text { 
    font-size: 18px; 
    color: rgba(255,255,255,0.85); 
    margin-bottom: 32px; 
    line-height: 1.7; 
    max-width: 520px;
}

.hero-actions { 
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap;
}

/* Hero Carousel */
.hero-carousel { 
    position: relative;
    padding-inline: 10%;
    z-index: 2;
}

.carousel-badge { 
    display: flex; /* Измените с inline-flex на flex */
    justify-content: center; /* Добавьте центрирование по горизонтали */
    align-items: center; 
    gap: 8px; 
    font-size: 12px; 
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    text-align: center;
}

.live-dot { 
    width: 8px; 
    height: 8px; 
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%; 
    animation: pulse 2s infinite;
}

.carousel-container { 
    position: relative;
    overflow: hidden; 
    border-radius: var(--radius-xl); 
    height: 340px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1.5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color var(--duration), box-shadow var(--duration);
    display: flex;
    flex-direction: column;
    min-height: 0; /* Важно для работы flex внутри */
}

.carousel-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.carousel-track { 
    position: relative; 
    height: 85%;
    width: 100%;
}

/* Обновленная карточка */
.demo-card { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    padding: 32px; 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.demo-card.active { 
    opacity: 1; 
    pointer-events: auto;
}

/* Контейнер контента с фиксированной структурой */
.demo-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: 0; /* Важно для вложенных flex-элементов */
}

/* Фиксация высоты для каждого элемента карточки */
.demo-tags { 
    margin-bottom: 10px; 
    flex-shrink: 0;
    height: 28px; /* Фиксированная высота для тегов */
    overflow: hidden;
}

.tag-sale-light, .tag-seeking-light {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Имя художника с гарантированной обрезкой */
.demo-artist { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 28px; 
    font-weight: 600; 
    margin-bottom: 8px;
    color: var(--text-inverse);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    flex-shrink: 0;
    line-height: 1.2;
    height: 34px; /* Фиксированная высота для одной строки */
}

/* Мета-информация с обрезкой */
.demo-meta {
    font-size: 14px; 
    color: rgba(255,255,255,0.7); 
    margin-bottom: 16px; /* Уменьшен отступ */
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    flex-shrink: 0;
    max-height: 44px; /* Ограничение высоты для 1-2 строк */
    overflow: hidden;
}

.demo-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.demo-meta-item:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Описание с фиксированной высотой и обрезкой */
.demo-desc { 
    font-size: 15px; 
    color: rgba(255,255,255,0.8); 
    line-height: 1.5; 
    /* margin-bottom: 16px; Уменьшен отступ */
    flex: 1; /* Занимает доступное пространство */
    min-height: 0; /* Важно для overflow */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Увеличил до 3 строк для лучшего заполнения */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em; /* 2 строки × 1.5 line-height */
}

/* Цена с фиксированным позиционированием */
.demo-price { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 32px;
    font-weight: 600; 
    margin-top: auto; /* Прижимается к низу */
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    line-height: 1.2;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding-top: 8px; /* Небольшой отступ сверху */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопка карусели */
.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-inverse);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-top: auto; /* Прижимается к низу контейнера */
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
}

.carousel-btn:hover svg {
    transform: translateX(4px);
}

.carousel-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration);
}

.carousel-nav { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-top: 20px;
}

.carousel-dot { 
    width: 8px; 
    height: 8px; 
    background: rgba(255,255,255,0.5);
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all var(--duration);
}
.carousel-dot:hover { background: rgba(255,255,255,0.8); }
.carousel-dot.active { 
    background: rgba(255, 255, 255, 0.9);
    width: 24px; 
    border-radius: 4px; 
}

/* Sections */
.section { 
    padding: 100px 5vw; 
    width: 100%;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title { 
    font-size: 42px; 
    text-align: center; 
    margin-bottom: 60px; 
    letter-spacing: -0.01em;
}

.section-subtitle { 
    font-size: 17px; 
    color: var(--text-secondary); 
    text-align: center; 
    margin-bottom: 60px; 
    margin-top: -40px;
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
}

/* Steps */
.steps-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 32px;
}

.step-card { 
    text-align: center; 
    padding: 40px 32px; 
    background: var(--surface); 
    border: 1.5px solid var(--border); 
    border-radius: var(--radius-xl);
    transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration);
    opacity: 0;
    transform: translateY(20px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.step-num { 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-dark); 
    color: var(--text-inverse); 
    border-radius: 50%; 
    font-size: 18px; 
    font-weight: 600; 
    margin: 0 auto 20px;
}

.step-title { 
    font-size: 24px; 
    margin-bottom: 12px;
}

.step-text { 
    font-size: 15px; 
    color: var(--text-secondary); 
    line-height: 1.6;
}

/* Features */
#features {
    background: var(--surface);
    width: 100%;
}

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

.feature-card { 
    display: flex; 
    gap: 20px; 
    padding: 28px; 
    background: var(--surface); 
    border: 1.5px solid var(--border); 
    border-radius: var(--radius-lg);
    transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-icon { 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg); 
    border-radius: var(--radius-md); 
    color: var(--text); 
    flex-shrink: 0;
}

.feature-title { 
    font-size: 16px; 
    font-weight: 600; 
    margin-bottom: 6px;
}

.feature-desc { 
    font-size: 14px; 
    color: var(--text-secondary); 
    line-height: 1.55;
}

/* Manifesto */
#manifesto {
    background: var(--bg-dark);
    padding: 100px 5vw;
    margin: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.manifesto-starfield-container {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: 1;
}

.manifesto-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

#manifesto .section-title {
    color: var(--text-inverse);
    margin-bottom: 40px;
}

.manifesto-text {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.manifesto-text strong {
    color: var(--text-inverse);
    font-weight: 600;
}

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

.faq-item { 
    border-bottom: 1px solid var(--border);
    transition: background var(--duration);
    padding: 0 16px;
    /* border-radius: var(--radius-sm); */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background var(--duration);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    background: rgba(0,0,0,0.02);
}

.faq-q { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 20px 0; 
    font-size: 15px; 
    font-weight: 500; 
    cursor: pointer; 
    gap: 16px;
    transition: color var(--duration);
}

.faq-q:hover { color: var(--text); }

.faq-q svg { 
    flex-shrink: 0; 
    transition: transform var(--duration-slow) var(--ease); 
    color: var(--text-tertiary);
}

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

.faq-a { 
    max-height: 0;
    overflow: hidden;
    padding: 0;
    font-size: 14px; 
    color: var(--text-secondary); 
    line-height: 1.65;
    transition: max-height var(--duration-slow) var(--ease), padding var(--duration-slow) var(--ease), opacity var(--duration-slow);
    opacity: 0;
}

.faq-item.active .faq-a { 
    max-height: 300px;
    padding: 0 0 20px;
    opacity: 1;
}

/* Join Section */
#join {
    background: var(--surface);
    width: 100%;
}

.join-card { 
    max-width: 480px; 
    margin: 0 auto; 
    padding: 48px; 
    background: var(--surface); 
    border-radius: var(--radius-xl); 
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.join-title { 
    font-size: 28px; 
    text-align: center; 
    margin-bottom: 8px;
}

.join-subtitle { 
    font-size: 14px; 
    color: var(--text-secondary); 
    text-align: center; 
    margin-bottom: 32px;
}

/* Footer */
.lp-footer { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 24px 5vw; 
    border-top: 1px solid var(--border); 
    font-size: 13px; 
    color: var(--text-tertiary);
    width: 100%;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); transition: color var(--duration); }
.footer-links a:hover { color: var(--text); }

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    
    .hero h1 { font-size: 48px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lp-header { 
        padding: 12px 5vw; 
    }
    
    .faq-item {
        padding: 0;
    }

    .hero-carousel { 
        padding-inline: 0;
        padding-block: 5%;
    }

    .lp-nav { 
        display: none; 
        position: fixed; 
        top: 56px; 
        left: 0; 
        right: 0; 
        background: var(--surface); 
        flex-direction: column; 
        padding: 20px; 
        gap: 16px; 
        border-bottom: 1px solid var(--border); 
        box-shadow: var(--shadow-lg);
    }
    .lp-nav.active { display: flex; }
    .mobile-toggle { display: block; }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5%;
    }

    .hero { 
        padding: 60px 5vw; 
        min-height: auto;
    }
    
    .hero h1 { 
        font-size: 36px; 
    }
    
    .hero-text { 
        font-size: 16px; 
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: nowrap; /* ← Изменить с wrap на nowrap */
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
 
    .hero-actions .btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 14px;
    }

    .section { padding: 80px 5vw; }
    .section-title { font-size: 32px; margin-bottom: 40px; }
    .section-subtitle { font-size: 15px; margin-bottom: 40px; margin-top: -20px; }
    
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .step-card { padding: 32px 24px; }
    .step-title { font-size: 22px; }
    
    .feature-card { flex-direction: column; text-align: center; gap: 16px; }
    .feature-icon { align-self: center; }
    
    #manifesto {
        padding: 80px 5vw;
        min-height: 550px;
    }
    
    .manifesto-text { font-size: 17px; line-height: 1.7; }
    
    .join-card { padding: 32px 24px; }
    .join-title { font-size: 24px; }
    
    .lp-footer { 
        flex-direction: column; 
        gap: 16px; 
        padding: 24px 5vw; 
        text-align: center;
    }
    .footer-links { gap: 16px; }
    
    
    .demo-artist { 
        font-size: 24px;
        height: 30px; /* Соответствует одной строке */
    }
    
    .demo-price { 
        font-size: 28px;
        padding-top: 6px;
    }
    
    .demo-desc {
        -webkit-line-clamp: 2; /* На мобильных уменьшаем до 2 строк */
        max-height: 3em;
        font-size: 14px;
    }
    
    .demo-meta {
        max-height: 36px;
        font-size: 13px;
        gap: 6px 10px;
    }
    
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .hero-text { font-size: 15px; }
    
    .hero-actions {
        max-width: 90%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .demo-artist { 
        font-size: 22px;
        height: 28px;
    }
    
    .demo-price { 
        font-size: 26px;
    }
    
    .demo-desc {
        -webkit-line-clamp: 2;
        font-size: 13px;
    }
    
    .demo-meta {
        flex-direction: column;
        gap: 4px;
        max-height: none; /* Снимаем ограничение, так как теперь колонка */
    }
    
    .demo-meta-item:not(:last-child)::after {
        display: none;
    }
    

    #manifesto { min-height: 500px; }
    .manifesto-text { font-size: 16px; line-height: 1.65; }
    
    .section-title { font-size: 28px; }
    .step-title { font-size: 20px; }
    .step-text { font-size: 14px; }
}

/* Анимации для карусели */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInFromRight 0.5s var(--ease-out);
}

.slide-in-left {
    animation: slideInFromLeft 0.5s var(--ease-out);
}

/* Legal Content */
.legal-content { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.legal-section { margin-bottom: 24px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h3 { 
    font-family: 'DM Sans', sans-serif; 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text); 
    margin-bottom: 8px;
}
.legal-section p { margin-bottom: 0; }
.legal-section strong { color: var(--text); font-weight: 500; }