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

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

:root {
  --bg-primary: #0b0d14;
  --bg-secondary: #0f1220;
  --bg-card: #141828;
  --border: rgba(255,255,255,0.07);
  --text-primary: #e2e8f0;
  --text-secondary: #8892a4;
  --text-muted: #515c72;
  --blue: #3b7bff;
  --green: #00c97b;
  --red: #ff4757;
  --yellow: #fbbf24;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Ticker animation */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.ticker-track {
  animation: ticker 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

/* Pulse dot */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
.pulse-dot { animation: pulse 1.8s ease-in-out infinite; }

/* Spin */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 0.8s linear infinite; }

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Input placeholder color */
input::placeholder { color: var(--text-muted); }
input { color: var(--text-primary); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  nav { padding: 12px 16px !important; }
  section { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
