@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* Reset & Base */
:root {
    --primary-color: #6366f1; /* Indigo */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --bg-main: #fafafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: rgba(99, 102, 241, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Sections */
section { padding: 100px 0; position: relative; overflow: hidden; }
.section-light { background-color: var(--bg-main); }
.section-dark { background-color: var(--bg-dark); color: #f8fafc; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 60px; font-weight: 700; letter-spacing: -0.5px; }

/* Buttons (Interactive) */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 14px 32px; border-radius: 50px; font-size: 1rem; font-weight: 500;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; z-index: 1; overflow: hidden; text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff; border: none;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(99, 102, 241, 0.7);
    color: #ffffff;
}

.btn-outline {
    background: transparent; color: var(--primary-color);
    border: 1.5px solid var(--border-light);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* Navbar (Glassmorphism) */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(250, 250, 252, 0.75);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 5px 0; }
.nav-links a:hover { color: var(--text-main); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 50%; transform: translateX(-50%);
    background: var(--primary-gradient); transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }

/* Hero with Animated Background */
.hero {
    padding: 200px 0 120px;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: ""; position: absolute;
    width: 800px; height: 800px;
    border-radius: 50%;
    z-index: 0; 
    pointer-events: none;
}
.hero::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0) 70%);
    top: -300px; left: -100px;
    animation: floatBlob1 10s infinite ease-in-out alternate;
}
.hero::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -200px; right: -100px;
    animation: floatBlob2 12s infinite ease-in-out alternate-reverse;
}
@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 100px) scale(1.2); }
}
@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-150px, -150px) scale(1.3); }
}
.hero .container { position: relative; z-index: 1; }
.headline { font-size: 4rem; margin-bottom: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.sub-headline { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px; font-weight: 400; line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; align-items: center; }

/* Cards Grid (Interactive) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card {
    background: var(--bg-card); padding: 50px 40px; border-radius: 24px;
    text-align: center; border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--border-light); }
.card-icon {
    font-size: 3rem; margin-bottom: 24px; display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .card-icon { transform: scale(1.15) rotate(5deg); }
.card h3 { font-size: 1.4rem; margin-bottom: 16px; font-weight: 700; color: var(--text-main); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.dark-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: none; }
.dark-card:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255,255,255,0.1); }
.dark-card h3 { color: #f8fafc; }
.dark-card p { color: #94a3b8; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; }
.pricing-card {
    background: var(--bg-card); border: 1px solid rgba(0,0,0,0.05);
    padding: 50px 40px; border-radius: 24px; text-align: center;
    position: relative; transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.pricing-card.popular {
    border: 2px solid var(--primary-color); transform: scale(1.05);
    box-shadow: var(--shadow-md); z-index: 2;
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); box-shadow: var(--shadow-hover); }
.badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: var(--primary-gradient); color: white;
    padding: 6px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}
.price { font-size: 3.5rem; font-weight: 800; margin: 30px 0; color: var(--text-main); letter-spacing: -1px; }
.price span { font-size: 1.2rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.features-list { list-style: none; margin: 0 0 40px 0; text-align: left; }
.features-list li { padding: 12px 0; border-bottom: 1px dashed rgba(0,0,0,0.06); color: var(--text-muted); display: flex; align-items: center; }
.features-list li:before {
    content: "✦"; color: var(--primary-color); margin-right: 12px; font-size: 1.1rem;
}

/* Reviews */
.review-card {
    background: rgba(255, 255, 255, 0.02); padding: 40px; border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.4s ease;
}
.review-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.04); border-color: rgba(255,255,255,0.1); }
.stars { color: #fbbf24; margin-bottom: 20px; letter-spacing: 2px; }
.review-text { font-style: italic; margin-bottom: 24px; color: #cbd5e1; line-height: 1.8; font-weight: 300; }
.reviewer { font-weight: 600; color: #f8fafc; font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    margin-bottom: 24px; background: var(--bg-card); padding: 30px 40px;
    border-radius: 20px; box-shadow: var(--shadow-sm);
    transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.03);
}
.faq-item:hover { transform: translateX(8px); border-color: var(--border-light); box-shadow: var(--shadow-md); }
.faq-question { font-size: 1.1rem; margin-bottom: 12px; font-weight: 700; color: var(--text-main); }
.faq-answer { color: var(--text-muted); line-height: 1.7; font-weight: 400; }

/* Footer */
.footer { background: var(--bg-dark); color: #64748b; padding: 80px 0 40px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; font-weight: 500; transition: color 0.3s ease; }
.footer-links a:hover { color: #ffffff; }
.footer-copyright { font-size: 0.9rem; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Article / Sub-pages */
.page-content { padding: 140px 0 80px; }
.article {
    background: var(--bg-card); padding: 50px; border-radius: 24px; margin-bottom: 30px;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.article:hover { box-shadow: var(--shadow-md); }
.article h2 { margin-bottom: 20px; color: var(--text-main); font-weight: 700; }
.page-content ul { list-style: none; margin-left: 0; }
.page-content ul li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--text-muted); }
.page-content ul li::before {
    content: "•"; color: var(--primary-color); position: absolute; left: 0; font-size: 1.5rem; line-height: 1; top: -2px;
}
.page-content p { color: var(--text-muted); }

/* App Cards (Streaming & AI) */
.app-group { margin-bottom: 50px; }
.app-group-title {
    color: #f8fafc; font-size: 1.15rem; margin-bottom: 24px; font-weight: 600; text-align: center; letter-spacing: 0.5px;
}
.app-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 900px; margin: 0 auto;
}
.app-card {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 24px 10px 10px; border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.app-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.app-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 1.1rem;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.2);
}
.app-name {
    color: #e2e8f0; font-weight: 600; font-size: 1rem; letter-spacing: 0.5px;
}

/* Sitemap Cards */
.sitemap-group { margin-bottom: 50px; }
.sitemap-group h3 {
    font-size: 1.3rem; color: var(--text-main); font-weight: 700;
    margin-bottom: 24px; padding-left: 14px;
    border-left: 5px solid var(--primary-color);
}
.sitemap-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.sitemap-card {
    display: inline-flex; align-items: center;
    background: #f8fafc; border: 1px solid rgba(0,0,0,0.04);
    padding: 14px 24px; border-radius: 16px;
    color: var(--text-muted); font-size: 0.95rem; font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
}
.sitemap-card:hover {
    transform: translateY(-4px); background: #ffffff;
    color: var(--primary-color); border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero .headline { animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.hero .sub-headline { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s backwards; }
.hero .hero-actions { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s backwards; }

/* Responsive */
@media (max-width: 1024px) {
    .headline { font-size: 3rem; }
    .card-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .headline { font-size: 2.2rem; }
    .card-grid, .pricing-grid { grid-template-columns: 1fr; }
    .navbar .nav-links { display: none; }
    .btn { padding: 16px 24px; width: 100%; justify-content: center; }
    .hero-actions { flex-direction: column; width: 100%; padding: 0; }
    .hero-actions .btn { width: 100%; }
    .hero { padding: 140px 0 80px; }
    .footer-links { flex-direction: column; gap: 20px; }
    .article { padding: 30px; }
}


/* Accessibility & SEO Additions */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6, section {
    scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Details/Summary FAQ */
details.faq-item {
    background: var(--bg-main);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}
details.faq-item summary {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    list-style: none; /* Hide default arrow */
    outline: none;
    position: relative;
    padding-right: 20px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}
details.faq-item[open] summary::after { content: "-"; }
details.faq-item p { margin-top: 15px; color: var(--text-muted); line-height: 1.6; }

/* Pricing Table Override */
.pricing-table-container {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 40px;
}
table.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Force scroll on mobile */
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
table.pricing-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}
table.pricing-table th, table.pricing-table td {
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}
table.pricing-table th {
    background: rgba(99, 102, 241, 0.05);
    font-size: 1.2rem;
    color: var(--text-main);
}
table.pricing-table .popular-th {
    background: rgba(99, 102, 241, 0.1);
    border-top: 4px solid var(--primary-color);
}
table.pricing-table td {
    color: var(--text-muted);
}
table.pricing-table .price-row td {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}
table.pricing-table .price-row span {
    font-size: 1rem;
    color: var(--text-muted);
}
