/* Samurai shared site styles: variables, reset, nav/mobile-menu skeleton, footer.
   Loaded on every page so the browser caches it once instead of re-parsing an
   inline copy per navigation. Page-specific styles (hero, sections, content)
   stay local to each page's own <style> block. */

:root {
  --accent: #e8420a;
  --accent2: #c0220a;
  --bg: #08090c;
  --surface: #0f1117;
  --border: rgba(255,255,255,0.08);
  --text: #e8eaf0;
  --muted: rgba(232,234,240,0.45);
  --mono: 'JetBrains Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,66,10,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,66,10,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* NAV skeleton — per-page <style> sets z-index and .logo/.nav-links/.nav-cta sizing */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,9,12,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-actions { display: flex; gap: 12px; align-items: center; }

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  padding: 110px 24px 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(232,66,10,0.35);
  transition: border-color 0.2s;
}
.inline-link:hover { border-color: var(--accent); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 48px 36px;
  position: relative; z-index: 1;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.06em; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 24px;
}
.footer-meta { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--muted); }
.footer-meta a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-meta a:hover { color: var(--accent); }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.footer-social:hover { color: var(--accent); border-color: rgba(232,66,10,0.4); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE — nav/footer skeleton.
   .nav-links / .nav-burger are deliberately NOT overridden here: each page's
   local <style> (loaded after this file) declares its own unconditional
   .nav-links rule, which would win the cascade over a same-specificity rule
   defined here. The mobile hide/show for those two lives in each page's own
   local @media block instead, so it's guaranteed to be the last word. */
@media (max-width: 860px) {
  nav { padding: 18px 24px; }
  footer { padding: 40px 24px 28px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}
