/* Swarm landing page styles. Tokens only: no raw colour values here. */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font: var(--weight-regular) var(--text-body)/var(--leading-body) var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }
code, pre, .mono { font-family: var(--font-mono); }
h1, h2, h3, p, ul, ol, pre, figure { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--primary); color: var(--primary-foreground); padding: var(--space-2) var(--space-4); border-radius: var(--radius); z-index: 10; }
.skip:focus { top: var(--space-4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 var(--space-5); border-radius: var(--radius); border: 1px solid transparent;
  font: var(--weight-semibold) var(--text-body)/1 var(--font-sans); white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 8px 24px -8px var(--site-primary-glow), inset 0 1px 0 var(--site-highlight); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); border-color: var(--border); }
.btn-secondary:hover { background: var(--neutral-750); border-color: var(--neutral-700); }
.btn-sm { height: 36px; padding: 0 var(--space-3); font-size: var(--text-small); }
.btn-sm svg { width: 16px; height: 16px; }

/* Section scaffolding */
section { padding: var(--section-y) 0; }
section + section { border-top: 1px solid var(--border); }
.eyebrow { font: var(--text-caption)/1.4 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--link); }
.title { margin-top: var(--space-3); font-size: var(--text-title); line-height: var(--leading-title); font-weight: var(--weight-display); letter-spacing: var(--tracking-title); text-wrap: balance; }
.intro { margin-top: var(--space-4); max-width: 40rem; font-size: var(--text-lead); line-height: 1.5; color: var(--foreground-soft); text-wrap: pretty; }
.head { margin-bottom: var(--space-12); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.card h3 { font-size: var(--text-heading); line-height: var(--leading-heading); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); }
.card p { margin-top: var(--space-2); color: var(--foreground-soft); }
.ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-lg); background: var(--site-ico-bg); color: var(--violet-300); margin-bottom: var(--space-5); box-shadow: inset 0 0 0 1px var(--site-ico-ring); }
.ico svg { width: 22px; height: 22px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: var(--site-nav-bg); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--site-nav-border); }
.nav .wrap { height: 64px; display: flex; align-items: center; gap: var(--space-8); }
.lockup { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--foreground); font-weight: var(--weight-display); font-size: 1.125rem; letter-spacing: var(--tracking-title); }
.lockup:hover { text-decoration: none; }
.lockup img { width: 28px; height: 28px; }
.nav-links { display: none; gap: var(--space-6); font-size: var(--text-small); }
.nav-links a { color: var(--foreground-soft); }
.nav-links a:hover { color: var(--foreground); text-decoration: none; }
.nav .btn { margin-left: auto; }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* Hero */
.hero { position: relative; padding: var(--space-20) 0 var(--section-y); text-align: center; background: var(--gradient-hero); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--site-dot) 1px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, black 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 20%, black 0%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero h1 { margin: var(--space-6) auto 0; max-width: 17em; font-size: var(--text-display); line-height: var(--leading-display); font-weight: var(--weight-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.hero .lead { margin: var(--space-6) auto 0; max-width: 36rem; font-size: var(--text-lead); line-height: 1.55; color: var(--foreground-soft); text-wrap: pretty; }
.ctas { margin-top: var(--space-10); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.hero-note { margin-top: var(--space-5); font-size: var(--text-small); color: var(--muted-foreground); }
@media (max-width: 479px) { .ctas .btn { flex: 1 1 100%; } }

/* Screenshot slot */
.shot { margin: var(--space-16) auto 0; max-width: 64rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-frame); overflow: hidden; background: var(--card); text-align: left; }
.shot-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 var(--space-3); border-bottom: 1px solid var(--border); background: var(--neutral-850); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-700); }
.shot img { width: 100%; height: auto; }
@media (max-width: 639px) { .shot { margin-top: var(--space-12); } }

/* Cards */
.grid2 { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .grid2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }

/* Agents */
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); list-style: none; padding: 0; }
@media (min-width: 640px) { .agents { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .agents { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); } }
.agent { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-5); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; }
.agent svg { width: 28px; height: 28px; color: var(--neutral-50); }
.agent b { display: block; font-weight: var(--weight-semibold); font-size: var(--text-body); line-height: 1.3; }
.fine { margin-top: var(--space-8); font-size: var(--text-caption); line-height: 1.5; color: var(--muted-foreground); max-width: 44rem; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.step { position: relative; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); }
.step .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground); font: var(--text-small)/1 var(--font-mono); box-shadow: inset 0 1px 0 var(--site-highlight); }
.step h3 { margin-top: var(--space-4); font-size: var(--text-heading); line-height: var(--leading-heading); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); }
.step p { margin-top: var(--space-2); color: var(--foreground-soft); }
.step code { font-size: 0.9em; color: var(--foreground); background: var(--neutral-800); padding: 1px 5px; border-radius: var(--radius-sm); }

/* Install */
.narrow { max-width: 44rem; }
#install .code { margin-top: var(--space-4); }
.code { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--neutral-900); overflow: hidden; }
.code pre { margin: 0; padding: var(--space-4); overflow-x: auto; font-size: var(--text-code); line-height: var(--leading-code); color: var(--foreground); tab-size: 2; }
.code pre .p { color: var(--violet-300); user-select: none; }
@media (max-width: 479px) { .code pre { font-size: 0.8125rem; white-space: pre-wrap; overflow-wrap: anywhere; } }
.more { margin-top: var(--space-6); font-size: var(--text-small); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: var(--space-12) 0 var(--space-10); font-size: var(--text-small); color: var(--muted-foreground); }
.foot { display: grid; gap: var(--space-8); }
@media (min-width: 768px) { .foot { grid-template-columns: 1fr auto; align-items: start; } }
.foot p { margin-top: var(--space-3); max-width: 26rem; }
.foot nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.foot nav a { color: var(--foreground-soft); }
@media (max-width: 767px) {
  .foot nav ul { gap: 0 var(--space-6); }
  .foot nav a, .more a { display: inline-flex; align-items: center; min-height: 44px; }
  .more { margin-top: var(--space-3); }
}
.legal { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: var(--text-caption); display: grid; gap: var(--space-2); }
