/* Base Variables & Setup */
:root {
    --bg-base: #0a0e17;
    --bg-darker: #06080d;
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --accent-purple: #8b5cf6;
    --text-pure: #ffffff;
    --text-body: #e5e7eb;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(59, 130, 246, 0.4);
    --shadow-glow: 0 8px 30px rgba(59, 130, 246, 0.25);
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-stack: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at 50% 0%, #121a2f 0%, var(--bg-base) 100%);
    color: var(--text-body);
    font-family: var(--font-stack);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3 {
    color: var(--text-pure);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-purple {
    color: var(--accent-purple);
    font-weight: bold;
}

.eyebrow {
    display: block;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
}
@media (min-width: 768px) {
    .section-header h2 { font-size: 2.5rem; }
}

/* Utility Components */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--glass-hover-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, border-bottom 0.3s ease;
    padding: 1rem 2rem;
}
.navbar.scrolled {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-icon {
    width: 32px;
    height: 32px;
}
.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-pure);
    letter-spacing: -0.5px;
}

.nav-links {
    display: none;
}
.nav-links a {
    color: var(--text-body);
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-ctas {
    display: none;
    gap: 1rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-pure);
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
    .nav-ctas {
        display: flex;
    }
    .hamburger {
        display: none;
    }
}

/* Mobile Nav Active */
@media (max-width: 767px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(16px);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 1.5rem;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 2rem 6rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 10s infinite alternate;
}
.blob-1 {
    top: 10%; left: 10%;
    width: 300px; height: 300px;
    background: var(--accent-blue);
}
.blob-2 {
    top: 20%; right: 10%;
    width: 250px; height: 250px;
    background: var(--accent-purple);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.discount-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.badge-tag {
    background: var(--accent-purple);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero h1 { font-size: 4rem; }
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* Features */
.features, .why-choose, .pricing, .testimonials, .faq {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.streaming-card {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(to right, rgba(255,255,255,0.02), rgba(34,211,238,0.05));
}
@media (min-width: 768px) {
    .streaming-card {
        flex-direction: row;
        justify-content: space-between;
    }
    .streaming-content { width: 50%; }
    .streaming-logos { width: 40%; }
}
.streaming-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Why Choose - Rows */
.feature-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
}
@media (min-width: 768px) {
    .feature-row { flex-direction: row; }
    .feature-row.reverse { flex-direction: row-reverse; }
    .feature-text, .feature-visual { width: 50%; }
}
.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.feature-text p {
    color: var(--text-muted);
}

/* Data Panel */
.panel-header {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    gap: 6px;
    align-items: center;
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.panel-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.data-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}
.data-row span:first-child { width: 60px; font-weight: 600; }
.data-row span:last-child { width: 50px; text-align: right; font-family: monospace; }
.bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 4px;
}

/* Terminal */
.terminal {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: var(--radius-lg);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.terminal-title {
    margin-left: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-stack);
}
.terminal-body {
    padding: 1.5rem;
    color: #c9d1d9;
    font-size: 0.95rem;
}
.terminal-body p { margin-bottom: 0.5rem; }
.prompt { color: #58a6ff; font-weight: bold; }
.output.success { color: #3fb950; }
.highlight-cyan { color: var(--accent-cyan); font-weight: bold; }
.blinking-cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Pricing */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.price {
    margin-bottom: 2rem;
}
.price .currency { font-size: 1.2rem; vertical-align: top; }
.price .amount { font-size: 3rem; font-weight: 700; color: var(--text-pure); }
.price .period { color: var(--text-muted); }

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}
.plan-features li {
    margin-bottom: 0.8rem;
    color: var(--text-body);
}

.pricing-card.recommended {
    border: 2px solid var(--accent-cyan);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(34,211,238,0.05), var(--glass-bg));
    box-shadow: var(--shadow-glow);
}
.recommended-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}
@media (max-width: 767px) {
    .pricing-card.recommended { transform: none; }
}

/* Marquee */
.testimonials { overflow: hidden; }
.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}
.marquee-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
    gap: 2rem;
    padding: 1rem;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.review-card {
    width: 350px;
    flex-shrink: 0;
}
.stars { color: #ffbd2e; margin-bottom: 1rem; letter-spacing: 2px; }
.reviewer { color: var(--accent-cyan); margin-top: 1rem; font-weight: 600; font-size: 0.9rem; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } 
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
details {
    cursor: pointer;
}
summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-pure);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-cyan);
    transition: transform 0.3s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p {
    margin-top: 1rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Bottom CTA */
.bottom-cta {
    text-align: center;
}
.cta-content {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(34,211,238,0.05));
    border: 1px solid var(--accent-blue);
}
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { color: var(--text-muted); margin-bottom: 2rem; }
.cta-btn {
    box-shadow: var(--shadow-glow);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-darker);
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-cyan); }
.copyright {
    color: #4b5563;
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
