/* =========================================
   CAPACITADEV — Shared Design System
   capacitadev.io
   ========================================= */

/* ── Tokens ── */
:root {
  --bg:        #07091C;
  --surface:   #0D1228;
  --surface-2: #131A38;
  --border:    #1B2848;
  --border-hi: #2A3F6A;
  --text:      #EDF0FF;
  --muted:     #7A8EAF;
  --faint:     #2A3A5A;

  --junior:       #B45309;
  --intermediate: #4338CA;
  --senior:       #185FA5;
  --staff:        #09A59A;
  --ai:           #2563EB;

  --accent: #185FA5;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ── Navbar ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 9, 28, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 62px; gap: 24px;
}
.nav-logo { font-family: var(--font-mono); font-size: 14px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.nav-logo .lo-b { color: var(--muted); }
.nav-logo .lo-n { color: var(--accent); transition: color .4s; }
.nav-logo .lo-s { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.current { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: var(--radius-sm);
  transition: opacity .2s; white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { opacity: .82; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 14px 30px; border-radius: var(--radius-sm);
  transition: opacity .2s; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover { opacity: .84; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted);
  font-size: 15px; font-weight: 500;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-hi);
  transition: border-color .2s, color .2s; cursor: pointer;
  font-family: var(--font-body);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* ── Level pills ── */
.level-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; border: 1px solid currentColor;
}
.level-pill.junior       { color: var(--junior); }
.level-pill.intermediate { color: var(--intermediate); }
.level-pill.senior       { color: var(--senior); }
.level-pill.staff        { color: var(--staff); }
.level-pill.ai           { color: var(--ai); }

/* ── Level dot ── */
.lvl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; display: inline-block;
}
.lvl-dot.junior       { background: var(--junior); }
.lvl-dot.intermediate { background: var(--intermediate); }
.lvl-dot.senior       { background: var(--senior); }
.lvl-dot.staff        { background: var(--staff); }
.lvl-dot.ai           { background: var(--ai); }

/* Level text colors */
.c-junior       { color: var(--junior); }
.c-intermediate { color: var(--intermediate); }
.c-senior       { color: var(--senior); }
.c-staff        { color: var(--staff); }
.c-ai           { color: var(--ai); }

/* ── Category tag ── */
.cat-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); padding: 3px 8px;
  background: var(--surface-2); border-radius: 4px;
  white-space: nowrap;
}

/* ── Section shared ── */
.section-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; transition: color .4s;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.08; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--muted);
  line-height: 1.65; max-width: 520px;
}
.section-header { margin-bottom: 56px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-mono); font-size: 13px; }
.footer-logo .lo-b { color: var(--muted); }
.footer-logo .lo-n { color: var(--accent); transition: color .4s; }
.footer-logo .lo-s { color: var(--muted); }
.footer-social { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-social a { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s; }
.footer-social a:hover { color: var(--text); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* ── Fade animations ── */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--faint); }

/* ── Responsive ── */
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
