:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --primary-orange: #FF6B00;
    --primary-gold: #FFB700;
    --primary-cyan: #00E5FF;
    --card-bg: rgba(12, 12, 14, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(5, 5, 7, 0.8);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] {
    --bg-color: #f4f5f7;
    --text-color: #111111;
    --text-muted: #555555;
    --primary-orange: #e65c00;
    --primary-gold: #cc9200;
    --primary-cyan: #00a4b8;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.85);
}

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

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

/* Canvas Background */
#space-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

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

a:hover {
    color: var(--primary-orange);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Navbar - Deep void floating glass bar */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1280px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 1px;
}

/* Photon-ring logo */
.photon-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--primary-cyan);
    position: relative;
    box-shadow: 0 0 15px var(--primary-cyan), inset 0 0 10px var(--primary-cyan);
    animation: rotateRing 4s linear infinite;
}
.photon-ring::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-orange);
}

@keyframes rotateRing {
    100% { transform: rotate(360deg); }
}

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

.nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav a:hover, .nav a.active {
    color: var(--text-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-orange));
    transition: width var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

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

/* Live quantum link status dot */
.quantum-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-cyan);
    font-weight: 600;
}
.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* Glowing Amber Button */
.btn-amber {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: #000 !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-amber:hover {
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.8);
    transform: scale(1.05);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: var(--card-border);
}
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}
.hero-content {
    max-width: 800px;
    z-index: 10;
}
.hero h1 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #000, var(--text-muted));
    -webkit-background-clip: text;
}
.hero h1 .brand {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.btn-outline-cyan {
    background: transparent;
    color: var(--primary-cyan) !important;
    border: 1px solid var(--primary-cyan);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    transition: var(--transition);
}
.btn-outline-cyan:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .section-title {
    background: linear-gradient(90deg, #000, var(--text-muted));
    -webkit-background-clip: text;
}

/* Bento Containers (Smoked obsidian) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bento-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-cyan));
    -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 var(--transition);
    pointer-events: none;
}
.bento-card:hover {
    transform: translateY(-5px);
}
.bento-card:hover::before {
    opacity: 1; /* Shifting plasma flares edge */
}
.bento-icon {
    font-size: 32px;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    display: inline-flex;
}
.bento-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}
.bento-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Telemetry Widget */
.telemetry {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
}
.telemetry-label {
    color: var(--primary-orange);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.telemetry-value {
    color: var(--primary-cyan);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-cyan);
}

/* 2-col Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Tags */
.tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--primary-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Pricing */
.pricing-card {
    text-align: center;
    padding: 50px 30px;
}
.pricing-card h3 {
    color: var(--text-muted);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.price {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-color);
    margin: 20px 0;
}
.price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: normal;
}
.pricing-card ul {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}
.pricing-card ul li {
    margin-bottom: 16px;
    padding-left: 30px;
    position: relative;
    color: var(--text-muted);
}
.pricing-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300E5FF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}
.featured {
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.15);
}
.badge-featured {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-orange);
    color: #000;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Reviews */
.review-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}
.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}
.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}
.reviewer-info h4 {
    color: var(--text-color);
    font-size: 14px;
}
.reviewer-info p {
    color: var(--primary-cyan);
    font-size: 12px;
    margin: 0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
}
.faq-item summary {
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text-color);
    outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23FF6B00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>');
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
    padding: 0 24px 24px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0 40px;
    background: var(--nav-bg);
    position: relative;
    z-index: 10;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
}
.footer-links a:hover {
    color: var(--primary-orange);
}
.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Page content for secondary pages */
.page-wrapper {
    padding-top: 120px;
    min-height: 80vh;
}
.page-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 60px;
    backdrop-filter: blur(24px);
    margin-bottom: 60px;
}
.page-content h1 {
    font-size: 40px;
    margin-bottom: 40px;
    color: var(--text-color);
    text-align: center;
}
.page-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--primary-cyan);
}
.page-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}
.page-content ul {
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-left: 20px;
}
.page-content li {
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .header {
        top: 10px;
        width: calc(100% - 20px);
    }
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .hero h1 {
        font-size: 42px;
    }
    .bento-grid, .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
    }
    .page-content {
        padding: 30px 20px;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
