:root {
  --accent: #2a80bb;
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(0,0,0,0.08);
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.bg-gradient {
  background: radial-gradient(circle at 20% 20%, rgba(42,128,187,0.15), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(206,163,98,0.12), transparent 35%),
              linear-gradient(135deg, #f7f9fb 0%, #ffffff 100%);
}

.hero-card {
  border: 1px solid var(--border);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.card {
  border: 1px solid var(--border);
}

.card h3 {
  color: #16263a;
}

footer a {
  text-decoration: none;
}

.nav-download-btn {
  padding: 0.5rem 0.9rem;
}

@media (max-width: 991.98px) {
  .navbar .nav-item.ms-lg-3 {
    margin-left: 0 !important;
  }
  .nav-download-btn {
    width: 100%;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --card: #0f172a;
    --text: #f4f6fb;
    --muted: #cbd5e1;
    --border: rgba(255,255,255,0.12);
    --bs-body-color: #e5e7eb;
    --bs-heading-color: #f8fafc;
  }
  body {
    background: var(--bg);
    color: var(--text);
  }
  h1,h2,h3,h4,h5,h6 {
    color: #f8fafc;
    text-shadow: 0 0 12px rgba(0,0,0,0.35);
  }
  .lead {
    color: #e0e7ff;
  }
  .bg-light {
    background-color: var(--bg) !important;
  }
  .bg-white,
  .card,
  .hero-card,
  footer,
  .navbar,
  .navbar.bg-white,
  .border-top,
  .border-bottom {
    background-color: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text);
  }
  .navbar-light .navbar-brand,
  .navbar-light .navbar-nav .nav-link {
    color: #f8fafc;
  }
  .navbar-light .navbar-nav .nav-link.active {
    color: #93c5fd;
  }
  .card,
  .hero-card {
    border-color: var(--border);
    box-shadow: none;
  }
  .text-muted,
  .link-secondary {
    color: var(--muted) !important;
  }
  a {
    color: #93c5fd;
  }
  a:hover {
    color: #bfdbfe;
  }
  .bg-gradient {
    background: radial-gradient(circle at 25% 20%, rgba(147,197,253,0.18), transparent 40%),
                radial-gradient(circle at 80% 10%, rgba(148,163,184,0.12), transparent 35%),
                linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
  }
  .btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
  }
  .btn-outline-primary {
    color: #93c5fd;
    border-color: #93c5fd;
  }
  .card h3 {
    color: #f8fafc;
  }
}
