/* ============================================
   BETTOR LABS - Main Styles
   Glass Terminal Aesthetic | Optimized Performance
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --font-sans: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  /* Brand Colors - Glass Terminal */
  --void: #0a0a0f;
  --surface: #111116;
  --primary: #3b82f6;
  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --accent: #8b5cf6;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- OPTIMIZED BACKGROUND (2 layers only) --- */
.bg-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* --- GRADIENT ORBS (Optimized) --- */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 15%;
  left: 5%;
  opacity: 0.12;
  animation: orb-float 20s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 55%;
  right: 5%;
  opacity: 0.1;
  animation: orb-float 25s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* --- TICKER TAPE --- */
.ticker-track {
  display: flex;
  width: 200%;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: 50%;
  justify-content: space-around;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- GLASS MORPHISM --- */
.glass {
  background: rgba(17, 17, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- BORDER GLOW --- */
.border-glow {
  position: relative;
}

.border-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--emerald));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-glow:hover::before {
  opacity: 0.5;
}

/* --- BUTTONS --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.5);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- SELECTION --- */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: white;
}

/* --- FOCUS STATES --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- GRADIENT TEXT --- */
.animate-gradient {
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .orb-1, .orb-2 {
    display: none;
  }
}
