/* ============================================
   GLOBAL.CSS — Reset, typography, layout, header, footer
   ============================================ */

:root {
  --color-bg: #0B0F1A;
  --color-surface: #131929;
  --color-surface-raised: #1A2235;
  --color-border: #1E293B;
  --color-primary: #F7931A;
  --color-primary-dark: #d97a0f;
  --color-green: #22C55E;
  --color-text: #F1F5F9;
  --color-muted: #94A3B8;
  --color-danger: #EF4444;
  --max-width: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: rgba(11, 15, 26, 0.95);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
  background: var(--color-surface);
}

.site-nav a.active {
  color: var(--color-primary);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.625rem 0.75rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer .container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.footer-brand {}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 380px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: #64748B;
  line-height: 1.6;
}

/* ============================================
   UTILITIES
   ============================================ */

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

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

.text-green {
  color: var(--color-green);
}

/* Lucide icon alignment */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Live dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
  color: #000;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  min-height: 60vh;
}
