:root {
    --bg-dark: #09090b;
    --card-bg: rgba(24, 24, 27, 0.7);
    --card-border: rgba(63, 63, 70, 0.5);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --glow: rgba(59, 130, 246, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
    filter: brightness(1.1);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
    padding: 1rem 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: none;
}
@media (min-width: 900px) {
    .nav-item { display: block; }
}
.nav-item:hover { color: var(--text-main); }

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
.hero-content {
    text-align: center;
    max-width: 800px;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-visuals {
    width: 100%;
    max-width: 600px;
    position: relative;
}
.floating-orbit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    justify-items: center;
}
.dynamic-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    text-align: center;
}
.dynamic-card.card-1 { animation-delay: 0s; transform: none; margin: 0; background: rgba(139, 92, 246, 0.05); border-color: rgba(139, 92, 246, 0.3); }
.dynamic-card.card-2 { animation-delay: -1.5s; transform: none; margin: 0; background: rgba(59, 130, 246, 0.05); border-color: rgba(59, 130, 246, 0.3); }
.dynamic-card.card-3 { animation-delay: -3s; transform: none; margin: 0; background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.3); }
.dynamic-card.card-4 { animation-delay: -4.5s; transform: none; margin: 0; background: rgba(245, 158, 11, 0.05); border-color: rgba(245, 158, 11, 0.3); }
.dynamic-card strong { font-size: 1.05rem; color: white; display: block; margin-bottom: 0.25rem; }
.dynamic-card div div { font-size: 0.8rem; color: var(--text-muted); }
.icon-small {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .hero h1 { font-size: 4rem; }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Streaming & AI Badges */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Cards */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.article-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-content-preview {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.article-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 700;
    color: white;
}
.article-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.read-more {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.article-card:hover .read-more {
    color: var(--primary-hover);
}

/* Article Page Layout with Sidebar */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 900px) {
    .article-layout {
        grid-template-columns: 3fr 1fr;
    }
}
.article-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 6rem;
}
.article-sidebar h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}
.article-sidebar a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s;
}
.article-sidebar a:hover, .article-sidebar a.active {
    color: var(--primary);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}
h2.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Pricing */
.pricing-card {
    display: flex;
    flex-direction: column;
}
.pricing-card.popular {
    border-color: var(--primary);
    position: relative;
    transform: scale(1.05);
    z-index: 10;
}
@media (max-width: 767px) {
    .pricing-card.popular { transform: none; }
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.25rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0 0.5rem;
    color: white;
}
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.features-list { list-style: none; margin: 2rem 0; flex-grow: 1; text-align: left; }
.features-list li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-muted); }
.features-list li::before { content: "✓"; color: var(--primary); font-weight: bold; }

/* Testimonials */
.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.2); }
.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 1.125rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; color: var(--text-muted); }

/* Footer */
footer {
    background: #000;
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 2fr; }
}
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}
@media (min-width: 768px) {
    .footer-links { justify-content: flex-end; }
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}
.footer-links a:hover { color: white; }
.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.875rem;
}

/* Glow effects */
.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
.glow-1 { top: -100px; left: -200px; }
.glow-2 { bottom: 10%; right: -200px; background: var(--accent); }
.glow-3 { top: 40%; left: 50%; transform: translateX(-50%); opacity: 0.1; }

/* Subpage styles */
.subpage-hero { padding: 8rem 0 4rem; text-align: center; border-bottom: 1px solid var(--card-border); margin-bottom: 4rem; }
.subpage-hero h1 { font-size: 3rem; margin-bottom: 1rem; color: white; }
.subpage-hero p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }
.content-block { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 1rem; padding: 2.5rem; margin-bottom: 2rem; }
.content-block h2 { margin-bottom: 1.5rem; color: var(--text-main); font-size: 1.5rem; }
.content-block h3 { margin: 1.5rem 0 0.5rem; color: white; }
.content-block p { margin-bottom: 1rem; color: var(--text-muted); }
.content-block ul { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-muted); }
.content-block li { margin-bottom: 0.5rem; }
