/* Base Variables & Reset */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 24px 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Visuals & Animations */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    min-width: 260px;
}

.floating-card.card-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    left: 0%;
    animation-delay: -2s;
}

.floating-card.card-3 {
    bottom: 10%;
    right: 15%;
    animation-delay: -4s;
}

.card-icon {
    font-size: 2rem;
    background: var(--bg-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-info strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.card-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.hero-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(14,165,233,0.05) 40%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Core Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: white;
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Streaming & AI */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.support-card {
    padding: 60px 48px;
    border-radius: var(--radius-lg);
    background-color: white;
    border: 1px solid var(--border-color);
}

.support-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.support-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background-color: var(--bg-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}

.pricing-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    background-color: white;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 64px 48px;
    box-shadow: var(--shadow-md);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 12px;
    font-weight: bold;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 24px;
}

.author {
    font-weight: 600;
    color: var(--text-muted);
}

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

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-muted);
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.article-img {
    height: 220px;
    background-color: var(--bg-light);
    width: 100%;
    object-fit: cover;
}

.article-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-main);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

/* FAQ Nav Tags (Tag Cloud) */
.faq-nav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-nav-tags a {
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-nav-tags a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.875rem;
}

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

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .features-grid, .testimonials-grid, .pricing-grid, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.popular {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-subtitle {
        margin: 0 auto 32px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-visual {
        height: 300px;
        margin-top: 40px;
    }
    .floating-card {
        min-width: 220px;
    }
    .floating-card.card-1 { top: 0; right: 0; }
    .floating-card.card-2 { top: 35%; left: 0; }
    .floating-card.card-3 { bottom: 0; right: 10%; }
    
    .features-grid, .support-grid, .testimonials-grid, .pricing-grid, .articles-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    .pricing-card.popular {
        padding: 48px;
    }
}
