/* ============================================================
   AZMX AI — design system
   Monochrome / brushed-chrome on near-black. Cursor-grade.
   Shared by every page. index.html adds its own hero styles.
   ============================================================ */
:root {
  --bg:      #060608;
  --bg-1:    #0a0a0d;
  --bg-2:    #100f14;
  --bg-3:    #16161c;
  --line:    #1e1e25;
  --line-2:  #2b2b34;

  --text:    #f5f5f7;
  --text-2:  #b6b6c0;
  --text-3:  #82828d;
  --text-4:  #56565f;

  --chrome-1: #f6f6f9;
  --chrome-2: #c5c5cf;
  --chrome-3: #86868f;
  --chrome:   linear-gradient(170deg, #fbfbfd 0%, #d2d2da 38%, #9a9aa3 64%, #cfcfd6 100%);
  --chrome-soft: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);

  --maxw: 1200px;
  --gutter: 32px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: var(--sans);
  --body: var(--sans);
  --ui: var(--sans);

  /* legacy token aliases — remap any old inline var() to the new palette */
  --paper: var(--text);
  --paper-2: var(--text-2);
  --paper-dim: var(--text-3);
  --paper-faint: var(--text-4);
  --paper-ghost: var(--line-2);
  --ink: var(--bg);
  --ink-2: var(--bg-1);
  --ink-3: var(--bg-2);
  --brass: var(--chrome-2);
  --brass-2: var(--chrome-3);
  --brass-glow: rgba(200, 200, 210, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--chrome-2); color: #08080a; }
a { color: var(--text); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 768px; }

.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--text); color: var(--bg);
  font-size: 13px; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  cursor: pointer; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn.solid {
  background: var(--chrome-soft); color: #08080a;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 30px -12px rgba(255,255,255,.25);
}
.btn.solid:hover { transform: translateY(-1px); }
.btn.ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn.ghost:hover { border-color: var(--text-3); background: rgba(255,255,255,.05); }
.btn.sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   Header
   ============================================================ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 8, 0.6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .inner {
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px; border: 0;
  background-image: url("/assets/logo.png?v=5");
  background-size: contain; background-position: center; background-repeat: no-repeat;
  font-size: 0; color: transparent; text-indent: -9999px;
  flex: none;
}
.brand .name {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
}
nav.links { display: flex; align-items: center; gap: 28px; }
nav.links a {
  font-family: var(--sans); font-size: 14px; font-weight: 450;
  color: var(--text-3); transition: color .2s var(--ease);
}
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 880px) { nav.links { display: none; } }

/* ============================================================
   Page header / hero-lite (subpages)
   ============================================================ */
.page-head {
  padding: 96px 0 60px; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 420px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(210,210,220,.10), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--bg-1);
}
.page-head h1 {
  font-size: clamp(40px, 6.4vw, 76px); font-weight: 800;
  margin: 22px 0 18px; color: var(--text);
}
.page-head h1 em { font-style: normal; }
.page-head h1 em, .page-head h1 .chrome-text {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .sub {
  font-size: clamp(17px, 1.8vw, 21px); color: var(--text-3);
  margin: 0; max-width: 680px; font-weight: 400; letter-spacing: -0.01em;
}

main { display: block; }
section.block { padding: 76px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-tag {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 28px;
  display: flex; align-items: baseline; gap: 14px;
}
.section-tag .num { color: var(--chrome-2); }

/* ============================================================
   Prose / legal / docs
   ============================================================ */
.prose { color: var(--text-2); font-size: 17px; }
.prose h2 {
  font-size: clamp(26px, 3vw, 36px); font-weight: 700;
  color: var(--text); margin: 56px 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 em { font-style: normal; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose h3 { font-size: 21px; font-weight: 600; color: var(--text); margin: 36px 0 12px; }
.prose p { margin: 0 0 18px; line-height: 1.72; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 10px; }
.prose li::marker { color: var(--text-4); }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .2s var(--ease); }
.prose a:hover { border-color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 6px; color: var(--chrome-2);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.legal-meta { font-family: var(--mono); font-size: 12px; color: var(--text-4); margin: 0 0 10px; }
.callout {
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-1); padding: 20px 24px; margin: 28px 0;
  font-size: 16px; color: var(--text-2);
}
.callout strong { color: var(--text); }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1); padding: 22px 26px; margin: 0 0 44px;
}
.toc .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 14px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 7px 0; font-size: 15px; }
.toc a { color: var(--text-3); border: 0; }
.toc a:hover { color: var(--text); }

/* ============================================================
   Download / OS cards
   ============================================================ */
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0; }
.os {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1); padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.os:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--bg-2); }
.os .glyph {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--chrome-2);
}
.os h3 { font-size: 22px; font-weight: 700; color: var(--text); margin: 18px 0 4px; }
.os .fmt { font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.os p { font-size: 15px; color: var(--text-3); margin: 16px 0 22px; flex: 1; }
.os .btn { align-self: flex-start; }
@media (max-width: 820px) { .os-grid { grid-template-columns: 1fr; } }

.steps { counter-reset: s; margin: 36px 0; padding: 0; list-style: none; }
.steps li {
  position: relative; padding: 0 0 28px 56px;
  border-left: 1px solid var(--line); margin-left: 14px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: -15px; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--chrome-2); font-family: var(--mono); font-size: 13px;
  display: grid; place-items: center;
}
.steps li h3 { font-size: 19px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.steps li p { font-size: 15px; color: var(--text-3); margin: 0; }

.cmd {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 14px 0; color: var(--text-2);
  overflow-x: auto;
}
.cmd .p { color: var(--chrome-3); user-select: none; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1); padding: 26px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { border-color: var(--line-2); background: var(--bg-2); }
.card h3 { font-size: 19px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.card h3 em { font-style: normal; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card p { font-size: 15px; color: var(--text-3); margin: 0 0 14px; }
.card a { font-family: var(--mono); font-size: 13px; color: var(--chrome-2); border: 0; }
.card a:hover { color: var(--text); }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
footer.site {
  padding: 64px 0 80px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-3);
}
footer.site .grid {
  display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: start;
}
footer.site .promptline {
  font-family: var(--mono); font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 9px;
}
footer.site .promptline::before {
  content: ""; width: 22px; height: 22px; border-radius: 6px;
  background: url("/assets/logo.png?v=5") center/contain no-repeat; flex: none;
}
footer.site .promptline .p { color: var(--chrome-3); }
footer.site .promptline .c { color: var(--text-4); }
footer.site .legal { margin-top: 18px; color: var(--text-4); font-size: 12.5px; max-width: 560px; line-height: 1.7; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
footer.site .links a { color: var(--text-3); transition: color .2s var(--ease); }
footer.site .links a:hover { color: var(--text); }
@media (max-width: 720px) { footer.site .grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   404
   ============================================================ */
.nf { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .code { font-size: clamp(90px, 16vw, 200px); font-weight: 800; line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: clamp(24px, 4vw, 40px); color: var(--text); margin: 12px 0 14px; }
.nf p { color: var(--text-3); margin: 0 0 32px; }
.nf .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  section.block { padding: 56px 0; }
  .page-head { padding: 72px 0 48px; }
}
