/* =============================================
   BitCare — Global Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary:    #0A0A0A;
  --bg-surface:    #141414;
  --bg-elevated:   #1E1E1E;
  --accent:        #F7931A;
  --accent-hover:  #E8850F;
  --accent-muted:  rgba(247, 147, 26, 0.15);
  --text-primary:  #FFFFFF;
  --text-secondary:#A1A1A1;
  --text-tertiary: #6B6B6B;
  --border:        #2A2A2A;
  --success:       #22C55E;
  --warning:       #F59E0B;
  --header-h:      72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Reserve space for fixed header — single source of truth */
  padding-top: var(--header-h);
}

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* =============================================
   HEADER (injected partial)
   ============================================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  gap: 18px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-img { height: 28px; width: auto; display: block; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }

/* Nav links */
header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

header nav a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
header nav a:hover,
header nav a.active {
  color: var(--accent);
  background: var(--accent-muted);
}

/* CTA buttons in header */
.nav-cta {
  padding: 8px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: var(--text-primary) !important;
}

.nav-cta.primary {
  background: var(--accent) !important;
  border-color: transparent !important;
  color: #000 !important;
}
.nav-cta.primary:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.35) !important;
}

/* Mobile hamburger — hidden by default */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
}

/* =============================================
   FOOTER (injected partial)
   ============================================= */
footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.65;
}

.footer-column h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 16px;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin: 0 0 10px;
  transition: color 0.2s;
}
.footer-column a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.copyright {
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}
.footer-legal-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--accent); }

/* =============================================
   SHARED BUTTON SYSTEM
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
  color: var(--text-primary);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--text-primary);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.10);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(247, 147, 26, 0.35);
  color: var(--text-primary);
}

/* =============================================
   SHARED UTILITIES
   ============================================= */
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   ANIMATIONS (shared)
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.animate-delay-1 { animation-delay: 0.10s; }
.animate-delay-2 { animation-delay: 0.20s; }
.animate-delay-3 { animation-delay: 0.30s; }
.animate-delay-4 { animation-delay: 0.40s; }
.animate-delay-5 { animation-delay: 0.50s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  header nav { display: none; flex-direction: column; align-items: flex-start; }
  header nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 8px;
    backdrop-filter: blur(16px);
  }
  header nav.open a { padding: 10px 12px; width: 100%; }
  .nav-toggle { display: block; }
  .section-header h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
