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

:root {
    /* Futuristic Spatial Dark Theme (Default) */
    --bg-base: #06060A;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #BE123C;
    --primary-light: #FB7185;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(251, 113, 133, 0.4);
    --header-bg: rgba(6, 6, 10, 0.6);
    --shadow-glow: 0 10px 40px rgba(190, 18, 60, 0.15);
    --btn-text: #ffffff;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    /* Aurora Light Theme */
    --bg-base: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #e11d48;
    --primary-light: #fb7185;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover-border: rgba(225, 29, 72, 0.4);
    --header-bg: rgba(248, 250, 252, 0.7);
    --shadow-glow: 0 10px 40px rgba(225, 29, 72, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
    position: relative;
}

/* Nebula Mesh Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 20%, rgba(190, 18, 60, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 60%, rgba(251, 113, 133, 0.1) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
    animation: breathingNebula 15s ease-in-out infinite alternate;
}

@keyframes breathingNebula {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

h1, h2, h3, .logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Floating Island Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    background: var(--header-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    transition: background-color var(--transition), border-color var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 28px;
}

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

.nav a:hover, .nav a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Theme Toggle (Professional) */
.theme-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

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

/* WebGL-like CSS Crystalline Node Ring */
.crystal-ring-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 50px;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.crystal-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 1px solid rgba(251, 113, 133, 0.2);
    box-shadow: 0 0 20px rgba(190, 18, 60, 0.1), inset 0 0 20px rgba(190, 18, 60, 0.1);
    backdrop-filter: blur(4px);
    transition: all 0.5s ease;
}

.crystal-ring.ring-1 { animation: rotate1 12s linear infinite; transform: rotateX(60deg) rotateY(0deg); }
.crystal-ring.ring-2 { animation: rotate2 18s linear infinite; transform: rotateX(45deg) rotateY(60deg); border-color: rgba(251, 113, 133, 0.4); }
.crystal-ring.ring-3 { animation: rotate3 24s linear infinite; transform: rotateX(75deg) rotateY(-45deg); }

.crystal-ring-container:hover .crystal-ring {
    border-color: rgba(251, 113, 133, 0.8);
    box-shadow: 0 0 30px rgba(190, 18, 60, 0.4);
}

.core-node {
    position: absolute;
    top: 50%; left: 50%;
    width: 48px; height: 48px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--primary-light), var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary-light), 0 0 80px var(--primary);
    animation: corePulse 2s ease-in-out infinite alternate;
}

.crystal-ring-container.pulse-active .core-node {
    animation: none;
    box-shadow: 0 0 100px var(--primary-light), 0 0 200px var(--primary);
    transform: translate(-50%, -50%) scale(1.5);
    transition: all 0.3s ease-out;
}

@keyframes rotate1 { 100% { transform: rotateX(60deg) rotateY(360deg); } }
@keyframes rotate2 { 100% { transform: rotateX(45deg) rotateY(420deg); } }
@keyframes rotate3 { 100% { transform: rotateX(75deg) rotateY(315deg); } }
@keyframes corePulse { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -50%) scale(1.1); } }

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 48px;
}

/* Magnetic Action Island Button */
.btn {
    display: inline-block;
    position: relative;
    background: linear-gradient(120deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% auto;
    color: var(--btn-text);
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(190, 18, 60, 0.4);
    animation: shine 4s linear infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover {
    box-shadow: 0 8px 30px rgba(190, 18, 60, 0.6);
}

@keyframes shine {
    to { background-position: 200% center; }
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
}

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

/* Glassmorphic Cards (Prismatic Edge Sheen) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
}

.glass-card:hover {
    border-color: var(--glass-hover-border);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

/* Status Pills (JetBrains Mono) */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.dot.green { background: #10b981; box-shadow: 0 0 10px #10b981; }

/* Features */
.feature-icon {
    width: 56px; height: 56px;
    background: rgba(190, 18, 60, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-light);
}
.feature-icon svg { width: 28px; height: 28px; fill: currentColor; }

.glass-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.glass-card p { color: var(--text-muted); font-size: 1rem; }

/* Matrices (Streaming / AI) */
.matrix-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--glass-border);
}
.matrix-row:last-child { border-bottom: none; }
.matrix-name { font-weight: 600; }

/* Pricing */
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 2px 20px rgba(190,18,60,0.1);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

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

.pricing-card h3 { color: var(--text-muted); font-size: 1.25rem; margin-bottom: 16px; }
.price { font-size: 3.5rem; font-weight: 800; margin-bottom: 30px; font-family: 'Plus Jakarta Sans', sans-serif; }
.price span { font-size: 1.1rem; font-weight: 500; color: var(--text-muted); }

.pricing-features {
    list-style: none; margin-bottom: 40px; text-align: left; flex-grow: 1;
}
.pricing-features li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.pricing-features li svg { width: 20px; height: 20px; fill: #10b981; flex-shrink: 0; }

.btn-outline {
    background: transparent; color: var(--text-main);
    border: 1px solid var(--glass-border);
    animation: none; box-shadow: none;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-muted);
}

/* Reviews */
.review-stars { color: #fbbf24; margin-bottom: 16px; font-size: 1.2rem; letter-spacing: 2px; }
.review-text { font-style: italic; margin-bottom: 24px; color: var(--text-muted); font-size: 0.95rem; }
.review-author { font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 16px;
    backdrop-filter: blur(28px);
}
.faq-q { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; font-family: 'Plus Jakarta Sans', sans-serif; }
.faq-a { color: var(--text-muted); line-height: 1.7; }

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px;
    margin-top: 80px;
    background: rgba(0,0,0,0.2);
}
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--text-muted); font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding-top: 30px; border-top: 1px solid var(--glass-border); }

/* Mobile Adaptations */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-8px); }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .header { width: calc(100% - 32px); top: 16px; }
    .header-inner { padding: 0 20px; }
    .nav { display: none; } /* Kept simple for mobile */
    .hero h1 { font-size: 2.2rem; }
    .crystal-ring-container { width: 220px; height: 220px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .btn { width: 100%; padding: 18px; }
}
