/* ── GeometryViewer — Shared site styles ──────────────────────────────
   Included by every page. Defines header, footer, and CSS variables.
   Page-specific styles stay in each page's <style> block.
──────────────────────────────────────────────────────────────────── */

/* ── CSS variables ──────────────────────────────────────────────── */
:root {
  --bg:          #08080f;
  --bg-2:        #0e0e1a;
  --bg-3:        #141424;
  --border:      rgba(255,255,255,0.08);
  --accent:      #0071e3;
  --accent-h:    #1a8fff;
  --accent-glow: rgba(0,113,227,0.25);
  --green:       #10b981;
  --purple:      #8b5cf6;
  --orange:      #f59e0b;
  --text:        #f0f0f5;
  --text-2:      rgba(240,240,245,0.65);
  --text-3:      rgba(240,240,245,0.38);
  --radius:      12px;
  --radius-lg:   18px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset (minimal — pages add their own) ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(8,8,15,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.logo-icon {
  height: 42px; width: auto;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
  transition: transform 0.2s;
}
.logo:hover .logo-icon { transform: rotate(-4deg) scale(1.06); }
.logo-icon img { display: block; height: 100%; width: auto; object-fit: contain; }
.header-spacer { flex: 1; }
.header-links { display: flex; align-items: center; gap: 4px; }
.header-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.header-link:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.header-link svg { width: 14px; height: 14px; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner { max-width: 940px; margin: 0 auto; }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-size: 0.95rem; font-weight: 700; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.footer-tagline { font-size: 0.82rem; color: var(--text-3); line-height: 1.55; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav-group { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 4px;
}
.footer-nav a {
  font-size: 0.85rem; color: var(--text-2); text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; color: var(--text-3); }
.footer-copy a { color: var(--text-3); text-decoration: none; }
.footer-copy a:hover { color: var(--text-2); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header { padding: 0 16px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
