:root {
    --bg-deep: #050814;
    --bg-surface: #0a0e27;
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --accent: #00ff9d;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --glass-bg: rgba(10, 14, 39, 0.65);
    --glass-border: rgba(0, 243, 255, 0.15);
    --glow-primary: 0 0 20px rgba(0, 243, 255, 0.4);
    --glow-secondary: 0 0 20px rgba(188, 19, 254, 0.4);
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-header, .glass-card, .toc-sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.desktop-nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 600;
    text-shadow: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* TOC Sidebar */
.toc-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 900;
    transition: transform 0.3s ease;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.toc-header h3 {
    font-size: 1rem;
    color: var(--primary);
}

.close-toc {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.8rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
}

.toc-link:hover, .toc-link.active {
    color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
    border-left-color: var(--primary);
}

.mobile-toc-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-100px) translateX(20px); opacity: 1; }
}

.hero-3d-container {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease-out;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.ring-1 { width: 300px; height: 300px; animation: spin 10s linear infinite; }
.ring-2 { width: 220px; height: 220px; animation: spinReverse 15s linear infinite; border-left-color: var(--accent); border-right-color: var(--accent); }
.ring-3 { width: 140px; height: 140px; animation: spin 20s linear infinite; border-top-color: var(--secondary); border-bottom-color: var(--primary); }

@keyframes spin { 100% { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes spinReverse { 100% { transform: rotateX(-70deg) rotateZ(-360deg); } }

.glowing-orb {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--primary), transparent);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary), 0 0 80px var(--secondary);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero-content {
    position: absolute;
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Main Content */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--accent);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
    transition: all 0.3s;
}

a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.feature-list, .maintenance-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.feature-list li, .maintenance-list li {
    margin-bottom: 0.8rem;
}

.feature-list strong, .maintenance-list strong {
    color: var(--text-main);
}

/* Process Animation */
.process-animation-container {
    position: relative;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.process-connector {
    position: absolute;
    left: 50px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary), var(--primary), var(--accent));
    opacity: 0.3;
}

.process-stage {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    opacity: 0.3;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.process-stage.visible {
    opacity: 1;
    transform: translateX(0);
}

.stage-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s;
}

.process-stage.visible .stage-icon {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    animation: iconPop 0.5s ease-out;
}

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

.process-stage h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.process-stage p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Takeaways Box */
.takeaways-box {
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent);
}

.takeaways-box ul {
    list-style: none;
    padding: 0;
}

.takeaways-box li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-main);
}

.takeaways-box li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.cta-card {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 255, 157, 0.2);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.1);
}

.cta-card h2 {
    margin-top: 0;
    color: var(--accent);
}

.cta-card h2::after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
}

.contact-details {
    margin: 2rem 0;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.contact-item .icon {
    width: 30px;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-main);
    border-bottom: none;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-muted);
    border-bottom: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .toc-sidebar {
        transform: translateX(-120%);
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        border-radius: 0;
        z-index: 1100;
        overflow-y: auto;
    }
    
    .toc-sidebar.open {
        transform: translateX(0);
    }
    
    .close-toc {
        display: block;
    }
    
    .mobile-toc-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-3d-container {
        width: 300px;
        height: 300px;
    }
    
    .ring-1 { width: 220px; height: 220px; }
    .ring-2 { width: 160px; height: 160px; }
    .ring-3 { width: 100px; height: 100px; }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .process-connector {
        left: 30px;
    }
    
    .stage-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-bg-grid {
        animation: none;
    }
}