:root {
    --primary-color: #0088ff; /* Fallback for light mode */
    --primary-hover: #0066cc;
    --secondary-color: #f6d860;
    --bg-color: #f0f4f8;
    --bg-alt: #e1e8ed;
    --text-main: #04060c;
    --text-muted: #475569;
    --border-color: rgba(0, 136, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --shadow-hover: 0 8px 32px 0 rgba(0, 136, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --primary-color: #00f2fe; /* Electric Cyan */
    --primary-hover: #00d2f0;
    --secondary-color: #f6d860; /* Celestial Gold */
    --bg-color: #04060c; /* Cosmic abyss */
    --bg-alt: #0a0f1c;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 242, 254, 0.2);
    --card-bg: rgba(10, 15, 28, 0.6);
    --glass-bg: rgba(4, 6, 12, 0.7);
    --glass-border: rgba(0, 242, 254, 0.15);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 32px 0 rgba(0, 242, 254, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

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

/* Navbar (Starlight Glass) */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.logo-svg { stroke: var(--primary-color); }
.logo-sub { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-main); transition: var(--transition); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary-color); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

/* Theme Toggle */
.theme-toggle {
    background: transparent; border: none; color: var(--text-main); cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); border: 1px solid var(--border-color);
}
.theme-toggle:hover { background-color: rgba(0, 242, 254, 0.1); border-color: var(--primary-color); color: var(--primary-color); }
.sun-icon { display: none; width: 18px; height: 18px; }
.moon-icon { display: block; width: 18px; height: 18px; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; font-weight: 600; cursor: pointer; transition: var(--transition);
    border: 1px solid transparent; letter-spacing: 0.5px;
}
.btn-small { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.1rem; }
.btn-primary { background-color: var(--primary-color); color: #000; border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4); }
.btn-outline { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background-color: rgba(0, 242, 254, 0.1); transform: translateY(-2px); }
.glow-effect { box-shadow: 0 0 15px rgba(0, 242, 254, 0.3); }

/* Sections */
.section { padding: 7rem 0; position: relative; z-index: 10; }
.bg-alt { background-color: var(--bg-alt); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3.5rem; color: var(--text-main); font-weight: 800; letter-spacing: 1px; }
.title-accent { color: var(--primary-color); text-shadow: 0 0 20px rgba(0, 242, 254, 0.3); }

/* Hero */
.hero { padding: 12rem 0 8rem; min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.hero-content { flex: 1; z-index: 2; }
.hero-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 1.5rem; line-height: 1.2; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; line-height: 1.8; }
.hero-actions { display: flex; gap: 1.5rem; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; z-index: 1; }

/* CSS Orbital Globe */
.css-globe { position: relative; width: 350px; height: 350px; perspective: 1200px; transform-style: preserve-3d; animation: rotateGlobe 30s linear infinite; }
.globe-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid rgba(0, 242, 254, 0.4); border-radius: 50%; box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.1); }
.x-ring { transform: rotateX(75deg); }
.y-ring { transform: rotateY(75deg); }
.z-ring { transform: rotateX(45deg) rotateY(45deg); }
.globe-core { position: absolute; top: 40%; left: 40%; width: 20%; height: 20%; background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%); border-radius: 50%; box-shadow: 0 0 30px var(--primary-color); animation: pulseCore 3s ease-in-out infinite; }
.globe-point { position: absolute; width: 8px; height: 8px; background: var(--secondary-color); border-radius: 50%; box-shadow: 0 0 12px var(--secondary-color); }
.globe-point span { position: absolute; left: 15px; top: -8px; color: var(--primary-color); font-size: 12px; font-family: monospace; white-space: nowrap; background: rgba(0,0,0,0.6); padding: 2px 6px; border: 1px solid var(--border-color); border-radius: 4px; pointer-events: none; text-shadow: 0 0 5px var(--primary-color); }
.p1 { top: 15%; left: 25%; transform: translateZ(80px); }
.p2 { top: 65%; left: 85%; transform: translateZ(-60px); }
.p3 { top: 85%; left: 35%; transform: translateZ(100px); }
@keyframes rotateGlobe { 0% { transform: rotateY(0deg) rotateX(20deg); } 100% { transform: rotateY(360deg) rotateX(20deg); } }
@keyframes pulseCore { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 1; } }

/* Cards & Glassmorphism */
.glass-card { background: var(--card-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 16px; box-shadow: var(--shadow); transition: var(--transition); }
.glass-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(0, 242, 254, 0.4); }

/* Animated Border Trail */
.animated-border { position: relative; z-index: 1; overflow: hidden; }
.animated-border::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, var(--primary-color) 80%, var(--secondary-color) 100%);
    animation: spinTrail 4s linear infinite; opacity: 0; transition: opacity 0.4s ease; z-index: -2;
}
.animated-border:hover::before { opacity: 1; }
.card-inner { position: relative; z-index: 2; background: var(--card-bg); margin: 1px; border-radius: 15px; padding: 2.5rem; height: calc(100% - 2px); display: flex; flex-direction: column; }
.card-inner.no-padding { padding: 0; }
@keyframes spinTrail { 100% { transform: rotate(360deg); } }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }

/* Features */
.card-icon { margin-bottom: 1.5rem; background: rgba(0, 242, 254, 0.1); width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border); }
.card-inner h3 { font-size: 1.35rem; margin-bottom: 1rem; color: var(--text-main); }
.card-inner p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* Special Cards */
.special-card { display: flex; flex-direction: column; }
.card-image { height: 220px; position: relative; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tech-streaming-img { background: radial-gradient(circle at center, rgba(168, 85, 247, 0.2) 0%, transparent 70%); }
.tech-ai-img { background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%); }
.overlay-data { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 20px; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(0,242,254,0.1)"/></svg>') repeat; }
.hud-tag { font-family: monospace; font-size: 0.85rem; padding: 4px 10px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); color: var(--primary-color); border-radius: 4px; backdrop-filter: blur(4px); }
.special-content { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-footer-tags { margin-top: auto; padding-top: 1.5rem; display: flex; gap: 10px; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; background: rgba(0, 242, 254, 0.1); color: var(--primary-color); border: 1px solid var(--border-color); }

/* Status Board */
.status-board { border-radius: 12px; overflow: hidden; }
.status-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 1.5rem; background: rgba(0, 0, 0, 0.3); font-weight: 600; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; border-bottom: 1px solid var(--glass-border); }
.status-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 1.5rem; border-bottom: 1px solid var(--glass-border); align-items: center; transition: var(--transition); }
.status-row:hover { background: rgba(0, 242, 254, 0.05); }
.status-row:last-child { border-bottom: none; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; box-shadow: 0 0 8px currentColor; }
.green { color: #10b981; background: #10b981; }
.mono { font-family: 'Courier New', Courier, monospace; color: var(--primary-color); font-weight: 600; }
.unit { font-size: 0.8rem; color: var(--text-muted); margin-left: 2px; }

/* Pricing */
.pricing-tier { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; }
.pricing-tier.gold { color: var(--secondary-color); text-shadow: 0 0 10px rgba(246, 216, 96, 0.4); }
.price { font-size: 3rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.5rem; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.price-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.pricing-features { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.pricing-features li { margin-bottom: 1rem; color: var(--text-main); font-size: 1rem; display: flex; align-items: center; }
.check { color: var(--primary-color); margin-right: 10px; font-weight: bold; }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--secondary-color), #f97316); color: #000; padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 4px 10px rgba(246, 216, 96, 0.3); z-index: 10;}

/* Reviews */
.stars { color: var(--secondary-color); font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }
.author-name { font-weight: 600; color: var(--text-main); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; overflow: hidden; cursor: pointer; }
.faq-question { padding: 1.5rem 2rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--primary-color); }
.faq-icon { font-size: 1.5rem; color: var(--primary-color); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; padding: 0 2rem; opacity: 0; transition: all 0.4s ease; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 1.5rem; opacity: 1; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 4rem 0; text-align: center; background: rgba(0,0,0,0.2); position: relative; z-index: 10; backdrop-filter: blur(10px); }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); transition: var(--transition); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary-color); }
.footer-copyright { color: var(--text-muted); font-size: 0.85rem; font-family: monospace; }

/* Subpage Content Styling */
.content h1 { font-size: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; color: var(--primary-color); }
.content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-main); }
.content p, .content ul { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.content ul { padding-left: 1.5rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; }
    .status-header, .status-row { grid-template-columns: 2fr 1fr 1fr; }
    .hide-mobile { display: none; }
    .nav-links { display: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .section { padding: 4rem 0; }
    .css-globe { width: 280px; height: 280px; }
    .btn { padding: 1.2rem; }
}
