/* Dark Theme with Stars and Glow Effects */

/* Stars Background */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #0a0a0f 0%, #000000 100%);
    overflow: hidden;
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 
        100px 200px #fff,
        300px 100px #fff,
        500px 300px #fff,
        700px 150px #fff,
        900px 250px #fff,
        1100px 80px #fff,
        1300px 400px #fff,
        200px 500px #fff,
        400px 600px #fff,
        600px 700px #fff,
        800px 550px #fff,
        1000px 650px #fff,
        1200px 750px #fff,
        50px 300px #fff,
        250px 450px #fff,
        450px 200px #fff,
        650px 500px #fff,
        850px 350px #fff,
        1050px 600px #fff,
        1250px 100px #fff,
        150px 100px #fff,
        350px 350px #fff,
        550px 150px #fff,
        750px 450px #fff,
        950px 300px #fff,
        1150px 550px #fff,
        1350px 200px #fff;
    animation: twinkle 3s infinite;
}

.stars-background::after {
    animation-delay: 1.5s;
    box-shadow: 
        150px 250px #fff,
        350px 150px #fff,
        550px 350px #fff,
        750px 200px #fff,
        950px 300px #fff,
        1150px 130px #fff,
        1350px 450px #fff,
        250px 550px #fff,
        450px 650px #fff,
        650px 750px #fff,
        850px 600px #fff,
        1050px 700px #fff,
        1250px 800px #fff,
        100px 350px #fff,
        300px 500px #fff,
        500px 250px #fff,
        700px 550px #fff,
        900px 400px #fff,
        1100px 650px #fff,
        1300px 150px #fff,
        200px 150px #fff,
        400px 400px #fff,
        600px 200px #fff,
        800px 500px #fff,
        1000px 350px #fff,
        1200px 600px #fff,
        1400px 250px #fff;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Glow Effects */
.glow-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-effects::before,
.glow-effects::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.glow-effects::before {
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.glow-effects::after {
    bottom: -300px;
    right: -300px;
    background: radial-gradient(circle, rgba(150, 100, 255, 0.15) 0%, transparent 70%);
    animation-delay: 10s;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px;
    mix-blend-mode: screen;
    animation: pan-grid 40s linear infinite;
}

@keyframes pan-grid {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-10px, -20px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.particle-trails {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle-trails span {
    position: absolute;
    width: 2px;
    height: 120px;
    top: -150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(120, 160, 255, 0.4));
    filter: blur(0.5px);
    animation: drift-lines 6s linear infinite;
}

.particle-trails span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle-trails span:nth-child(2) {
    left: 40%;
    animation-delay: 1.5s;
}

.particle-trails span:nth-child(3) {
    left: 70%;
    animation-delay: 3s;
}

.particle-trails span:nth-child(4) {
    left: 85%;
    animation-delay: 4.2s;
}

@keyframes drift-lines {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 140vh, 0);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, 100px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50px, 150px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(150px, -50px) scale(1.1);
        opacity: 0.5;
    }
}

/* Dark Theme Overrides */
body {
    background: #000000 !important;
    color: #e0e0e0 !important;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.title {
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Header and Navigation */
.header {
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header .wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav a {
    color: #e0e0e0 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    opacity: 1 !important;
}

.nav b {
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.8);
}


/* Main Block */
.main-block {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 100%;
}



.main-block__image {
    text-align: center;
    margin-bottom: 30px;
}

.main-block__image .main-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    width: auto;
    object-fit: contain;
    border-radius: 25px;
    filter: drop-shadow(0 0 30px rgba(100, 150, 255, 0.5));
    animation: float-image 6s ease-in-out infinite;
}

@keyframes float-image {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.main-block .title {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(100, 150, 255, 0.3),
        0 0 30px rgba(100, 150, 255, 0.2);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.main-block .title_1 {
    text-align: left !important;
}

.main-block .title_2 {
    text-align: center !important;
}

.main-block .title_3 {
    text-align: right !important;
}


.main-block__text {
    color: #d0d0d0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: left;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: rgba(5, 5, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.12), rgba(150, 100, 255, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    background: rgba(8, 8, 15, 0.9);
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 
        0 8px 30px rgba(100, 150, 255, 0.3),
        0 0 60px rgba(100, 150, 255, 0.15),
        inset 0 0 20px rgba(100, 150, 255, 0.05);
    transform: translateY(-8px);
}

.card:hover::before {
    opacity: 1;
}

.card__title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.4);
}

.card__text {
    color: #b0b0b0;
}

.card__text b {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(100, 150, 255, 0.5);
}

.card__num {
    color: #666;
}

.cards_secondary {
    margin-top: -20px;
    margin-bottom: 60px;
    gap: 20px;
}

.cards_secondary .card {
    background: rgba(5, 5, 15, 0.85);
    border: 1px solid rgba(100, 150, 255, 0.25);
}

.cards_secondary .card__num {
    font-size: 20px;
    color: #8cb4ff;
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.7);
}

.cards_secondary .card__text {
    color: #c5c5c5;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.9) 0%, rgba(150, 100, 255, 0.9) 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(100, 150, 255, 0.4),
        0 0 40px rgba(100, 150, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover {
    box-shadow: 
        0 0 30px rgba(100, 150, 255, 0.6),
        0 0 60px rgba(100, 150, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn:hover::before {
    left: 100%;
}

/* Promo Block */
.promo {
    background: rgba(5, 5, 10, 0.8);
    border: 1px solid rgba(100, 150, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 0 40px rgba(100, 150, 255, 0.2),
        inset 0 0 40px rgba(100, 150, 255, 0.05);
}

.promo__title {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.6);
}

.promo__text {
    color: #c0c0c0;
}

.promo__text b {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
}

/* Instructions */
.instr {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.instr__title {
    color: #ffffff;
}

.instr__num {
    color: #666;
}

/* Video Block */
.video {
    background: rgba(5, 5, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq details {
    background: rgba(5, 5, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq details[open] {
    border-color: rgba(120, 160, 255, 0.4);
    box-shadow: 0 12px 30px rgba(100, 150, 255, 0.2);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    color: #ffffff;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '↗';
    float: right;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
    color: #8cb4ff;
}

.faq p {
    margin-top: 12px;
    color: #c7c7c7;
    line-height: 1.6;
}

.video:hover {
    border-color: rgba(100, 150, 255, 0.5);
    box-shadow: 0 0 30px rgba(100, 150, 255, 0.4);
    transform: scale(1.03);
}

.video__media {
    background: rgba(0, 0, 0, 0.9) !important;
    border-radius: 12px;
    overflow: hidden;
}

/* Footer */
.footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Menu Button */
.menu-btn {
    position: relative;
    z-index: 1001;
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    opacity: 1;
}

.menu-btn::before,
.menu-btn::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-btn::before {
    top: 10px;
    transform-origin: center;
}

.menu-btn::after {
    bottom: 10px;
    transform-origin: center;
}

.menu-btn span {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-btn.close::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-btn.close::after {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.menu-btn.close span {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

/* Menu */
.menu {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 100px 20px 20px;
    background: rgba(0, 0, 0, 0.99);
    backdrop-filter: blur(25px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

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

.menu__link {
    display: block;
    color: #e0e0e0;
    font-size: 18px;
    line-height: 50px;
    padding: 10px 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.menu__link:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.6);
    padding-left: 10px;
}

.menu hr {
    margin: 20px 0;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    height: 1px;
}

/* Title Block */
.title_block {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(100, 150, 255, 0.3);
}

/* Additional Glow Effects for Text */
.header__install {
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.8) !important;
}

/* Responsive Adjustments */
@media (max-width: 1350px) {
    .header .wrapper,
    .footer .wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .main-block__image .main-image {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .menu-btn {
        display: block !important;
    }
    
    .header .nav__links {
        display: none !important;
    }
    
    .header__install {
        display: none !important;
    }
    
    .card {
        padding: 20px;
    }
    
    .glow-effects::before,
    .glow-effects::after {
        width: 400px;
        height: 400px;
    }
    
    .header .wrapper,
    .footer .wrapper {
        padding: 0 15px;
    }
    
    .main-block__text {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    .main-block__image {
        margin-bottom: 20px;
    }
    
    .main-block__image .main-image {
        max-height: 200px;
    }
    
    .main-block .title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    .main-block__text {
        font-size: 12px !important;
        line-height: 1.4 !important;
        padding-left: 0 !important;
        text-indent: 0 !important;
    }
}

@media (max-width: 480px) {
    .main-block .title {
        text-align: center !important;
    }
    
    .main-block__text {
        text-align: center;
    }
    
    .main-block__image .main-image {
        max-height: 150px;
    }
    
    .main-block .title {
        font-size: 24px !important;
    }
    
    .main-block__text {
        font-size: 11px !important;
    }
}

@media (min-width: 1920px) {
    .header .wrapper,
    .footer .wrapper {
        max-width: 1600px;
    }
}
