/* SystemStatusRemote website. Plain CSS, no build step. Colors follow the app icons. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --text: #161a2e;
  --muted: #555b75;
  --border: #dde0ec;
  --accent: #2f7de1;
  --accent-text: #ffffff;
  --link: #2368c4;
  --code-bg: #eceef6;

  /* Chart colors from the host icon */
  --c-blue: #5ab8ff;
  --c-amber: #ffb340;
  --c-green: #3fd8a8;
  --c-violet: #b9a2ff;
  --c-red: #ff6b5e;

  --hero-bg: radial-gradient(1200px 500px at 70% -10%, #2a3a8a 0%, transparent 60%),
             linear-gradient(180deg, #121735 0%, #0c1028 100%);
  --hero-text: #eef1ff;
  --hero-muted: #aab2d8;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 50, .06), 0 8px 24px rgba(20, 24, 50, .06);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e20;
    --surface: #141832;
    --surface-2: #1b2042;
    --text: #e8ebfa;
    --muted: #a3a9c9;
    --border: #2a3058;
    --accent: #4a92f0;
    --link: #7fb6ff;
    --code-bg: #1e2448;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--code-bg);
  padding: .1em .4em;
  border-radius: 6px;
}
pre {
  background: var(--code-bg);
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: .85em;
}
pre code { background: none; padding: 0; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .35em; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 16, 40, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 650;
  font-size: 1.02rem;
  margin-right: auto;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #c8cdee;
  font-size: .95rem;
  padding: 6px 12px;
  border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.nav a.nav-cta { background: var(--accent); color: #fff; }
.nav a.nav-cta:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
  .brand span { display: none; }
  .nav a { padding: 6px 8px; font-size: .9rem; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 80px 0 0;
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-green);
  background: rgba(63, 216, 168, .1);
  border: 1px solid rgba(63, 216, 168, .25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero p.lead { color: var(--hero-muted); font-size: 1.2rem; max-width: 640px; margin: 0 0 28px; }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--c-blue), var(--c-green) 40%, var(--c-amber) 75%, var(--c-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; }
.hero-note { font-size: .88rem; color: var(--hero-muted); margin: 0 0 48px; }
.hero .shot-frame { margin: 0 auto -1px; max-width: 1000px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.page-hero { padding: 64px 0 56px; }
.page-hero p.lead { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s, background .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-small { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-outline { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.kicker {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
section.alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); padding-left: 1.2em; margin: .5em 0 0; }

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
}
.icon-badge svg { width: 22px; height: 22px; }
.b-blue { background: linear-gradient(135deg, #3b8cf0, #5ab8ff); }
.b-amber { background: linear-gradient(135deg, #f08c1a, #ffb340); }
.b-green { background: linear-gradient(135deg, #18a87c, #3fd8a8); }
.b-violet { background: linear-gradient(135deg, #7b62e8, #b9a2ff); }
.b-red { background: linear-gradient(135deg, #e0453a, #ff6b5e); }
.b-slate { background: linear-gradient(135deg, #3d4670, #69739e); }

/* Module chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 550;
  font-size: .95rem;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* Split rows: text beside a screenshot */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split p { color: var(--muted); }
.split ul.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.split ul.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; color: var(--text); }
.split ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Screenshots & placeholders ---------- */

.shot-frame {
  background: #1a1f3d;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.shot-frame .titlebar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #22284d;
}
.shot-frame .titlebar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.shot-frame .titlebar i:nth-child(1) { background: #ff5f57; }
.shot-frame .titlebar i:nth-child(2) { background: #febc2e; }
.shot-frame .titlebar i:nth-child(3) { background: #28c840; }

figure.shot { margin: 0; }
figure.shot img { width: 100%; height: auto; }
figure.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* A screenshot that hasn't been added yet shows a placeholder naming the file to drop in. */
.placeholder { display: none; }
figure.shot.missing img { display: none; }
figure.shot.missing .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  aspect-ratio: var(--ratio, 16 / 10);
  padding: 24px;
  color: #aab2d8;
  font-size: .92rem;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #1d2348, #141832);
  border: 2px dashed rgba(170, 178, 216, .35);
  border-radius: 10px;
}
.shot-frame figure.shot.missing .placeholder { border-radius: 0; border-width: 0; }
.placeholder strong { color: #eef1ff; font-size: 1rem; }
.placeholder code { background: rgba(255, 255, 255, .08); color: var(--c-green); }
.placeholder svg { width: 34px; height: 34px; opacity: .6; margin-bottom: 4px; }

/* ---------- Use cases ---------- */

.usecase h3 { display: flex; align-items: center; gap: 10px; }
.usecase .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  width: 100%;
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  counter-increment: step;
  position: relative;
  padding: 22px 24px 22px 76px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b8cf0, #3fd8a8);
}
.prose .step h3, .step h3 { margin-top: 6px; }
.step p { margin: 0 0 .5em; color: var(--muted); }
@media (max-width: 520px) {
  .step { padding: 20px 18px 20px 64px; }
  .step::before { left: 16px; }
}
.step p:last-child { margin-bottom: 0; }

/* Check phrase */
.phrase {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.phrase .sep { color: var(--muted); }

/* Callouts */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  color: var(--text);
}
.callout.warn { border-color: var(--c-amber); }
.callout p { margin: 0; }

/* Diagram */
.diagram { width: 100%; height: auto; max-width: 880px; margin: 0 auto; display: block; }
.diagram text { font-family: var(--font); fill: var(--text); }
.diagram .muted { fill: var(--muted); }
.diagram .box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.diagram .host-box { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.diagram .wire { stroke: var(--c-green); stroke-width: 2; fill: none; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) { .diagram .wire { animation: none; } }

/* ---------- Downloads ---------- */

.dl-card { display: flex; flex-direction: column; }
.dl-card .app-icon { width: 96px; height: 96px; margin: -6px 0 10px -6px; }
.dl-card .role { font-size: .85rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.dl-card p { flex: 1; margin-bottom: 18px; }
.dl-card .dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-card .meta { margin-top: 14px; font-size: .78rem; color: var(--muted); word-break: break-all; font-family: var(--mono); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* FAQ */
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding: 0 0 18px; color: var(--muted); }
details.faq .answer p { margin: 0 0 .7em; }
details.faq .answer p:last-child { margin: 0; }

/* Prose pages */
.prose { max-width: 780px; margin: 0 auto; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }

/* Sub-navigation on long pages */
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.toc a {
  font-size: .9rem;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--hero-text);
  border: 1px solid rgba(255, 255, 255, .2);
}
.toc a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }

/* CTA band */
.cta {
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  padding: 80px 0;
}
.cta p { color: var(--hero-muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta .icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.cta .icons img { width: 72px; height: 72px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

section[id], h2[id], h3[id] { scroll-margin-top: 80px; }
