﻿:root {
  --bg-primary: #0a0614;
  --bg-secondary: #120a24;
  --bg-card: rgba(24, 15, 46, 0.75);
  --bg-card-hover: rgba(36, 22, 68, 0.88);
  --border-subtle: rgba(147, 51, 234, 0.22);
  --border-bright: rgba(168, 85, 247, 0.55);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.4);
  --accent-cyan: #38bdf8;
  --accent-green: #4ade80;
  --accent-gold: #fbbf24;
  --accent-pink: #ec4899;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Canvas */
#bg-canvas, #confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

#confetti-canvas {
  z-index: 999;
}

/* Layout Wrapper */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* HUD Header */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-gem {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 24px var(--accent-purple-glow);
  position: relative;
}

.gem-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid var(--accent-purple);
  opacity: 0.6;
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
}

.hud-pills {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.host-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #d8b4fe;
}

/* Hero Section */
.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.badge-banner {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(147, 51, 234, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #f3e8ff;
  letter-spacing: 0.05em;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.glitch-text {
  color: #ffffff;
}

.gradient-accent {
  background: linear-gradient(135deg, #c084fc, #ec4899, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 780px;
}

/* Action Control Dock */
.action-dock {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.glow-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.glow-button.primary {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}
.glow-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.glow-button.secondary {
  background: rgba(30, 20, 56, 0.8);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.glow-button.secondary:hover {
  background: rgba(45, 30, 85, 0.9);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.glow-button.tertiary {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
}
.glow-button.tertiary:hover {
  background: rgba(14, 165, 233, 0.22);
  transform: translateY(-2px);
}

.badge-count {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: rgba(20, 12, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.filter-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--border-bright);
  color: #ffffff;
}

.chip.active {
  background: #9333ea;
  border-color: #a855f7;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(147, 51, 234, 0.4);
}

/* Dry Runs Grid */
.dryruns-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dryrun-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: var(--transition);
  overflow: hidden;
}

.dryrun-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: 0 12px 36px rgba(147, 51, 234, 0.15);
  transform: translateY(-2px);
}

.dryrun-card.featured {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(145deg, rgba(32, 17, 65, 0.85), rgba(18, 10, 38, 0.95));
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.card-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
  letter-spacing: 0.05em;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.5rem 0.75rem;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
}

.date-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.date-day {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.date-year {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.card-title-group {
  flex: 1;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--accent-purple);
  margin-top: 0.2rem;
}

.status-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.status-pill.ready {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.status-pill.completed {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card-highlights {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.highlight-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.card-btn.primary {
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #ffffff;
}

.card-btn.primary:hover {
  background: #9333ea;
  border-color: #a855f7;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.4);
}

.card-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.card-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.arrow {
  transition: transform 0.2s ease;
}

.card-btn:hover .arrow {
  transform: translateX(3px);
}

/* Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.telemetry-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.card-icon {
  font-size: 1.5rem;
}

.card-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
  margin: 0.15rem 0;
}

.card-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Interactive Terminal */
.terminal-container {
  background: #090514;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #140b2b;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-badge {
  font-size: 0.68rem;
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.terminal-body {
  padding: 1rem;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.term-line {
  line-height: 1.4;
}

.term-line.output {
  color: var(--text-secondary);
}

.term-line.success {
  color: #86efac;
}

.term-line.info {
  color: #7dd3fc;
}

.text-hint {
  color: var(--text-muted);
}

.cmd-highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #0d071d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.term-prompt {
  color: var(--accent-purple);
  font-size: 0.85rem;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Footer */
.hud-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tag {
  font-family: var(--font-mono);
  color: var(--accent-purple);
}

/* Utilities */
.text-neon-green { color: #4ade80; }
.text-neon-cyan { color: #38bdf8; }
.text-purple { color: #c084fc; }

@media (max-width: 768px) {
  .site-wrapper { padding: 1rem; gap: 1.75rem; }
  .hud-header { padding: 1rem; }
  .dryrun-card { padding: 1.25rem; }
  .date-badge { min-width: 60px; }
}
