/* ─────────────────────────────────────────────────────────────────────────
 * Sub-page styles — applied on top of the home page's `styles.css`.
 *
 * The home page is dense with marketing widgets (hero panels,
 * feature grids, pricing cards). Sub-pages need a different mode:
 * a clean article column for legal copy + a hero that's narrower
 * than the home one. These rules layer on top of the existing
 * design tokens (same font stack, same colours), they don't
 * replace anything.
 *
 * Kept in a separate file so the home page bundle doesn't grow
 * with article-only typography.
 * ─────────────────────────────────────────────────────────────── */

/* ── Dark-theme overrides for sub-pages ─────────────────────────── */
/* The home page uses a light theme; sub-pages (legal / about / docs)
   are darker so the article copy reads like documentation. The home
   page's nav blends with a white surface — here it needs to invert. */
body {
  background: #0b0d12;
  color: rgba(255, 255, 255, 0.92);
}
.nav {
  background: rgba(11, 13, 18, 0.78);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.brand__text { color: #fff; }
.nav__links a { color: rgba(255, 255, 255, 0.72); }
.nav__links a:hover { color: #fff; }
.nav__cta .btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}
.nav__cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.nav__burger {
  border-color: rgba(255, 255, 255, 0.18);
}
.nav__burger span {
  background: rgba(255, 255, 255, 0.85);
}
.nav__mobile {
  background: #0e1117;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav__mobile a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ── Compact hero for sub-pages ─────────────────────────────────── */
.subhero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  position: relative;
  overflow: hidden;
}
.subhero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.subhero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7c5cff;
  margin-bottom: 16px;
}
.subhero__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff, #c8cad6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subhero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2, rgba(255, 255, 255, 0.72));
  max-width: 600px;
  margin: 0 auto;
}

/* ── Article column for legal / about / changelog ──────────────── */
.article {
  padding: 64px 0 96px;
}
.article__inner {
  max-width: 720px;
  margin: 0 auto;
}
.article h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  color: #fff;
}
.article h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: rgba(255, 255, 255, 0.92);
}
.article p, .article li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2, rgba(255, 255, 255, 0.72));
}
.article ul {
  padding-left: 1.25rem;
  margin: 12px 0;
}
.article ul li {
  margin-bottom: 6px;
}
.article a {
  color: #7c5cff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article a:hover { color: #21d4fd; }
.article code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.article__updated {
  display: inline-block;
  margin-bottom: 24px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.24);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}

/* ── Use-case landing layout (split hero + bullet stack) ───────── */
.uc-bullets {
  padding: 48px 0 96px;
}
.uc-bullets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.uc-bullet {
  padding: 24px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.uc-bullet h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.uc-bullet p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2, rgba(255, 255, 255, 0.72));
  margin: 0;
}

/* ── Changelog list ──────────────────────────────────────────── */
.changelog__entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}
.changelog__entry:last-child { border-bottom: 0; }
.changelog__date {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 8px;
}
.changelog__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

/* ── Use-case CTA panel ──────────────────────────────────────── */
.cta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(33, 212, 253, 0.12)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cta__inner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(33, 212, 253, 0.18), transparent 60%);
  pointer-events: none;
}
.cta__inner > * { position: relative; }
.cta__inner h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 12px;
}
.cta__inner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.55;
}

/* ── Contact form ─────────────────────────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 48px;
}
.contact-card {
  padding: 24px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}
.contact-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.contact-card a {
  color: #7c5cff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
}
