@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --void: #06060c;
  --surface: #0d0d16;
  --surface-2: #13131f;
  --border: #1a1a2e;
  --border-glow: #2a2a4a;
  --cyan: #00f0ff;
  --magenta: #ff00aa;
  --gold: #ffd700;
  --green: #00ff88;
  --red: #ff3355;
  --purple: #8b5cf6;
  --text: #e2e8f0;
  --text-dim: #64748b;
  --cyan-glow: 0 0 20px rgba(0,240,255,0.3), 0 0 40px rgba(0,240,255,0.1);
  --magenta-glow: 0 0 20px rgba(255,0,170,0.3), 0 0 40px rgba(255,0,170,0.1);
  --gold-glow: 0 0 20px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.1);
  --green-glow: 0 0 20px rgba(0,255,136,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* SCANLINE OVERLAY */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,240,255,0.015) 2px, rgba(0,240,255,0.015) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(6,6,12,0.8);
  border-bottom: 1px solid rgba(0,240,255,0.1);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-decoration: none;
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  transition: all 0.3s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
  background: rgba(0,240,255,0.05);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--cyan); transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cyan); transition: all 0.3s ease; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(6,6,12,0.95); backdrop-filter: blur(30px);
  flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: 'Orbitron', monospace; font-size: 1.2rem;
  color: var(--text-dim); text-decoration: none;
  transition: all 0.3s; padding: 0.75rem 2rem; border-radius: 12px;
}
.mobile-menu a:hover { color: var(--cyan); background: rgba(0,240,255,0.05); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ========== SECTION BASE ========== */
.zone {
  min-height: 100vh; padding: 6rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.zone-inner { max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }
.zone-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800; margin-bottom: 0.5rem;
}
.zone-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 2.5rem;
}
.zone-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}

/* ========== ZONE 1: LOBBY ========== */
.zone-lobby { background: linear-gradient(180deg, var(--void) 0%, #0a0a14 100%); }
.zone-lobby .zone-badge { background: rgba(255,215,0,0.1); color: var(--gold); border: 1px solid rgba(255,215,0,0.2); }
.zone-lobby .zone-title { background: linear-gradient(135deg, var(--gold), #ffaa00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.coupon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.coupon-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0; transition: opacity 0.3s;
}
.coupon-card:hover { transform: translateY(-4px); border-color: var(--border-glow); }
.coupon-card:hover::before { opacity: 1; }
.coupon-casino {
  font-family: 'Orbitron', monospace; font-weight: 700;
  font-size: 1rem; margin-bottom: 0.25rem;
}
.coupon-discount {
  font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #ffaa00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.coupon-code {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--void); border: 1px dashed var(--border-glow);
  border-radius: 8px; padding: 0.6rem 1rem; margin: 1rem 0;
  font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
  color: var(--cyan); letter-spacing: 2px;
}
.coupon-code span { flex: 1; }
.copy-btn {
  background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.2);
  color: var(--cyan); padding: 0.3rem 0.6rem; border-radius: 6px;
  cursor: pointer; font-size: 0.7rem; font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s;
}
.copy-btn:hover { background: rgba(0,240,255,0.2); box-shadow: var(--cyan-glow); }
.coupon-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.coupon-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-active .status-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-active { color: var(--green); }
.status-expiring .status-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse 2s infinite; }
.status-expiring { color: var(--gold); }
.status-hot .status-dot { background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1s infinite; }
.status-hot { color: var(--red); }
.coupon-expiry { font-size: 0.7rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.coupon-cr { font-size: 0.7rem; color: var(--text-dim); }
.coupon-cr strong { color: var(--cyan); }

/* ========== ZONE 2: ANALYTICS ========== */
.zone-analytics {
  background: linear-gradient(180deg, #0a0a14 0%, #0c0c1a 50%, #0a0a14 100%);
}
.zone-analytics .zone-badge { background: rgba(0,240,255,0.1); color: var(--cyan); border: 1px solid rgba(0,240,255,0.2); }
.zone-analytics .zone-title { background: linear-gradient(135deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem; margin-bottom: 2rem;
}
.metric-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 1.5rem;
  transition: all 0.4s; position: relative;
}
.metric-card:hover {
  border-color: rgba(0,240,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,240,255,0.05);
}
.metric-label {
  font-size: 0.75rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}
.metric-value {
  font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 800;
}
.metric-value.cyan { color: var(--cyan); }
.metric-value.gold { color: var(--gold); }
.metric-value.green { color: var(--green); }
.metric-value.magenta { color: var(--magenta); }
.metric-change {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; margin-top: 0.5rem; padding: 0.2rem 0.5rem;
  border-radius: 6px; font-family: 'JetBrains Mono', monospace;
}
.metric-change.up { color: var(--green); background: rgba(0,255,136,0.08); }
.metric-change.down { color: var(--red); background: rgba(255,51,85,0.08); }

/* CHART BARS */
.chart-container { margin-top: 2rem; }
.chart-title {
  font-family: 'Orbitron', monospace; font-size: 0.9rem;
  margin-bottom: 1.25rem; color: var(--text);
}
.bar-chart { display: flex; flex-direction: column; gap: 0.75rem; }
.bar-row { display: flex; align-items: center; gap: 1rem; }
.bar-label { width: 80px; font-size: 0.75rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.bar-track { flex: 1; height: 28px; background: var(--surface); border-radius: 6px; overflow: hidden; position: relative; }
.bar-fill {
  height: 100%; border-radius: 6px;
  display: flex; align-items: center; padding-left: 0.75rem;
  font-size: 0.7rem; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.bar-fill.animated { /* JS adds this */ }
.bar-fill.cyan-bar { background: linear-gradient(90deg, rgba(0,240,255,0.3), rgba(0,240,255,0.6)); color: var(--cyan); }
.bar-fill.magenta-bar { background: linear-gradient(90deg, rgba(255,0,170,0.3), rgba(255,0,170,0.6)); color: var(--magenta); }
.bar-fill.gold-bar { background: linear-gradient(90deg, rgba(255,215,0,0.3), rgba(255,215,0,0.6)); color: var(--gold); }
.bar-fill.green-bar { background: linear-gradient(90deg, rgba(0,255,136,0.3), rgba(0,255,136,0.6)); color: var(--green); }

/* ========== ZONE 3: AI OPS ========== */
.zone-aiops {
  background: linear-gradient(180deg, #0a0a14 0%, #080810 100%);
}
.zone-aiops .zone-badge { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }
.zone-aiops .zone-title { background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 500px) { .ops-grid { grid-template-columns: 1fr; } }

.ops-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.ops-panel-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0,255,136,0.03);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--green);
}
.ops-panel-header .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.ops-panel-body { padding: 1rem; }

/* TERMINAL */
.terminal-output {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  line-height: 1.7; color: var(--green); max-height: 220px; overflow-y: auto;
}
.terminal-output .line-dim { color: var(--text-dim); }
.terminal-output .line-cyan { color: var(--cyan); }
.terminal-output .line-gold { color: var(--gold); }
.terminal-output .line-red { color: var(--red); }
.terminal-output .prompt { color: var(--magenta); }

/* PIPELINE */
.pipeline { display: flex; flex-direction: column; gap: 0.75rem; }
.pipeline-step {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem; border-radius: 8px;
  background: rgba(0,255,136,0.03); border: 1px solid rgba(0,255,136,0.08);
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
}
.pipeline-step .step-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.pipeline-step.done .step-icon { background: rgba(0,255,136,0.15); color: var(--green); }
.pipeline-step.running .step-icon { background: rgba(0,240,255,0.15); color: var(--cyan); animation: pulse 1.5s infinite; }
.pipeline-step.pending .step-icon { background: rgba(100,116,139,0.15); color: var(--text-dim); }
.pipeline-step .step-name { flex: 1; }
.pipeline-step .step-status { font-size: 0.65rem; color: var(--text-dim); }

/* HEALTH BARS */
.health-grid { display: flex; flex-direction: column; gap: 1rem; }
.health-item label {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: var(--text-dim); margin-bottom: 0.35rem;
}
.health-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.health-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* ========== ZONE 4: SINGULARITY ========== */
.zone-singularity {
  background: radial-gradient(ellipse at center, #0f0f1a 0%, var(--void) 70%);
}
.zone-singularity .zone-badge { background: rgba(139,92,246,0.15); color: var(--purple); border: 1px solid rgba(139,92,246,0.3); }
.zone-singularity .zone-title { background: linear-gradient(135deg, var(--magenta), var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.singularity-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
@media (max-width: 900px) { .singularity-grid { grid-template-columns: 1fr; } }

.node-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  position: relative; transition: all 0.4s;
}
.node-card:hover { border-color: var(--border-glow); }
.node-card.central {
  grid-row: 1 / 3;
  grid-column: 2;
  background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(0,240,255,0.05));
  border-color: rgba(139,92,246,0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
@media (max-width: 900px) { .node-card.central { grid-row: auto; grid-column: auto; } }
.node-card.central .node-score {
  font-family: 'Orbitron', monospace; font-size: 4rem; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.node-card .node-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.node-card .node-value {
  font-family: 'Orbitron', monospace; font-size: 1.5rem; font-weight: 700;
}
.node-glow {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  filter: blur(60px); opacity: 0.15; pointer-events: none;
}

/* ORBIT RING */
.orbit-ring {
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.2);
  position: relative; margin: 1.5rem auto;
  animation: spin 20s linear infinite;
}
.orbit-dot {
  width: 10px; height: 10px; border-radius: 50%;
  position: absolute; top: -5px; left: 50%; margin-left: -5px;
}
.orbit-dot:nth-child(1) { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.orbit-dot:nth-child(2) { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); top: auto; bottom: -5px; }
.orbit-dot:nth-child(3) { background: var(--gold); box-shadow: 0 0 10px var(--gold); top: 50%; left: -5px; margin-left: 0; margin-top: -5px; }

/* ========== FOOTER ========== */
.footer {
  padding: 2rem 1.5rem; text-align: center;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-dim);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  from { width: 0; } to { width: 100%; }
}
@keyframes blink { 0%,100% { border-color: var(--green); } 50% { border-color: transparent; } }
.animate-in {
  opacity: 0; transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ========== CONTACT PAGE ========== */
.terminal-page {
  min-height: 100vh; padding: 6rem 1.5rem 2rem;
  display: flex; align-items: center; justify-content: center;
}
.terminal-window {
  width: 100%; max-width: 700px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 60px rgba(0,240,255,0.05);
}
.terminal-titlebar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-titlebar span {
  flex: 1; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-dim);
}
.terminal-body { padding: 1.5rem; }
.terminal-body .t-line {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--green); margin-bottom: 0.75rem; line-height: 1.6;
}
.terminal-body .t-prompt { color: var(--magenta); }
.terminal-body .t-comment { color: var(--text-dim); }
.t-input-group { margin-bottom: 1rem; }
.t-input-group label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--cyan); margin-bottom: 0.35rem;
}
.t-input {
  width: 100%; background: var(--void); border: 1px solid var(--border);
  color: var(--green); padding: 0.6rem 0.75rem; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  outline: none; transition: border-color 0.3s;
}
.t-input:focus { border-color: var(--cyan); }
.t-textarea { resize: vertical; min-height: 80px; }
.t-submit {
  background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.3);
  color: var(--cyan); padding: 0.75rem 1.5rem; border-radius: 8px;
  font-family: 'Orbitron', monospace; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; width: 100%; margin-top: 0.5rem;
}
.t-submit:hover { background: rgba(0,240,255,0.2); box-shadow: var(--cyan-glow); }
