/* ==========================================================================
   pages.css — Docs & Download page layouts (same design language)
   Loaded after the landing-page stylesheets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared page hero (slim, centered, with glow)
   -------------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-block: 80px 56px; text-align: center; }
.page-hero__glow {
  position: absolute;
  left: 50%; top: -40%;
  width: 90%; height: 130%;
  transform: translateX(-50%);
  z-index: 0;
  background:
    radial-gradient(42% 50% at 40% 45%, rgba(114, 95, 232, 0.35), transparent 70%),
    radial-gradient(40% 50% at 62% 55%, rgba(206, 71, 235, 0.30), transparent 72%),
    radial-gradient(34% 44% at 82% 60%, rgba(245, 122, 116, 0.22), transparent 72%);
  filter: blur(26px);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 18px; }
.page-hero__title { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: var(--tracking-tight); }
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--color-text-muted); max-width: 600px; margin: 18px auto 0; }

/* --------------------------------------------------------------------------
   Reusable code block (terminal-style)
   -------------------------------------------------------------------------- */
.code-block {
  position: relative;
  background: #0b0b0f;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code-block code { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--color-text); white-space: pre; }
.code-block .prompt { color: var(--brand-purple); user-select: none; }
.code-block .tok-com { color: #7f848e; font-style: italic; }
.code-block__copy {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.code-block__copy:hover { color: var(--color-text); background: var(--color-surface-3); }
.code-block__copy .icon { width: 14px; height: 14px; }

/* ==========================================================================
   DOWNLOAD PAGE
   ========================================================================== */
.download__detect { margin-top: 28px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.download__detect .btn { min-width: 230px; }
.download__detect-note { font-size: var(--fs-sm); color: var(--color-text-dim); }

.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 28px; }
.platform-card__icon { width: 44px; height: 44px; color: var(--color-text); margin-bottom: 20px; }
.platform-card__name { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; }
.platform-card__meta { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: 6px; }
.platform-card .btn { width: 100%; margin-top: 24px; }
.platform-card__alt { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.platform-card__alt a { font-size: 13px; color: var(--color-text-muted); transition: color var(--dur) var(--ease); }
.platform-card__alt a:hover { color: var(--brand-purple); }

.install__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.install__head .section-lead { margin-inline: auto; }
.install .code-block { max-width: 720px; margin: 0 auto; }

.requirements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.req { padding: 24px; text-align: center; }
.req__os { font-size: var(--fs-body); font-weight: 600; margin-bottom: 8px; }
.req__list { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.7; }

.release-note { text-align: center; font-size: var(--fs-sm); color: var(--color-text-muted); }
.release-note a { color: var(--brand-purple); }

/* ==========================================================================
   DOCS PAGE
   ========================================================================== */
.docs { padding-block: 48px 80px; }
.docs__layout { display: grid; grid-template-columns: 232px minmax(0, 1fr) 200px; gap: 56px; align-items: start; }

/* Sidebar */
.docs-sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.docs-nav__group + .docs-nav__group { margin-top: 26px; }
.docs-nav__label { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 10px; padding-left: 12px; }
.docs-nav__list { display: flex; flex-direction: column; gap: 2px; }
.docs-nav__list a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.docs-nav__list a:hover { color: var(--color-text); background: var(--color-surface-2); }
.docs-nav__list a.is-active { color: var(--color-text); background: var(--color-surface-3); font-weight: 500; }

/* Article content (prose) */
.docs-content { min-width: 0; }
.docs-breadcrumb { font-size: 13px; color: var(--color-text-dim); margin-bottom: 16px; }
.docs-breadcrumb span { color: var(--color-text-muted); }
.docs-content h1 { font-size: 40px; line-height: 1.1; letter-spacing: -1px; }
.docs-content > p:first-of-type { font-size: var(--fs-lead); color: var(--color-text-muted); line-height: 1.5; margin-top: 16px; }
.docs-content h2 { font-size: 26px; letter-spacing: -0.5px; margin-top: 52px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); scroll-margin-top: calc(var(--header-h) + 16px); }
.docs-content h3 { font-size: 19px; font-weight: 600; margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
.docs-content p { color: var(--color-text-muted); line-height: 1.7; margin-top: 16px; }
.docs-content ul, .docs-content ol { margin-top: 16px; padding-left: 22px; color: var(--color-text-muted); line-height: 1.7; }
.docs-content ul { list-style: disc; }
.docs-content ol { list-style: decimal; }
.docs-content li { margin-top: 6px; }
.docs-content li::marker { color: var(--color-text-dim); }
.docs-content a:not(.btn) { color: var(--brand-purple); text-decoration: underline; text-underline-offset: 2px; }
.docs-content strong { color: var(--color-text); font-weight: 600; }
.docs-content code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  color: #d8a0ff;
}
.docs-content .code-block { margin-top: 20px; }

/* Callout / note */
.callout {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--brand-purple);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.callout .icon { width: 20px; height: 20px; color: var(--brand-purple); flex: none; margin-top: 1px; }
.callout p { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.callout strong { color: var(--color-text); }

/* Shortcut table */
.docs-content table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: var(--fs-sm); }
.docs-content th, .docs-content td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--color-border); }
.docs-content thead th { color: var(--color-text-dim); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.docs-content td:first-child { color: var(--color-text-muted); }
.docs-content kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--color-text);
}

/* Prev / next pager (custom — overrides the prose link styling) */
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.docs-content .docs-pager a {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.docs-content .docs-pager a:hover { border-color: var(--brand-purple); background: var(--color-surface-2); transform: translateY(-2px); }
.docs-pager a.next { align-items: flex-end; text-align: right; margin-left: auto; }
.docs-pager__dir { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-dim); transition: color var(--dur) var(--ease); }
.docs-content .docs-pager a:hover .docs-pager__dir { color: var(--brand-purple); }
.docs-pager__title { font-size: var(--fs-body); font-weight: 600; color: var(--color-text); }

/* On-this-page TOC */
.docs-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.docs-toc__label { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 12px; }
.docs-toc__list { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--color-border); }
.docs-toc__list a { padding-left: 14px; margin-left: -1px; font-size: 13px; color: var(--color-text-muted); border-left: 1px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.docs-toc__list a:hover { color: var(--color-text); }
.docs-toc__list a.is-active { color: var(--color-text); border-left-color: var(--brand-purple); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .docs__layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-sidebar { position: static; order: -1; }
  .docs-nav__list { flex-flow: row wrap; }
  .docs-toc { display: none; }
}
@media (max-width: 640px) {
  .download-grid { grid-template-columns: 1fr; }
  .requirements { grid-template-columns: 1fr; }
  .docs-pager { flex-direction: column; }
  .docs-pager a, .docs-pager a.next { max-width: none; }
}
