:root {
    --bg-dark: #020204;
    --bg-card: rgba(10, 10, 15, 0.7);
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --accent-cyan: #0ea5e9;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .system-title { font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

/* Effects */
.scanline { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); z-index: 1000; pointer-events: none; background-size: 100% 2px, 3px 100%; transition: opacity 0.5s; opacity: 0.15; }
.noise { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url("https://grainy-gradients.vercel.app/noise.svg"); opacity: 0.25; pointer-events: none; z-index: 999; }

/* Top Bar */
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background: rgba(2, 2, 4, 0.8); backdrop-filter: blur(20px); border-bottom: 2px solid var(--accent-cyan); position: fixed; width: 100%; top: 0; z-index: 100; box-shadow: 0 4px 60px rgba(14, 165, 233, 0.15); }
.logo-area { display: flex; align-items: center; gap: 20px; }
.main-logo { height: 45px; filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4)); }
.system-title { display: flex; flex-direction: column; }
.core-text { font-size: 1.4rem; font-weight: 800; color: white; line-height: 1; }
.version-tag { font-size: 0.65rem; color: var(--accent-cyan); font-family: 'Fira Code', monospace; }
.system-status { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.05); padding: 8px 16px; border-radius: 4px; border: 1px solid var(--glass-border); font-family: 'Fira Code', monospace; font-size: 0.85rem; }
.status-indicator { width: 12px; height: 12px; border-radius: 50%; position: relative; }
.status-indicator.online { background: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); animation: blink 2s infinite; }
.clock { font-weight: 600; color: var(--accent-cyan); border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 12px; margin-left: 12px; }

/* Hero */
.hero-section { height: 100vh; min-height: 800px; display: flex; align-items: center; justify-content: center; position: relative; padding-top: 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.1s; filter: brightness(0.6); z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--bg-dark)); z-index: 2; }
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }

.hero-main-text h1 { font-size: 6rem; line-height: 0.9; margin-bottom: 20px; background: linear-gradient(90deg, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 10px 40px rgba(0,0,0,0.8)); animation: fadeUp 1s ease-out; }
.subtitle { font-size: 1.5rem; color: var(--accent-cyan); font-weight: 500; text-transform: uppercase; letter-spacing: 4px; animation: fadeUp 1s ease-out 0.2s backwards; }

/* Terminal Window */
.terminal-window { width: 600px; max-width: 90vw; background: rgba(2, 2, 4, 0.9); border-radius: 8px; border: 1px solid var(--glass-border); box-shadow: 0 30px 60px rgba(0,0,0,0.6); overflow: hidden; font-family: 'Fira Code', monospace; animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.terminal-header { background: rgba(255, 255, 255, 0.05); padding: 12px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--glass-border); }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.window-title { font-size: 0.75rem; color: var(--text-secondary); }
.terminal-body { padding: 20px; font-size: 0.85rem; text-align: left; height: 120px; overflow-y: hidden; }
.log-line { margin-bottom: 6px; color: var(--accent-emerald); }
.log-line.error { color: #f43f5e; }
.log-line.cmd { color: var(--accent-cyan); }

/* Grid Sections */
.grid-container { padding: 100px 40px; max-width: 1400px; margin: 0 auto; position: relative; z-index: 10; }
.section-header { margin-bottom: 50px; display: flex; align-items: center; gap: 20px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: white; white-space: nowrap; }
.h-line { height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent-cyan), transparent); }
.mt-5 { margin-top: 120px; }

/* Cluster Cards */
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.cluster-card { background: var(--bg-card); border-radius: 12px; padding: 40px; border: 1px solid var(--glass-border); position: relative; transition: all 0.4s ease; backdrop-filter: blur(20px); overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
.cluster-card:hover { transform: translateY(-10px); border-color: rgba(255, 255, 255, 0.2); }
.card-glow { position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; filter: blur(60px); opacity: 0.2; z-index: 1; pointer-events: none; }
.card-glow.blue { background: var(--accent-cyan); }
.card-glow.purple { background: var(--accent-purple); }
.card-glow.cyan { background: var(--accent-indigo); }

.cluster-icon { font-size: 3rem; margin-bottom: 10px; position: relative; z-index: 2; }
.cluster-card h3 { font-size: 1.6rem; color: white; position: relative; z-index: 2; }
.cluster-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; position: relative; z-index: 2; }

.cluster-stats { display: flex; gap: 20px; border-top: 1px solid var(--glass-border); padding-top: 20px; margin-top: auto; position: relative; z-index: 2; }
.stat { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--text-secondary); display: flex; flex-direction: column; }
.stat .val { color: var(--accent-cyan); font-weight: 700; font-size: 1rem; }
.pulse { animation: softPulse 2s infinite; }

.launch-btn { margin-top: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: white; text-decoration: none; padding: 12px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; text-align: center; transition: all 0.3s; position: relative; z-index: 2; }
.launch-btn:hover { background: var(--accent-cyan); color: white; border-color: var(--accent-cyan); transform: scale(1.02); box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }

/* Service Tile Grid */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.service-tile { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 8px; padding: 30px; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; transition: all 0.3s; backdrop-filter: blur(10px); }
.service-tile:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent-cyan); transform: scale(1.05); }
.tile-icon { font-size: 2.5rem; transition: transform 0.3s; }
.service-tile:hover .tile-icon { transform: scale(1.2) rotate(5deg); }
.tile-name { color: white; font-weight: 600; font-size: 0.9rem; text-align: center; }

/* Base App Elements */
.bottom-bar { background: rgba(2, 2, 4, 1); border-top: 2px solid var(--accent-cyan); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--text-secondary); }
.blink { animation: blink 1s step-end infinite; }

/* Animations */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes softPulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* Mobile */
@media (max-width: 768px) {
    .top-bar { padding: 15px 20px; }
    .hero-main-text h1 { font-size: 3.5rem; }
    .terminal-window { display: none; }
    .grid-container { padding: 60px 20px; }
    .section-header h2 { font-size: 1.8rem; }
    .cluster-grid { grid-template-columns: 1fr; }
    .bottom-bar { flex-direction: column; gap: 10px; text-align: center; }
}
