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

:root {
  --bg-stone: #faf8f5;
  --bg-sand: #f2eee3;
  --sand-dim: #e8dfc8;
  --pine-deep: #061814;
  --pine-surface: #0b2822;
  --pine-card: #10332c;
  --accent-mint: #2be4a7;
  --text-muted: #6b7f79;
  --text-dark: #0b2822;
  --border-dark: rgba(232, 223, 200, 0.12);
  --border-light: rgba(11, 40, 34, 0.08);

  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-stone); color: var(--text-dark); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; width: 100%; margin: 0; }

h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.03em; }
.mono-font, .tag, .stat-num, code { font-family: var(--font-mono); }

/* =========================================
   UNIVERSAL HEADER
========================================= */
header.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(6, 24, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  padding: 14px 24px;
  width: 100%;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo-img { height: 38px; width: auto; max-width: 180px; object-fit: contain; display: block; }

.desktop-nav { display: flex; gap: 32px; align-items: center; }
.desktop-nav a { color: #8fa59f; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--sand-dim); }

.nav-cta-btn {
  background-color: var(--sand-dim);
  color: var(--pine-deep) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.nav-cta-btn:hover { background-color: var(--accent-mint); transform: translateY(-1px); }

.btn-secondary {
  background-color: transparent;
  color: var(--sand-dim);
  border: 1px solid var(--sand-dim);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover { background-color: rgba(232, 223, 200, 0.1); }

/* Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(232, 223, 200, 0.2);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.mobile-toggle span { display: block; width: 20px; height: 2px; background-color: var(--sand-dim); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Fullscreen Mobile Drawer */
.mobile-menu-overlay {
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pine-deep);
  z-index: 9998;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-top: 1px solid var(--border-dark);
  box-sizing: border-box;
  overflow-y: auto;
}
.mobile-links { display: flex; flex-direction: column; gap: 0; }
.mobile-links a { color: var(--sand-dim); text-decoration: none; font-family: var(--font-heading); font-size: 24px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid rgba(232, 223, 200, 0.08); display: block; }
.mobile-links a:hover, .mobile-links a.active { color: var(--accent-mint); }

/* =========================================
   UNIVERSAL FOOTER
========================================= */
footer.site-footer { background-color: var(--pine-deep); color: var(--sand-dim); padding: 80px 24px 40px; border-top: 1px solid var(--border-dark); width: 100%; box-sizing: border-box; }
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 60px; }
.footer-brand-wrap { margin-bottom: 16px; }
.footer-tagline { color: var(--text-muted); font-size: 15px; max-width: 320px; margin-top: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-mint); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--sand-dim); opacity: 0.75; text-decoration: none; font-size: 14px; transition: opacity 0.2s, color 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--accent-mint); }
.telemetry-box { background-color: var(--pine-surface); border: 1px solid var(--border-dark); padding: 14px 18px; border-radius: 12px; font-size: 12px; word-break: break-all; }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* Responsive Adjustments */
@media (max-width: 900px) {
  .desktop-nav, .desktop-cta { display: none !important; }
  .mobile-toggle { display: flex !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  footer.site-footer { padding: 60px 20px 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

.footer-logo-img {
  height: 38px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: block;
}
