/* ─── SHARED STYLES ─── */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-card: #ffffff;
  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #111111;
  --accent-teal: #0d9488;
  --accent-teal-light: #ccfbf1;
  --accent-subtle: #e8e8e8;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 0px;
  --max-w: 960px;
}

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

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

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

/* ─── CONTAINER ─── */
.container { max-width: var(--max-w); margin: 0 auto; }

/* Subpages get padded containers */
.subpage .container { padding: 2rem; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  align-items: center; display: flex; height: 64px;
  justify-content: space-between; margin: 0 auto;
  max-width: var(--max-w); padding: 0 2rem;
}
.logo {
  color: var(--text); display: flex; flex-direction: column;
  line-height: 1.15; text-decoration: none;
}
.logo-name {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
}
.logo-tech { color: var(--accent-teal); }
.nav-links {
  align-items: center; display: flex; gap: 2rem;
}
.nav-links a {
  color: var(--text-secondary); font-size: 0.85rem;
  font-weight: 500; text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text) !important; border-radius: 6px;
  color: var(--bg) !important; font-size: 0.82rem !important;
  font-weight: 600 !important; padding: 0.5rem 1.2rem;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }
.mobile-toggle {
  background: none; border: none; color: var(--text);
  cursor: pointer; display: none; font-size: 1.3rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; background: var(--text); color: var(--bg);
  padding: 0.75rem 1.6rem; border-radius: 6px;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: opacity 0.2s;
  border: none; cursor: pointer; font-family: var(--sans);
}
.btn-primary:hover { opacity: 0.8; }
.btn-secondary {
  display: inline-block; color: var(--text);
  padding: 0.75rem 1.6rem; border-radius: 6px;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border: 1px solid var(--border);
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--bg-alt); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start;
}
.footer-brand .logo { margin-bottom: 0; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 2rem; margin-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem; color: var(--text-muted);
  text-align: left; padding-left: 2rem; padding-right: 2rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem; gap: 1rem;
  }
  .mobile-toggle { display: block; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; }
  .subpage .container { padding: 1rem; }
}
