/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
    background: #05070b;
}

.landing-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.menu-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-link i {
    width: 18px;
    height: 18px;
}

.menu-link svg {
    width: 18px;
    height: 18px;
}

.menu-link:hover {
    color: var(--primary);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.menu-link:hover::after {
    width: 100%;
}

.landing-hero {
    padding: 4rem 2rem 6rem;
    text-align: center;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--primary) 15%, transparent) 0%, transparent 70%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-logo img {
    height: 170px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.landing-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-demo-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    border-radius: calc(var(--radius) + 2px);
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.hero-demo-hint i {
    width: 16px;
    height: 16px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Highlights Section */
.landing-highlights {
    padding: 4rem 2rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--primary) 20%, transparent);
}

.highlight-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.highlight-item p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.95rem;
}

.landing-features {
    padding: 6rem 2rem;
    background: var(--background);
}

.landing-section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.landing-section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--primary) 20%, transparent);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    /* background: color-mix(in srgb, var(--primary) 10%, transparent); */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.feature-icon i {
    width: 48px !important;
    height: 48px !important;
}

.feature-icon svg {
    width: 48px !important;
    height: 48px !important;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--card-foreground);
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.landing-download {
    padding: 6rem 2rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.download-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.download-card > i svg,
.download-card > i {
    width: 48px !important;
    height: 48px !important;
}

.landing-footer {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Demo Section */
.landing-demo {
    padding: 6rem 2rem;
    background: var(--background);
}

.demo-card {
    max-width: 600px;
    margin: 0 auto;
    /* background: var(--card); */
    padding: 3rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border);
    text-align: center;
}

.demo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* width: 120px; */
    /* height: 120px; */
    /* background: color-mix(in srgb, var(--primary) 15%, transparent); */
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.demo-icon i {
    width: 48px !important;
    height: 48px !important;
    color: var(--primary);
}

.demo-icon svg {
    width: 48px !important;
    height: 48px !important;
}

.demo-card h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.demo-credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.credential-item {
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.credential-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.credential-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.credential-value code {
    flex: 1;
    background: var(--muted);
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    padding: 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.copy-btn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.copy-btn i {
    width: 16px;
    height: 16px;
}

.demo-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, var(--warning) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--warning);
}

.demo-note i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--success);
    color: var(--success-foreground);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: color-mix(in srgb, var(--primary) 90%, black);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    width: 28px !important;
    height: 28px !important;
}

.scroll-to-top svg {
    width: 28px !important;
    height: 28px !important;
}

@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5rem;
    }

    .landing-hero {
        padding: 3rem 1.5rem 4rem;
    }

    .hero-logo img {
        height: 120px;
    }

    .landing-nav {
        padding: 0.75rem 1rem;
        justify-content: center;
    }

    /* Скрываем меню, кнопку логина и подсказку на мобильных */
    .landing-menu,
    .landing-nav .landing-buttons,
    .hero-demo-hint {
        display: none;
    }

    .demo-card {
        padding: 2rem 1.5rem;
    }

    .credential-value {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
    }

    .copy-notification {
        right: 1rem;
        left: 1rem;
    }

    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }

    .scroll-to-top i {
        width: 22px !important;
        height: 22px !important;
    }

    .scroll-to-top svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .landing-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Кнопки в hero секции */
    .landing-hero .landing-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .landing-hero .btn-lg {
        width: 100%;
    }
    
    .landing-section-title h2 {
        font-size: 2rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .landing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .landing-features,
    .landing-highlights,
    .landing-demo,
    .landing-download {
        padding: 3rem 1rem;
    }
}

/* Scr
eenshots Slider */
.landing-screenshots {
    padding: 6rem 2rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.screenshots-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.slider-container {
    flex: 1;
    overflow: hidden;
    border-radius: calc(var(--radius) + 4px);
    background: var(--background);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-caption {
    padding: 2rem;
    text-align: center;
    background: var(--background);
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.slide-caption p {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.slider-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn i {
    width: 28px !important;
    height: 28px !important;
}

.slider-btn svg {
    width: 28px !important;
    height: 28px !important;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: var(--muted-foreground);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* Placeholder для скриншотов */
.slide-image:empty::before {
    content: 'Скриншот';
    font-size: 1.5rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

/* Анимация появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-slide.active {
    animation: slideIn 0.5s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .screenshots-slider {
        flex-direction: column;
        gap: 0;
        position: relative;
    }

    .slider-btn {
        width: 48px;
        height: 48px;
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        z-index: 20;
    }

    .slider-btn i,
    .slider-btn svg {
        width: 22px !important;
        height: 22px !important;
    }

    .slider-btn-prev {
        left: 0.5rem;
    }

    .slider-btn-next {
        right: 0.5rem;
    }
    
    .slider-container {
        width: 100%;
    }

    .slide-caption {
        padding: 1.5rem;
    }

    .slide-caption h3 {
        font-size: 1.25rem;
    }

    .slide-caption p {
        font-size: 0.875rem;
    }

    .slider-dots {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .landing-screenshots {
        padding: 3rem 0.5rem;
    }
    
    .landing-section-title {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .landing-section-title h2 {
        font-size: 1.75rem;
    }
    
    .landing-section-title p {
        font-size: 0.875rem;
    }

    .slider-btn-prev {
        left: 0.25rem;
        width: 40px;
        height: 40px;
    }

    .slider-btn-next {
        right: 0.25rem;
        width: 40px;
        height: 40px;
    }
    
    .slider-btn i,
    .slider-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .slider-container {
        border-radius: var(--radius);
    }
    
    .slide-image {
        padding: 0.5rem;
        aspect-ratio: 16 / 11;
    }
    
    .slide-image img {
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }
    
    .slide-caption {
        padding: 1rem;
    }
    
    .slide-caption h3 {
        font-size: 1.125rem;
    }
    
    .slide-caption p {
        font-size: 0.8125rem;
    }
    
    .slider-dots {
        margin-top: 1rem;
        gap: 0.375rem;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-dot.active {
        width: 20px;
    }
    
    .landing-title {
        font-size: 1.75rem;
        padding: 0 1rem;
        line-height: 1.2;
    }
    
    .hero-logo img {
        height: 120px;
    }
    
    .landing-hero .landing-buttons {
        gap: 0.5rem;
    }
    
    .landing-hero .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
    
    .highlight-item {
        padding: 1.5rem 1rem;
    }
    
    .highlight-number {
        font-size: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i,
    .feature-icon svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    .demo-card,
    .download-card {
        padding: 1.5rem 1rem;
    }
    
    .demo-icon i,
    .demo-icon svg {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Footer Styles */
.landing-footer {
    padding: 3rem 2rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-main {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    background: var(--muted);
    color: var(--primary);
}

.footer-links a i {
    width: 16px;
    height: 16px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--card);
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--foreground);
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    line-height: 1.7;
}

.modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.modal-body h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.modal-body p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.modal-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-links a {
        width: 100%;
        justify-content: center;
    }
}
