/* Підключення шрифту Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS змінні для повторюваних значень */
:root {
    /* Кольори */
    --color-primary: #2C55E0;
    --color-dark: #111;
    --color-text: #333;
    --color-text-secondary: #555;
    --color-text-tertiary: #666;
    --color-text-muted: #888;
    --color-text-light: #999;
    --color-border: #E5E5E5;
    --color-border-hover: #D0D0D0;
    --color-divider: #eee;
    --color-bg: #f8f9fa;
    --color-white: #fff;
    
    /* Бейджі */
    --color-badge-bg: #e3f2fd;
    --color-badge-text: #1976d2;
    
    /* Border-radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-round: 100px;
    
    /* Розміри шрифту */
    --font-size-xs: 13px;
    --font-size-sm: 16px;
    --font-size-md: 18px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
    
    /* Переходи */
    --transition-default: all 0.3s ease;
}

/* Загальні стилі */
* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Текстові стилі - консолідовані */
.h1, .h1-regular {
    font-size: var(--font-size-xl);
    line-height: 1.2;
    font-weight: 800;
}

.h2, .h2-regular {
    font-size: var(--font-size-lg);
    line-height: 1.3;
    font-weight: 600;
}

.h3 {
    font-size: var(--font-size-md);
    line-height: 1.3;
    font-weight: 600;
}

.text, .text-regular {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    font-weight: 400;
}

.description-regular {
    font-size: var(--font-size-xs);
    line-height: 1.4;
    font-weight: 400;
}

/* Кнопки та елементи інтерфейсу */
.cta-button {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-default);
}

.cta-button:hover {
    background-color: #f5f5f5;
}

/* Базовий клас для кнопок завантаження */
.download-button {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    margin-bottom: 16px;
}

/* Модифікатори для кнопок завантаження */
.download-button {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.download-button-white {
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    margin-bottom: 16px;
}

.badge {
    background-color: var(--color-badge-bg);
    color: var(--color-badge-text);
    padding: 4px 12px;
    border-radius: var(--radius-round);
}

/* Навігація */
nav {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    padding: 16px 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-divider);
    margin-top: 0; /* Явно вказуємо відсутність верхнього відступу */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
        display: flex;
    gap: 8px;
    align-items: center;
    color: var(--color-dark);
    text-decoration: none;
}

.logo svg {
    margin-right: 10px;
    fill: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
}

/* Мобільне меню - бургер */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: var(--transition-default);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 16px;
    border-bottom: 1px solid var(--color-divider);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Герой секція */
.hero {
    padding: 6% 16px 16px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 16px;
    color: var(--color-dark);
}

.hero p.tagline {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.hero p.description {
    color: var(--color-text-tertiary);
    max-width: 800px;
    margin: 0 auto 40px;
}

.system-req {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* Відео секція з анімацією */
.video-section {
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    transform-origin: center;
    transition: var(--transition-default);
}

.video-preview {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transform-origin: center;
    transition: var(--transition-default);
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

/* Стікери декорації - спільні стилі */
.sticker {
    position: absolute;
    opacity: 0;
    z-index: 5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticker img {
    transform: scale(1.5);
    display: block;
    max-width: 100%;
    height: auto;
}

/* Індивідуальні стікери */
.sticker-eyes {
    top: 31%;
    left: -2%;
    transform: translateX(-100px);
}

.sticker-hand {
    top: 39%;
    right: -1%;
    transform: translateX(100px);
}

.sticker-tools { 
    bottom: 1%;
    left: -5%;
    transform: translateX(-100px);
}

.sticker-circle {
    bottom: 4%;
    right: 4%;
    transform: translateX(100px);
}

.sticker-star {
    top: 15%;
    right: -5%;
    transform: translateY(-50px);
}

/* Features секція */
.features-section {
    padding: 40px 0;
}

/* Заголовок секції */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
    color: var(--color-dark);
}

.section-header p {
    color: var(--color-text-tertiary);
    max-width: 700px;
    margin: 0 auto;
}

/* Розмітка карточок */
.cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.cards-row-uneven {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 24px;
}

.cards-row-uneven-reverse {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Карточка фічі - загальні стилі */
.feature-card {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

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

/* Блок текстового контенту */
.card-text {
    padding: 24px;
    flex-grow: 1;
}

/* Заголовок фічі */
.feature-title {
    display: flex;
    align-items: center;
    margin-bottom: -19px;
}

.feature-title h3 {
    color: var(--color-dark);
    margin-right: 8px;
}

.feature-description {
    color: var(--color-text-tertiary);
}

/* Блок зображення - фіксована висота */
.card-image {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Варіант блоку зображення з центруванням - для Simple Edit Tool */
.card-image-centered {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

.card-image-centered img {
    max-width: 100%;
    max-height: 160px; /* Залишаємо відступ від країв з урахуванням padding */
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Coming Soon картка - спеціальний стиль */
.coming-soon-card {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    position: relative;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    min-height: 200px; /* Менша висота, ніж у звичайних карток */
}

.coming-soon-card:hover {
    border-color: var(--color-border-hover);
}

.coming-soon-card h3 {
    color: var(--color-dark);
    margin-bottom: 80px; /* Збільшуємо відстань між заголовком і зображенням */
}

.coming-soon-card img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

/* Варіант без зображення */
.no-image {
    height: auto;
}

/* Блок Call-to-Action */
.cta-section {
    background-color: var(--color-primary);
    padding: 64px 40px;
    margin: 40px 0;
    color: var(--color-white);
    border-radius: var(--radius-md);
}

.cta-container {
    display: flex;
    align-items: center;
    position: relative;
}

.cta-left {
    width: 45%;
    padding-right: 24px;
}

.cta-right {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 24px;
}

.cta-logo {
    margin-bottom: 8px;
}

.cta-tagline {
    color: var(--color-white);
    margin-bottom: 8px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.cta-system-req {
    color: rgba(255, 255, 255, 0.8);
}

.cta-divider {
    position: absolute;
    top: 0;
    border-radius: 100%;
    bottom: 0;
    left: 45%;
    width: 1.5px;
    background-color: rgba(255, 255, 255, 0.2);
    height: 100%;
}

/* Футер */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-divider);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 30px;
    margin-right: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-tertiary);
}

.footer-copyright {
    color: var(--color-text-light);
}

/* Адаптивні стилі */
@media (max-width: 1024px) {
    /* Стилі для планшетів і менших екранів */
    .container {
        max-width: 95%;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p.description {
        max-width: 90%;
    }

    .video-container {
        width: 95%;
    }

    /* Зменшуємо розмір стікерів */
    .sticker img {
        transform: scale(1.4);
    }
}

@media (max-width: 768px) {
    /* Стилі для планшетів */
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .cards-row,
    .cards-row-uneven,
    .cards-row-uneven-reverse {
        grid-template-columns: 1fr;
    }
    
    .video-section {
        margin-bottom: 80px;
    }
    
    .cta-section {
        padding: 40px 24px;
        margin: 32px 10px;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .cta-right {
        width: 100%;
        padding-left: 0;
        align-items: center;
    }
    
    .cta-divider {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Мобільна навігація */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu a, .mobile-menu button {
        display: block;
        width: 100%;
        padding: 12px 0;
        text-decoration: none;
        color: var(--color-text);
        border-bottom: 1px solid var(--color-border);
        text-align: center;
    }

    .mobile-menu a:last-of-type {
        border-bottom: none;
    }

    .mobile-menu button.cta-button {
        margin-top: 10px;
    }

    /* Заголовки */
    .section-header h2 {
        font-size: 22px;
    }
    
    /* Футер адаптивний */
    .footer {
        padding: 24px 0;
    }
}

@media (max-width: 576px) {
    /* Стилі специфічно для мобільних */
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding-top: 10%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p.description {
        font-size: 15px;
    }

    /* Зменшуємо розмір шрифту */
    .h1, .h1-regular {
        font-size: 24px;
    }

    .h2, .h2-regular {
        font-size: 20px;
    }

    .h3 {
        font-size: 17px;
    }

    /* Навігаційні посилання розташовуємо кнопками */
    .nav-links {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links a {
        display: block;
        padding: 8px 0;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }

    .nav-links a:last-of-type {
        border-bottom: none;
    }

    .cta-button {
        width: 100%;
    }

    /* Зменшуємо розмір кнопок */
    .download-button, .download-button-white {
        width: 100%;
        justify-content: center;
    }

    /* Регулюємо стікери */
    .sticker {
        display: none;
    }

    /* Відступи для карток */
    .feature-card {
        margin-bottom: 16px;
    }

    .card-text {
        padding: 16px;
    }

    .card-image, .card-image-centered {
        height: 160px;
    }

    /* CTA блок */
    .cta-section {
        padding: 32px 16px;
        margin: 32px 5px;
        border-radius: var(--radius-sm);
    }
    
    /* Футер для мобільних */
    .footer {
        padding: 20px 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-copyright {
        margin-top: 15px;
    }
}

/* Забезпечення видимості превью */
#videoPreview {
    opacity: 1 !important;
    visibility: visible !important;
}
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Оверлей (фон) */
.video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Контент попапу */
.video-popup-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Кнопка закриття */
.video-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-default);
}

.video-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Контейнер для iframe */
.video-popup-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-popup-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Адаптивні стилі для попапу */
@media (max-width: 768px) {
    .video-popup-overlay {
        padding: 15px;
    }
    
    .video-popup-content {
        max-width: 100%;
        width: 100%;
    }
    
    .video-popup-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .video-popup-overlay {
        padding: 10px;
    }
    
    .video-popup-close {
        width: 32px;
        height: 32px;
    }
    
    .video-popup-close svg {
        width: 18px;
        height: 18px;
    }
}

/* Анімація для кнопки закриття */
.video-popup-close svg {
    transition: var(--transition-default);
}

.video-popup-close:hover svg {
    transform: rotate(90deg);
}