/* ═══════════════════════════════════════════════════════
   MARK BARRERA — Signal Architecture Design System
   Shared across all pages
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #111114;
  --bg-card: #16161a;
  --bg-elevated: #1c1c21;
  --text-primary: #f0ede6;
  --text-secondary: #9a968e;
  --text-muted: #5a5750;
  --accent: #c8a44e;
  --accent-dim: #a08535;
  --accent-glow: rgba(200, 164, 78, 0.12);
  --red: #c44e4e;
  --green: #4ec47a;
  --border: rgba(240, 237, 230, 0.06);
  --border-accent: rgba(200, 164, 78, 0.2);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-primary); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--serif); font-size: 1.2rem; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-cta { background: var(--accent) !important; color: var(--bg-primary) !important; padding: 0.6rem 1.4rem; border-radius: 4px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--accent-dim) !important; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* ─── SHARED COMPONENTS ─── */
section { padding: 6rem 3rem; }
.section-label { font-size: 0.72rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; font-family: var(--mono); }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 700px; margin-bottom: 1.5rem; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7; margin-bottom: 3rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; background: var(--accent); color: var(--bg-primary);
  border: none; border-radius: 4px; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 4px; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--bg-card); }

/* ─── FOOTER ─── */
footer { padding: 3rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-left { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg-primary);
    border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1rem;
  }
  section { padding: 4rem 1.5rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}
