/* Agent Sentry on codice.pl. Stat Sentry's page, in Agent Sentry's teal and amber. */
:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: #10141d;
  --panel-2: #161b26;
  --line: rgba(255, 255, 255, .09);
  --text: #e3e8ee;
  --muted: #9aa5b1;
  --blue: #2fcfb8;
  --cyan: #6fe9d6;
  --orange: #fbbf24;
  --good: #4cd964;
  --warn: #ffcc00;
  --hot: #ff5a5f;
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--text);
  background: #03050b;
  min-height: 100vh;
}
/* The sky stays put while the page scrolls. It's painted on fixed layers of its own, not with
   background-attachment: fixed, which makes Safari repaint the whole page on every scroll step. */
body::before, .stars {
  content: ""; position: fixed; inset: 0; pointer-events: none; transform: translateZ(0);
}
body::before {
  z-index: -2;
  background:
    radial-gradient(1100px 650px at 50% -12%, #0f2a3a 0, transparent 60%),
    radial-gradient(900px 600px at 90% 105%, #1a1326 0, transparent 55%),
    linear-gradient(180deg, #05070d, #02030a);
}
.stars {
  z-index: -1; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, #cfe, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 85% 25%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent),
    radial-gradient(1px 1px at 12% 65%, #fff, transparent),
    radial-gradient(1px 1px at 90% 80%, #cfe, transparent);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }

/* Side gutter only, so each section keeps its own vertical spacing. */
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
/* codice.pl's icon beside its name, as on the codice.pl home page. */
.foot .maker img { width: 22px; height: 22px; vertical-align: middle; margin: -3px 10px 0 0; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: #cdd5dd; max-width: 38ch; }
.muted { color: var(--muted); }
.gradient {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--cyan); margin-bottom: .8em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
}
.button:hover { text-decoration: none; border-color: rgba(255, 255, 255, .25); }
.button.primary { background: linear-gradient(90deg, #3fe0c8, #17a594); border-color: transparent; color: #04161a; }
.button.primary:hover { filter: brightness(1.08); }
.button[aria-disabled="true"] { opacity: .65; pointer-events: none; }
.note { font-size: .9rem; color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 48px 32px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; } .menubar { justify-content: flex-start; } }

/* The rendered icon carries its own shadow; a CSS filter on a moving element would be redrawn every frame. */
.app-icon { display: block; width: 112px; height: 112px; margin: 0 0 22px -8px; animation: float 7s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* The menu bar and panel mock-up */
.demo { position: relative; }
.menubar {
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  padding: 6px 14px; border-radius: 12px 12px 0 0;
  background: rgba(30, 32, 40, .85); border: 1px solid var(--line); border-bottom: 0;
  font: 600 12px/1 var(--font); color: #e9edf2; overflow: hidden; white-space: nowrap;
}
.mi { display: inline-flex; align-items: center; gap: 5px; }
.mi.alert { color: var(--hot); }
.minibars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 13px; }
/* Scaled, not resized: a transform animates on the GPU, while animating height lays out and repaints every frame. */
.minibars i { display: block; width: 3px; height: 100%; background: var(--blue); border-radius: 1px; transform-origin: bottom; transform: scaleY(.4); animation: bar 2.4s ease-in-out infinite; }
.minibars i:nth-child(2) { animation-delay: -.6s; }
.minibars i:nth-child(3) { animation-delay: -1.2s; }
.minibars i:nth-child(4) { animation-delay: -1.8s; background: var(--orange); }
@keyframes bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(.95); } }
.arrows { display: inline-grid; font-size: 9px; line-height: 1; text-align: right; }
/* Real panel screenshots, made in the app's demo mode so they show no one's data. */
.demo { display: flex; flex-direction: column; align-items: flex-end; }
.demo .menubar { width: 100%; }
/* No CSS shadow: the captures carry macOS's own window shadow, and a blurred filter over images this
   large makes Safari repaint them as the page scrolls, which stalls scrolling. */
.shot { display: block; width: 100%; max-width: 412px; height: auto; }
.demo .hero-shot { margin-top: -4px; }

/* Sections */
section { padding-top: 96px; }
@media (max-width: 860px) { section { padding-top: 72px; } }
/* The eyebrow and heading sit closer to their content than sections sit to each other. */
section > .eyebrow + h2, .split > div > .eyebrow + h2 { margin-bottom: .6em; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Six feature cards: three across, two across, then one, so no row is left half empty. */
.grid.features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.features { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 27, 38, .9), rgba(16, 20, 29, .9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card p { color: #c3cbd4; margin: 0; font-size: .97rem; }
.icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(47, 207, 184, .14); color: var(--blue); }
.icon svg { width: 22px; height: 22px; }
.card.new { border-color: rgba(111, 233, 214, .35); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bg); background: var(--cyan); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.chip { padding: 7px 15px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: .92rem; font-weight: 600; }
.chip:hover { text-decoration: none; border-color: rgba(255, 255, 255, .25); }
.tour-row { display: grid; grid-template-columns: 412px 1fr; gap: 64px; align-items: center; padding-top: 80px; scroll-margin-top: 24px; }
.tour-row.flip { grid-template-columns: 1fr 412px; }
.tour-row.flip .shot { order: 2; }
.tour-row h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tour-row .checks li { color: #c3cbd4; }
@media (max-width: 860px) {
  .tour-row, .tour-row.flip { grid-template-columns: 1fr; gap: 28px; padding-top: 64px; }
  .tour-row.flip .shot { order: 0; }
  .tour-row .shot { max-width: 360px; margin: 0 auto; }
  .demo { align-items: center; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* Widget screenshots, rendered from the widgets' own views with made-up readings. */
.widget-shot { display: block; max-width: 100%; height: auto; }
#widgets .split .widget-shot { justify-self: center; }
.widget-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px; margin-top: 48px; }
/* Side-by-side cards share a height and keep their buttons on one line at the bottom. */
.split.cards { align-items: stretch; gap: 18px; }
.card .actions { margin-top: auto; padding-top: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin: 0 0 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(76, 217, 100, .18); box-shadow: inset 0 0 0 1.5px var(--good); }

.notification {
  background: rgba(36, 38, 46, .95); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); margin-bottom: 12px;
}
.notification .app { width: 34px; height: 34px; border-radius: 9px; background: #1b2130; display: grid; place-items: center; }
.notification b { display: block; font-size: 14px; }
.notification span { font-size: 13px; color: #c3cbd4; }
.notification small { color: var(--muted); font-size: 11px; float: right; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.swatch { width: 74px; text-align: center; font-size: .78rem; color: var(--muted); }
.swatch div { height: 46px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 7px; margin-bottom: 6px; }
.swatch i { width: 6px; border-radius: 2px; display: block; }

.price { text-align: center; align-items: center; padding: 44px 24px; }
.price .amount { font: 800 3.4rem/1 var(--font); letter-spacing: -.03em; margin: 8px 0 12px; }

/* Long text pages */
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: rgba(47, 207, 184, .16); color: var(--blue);
}
.download { display: flex; flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.sha { font-family: var(--mono); font-size: .8rem; word-break: break-all; color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: .7em 0 0; color: #c3cbd4; }

/* Settings windows and notifications, captured from the app in its demo mode. */
.window-shot { display: block; width: 100%; max-width: 900px; height: auto; margin: 36px auto 0; }
.section-text { max-width: 62ch; }
.banners { display: grid; gap: 10px; justify-items: center; }
.banners img { display: block; width: 100%; max-width: 364px; height: auto; }

/* Home: the app's name sits beside the big icon; the header keeps only the navigation. */
.top-home { justify-content: flex-end; }
.hero-brand { display: flex; align-items: center; gap: 22px; margin: 0 0 26px -8px; }
.hero-brand .app-icon { margin: 0; }
.hero-name { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); }
@media (max-width: 560px) { .hero-brand { gap: 16px; } .hero-brand .app-icon { width: 88px; height: 88px; } }

@media (prefers-reduced-motion: reduce) {
  .minibars i { animation: none; transform: scaleY(.6); }
  .app-icon { animation: none; }
}

@media (max-width: 560px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .nav { gap: 16px; font-size: .9rem; }
}
