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

:root {
  /* VocaReach Tailwind Theme Equivalents */
  --bg-main: #0A0E17;
  --bg-surface: #0D1117;
  --bg-surface-elevated: #161B22;
  
  --border: rgba(75, 85, 99, 0.4);
  --border-light: rgba(156, 163, 175, 0.2);
  
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  
  --accent-primary: #6366F1; /* Indigo 500 */
  --accent-primary-hover: #4F46E5;
  --accent-secondary: #7C3AED; /* Violet 600 */
  
  --success: #10B981; /* Emerald 500 */
  --info: #06B6D4; /* Cyan 500 */
  --danger: #EF4444; /* Red 500 */
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.font-mono { font-family: var(--font-mono); }
.text-cyan { color: var(--info); }
.text-purple { color: #A78BFA; }
.text-green { color: var(--success); }
.text-blue { color: #60A5FA; }
.text-muted { color: var(--text-muted); }

/* Top Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.25rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-primary);
  color: white;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background-color: rgba(255,255,255,0.05);
}

/* Animations */
.animate-pulse-slow {
  animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  border: 2px solid rgba(167, 139, 250, 0.3);
  border-top-color: #A78BFA;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Utility Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}
.glow-orb.primary {
  background: var(--accent-primary);
  width: 500px;
  height: 500px;
  top: -100px;
  left: -150px;
}
.glow-orb.info {
  background: var(--info);
  width: 400px;
  height: 400px;
  top: 20%;
  right: -100px;
  opacity: 0.15;
}

/* Preloader Screen styling */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0A0E17;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.3);
  animation: logo-pulse 2s ease-in-out infinite alternate;
}

.preloader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--info);
  border-bottom-color: var(--accent-primary);
  border-radius: 50%;
  animation: preloader-spin 1.5s linear infinite;
}

.preloader-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.preloader-progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--info), var(--success));
  border-radius: 99px;
  animation: fill-progress 2.5s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  height: 15px;
  animation: text-blink 1.5s infinite;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

@keyframes logo-pulse {
  from { transform: scale(0.95); filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3)); }
  to { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6)); }
}

@keyframes fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fill-progress {
  0% { width: 0%; }
  30% { width: 45%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

@keyframes text-blink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

