/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Variables ── */
:root {
  --bg: #ffffff;
  --bg-elevated: #f6f6f8;
  --border: #e2e2e8;
  --text: #1a1a2e;
  --text-dim: #5c5c6f;
  --text-muted: #9b9bab;
  --accent: #3566d5;
  --accent-dim: #2b54b0;
  --green: #2a7d5a;
  --yellow: #a07820;
  --red: #c0392b;
  --purple: #8839a8;
  --cyan: #1a7a7a;
  --orange: #b5651d;
  --mono: 'JetBrains Mono', 'Berkeley Mono', 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Body ── */
body {
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Links ── */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  text-decoration: none;
}

/* ── Nav ── */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-logo:hover { text-decoration: none; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Section Heading ── */
.section-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-brand .nav-logo {
  margin-bottom: 12px;
  display: inline-block;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom a {
  color: var(--text-muted);
  margin-left: 16px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
