/* ago.aeryx.ai, landing page only.
   Palette, type, scales and every shared component live in the aeryx brand:
   assets/vendor/{fonts,tokens,brand}.css, vendored from the aeryx-brand repo
   and guarded by cmd/sitegen/brand_test.go. Load order in site/index.html is
   fonts, tokens, brand, then this file.

   What is left here is what only ago has: the nav, the hero's accent line, the
   AST figure, and the footer. Nothing below may declare an --aeryx-* token. */

/* ---- containers ----
   ago's markup has no .wrap element, so the brand's prose width is applied to
   the section elements directly. */

.landing .hero,
.landing .section,
.landing .footer {
  max-width: var(--aeryx-w-prose);
  margin: 0 auto;
  padding: 0 var(--aeryx-s-5);
}

.landing .section {
  padding-top: var(--aeryx-s-7);
  padding-bottom: var(--aeryx-s-2);
}

/* ---- nav ---- */

.landing .nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--aeryx-s-6) var(--aeryx-s-5);
}

.landing .nav .links a {
  margin-left: var(--aeryx-s-5);
  color: var(--aeryx-muted);
  font-family: var(--aeryx-mono);
  font-size: 15px;
}

.landing .nav .links a:hover {
  color: var(--aeryx-accent);
  text-decoration: none;
}

/* ---- hero ---- */

.landing .hero {
  padding-top: var(--aeryx-s-8);
  padding-bottom: var(--aeryx-s-5);
}

.landing h1 {
  margin: 0 0 var(--aeryx-s-5);
}

.landing h1 .accent {
  display: block;
  margin-top: var(--aeryx-s-3);
  font-size: 0.52em;
  font-weight: 500;
  letter-spacing: var(--aeryx-track-label);
  color: var(--aeryx-accent);
}

.landing .thesis {
  font-size: 20px;
  color: var(--aeryx-muted);
  max-width: 640px;
  margin: 0 0 var(--aeryx-s-6);
}

.landing .btn {
  margin-right: var(--aeryx-s-3);
}

/* ---- ast diagram ---- */

.landing .ast-figure {
  margin: var(--aeryx-s-6) 0;
}

.landing .ast-src {
  margin: 0 0 var(--aeryx-s-5);
  font: 14px var(--aeryx-mono);
  color: var(--aeryx-muted);
  text-align: center;
}

.landing .ast-src code {
  color: var(--aeryx-text);
}

.landing svg.ast {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--aeryx-mono);
  font-size: 13px;
}

.landing .ast-edge {
  fill: none;
  stroke: var(--aeryx-border);
  stroke-width: 1.5;
}

.landing .ast-kind {
  fill: var(--aeryx-muted);
}

.landing .ast-token rect {
  fill: var(--aeryx-bg);
  stroke: var(--aeryx-dim);
}

.landing .ast-token text {
  fill: var(--aeryx-accent);
}

/* ---- footer ---- */

.landing .footer {
  display: flex;
  gap: var(--aeryx-s-5);
  align-items: baseline;
  padding-top: var(--aeryx-s-8);
  padding-bottom: var(--aeryx-s-7);
  font: 14px var(--aeryx-mono);
}

.landing .footer .dim {
  color: var(--aeryx-muted);
  margin-left: auto;
}

@media (max-width: 600px) {
  .landing .hero {
    padding-top: var(--aeryx-s-7);
  }
}
