/* Reset & Base */
*, *:before, *:after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #f8fafc;
    font-family: 'Sofia Sans Extra Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

a { text-decoration: none; color: inherit; }
img { vertical-align: middle; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.d-none { display: none !important; }

/* Fonts */
@font-face {
    font-family: 'Sofia Sans Extra Condensed';
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/sofia-latin.woff2) format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Sans Extra Condensed';
    src: url(/fonts/sofia-cyrillic.woff2) format('woff2');
    unicode-range: U+0400-045F, U+0490-0491;
    font-display: swap;
}

/* ========================================
   BRAND BAR - Top Navigation
   ======================================== */
.brand-bar {
    background: linear-gradient(135deg, #5b1eb5 0%, #8b2eb5 50%, #fa0c4d 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(91, 30, 181, 0.3);
}

.brand-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
}

.eq {
    display: block;
    width: 5px;
    background: #fff;
    border-radius: 3px;
}

.eq-1 { height: 12px; animation: eq-animate 1.1s ease-in-out infinite; }
.eq-2 { height: 20px; animation: eq-animate 0.9s ease-in-out infinite 0.1s; }
.eq-3 { height: 28px; animation: eq-animate 1.0s ease-in-out infinite 0.2s; }
.eq-4 { height: 20px; animation: eq-animate 0.8s ease-in-out infinite 0.3s; }
.eq-5 { height: 12px; animation: eq-animate 1.2s ease-in-out infinite 0.4s; }

@keyframes eq-animate {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-download {
    background: #fff;
    color: #5b1eb5;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #f0e6ff;
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector .dropdown {
    position: relative;
}

.language-selector .dropbtn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.language-selector .dropbtn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.language-selector .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: 0.5rem;
}

.language-selector .dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.language-selector .dropdown-content a:hover {
    background: #f1f5f9;
}

.language-selector .dropdown:hover .dropdown-content {
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    padding: 4rem 0 5rem;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5b1eb5 0%, #fa0c4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-video {
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(91, 30, 181, 0.2);
}

.hero-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5b1eb5 0%, #7c3aed 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(91, 30, 181, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 30, 181, 0.4);
}

.btn-primary img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 5rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 30, 181, 0.15);
    border-color: #c4b5fd;
}

.feature-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon-wrap img {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #5b1eb5;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ========================================
   PREVIEW SECTION
   ======================================== */
.preview-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
}

.preview-content {
    text-align: center;
}

.preview-image {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
    text-align: center;
}

.cta-icon {
    width: 80px;
    margin-bottom: 1.5rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.cta-trial {
    font-size: 1.3rem;
    color: #5b1eb5;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-price {
    margin-bottom: 2rem;
}

.cta-price a {
    display: inline-block;
    background: #94f0e5;
    color: #0f766e;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.cta-price a:hover {
    background: #5eead4;
}

.cta-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5b1eb5;
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.2s;
}

.cta-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.cta-btn img {
    width: 24px;
    filter: brightness(0) invert(1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1e1b4b;
    color: #e2e8f0;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .brand-name {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #94a3b8;
}

.footer-phone {
    color: #c4b5fd !important;
    font-weight: 600;
    margin-top: 1rem !important;
}

.footer-links h4,
.footer-social h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #c4b5fd;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-icons a:hover {
    background: #5b1eb5;
    transform: translateY(-3px);
}

.social-icons img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========================================
   MODAL
   ======================================== */
.popup_bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup_container {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    margin: 1rem;
}

.form_header {
    font-size: 1.8rem;
    color: #5b1eb5;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.input_block {
    margin-bottom: 1rem;
}

.form_input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.form_input:focus {
    outline: none;
    border-color: #5b1eb5;
    background: #fff;
}

.form_input::placeholder {
    color: #94a3b8;
}

textarea.form_input {
    min-height: 120px;
    resize: vertical;
}

button.form_submit {
    width: 100%;
    background: linear-gradient(135deg, #5b1eb5 0%, #fa0c4d 100%);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    margin-top: 1rem;
    transition: all 0.2s;
}

button.form_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(91, 30, 181, 0.3);
}

.form_close {
    text-align: center;
    margin-top: 1.5rem;
}

.popup_close {
    color: #64748b;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.popup_close:hover {
    color: #fa0c4d;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .brand-bar-inner {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .brand-bar-inner {
        height: 60px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .btn-download {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-downloads {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
