@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;700;800&family=Space+Mono&display=swap');

/* Variables for Liquid-Glassmorphic Cloud Theme */
:root {
    --bg-color: #f0f4f8;
    --text-main: #0b0c10;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --blob-1: #6366f1; /* Indigo */
    --blob-2: #06b6d4; /* Aqua */
    --blob-3: #a855f7; /* Purple */
    --btn-text: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
    --bg-color: #0b0c10;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --blob-1: #4f46e5; 
    --blob-2: #06b6d4; 
    --blob-3: #1e1b4b; 
    --card-bg: rgba(20, 21, 26, 0.4);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* offset for floating header */
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

/* Ambient Cloud Mesh Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: flow 15s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: var(--blob-1);
    animation-delay: 0s;
}
.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: var(--blob-2);
    animation-delay: -5s;
}
.blob-3 {
    top: 40%; left: 40%;
    width: 40vw; height: 40vw;
    background: var(--blob-3);
    animation-delay: -10s;
}

@keyframes flow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.1); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

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

/* Glassmorphic Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* Prismatic Edge Sheen on Hover */
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 50%, rgba(255,255,255,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.glass-panel:hover::before {
    opacity: 1;
}

/* Floating Island Header */
.floating-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 1000;
    border-radius: 999px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.logo a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons (Magnetic Action Island) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background: var(--glass-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}
.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}
.btn-full {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: var(--glass-bg);
    transform: rotate(15deg) scale(1.05);
}
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}
.hero-content {
    position: relative;
    z-index: 10;
}
.headline {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sub-headline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* Features */
.feature-card {
    padding: 40px;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-8px);
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.feature-card p {
    color: var(--text-muted);
}

/* Streaming & AI Matrix */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.matrix-item {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.matrix-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    z-index: 2;
}
.matrix-item .ping {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #10b981;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.matrix-item .badge {
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}
.matrix-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.matrix-item:hover::after {
    opacity: 1;
}
.matrix-item:hover {
    transform: translateY(-4px);
}

/* Sculptural Pricing Cards */
.pricing-card {
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.popular {
    transform: scale(1.05);
    background: var(--card-bg);
}
.pricing-card.popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #a855f7);
    z-index: -1;
    opacity: 0.8;
}
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}
.pricing-card:not(.popular):hover {
    transform: translateY(-8px);
}
.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}
.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}
.pricing-features {
    margin-bottom: 40px;
    flex-grow: 1;
}
.pricing-features li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
}
.pricing-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Reviews */
.review-card {
    padding: 32px;
}
.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}
.reviewer {
    font-weight: 600;
    font-size: 0.95rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    padding: 32px;
    margin-bottom: 24px;
}
.faq-q {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.faq-a {
    color: var(--text-muted);
}

/* Subpages Basic Layout */
.subpage-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}
.subpage-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}
.subpage-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}
.subpage-content ul {
    list-style: disc inside;
    margin-top: 16px;
    color: var(--text-muted);
}
.subpage-content ul li {
    margin-bottom: 12px;
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
    background: rgba(0,0,0,0.02);
}
[data-theme="dark"] .footer {
    background: rgba(255,255,255,0.01);
}
.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}
.footer-links a:hover {
    color: var(--text-main);
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .headline { font-size: 3.5rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-8px); }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .floating-header {
        width: 100%;
        border-radius: 0;
        top: 0;
        height: 64px;
        padding: 0 20px;
        backdrop-filter: blur(20px);
    }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .headline { font-size: 2.5rem; }
    .section { padding: 80px 0; }
    .hero { min-height: 80vh; padding-top: 80px; }
    .hero-actions { flex-direction: column; }
    .btn-large { width: 100%; }
    .container { padding: 0 16px; }
    .subpage-content { padding: 32px 20px; }
    .nav-actions { margin-left: auto; }
}
