@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #161616;
  --border: #222;
  --border2: #2e2e2e;
  --text: #f0f0f0;
  --muted: #666;
  --muted2: #444;
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --amber: #f59e0b;
  --red: #ef4444;
  --indigo: #6366f1;
  --indigo-dim: rgba(99,102,241,0.12);
  --indigo-border: rgba(99,102,241,0.3);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1100px;
  --max-prose: 740px;
}

html { scroll-behavior: smooth; }

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

/* ── Nav ──────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-mark {
  color: var(--indigo);
  font-size: 18px;
  line-height: 1;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--text); }

.nav-cta {
  background: var(--indigo);
  color: #fff !important;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.nav-cta:hover { opacity: 0.88; background: var(--indigo) !important; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.footer-logo-mark { color: var(--indigo); font-size: 14px; }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--text); }

.footer-copy {
  color: var(--muted2);
  font-size: 11px;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

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

.prose-container {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted2); }

/* ── Prose styles (legal pages) ──────────────────────────────── */
.prose {
  padding: 60px 0 80px;
}

.prose-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prose-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--indigo);
  background: var(--indigo-dim);
  border: 1px solid var(--indigo-border);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.prose-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.prose-header .updated {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.prose-body h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--text);
}

.prose-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}

.prose-body p {
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose-body ul, .prose-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.prose-body li {
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.prose-body strong { color: var(--text); font-weight: 600; }

.prose-body a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid var(--indigo-border);
  transition: border-color 0.15s;
}

.prose-body a:hover { border-color: var(--indigo); }

.prose-body .highlight-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

.prose-body .highlight-box p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.prose-body .warning-box {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

.prose-body .warning-box p {
  margin: 0;
  font-size: 14px;
  color: var(--amber);
}

.prose-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  padding: 2px 7px;
  border-radius: 4px;
  color: #a5b4fc;
}

/* ── Contact card ─────────────────────────────────────────────── */
.contact-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.contact-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links .nav-link:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
