/* Sys Agent landing. Tokens copied from web/src/styles.css (light :root, dark .dark); keep them in sync. */
@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/landing-assets/onest.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --line: #d9dfeb;
  --text: #131a2c;
  --muted: #5a6480;
  --signal: #4c52d9;
  --signal-fg: #ffffff;
  --up: #0e9f77;
  --warn: #b87908;
  --down: #d63862;
  --focus: #4c52d9;

  --radius-chip: 6px;
  --radius-control: 8px;
  --radius-panel: 12px;
  --radius-shell: 16px;
  --font-sans: "Onest Variable", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1120px;
}

.dark {
  color-scheme: dark;
  --bg: #0d1220;
  --surface: #141b2d;
  --surface-2: #1b2338;
  --line: #263049;
  --text: #e5e9f3;
  --muted: #8d96b2;
  --signal: #8a8fff;
  --signal-fg: #0d1220;
  --up: #3dd6a5;
  --warn: #f2b33d;
  --down: #f45b82;
  --focus: #a9adff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure,
pre {
  margin: 0;
}

a {
  color: var(--signal);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8125rem;
  line-height: 1.45;
}

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

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-control);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  width: 20px;
  height: 20px;
  fill: var(--signal);
}

.nav {
  display: none;
  gap: 24px;
}

.nav a,
.quiet {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav a:hover,
.quiet:hover {
  color: var(--text);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang {
  display: none;
}

.icon-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.js .icon-btn {
  display: inline-flex;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sun,
.dark .i-moon {
  display: none;
}

.dark .i-sun {
  display: block;
}

@media (min-width: 560px) {
  .lang {
    display: inline;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

@media (max-width: 400px) {
  .top-in {
    gap: 12px;
  }

  .actions {
    gap: 8px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--signal);
  border-radius: var(--radius-control);
  background: var(--signal);
  color: var(--signal-fg);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
  filter: none;
}

.gh {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-in {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}

.lead {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin-top: 16px;
  font-size: 0.875rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 104px;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* Hero demo: a live server card with an insight and an incident stacked on it */
.demo {
  position: relative;
  max-width: 460px;
  width: 100%;
  justify-self: center;
  padding-bottom: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.server {
  padding: 20px;
  box-shadow: 0 24px 48px -24px color-mix(in oklab, var(--signal) 35%, transparent);
}

.server-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.server-name {
  font-weight: 600;
}

.dot-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--up);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
}

.dot.live {
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 60%, transparent);
  animation: pulse 2s ease-out infinite;
}

.strip {
  display: block;
  width: 100%;
  height: 56px;
  margin: 20px 0 16px;
  fill: var(--signal);
}

.strip .hot {
  fill: var(--down);
}

#last-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: breathe 2s ease-in-out infinite;
}

.meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  font-size: 0.8125rem;
}

.meters dt {
  color: var(--muted);
}

.meters dd {
  font-weight: 600;
  font-size: 0.9375rem;
}

.meter {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--surface-2);
}

.meter span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--signal);
}

.meter .warn {
  background: var(--warn);
}

.server-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  white-space: pre;
}

.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-top: 12px;
  max-width: 340px;
  font-size: 0.875rem;
  box-shadow: 0 16px 32px -20px color-mix(in oklab, var(--signal) 30%, transparent);
}

.toast-title {
  font-weight: 600;
}

.toast-mark {
  flex: none;
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
}

.toast-mark.warn {
  background: var(--warn);
}

.toast-mark.down {
  background: var(--down);
}

.alert {
  margin-left: auto;
}

.demo figcaption {
  margin-top: 14px;
}

@media (min-width: 640px) {
  .demo {
    padding: 0 0 8px;
  }

  .server {
    padding-bottom: 36px;
  }

  .insight {
    position: relative;
    margin: -20px 0 0 -32px;
  }

  .alert {
    position: relative;
    margin: 12px -32px 0 auto;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.6);
  }
}

/* Sections */
.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.section-lead {
  margin-top: 12px;
  max-width: 40em;
}

.split {
  display: grid;
  gap: 40px;
}

.split-head p {
  margin-top: 12px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
  }

  .split-head {
    position: sticky;
    top: 32px;
    align-self: start;
  }
}

.group {
  display: grid;
  gap: 8px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.group:first-child {
  border-top: 0;
  padding-top: 0;
}

.group h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--signal);
}

.group dl {
  display: grid;
  gap: 20px;
}

.feat dt {
  font-weight: 600;
  font-size: 1.0625rem;
}

.feat dd {
  margin-top: 4px;
  max-width: 38em;
}

@media (min-width: 640px) {
  .group {
    grid-template-columns: 9rem minmax(0, 1fr);
  }

  .group h3 {
    padding-top: 3px;
  }
}

/* How it works: a real sequence, so numbered */
.steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 32px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  min-width: 0;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.step:first-child {
  border-top-color: var(--signal);
}

.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 300;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.1875rem;
  font-weight: 600;
}

.step p {
  margin-top: 8px;
}

.cmd-fig {
  margin-top: 16px;
}

.cmd-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.cmd {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Free plan */
.quota {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--surface);
}

.q {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.q-num {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.q dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .quota {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.quota + .cta {
  margin-top: 32px;
}

/* Source */
.source {
  display: grid;
  gap: 24px;
  align-items: end;
}

.source h2 + p {
  margin-top: 12px;
}

.lead-sm {
  font-size: 1.0625rem;
  max-width: 36em;
}

.source .muted {
  margin-top: 8px;
  max-width: 40em;
}

.source .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  .source {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 0.9375rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.foot-brand p {
  margin-top: 8px;
}

.foot-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Privacy and terms */
.doc {
  max-width: calc(42rem + 64px);
  padding-top: 56px;
  padding-bottom: 80px;
}

.doc h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.doc section {
  margin-top: 36px;
}

.doc h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul {
  margin-top: 12px;
}

.doc ul {
  padding-left: 20px;
}

.doc li + li {
  margin-top: 6px;
}

.doc .updated {
  margin-top: 48px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
