:root {
    --bg-main: #06050a;
    --bg-panel: rgba(20, 18, 28, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --accent-primary: #00e676;
    --accent-primary-dim: rgba(0, 230, 118, 0.3);
    --accent-secondary: #7c4dff;
    --accent-secondary-dim: rgba(124, 77, 255, 0.2);
    
    --text-main: #e8e6f0;
    --text-dim: #9896a8;
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

/* Background Effects */
.background-effects {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
}

.glow {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent-secondary-dim); top: -200px; left: -100px; animation: float 20s ease-in-out infinite alternate; }
.glow-2 { width: 500px; height: 500px; background: var(--accent-primary-dim); bottom: -100px; right: -50px; animation: float 15s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 400px; height: 400px; background: rgba(0, 150, 255, 0.15); top: 40%; left: 30%; animation: float 25s ease-in-out infinite; }

.grid-overlay {
    position: absolute; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 30px); }
}

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 6%; position: fixed; width: 100%; top: 0; z-index: 100;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--border-glass); background: rgba(6, 5, 10, 0.7);
}

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 1px; }
.logo-img { height: 28px; width: auto; filter: drop-shadow(0 0 8px var(--accent-primary-dim)); }
.dim { color: var(--text-dim); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-main); }

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn-primary {
    background: var(--text-main); color: var(--bg-main); border: none;
}
.btn-primary:hover { background: var(--accent-primary); box-shadow: 0 0 20px var(--accent-primary-dim); }

.btn-secondary {
    background: var(--bg-glass); color: var(--text-main); border: var(--border-glass);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero Section */
.hero {
    min-height: 100vh; display: flex; align-items: center; padding: 100px 6% 60px;
    position: relative; overflow: hidden;
}

.hero-content { flex: 1; max-width: 600px; z-index: 10; }

.terminal-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px; background: rgba(0, 230, 118, 0.1); border: 1px solid var(--accent-primary-dim);
    border-radius: 20px; color: var(--accent-primary); font-family: 'JetBrains Mono', monospace;
    font-size: 12px; margin-bottom: 24px;
}
.pulse { width: 8px; height: 8px; background: var(--accent-primary); border-radius: 50%; box-shadow: 0 0 10px var(--accent-primary); animation: blip 1.5s infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title { font-size: 56px; line-height: 1.1; margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.highlight { 
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-dim) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.hero-subtitle { font-size: 18px; color: var(--text-dim); margin-bottom: 40px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; }

.hero-visual { flex: 1; position: relative; height: 500px; perspective: 1000px; }

/* Floating Cards */
.glass-card {
    background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass); border-radius: 12px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-cards { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.stat-card { position: absolute; width: 220px; animation: floatCard 6s ease-in-out infinite; }
.c-1 { top: 20%; left: 10%; animation-delay: 0s; }
.c-2 { top: 50%; right: 10%; animation-delay: -2s; z-index: 2; border-color: rgba(124, 77, 255, 0.3); }
.c-3 { bottom: 10%; left: 20%; width: 320px; animation-delay: -4s; }

.stat-value { font-size: 36px; font-weight: 800; color: var(--text-main); }
.stat-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.code-snippet { font-family: 'JetBrains Mono', monospace; font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.keyword { color: #c678dd; } .variable { color: #e5c07b; } .function { color: #61afef; } 
.string { color: #98c379; } .method { color: #56b6c2; } .key { color: #d19a66; }
.highlight-line { color: var(--accent-primary); margin-top: 8px; font-weight: 700; text-shadow: 0 0 5px var(--accent-primary-dim); }

@keyframes floatCard {
    0% { transform: translateY(0) scale(1) rotateX(0) rotateY(0); }
    50% { transform: translateY(-15px) scale(1.02) rotateX(2deg) rotateY(-2deg); }
    100% { transform: translateY(0) scale(1) rotateX(0) rotateY(0); }
}

/* Fleet Section */
.fleet-section { padding: 100px 6%; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header h2 { font-size: 40px; margin-bottom: 16px; font-weight: 800; letter-spacing: -1px; }
.section-header p { color: var(--text-dim); }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.company-card {
    background: var(--bg-panel); border: var(--border-glass); border-radius: 12px;
    padding: 24px; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.company-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0; transition: opacity 0.4s;
}
.company-card:hover { transform: translateY(-5px); background: rgba(30, 28, 40, 0.8); }
.company-card:hover::before { opacity: 1; }

.co-status { 
    display: inline-block; padding: 4px 10px; border-radius: 10px; font-size: 10px; 
    font-weight: 700; text-transform: uppercase; margin-bottom: 16px; background: var(--bg-glass);
}
.co-status.live { color: var(--accent-primary); border: 1px solid var(--accent-primary-dim); }
.co-status.building { color: #FFFFAA; border: 1px solid rgba(255, 255, 170, 0.3); }

.co-name { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.co-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }

.co-metrics { display: flex; gap: 16px; border-top: var(--border-glass); padding-top: 16px; }
.metric { display: flex; flex-direction: column; }
.metric-val { font-size: 16px; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.metric-lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }

/* Architecture */
.architecture-section { padding: 40px 6% 120px; }
.arch-panel {
    background: linear-gradient(145deg, rgba(20, 18, 28, 0.8), rgba(6, 5, 10, 0.9));
    border: 1px solid rgba(124, 77, 255, 0.3); border-radius: 20px;
    display: flex; padding: 60px; gap: 60px; align-items: center;
}

.arch-content { flex: 1; }
.arch-content h2 { font-size: 36px; margin-bottom: 20px; }
.arch-content p { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.check { color: var(--accent-primary); font-weight: bold; background: var(--accent-primary-dim); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; }

.arch-visual { flex: 1; }
.server-rack { display: flex; flex-direction: column; gap: 16px; }
.server-node {
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    padding: 16px 24px; display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace; font-size: 14px; position: relative; overflow: hidden;
}
.node-status { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.server-node.active .node-status { background: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); }
.server-node.syncing .node-status { background: var(--accent-secondary); box-shadow: 0 0 10px var(--accent-secondary); }

/* Why Us Section */
.why-us-section { padding: 100px 6% 40px; }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.why-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--accent-primary); }
.why-card p { font-size: 14px; color: var(--text-dim); }
.why-card { transition: all 0.3s ease; border-top: 1px solid rgba(255,255,255,0.05); }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 230, 118, 0.1); border-top-color: var(--accent-primary-dim); }

/* Astra AI Section */
.astra-ai-section { padding: 60px 6%; position: relative; }
.astra-panel {
    background: linear-gradient(145deg, rgba(15, 10, 25, 0.8), rgba(6, 5, 12, 0.9));
    border: 1px solid rgba(124, 77, 255, 0.4); border-radius: 20px;
    display: flex; padding: 60px; gap: 60px; align-items: center; position: relative; overflow: hidden;
}
.astra-panel::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--accent-secondary-dim) 0%, transparent 60%);
    opacity: 0.3; z-index: 0; pointer-events: none;
}
.astra-content, .astra-visual { position: relative; z-index: 1; flex: 1; }
.coming-soon-badge { 
    display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: #fff; background: linear-gradient(90deg, #7c4dff, #b388ff);
    margin-bottom: 20px; box-shadow: 0 0 15px rgba(124, 77, 255, 0.4);
}
.highlight-astra { 
    background: linear-gradient(135deg, #b388ff 0%, #7c4dff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; 
}
.astra-content h2 { font-size: 42px; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.astra-content p { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; max-width: 450px; }
.astra-feature-list { margin-bottom: 40px; }
.astra-check { background: var(--accent-secondary-dim); color: #b388ff; border: 1px solid rgba(124, 77, 255, 0.5); }
.btn-astra { background: linear-gradient(90deg, #7c4dff, #512da8); color: white; border: none; box-shadow: 0 0 15px rgba(124,77,255,0.3); }
.btn-astra:hover { background: linear-gradient(90deg, #b388ff, #7c4dff); box-shadow: 0 0 25px rgba(124,77,255,0.6); }

.astra-img-container { 
    position: relative; border-radius: 12px; overflow: hidden; 
    border: 1px solid rgba(124, 77, 255, 0.3); box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    background: #000;
}
.astra-teaser-img { width: 100%; height: auto; display: block; opacity: 0.9; transition: opacity 0.3s; }
.astra-img-container:hover .astra-teaser-img { opacity: 1; }
.scanner-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: #00e676; box-shadow: 0 0 10px #00e676, 0 0 20px #00e676;
    animation: scan 4s linear infinite; opacity: 0.7;
}
@keyframes scan {
    0% { top: -10%; }
    50% { top: 110%; }
    100% { top: 110%; }
}

/* Footer */
footer { padding: 40px 6%; border-top: var(--border-glass); background: #040306; display: flex; justify-content: center; }
.footer-content { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-weight: 800; font-size: 14px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.footer-copy { color: var(--text-dim); font-size: 13px; }
.footer-social a { color: var(--text-dim); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-social a:hover { color: var(--text-main); }

@media (max-width: 900px) {
    .arch-panel, .astra-panel { flex-direction: column; padding: 40px 24px; text-align: center; }
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-content { max-width: 100%; margin-bottom: 60px; }
    .hero-actions { justify-content: center; }
    .nav-links { display: none; } /* Mobile menu needed in production */
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}
