/* ============================================================================
 * Edge Agent AI — marketing site
 * Dark, modern, developer-focused. No frameworks; vanilla CSS.
 * Color palette is documented in :root so future tweaks are one-edit.
 * ============================================================================ */

:root {
  /* Surfaces */
  --bg: #07090d;
  --bg-1: #0c1117;
  --bg-2: #11161e;
  --surface: #141a23;
  --surface-hi: #1a2230;
  --border: #1f2837;
  --border-hi: #2a3548;

  /* Text */
  --fg: #e6ebf2;
  --fg-soft: #b6bfcc;
  --fg-muted: #8a93a3;
  --fg-faint: #5b6473;

  /* Brand / accent */
  --accent: #22d3ee;            /* cyan-400 */
  --accent-2: #a78bfa;          /* violet-400 */
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-ring: rgba(34, 211, 238, 0.35);

  /* Semantic */
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;

  /* Spacing & radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1180px;

  /* Type */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  --font-mono:
    "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle radial wash so the page never feels like a flat black slab */
  background-image:
    radial-gradient(1100px 480px at 50% -120px, rgba(34, 211, 238, 0.08), transparent 70%),
    radial-gradient(900px 480px at 110% 20%, rgba(167, 139, 250, 0.06), transparent 60%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: #67e8f9; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

p { margin: 0 0 1rem; color: var(--fg-soft); }
ul { color: var(--fg-soft); }

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

/* ============================================================================
 * NAV
 * ============================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Translucent backdrop with blur — feels native on macOS and modern
     Win/Linux browsers alike. Falls back to a solid color on older
     engines. */
  background: rgba(7, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
}
.nav__brand:hover { color: var(--fg); }

.nav__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.nav__title {
  font-size: 15px;
  letter-spacing: -0.01em;
}

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

.nav__links a {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 120ms ease, background 120ms ease;
}
.nav__links a:hover {
  color: var(--fg);
  background: var(--surface);
}

.nav__github {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  border: 1px solid var(--border-hi);
}

/* Icon-only social link (LinkedIn). Matches the GitHub button's outlined
   chip style but with no label, so the nav stays light on text. The
   SVG inherits currentColor, so :hover smoothly transitions both the
   border and the glyph color. */
.nav__social {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  padding: 0 !important;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
}
.nav__social:hover {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--accent-ring);
}
.nav__social svg {
  width: 16px;
  height: 16px;
}

/* ============================================================================
 * BUTTONS
 * ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 14px/1 var(--font-sans);
  letter-spacing: -0.01em;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #06121a;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}
.btn--primary:hover {
  color: #06121a;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-hi);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--accent-ring);
}

/* ============================================================================
 * HERO
 * ============================================================================ */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(50% 80% at 80% 30%, rgba(167, 139, 250, 0.16), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font: 500 12px/1.4 var(--font-mono);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero__title {
  font: 800 clamp(40px, 6vw, 72px)/1.05 var(--font-sans);
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0 0 24px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0 0 12px;
}

.hero__sub2 {
  font-size: 16px;
  color: var(--fg-muted);
  margin: 0 0 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
}

.hero__pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot--green { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.dot--cyan { background: var(--accent); box-shadow: 0 0 8px rgba(34, 211, 238, 0.5); }
.dot--violet { background: var(--accent-2); box-shadow: 0 0 8px rgba(167, 139, 250, 0.5); }
.dot--amber { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }

/* ============================================================================
 * SECTIONS — shared
 * ============================================================================ */
.section__title {
  font: 700 clamp(28px, 3.6vw, 40px)/1.15 var(--font-sans);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 12px;
  text-align: center;
}

.section__lede {
  text-align: center;
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0 auto 56px;
}

/* ============================================================================
 * EXPLAIN — 3-step
 * ============================================================================ */
.explain {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.explain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.explain__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.explain__card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

.explain__num {
  font: 700 13px/1 var(--font-mono);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.explain__card h3 {
  font: 600 19px/1.3 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 8px;
}

.explain__card p {
  font-size: 15px;
  margin: 0;
}

/* ============================================================================
 * SHOWCASE REEL — auto-cycling screenshot demo styled like a video player
 *
 * We use plain <img> elements cross-faded by toggling .is-active rather than
 * loading a real .mp4 or .gif because:
 *   • the 4 PNGs together weigh ~460 KB — a 720p MP4 of the same UI loop
 *     would be 6–10 MB, with no real fidelity benefit for static screens.
 *   • PNGs serve from any CDN/static host with zero codec / range-request
 *     pitfalls.
 *   • visitors with reduced-motion preferences see slide 1 only — far easier
 *     than pausing a <video> tag from CSS alone.
 *
 * Visual treatment: macOS-style window chrome up top, content area below,
 * thin progress bar at the bottom that fills over the 3.5s slide duration.
 * ============================================================================ */
.showcase {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.reel {
  /* Aspect ratio 1024:633 of the source screenshots, plus 36px for the
     fake chrome bar and 4px for the progress strip. We use aspect-ratio
     so the height tracks the responsive width without layout shift on
     first paint. */
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.reel__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  /* The dual-layer glow: a tight cyan/violet halo against a deep shadow
     for "this is the hero artifact" emphasis. */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(34, 211, 238, 0.18),
    0 0 120px rgba(167, 139, 250, 0.12);
}

/* macOS-style window header */
.reel__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, #1a2230 0%, #141a23 100%);
  border-bottom: 1px solid var(--border);
}

.reel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.reel__dot--r { background: #ff5f57; }
.reel__dot--y { background: #febc2e; }
.reel__dot--g { background: #28c840; }

.reel__url {
  flex: 1;
  text-align: center;
  font: 500 12px/1 var(--font-mono);
  color: var(--fg-muted);
  letter-spacing: -0.01em;
  /* Center the URL even with the right-side "LIVE" badge present */
  margin-left: -56px;
}

.reel__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 10px/1 var(--font-mono);
  color: var(--rose);
  letter-spacing: 0.08em;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.25);
  padding: 4px 8px;
  border-radius: 999px;
}

.reel__live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* The video element (replaces the older multi-image slide stage).
   aspect-ratio matches the source MP4 (1024×572 ≈ 16:9 minus the title
   bar that was cropped). The poster fills the same box during the first
   ~300ms while the MP4 metadata loads. */
.reel__video {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 572;
  background: #000;
  object-fit: cover;
  object-position: top center;
}

.reel__caption {
  text-align: center;
  margin: 20px 0 0;
  font: 500 14px/1.4 var(--font-sans);
  color: var(--fg-muted);
  min-height: 1.4em;
  transition: opacity 300ms ease;
}

/* Reduced-motion users get the static poster instead of the loop */
@media (prefers-reduced-motion: reduce) {
  .reel__video { animation-play-state: paused; }
  .reel__live-dot { animation: none; }
}

/* On narrow screens, the chrome label and live badge can crowd the bar */
@media (max-width: 640px) {
  .showcase { padding: 56px 0; }
  .reel__url { font-size: 11px; margin-left: 0; }
  .reel__live { display: none; }
}

/* ============================================================================
 * FEATURES — 11-up grid
 * ============================================================================ */
.features {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.feat:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
  background: var(--surface-hi);
}

.feat--hot {
  /* The "Understand Code Workflow" hero feature — gets a subtle gradient
     border to draw the eye without screaming. */
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  border: 1px solid transparent;
}
.feat--hot:hover {
  background:
    linear-gradient(var(--surface-hi), var(--surface-hi)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
}

.feat__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}
.feat__icon svg {
  width: 22px;
  height: 22px;
}

/* Feature cards with an inline animated GIF replace the icon block with
   a 16:9 media thumbnail. Cards without media keep the .feat__icon
   treatment. The thumbnail is constrained to ~16:9 so the grid stays
   visually balanced regardless of source GIF aspect ratio. */
.feat--has-media .feat__media {
  display: block;
  width: calc(100% + 48px);  /* bleed to card edges, undoing the 24px padding */
  margin: -24px -24px 18px;   /* on top, the negative margins reach the corners */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  /* Subtle inner shadow at the bottom edge sells the "this is a screen
     recording" feel — pairs with the chrome-less embed. */
  box-shadow: inset 0 -8px 24px -16px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  /* GIFs always animate — there's no per-frame pause API. The most we can
     do for motion-sensitive users is hide them; CSS can replace the GIF
     box with a placeholder via the background gradient + label. */
  .feat--has-media .feat__media {
    visibility: hidden;
    background: linear-gradient(135deg, var(--bg-1), var(--surface-hi));
  }
}

.feat__pill {
  position: absolute;
  top: 16px;
  right: 16px;
  font: 600 10px/1 var(--font-mono);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121a;
  padding: 5px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feat h3 {
  font: 600 17px/1.3 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 8px;
}

.feat p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* ============================================================================
 * DOWNLOAD
 * ============================================================================ */
.download {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(167, 139, 250, 0.06), transparent 60%);
}

.download__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}
.dl-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
}

/* The OS card matching the user's current platform gets a soft accent
   ring (set by script.js based on userAgent.platform). */
.dl-card.dl-card--match {
  border-color: var(--accent-ring);
  box-shadow:
    0 0 0 1px var(--accent-ring) inset,
    0 14px 40px rgba(34, 211, 238, 0.12);
}

.dl-card__head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.dl-card__os {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}

.dl-card__os svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.dl-card__title {
  font: 600 17px/1.2 var(--font-sans);
  letter-spacing: -0.02em;
}

.dl-card__sub {
  font: 400 12px/1.3 var(--font-mono);
  color: var(--fg-muted);
  margin-top: 2px;
}

.dl-card__details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--fg-muted);
}
.dl-card__details li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.dl-card__details li:last-child { border-bottom: none; }
.dl-card__details code {
  font-size: 12px;
  background: var(--bg-1);
}

.dl-card__btn {
  margin-top: auto;
}

.download__note {
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================================================
 * FAQ
 * ============================================================================ */
.faq {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
  transition: border-color 160ms ease, background 160ms ease;
}
.faq__item:hover { border-color: var(--border-hi); }
.faq__item[open] {
  border-color: var(--accent-ring);
  background: var(--surface-hi);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  font: 600 16px/1.4 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--fg);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  transition: transform 120ms ease;
}
.faq__item[open] summary::after { content: "−"; }

.faq__item p {
  margin: 0 0 18px;
  color: var(--fg-soft);
  font-size: 15px;
}

/* ============================================================================
 * FOOTER
 * ============================================================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.footer__title {
  font: 700 15px/1.2 var(--font-sans);
}
.footer__sub {
  font: 400 12px/1.4 var(--font-mono);
  color: var(--fg-muted);
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__hdr {
  font: 600 11px/1 var(--font-mono);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer__col a {
  color: var(--fg-soft);
  font-size: 14px;
}
.footer__col a:hover { color: var(--accent); }

.footer__copy {
  padding-top: 24px;
  color: var(--fg-faint);
  font-size: 13px;
  text-align: center;
}

/* ============================================================================
 * DOCS PAGE — shared with index but with article-style typography
 * ============================================================================ */
.docs {
  padding: 64px 0 96px;
}

.docs__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}

.docs__nav {
  position: sticky;
  top: 96px;
  align-self: start;
  height: max-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.docs__nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms ease, background 120ms ease;
}
.docs__nav a:hover {
  color: var(--fg);
  background: var(--bg-1);
}
.docs__nav-section {
  font: 600 11px/1 var(--font-mono);
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 14px 10px 4px;
}

.docs__article {
  min-width: 0;            /* let nested <pre> not blow out the grid */
}

.docs__article h1 {
  font: 800 clamp(32px, 4.4vw, 44px)/1.1 var(--font-sans);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 12px;
}

.docs__article h2 {
  font: 700 28px/1.2 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 88px;
}

.docs__article h3 {
  font: 600 19px/1.3 var(--font-sans);
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 28px 0 10px;
  scroll-margin-top: 88px;
}

.docs__article p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-soft);
}

.docs__article ul, .docs__article ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-soft);
}
.docs__article li { margin-bottom: 4px; }

.docs__lead {
  font-size: 18px;
  color: var(--fg-muted);
  margin: 0 0 36px;
}

.docs__article pre {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font: 500 13.5px/1.6 var(--font-mono);
  color: var(--fg);
  margin: 0 0 18px;
}

.docs__article pre code {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
}

.docs__article blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--fg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.docs__article blockquote p { margin: 0; }

.docs__article a {
  text-decoration: underline;
  text-decoration-color: var(--accent-ring);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.docs__article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.docs__article th, .docs__article td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.docs__article th {
  background: var(--bg-1);
  color: var(--fg);
  font-weight: 600;
}
.docs__article td { color: var(--fg-soft); }

/* ============================================================================
 * RESPONSIVE
 * ============================================================================ */
@media (max-width: 860px) {
  .nav__inner { gap: 12px; }
  .nav__title { display: none; }
  .nav__links a { padding: 6px 8px; font-size: 13px; }
  .nav__github span { display: none; }
  /* Below 860px the GitHub button collapses to icon-only, so the LinkedIn
     icon should match its 34×34 chip size visually (no padding override). */
  .nav__github { padding: 0 8px; }

  .hero { padding: 64px 0 56px; }

  .features { padding: 56px 0; }
  .download { padding: 56px 0; }
  .faq { padding: 56px 0; }

  .docs__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .docs__nav-section {
    width: 100%;
    margin: 6px 0 2px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 500px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 38px; }
  .hero__subtitle { font-size: 17px; }
}

/* Reduced motion: respect users who don't want transforms / smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feat, .dl-card, .explain__card { transition: none; }
  .btn:hover, .feat:hover, .dl-card:hover, .explain__card:hover {
    transform: none;
  }
}
