/* Sweet CLI — shared design system */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-raised: #111113;
  --bg-card: #161618;
  --border: #222225;
  --border-hover: #333338;
  --text: #e8e8ec;
  --text-dim: #8a8a9a;
  --text-muted: #55555f;
  --accent: #e8a830;
  --accent-dim: #c48a20;
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.12);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Instrument Sans', -apple-system, sans-serif;
}

*, *::before, *::after { 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.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  background: linear-gradient(90deg,#ff2d55,#ff9500,#ffd60a,#34c759,#32ade6,#5856d6,#ff2d55);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowShift 8s linear infinite;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-active { color: var(--text); }
.nav-cta {
  background: var(--text) !important; color: var(--bg) !important;
  padding: 7px 18px; border-radius: 7px; font-weight: 600 !important; font-size: 13px !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
@media (max-width: 700px) {
  .nav-inner { padding: 0 16px; }
  .nav-links a:not(.nav-cta):not(:nth-last-child(2)) { display: none; }
}

@media (max-width: 480px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .site-footer { padding: 28px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 16px; }
  .prose { padding: 48px 16px 80px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-dim); }
.footer-wrap { border-top: 1px solid var(--border); }

/* ── PAGE BODY OFFSET ── */
.page-body { padding-top: 56px; }

/* ── COMMON BUTTONS ── */
.btn-primary {
  background: var(--text); color: var(--bg);
  padding: 11px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; display: inline-block; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  background: transparent; color: var(--text);
  padding: 11px 28px; border-radius: 8px; font-weight: 500; font-size: 15px;
  border: 1px solid var(--border); display: inline-block; transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--border-hover); }

/* ── RAINBOW ANIMATION ── */
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── PROSE (legal / docs pages) ── */
.prose {
  max-width: 720px; margin: 0 auto; padding: 64px 32px 100px;
}
.prose h1 { font-size: clamp(28px,4vw,40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose .prose-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 48px; font-family: var(--mono); }
.prose h2 { font-size: 20px; font-weight: 600; margin: 36px 0 10px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.prose p { color: var(--text-dim); line-height: 1.75; margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--text-dim); padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; line-height: 1.65; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── SECTION HELPERS ── */
.section-label {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
}
.section-title { font-size: clamp(24px,3.5vw,34px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.2; }
.section-sub { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin-bottom: 40px; }

/* ── CARD ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-hover); }

/* ── CODE ── */
code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 4px; color: var(--text);
}
pre code { display: block; padding: 16px; overflow-x: auto; border-radius: 8px; }
