@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6c25c4;
    --primary-light: #8b44d0;
    --secondary: #ff6b2b;
    --accent: #ff3366;
    --bg: #f8f9ff;
    --bg-light: #ffffff;
    --bg-alt: #f0f2ff;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #555570;
    --gray: #eef0f5;
    --border: rgba(108,37,196,0.1);
    --shadow: 0 4px 24px rgba(108,37,196,0.08);
    --shadow-hover: 0 12px 40px rgba(108,37,196,0.15);
    --gradient: linear-gradient(135deg, #6c25c4, #ff6b2b);
    --gradient-light: linear-gradient(135deg, #8b44d0, #ff8855);
    --gradient-bg: linear-gradient(180deg, #f8f9ff 0%, #f0f2ff 50%, #e8ecff 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

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

section { padding: 80px 0; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0; transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.navbar.scrolled { padding: 10px 0; background: rgba(255,255,255,0.98); box-shadow: 0 4px 30px rgba(108,37,196,0.1); }

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

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

.nav-logo img { height: 60px; width: auto; }

.nav-logo span { font-weight: 300; }

.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a {
    color: var(--text); font-weight: 700; font-size: 1rem;
    position: relative; padding: 5px 0;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: var(--gradient); color: white; padding: 12px 30px;
    border-radius: 25px; font-weight: 700; font-size: 1.05rem;
    border: none; cursor: pointer; transition: all 0.3s ease;
    text-decoration: none;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 25px; height: 2px; background: var(--text); transition: all 0.3s ease; }

/* HERO */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: var(--gradient-bg); position: relative;
    overflow: hidden; padding-top: 80px;
}

.hero::before {
    content: ''; position: absolute; top: -30%; right: -15%;
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(108,37,196,0.12), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: ''; position: absolute; bottom: -20%; left: -10%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,43,0.08), transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

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

.hero .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; position: relative; z-index: 1; }

.hero-content h1 {
    font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: var(--text);
}

.hero-content h1 .gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-content p {
    font-size: 1.15rem; color: var(--text-light); margin-bottom: 35px; max-width: 500px;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-primary {
    background: var(--gradient); color: white; padding: 14px 35px;
    border-radius: 25px; font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer; transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(108,37,196,0.3);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(108,37,196,0.4); }

.btn-secondary {
    background: white; color: var(--primary); padding: 14px 35px;
    border-radius: 25px; font-weight: 600; font-size: 1rem;
    border: 2px solid var(--primary); cursor: pointer;
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px;
}

.btn-secondary:hover { background: var(--primary); color: white; }

.hero-image {
    position: relative; display: flex; justify-content: center; align-items: center;
}

.hero-image .mockup-content {
    width: 100%; max-width: 600px; border-radius: 20px;
    background: var(--card-bg); border: 2px solid var(--border);
    padding: 20px; box-shadow: var(--shadow-hover);
    min-height: 200px; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px; transform: translateX(100px);
}
.mockup-channel {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; aspect-ratio: 1 / 1; border-radius: 12px;
    background: var(--gray);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.6s ease, background 0.3s ease;
    text-align: center;
}

.mockup-channel:hover { background: #e8ecff; transform: translateY(-4px) scale(1.03); }
.mockup-channel.channel-shuffle {
    opacity: 0; transform: scale(0.7) rotate(4deg); filter: blur(8px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.55, 0, 0.1, 1),
                filter 0.6s ease;
}
.mockup-channel .channel-icon {
    width: 130px; height: 130px; border-radius: 14px;
    background: white; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}

.mockup-channel .channel-icon img {
    width: 100%; height: 100%; object-fit: contain; padding: 2px;
}

.mockup-channel .channel-live {
    position: absolute; top: 8px; right: 8px;
    background: #ff3333; color: white; padding: 1px 6px;
    border-radius: 10px; font-size: 0.55rem; font-weight: 600;
    animation: pulse-live 2s infinite;
}

.mockup-channel .channel-live.channel-4k {
    background: var(--gradient);
    animation: pulse-4k 2s infinite;
}
@keyframes pulse-4k { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* SECTION TITLES */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
    font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; color: var(--text);
}
.section-title h2 .gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* FEATURES */
.features { background: var(--bg-alt); }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg); border-radius: 16px; padding: 35px;
    border: 1px solid var(--border); transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }

.feature-icon {
    width: 60px; height: 60px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    margin-bottom: 20px; background: linear-gradient(135deg, rgba(108,37,196,0.15), rgba(255,107,43,0.15));
}

.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

/* PRICING */
.pricing { position: relative; background: var(--bg); }

.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; margin-bottom: 50px;
}

.pricing-card {
    background: var(--card-bg); border-radius: 20px; padding: 40px 30px;
    text-align: center; border: 1px solid var(--border);
    transition: all 0.3s ease; position: relative; overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient); transform: scaleX(0); transition: transform 0.3s ease;
}

.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.pricing-card:hover::before { transform: scaleX(1); }

.pricing-card.popular { border-color: var(--primary); background: linear-gradient(180deg, rgba(108,37,196,0.05), white); }

.popular-badge {
    position: absolute; top: 15px; right: -35px; background: var(--secondary);
    color: white; padding: 5px 40px; font-size: 0.75rem; font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }

.pricing-card .price { font-size: 3rem; font-weight: 800; margin: 15px 0; color: var(--text); }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }

.pricing-card ul { list-style: none; text-align: left; margin: 25px 0; }
.pricing-card ul li { padding: 8px 0; color: var(--text-light); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.pricing-card ul li::before { content: '✓'; color: var(--secondary); font-weight: 700; }

/* FAMILY PLANS */
.family-plans { text-align: center; background: var(--bg-alt); }

.family-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.family-card {
    background: var(--card-bg); border-radius: 16px; padding: 30px;
    text-align: center; border: 1px solid var(--border); transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.family-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--secondary); }

.family-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.family-card .price { font-size: 2.2rem; font-weight: 800; color: var(--secondary); margin: 10px 0; }
.family-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 20px; }

/* DOWNLOAD */
.download { background: var(--bg-alt); }

.download-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.download-card {
    background: var(--card-bg); border-radius: 16px; padding: 35px;
    text-align: center; border: 1px solid var(--border); transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.download-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }

.download-card .platform-icon { font-size: 3rem; margin-bottom: 15px; }
.download-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }
.download-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 20px; }
.download-card .rating { color: var(--secondary); margin-bottom: 15px; }

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

.faq-item {
    background: var(--card-bg); border-radius: 12px; margin-bottom: 15px;
    border: 1px solid var(--border); overflow: hidden; transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.faq-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-hover); }

.faq-question {
    padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-weight: 600; font-size: 1rem; color: var(--text);
}

.faq-question .arrow { transition: transform 0.3s ease; font-size: 1.2rem; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light); line-height: 1.7;
}

.faq-item.active .faq-answer { max-height: 300px; padding: 0 25px 20px; }

/* TESTIMONIALS */
.testimonials { background: var(--bg-alt); }

.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--card-bg); border-radius: 16px; padding: 30px;
    border: 1px solid var(--border); transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.testimonial-stars { color: #ffc107; margin-bottom: 15px; font-size: 1.1rem; }
.testimonial-card p { color: var(--text-light); font-style: italic; margin-bottom: 20px; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--gradient); display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 1.1rem; color: white;
}
.testimonial-author .name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.testimonial-author .role { color: var(--text-light); font-size: 0.8rem; }

/* BLOG */
.blog { background: var(--bg); }

.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--card-bg); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border); transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }

.blog-card .blog-img { height: 180px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; }
.blog-card .blog-content { padding: 25px; }
.blog-card .blog-tag { background: rgba(108,37,196,0.1); color: var(--primary); padding: 4px 12px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.blog-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 15px; }
.blog-card .blog-date { color: var(--text-light); font-size: 0.8rem; }

/* CTA SECTION */
.cta-section {
    background: linear-gradient(180deg, var(--bg) 0%, #e8ecff 100%); text-align: center;
    padding: 100px 0; position: relative; overflow: hidden;
}

.cta-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(108,37,196,0.06), transparent 70%);
}

.cta-section h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; position: relative; color: var(--text); }
.cta-section p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 35px; position: relative; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { position: relative; font-size: 1.1rem; padding: 16px 45px; }

/* FOOTER */
.footer { background: #e8ecff; padding: 60px 0 30px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-brand .nav-logo { font-size: 1.5rem; display: inline-block; margin-bottom: 15px; }
.footer-brand p { color: var(--text-light); font-size: 0.9rem; max-width: 300px; }

.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-light); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(108,37,196,0.1); padding-top: 25px;
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 15px;
}

.footer-bottom p { color: var(--text-light); font-size: 0.85rem; }
.footer-bottom .footer-links { display: flex; gap: 20px; }
.footer-bottom .footer-links a { color: var(--text-light); font-size: 0.85rem; }

/* LIVE COUNTDOWN */
.countdown-banner {
    background: linear-gradient(90deg, #4da8da, #7ec8e3);
    padding: 8px 0; text-align: center; color: white;
    font-weight: 600; font-size: 0.9rem;
}

.countdown-banner .timer { font-weight: 800; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 35px; }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98); flex-direction: column; align-items: center;
        justify-content: center; gap: 30px; }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .hero-content h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* SCROLL ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* MOBILE MENU OVERLAY */
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.3); z-index: 999; }
.nav-overlay.active { display: block; }

/* TELEGRAM CONTACT BUTTON */
.telegram-btn {
    position: fixed; bottom: 30px; right: 30px; z-index: 998;
    width: 55px; height: 55px; border-radius: 50%;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(42,171,238,0.45);
    animation: telegram-slide 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.telegram-btn svg { width: 28px; height: 28px; fill: white; }
.telegram-btn:hover { transform: translateY(-5px) scale(1.06); box-shadow: 0 12px 26px rgba(42,171,238,0.55); }
.telegram-btn::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(42,171,238,0.5); animation: telegram-ring 2s ease-out infinite;
}
@keyframes telegram-slide {
    from { transform: translateX(-150%) ; opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes telegram-ring {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.6); opacity: 0; }
}
