﻿/* Reset & Base */
:root {
    --primary-color: #60A5FA;
    --primary-hover: #3B82F6;
    --secondary-color: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --bg-main: #02061A;
    --border-color: rgba(255, 255, 255, 0.1);
    --radius: 8px;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
}

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

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

/* Global Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000000; /* Dark text on bright blue button */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--text-muted);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Header */
header {
    background: rgba(2, 6, 26, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: #D1D5DB;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    background: transparent;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.25rem;
    color: #E5E7EB;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Sections */
.features, .streaming-ai, .pricing, .reviews, .faq {
    padding: 80px 0;
    background: transparent;
}

.feature-grid, .media-grid, .pricing-grid, .review-grid {
    display: grid;
    gap: 32px;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.feature-card, .media-card, .pricing-card, .review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover, .media-card:hover, .pricing-card:hover, .review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.4);
    background: var(--card-hover-bg);
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card p, .media-card p, .faq-item p {
    color: var(--text-muted);
}

/* Media Grid */
.media-grid {
    grid-template-columns: repeat(2, 1fr);
}

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

.pricing-card {
    text-align: center;
    position: relative;
    padding: 40px;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    background: rgba(96, 165, 250, 0.05);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: #93C5FD;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 24px 0;
    color: #FFFFFF;
}

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

.pricing-card ul {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card .btn-primary {
    width: 100%;
}

/* Reviews */
.review-grid {
    grid-template-columns: repeat(3, 1fr);
}

.review-card p {
    font-style: italic;
    margin-bottom: 16px;
    color: #E5E7EB;
}

.reviewer {
    color: var(--primary-color);
    font-weight: 600;
}

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

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

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

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #FFFFFF;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    color: #D1D5DB;
    font-weight: 500;
    transition: color 0.3s;
}

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

footer p {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .feature-grid, .media-grid, .pricing-grid, .review-grid {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
        height: auto;
        padding: 16px 20px;
        gap: 16px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Accessibility & SEO Fixes */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #000;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Scroll margin for fixed header */
section, h1, h2, h3, [id] {
    scroll-margin-top: 80px;
}

/* Touch targets for mobile */
nav a {
    padding: 10px;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
    line-height: 24px;
}

/* Semantic FAQ Details/Summary reset */
details.faq-item {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    text-align: left;
}
details.faq-item:last-child {
    border-bottom: none;
}
details.faq-item summary {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #FFFFFF;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item p {
    margin-top: 12px;
    color: var(--text-muted);
}