:root {
  --bg: #080b16;
  --bg-2: #0d1224;
  --panel: #111831;
  --line: #1f2a4d;
  --text: #dfe5f5;
  --muted: #8a94b3;
  --cyan: #5fd0ff;
  --violet: #a78bfa;
  --gold: #f5c451;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet));
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  overflow-x: hidden;
}
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
main, footer, .nav { position: relative; z-index: 1; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--panel); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

/* client names, styled as on the Dead Modem Society site */
.brand-link, .brand-link:visited { text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand-link:hover { text-decoration: none; filter: brightness(1.25); }
.sync-white { color: #ffffff; }
.sync-blue { color: #0040ff; }
.term-purple { color: #b44dff; }
.term-cyan { color: #00e5ff; }

/* nav */
.nav {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(8, 11, 22, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font: 600 18px var(--mono); letter-spacing: .12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: 14px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }

/* layout */
section { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.block { padding-top: 110px; }
.kicker { font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
h2.sub { margin-top: 90px; }
h3 { font-size: 18px; margin-bottom: 8px; }
.intro { color: var(--muted); font-size: 18px; max-width: 780px; margin: 0 0 36px; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.intro + .note { margin: -20px 0 36px; max-width: 780px; }

/* hero */
.hero { text-align: center; padding-top: 80px; }
.hero .logo { margin: 0 auto; width: min(640px, 100%); filter: drop-shadow(0 0 40px rgba(95, 208, 255, .25)); }
.tag { font-family: var(--mono); color: var(--muted); letter-spacing: .08em; margin: 6px 0 36px; }
.hero h1 { font-size: clamp(26px, 4.2vw, 46px); font-weight: 700; letter-spacing: -.02em; max-width: 900px; margin: 0 auto 20px; }
.lede { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: var(--cyan); }
.btn.primary { background: var(--grad); color: #0a0e1a; border: 0; }
.btn.primary:hover { filter: brightness(1.08); }
.hero-shot { margin: 60px auto 0; max-width: 1000px; }

/* terminal frames */
.term, .code-card {
  background: #0a0e1a; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(167, 139, 250, .05), 0 0 60px -10px rgba(95, 208, 255, .15);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3458; }
.term-bar em { font: 12px var(--mono); color: var(--muted); font-style: normal; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* stat strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; }
.strip div { background: var(--bg-2); padding: 22px 20px; }
.strip b { display: block; font: 600 24px var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: var(--muted); font-size: 14px; }

/* screenshots */
.shot { margin: 0; }
.shot img { border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s, border-color .2s; }
.shot img:hover { border-color: var(--cyan); transform: translateY(-2px); }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.tier-grid, .gallery.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery.two { margin-top: 40px; }

.compare-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 24px; flex-wrap: wrap; }
.compare-tabs button { font: 600 14px var(--mono); color: var(--muted); background: none; border: 0; padding: 9px 16px; border-radius: 6px; cursor: pointer; }
.compare-tabs button[aria-selected="true"] { background: var(--grad); color: #0a0e1a; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-2); font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }
.pill { display: inline-block; min-width: 28px; text-align: center; font: 600 14px var(--mono); padding: 2px 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.pill.hot { background: var(--grad); color: #0a0e1a; border: 0; }
.cmp .us { color: var(--text); background: rgba(95, 208, 255, .05); }
.cmp thead .us { color: var(--cyan); }
.cmp .muted { color: var(--muted); font-style: italic; }

/* cards */
.cards { display: grid; gap: 20px; margin-top: 48px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--text); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* feature rows */
.feature-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.feature-row.flip { grid-template-columns: 1fr 1.25fr; }
.feature-row.flip > .shot { order: 2; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15px; }
.checks li::before { content: "▸"; position: absolute; left: 4px; top: 0; color: var(--cyan); }
.checks b { color: var(--text); }

/* code */
.code-card pre { margin: 0; padding: 20px 22px; overflow-x: auto; line-height: 1.6; color: var(--text); }
.code-card.wide { margin-top: 40px; }
.c { color: #5f6b8f; } .k { color: var(--violet); } .s { color: var(--gold); } .p { color: var(--cyan); }

/* ssh steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step > span { position: absolute; top: -14px; left: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #0a0e1a; font: 700 14px var(--mono); }
.step pre { margin: 6px 0 10px; padding: 10px 12px; background: #0a0e1a; border: 1px solid var(--line); border-radius: 6px; color: var(--cyan); overflow-x: auto; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }


footer { text-align: center; padding: 120px 16px 60px; color: var(--muted); font-size: 14px; }
footer img { margin: 0 auto 12px; opacity: .8; }
.jsonbourne { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(4, 6, 12, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 84vh; border-radius: 8px; border: 1px solid var(--line); image-rendering: auto; }
.lightbox p { color: var(--muted); text-align: center; margin: 14px 0 0; max-width: 800px; }

@media (max-width: 860px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .tier-grid, .gallery.two, .cards.three, .steps, .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip > .shot { order: 0; }
  .steps { gap: 30px; }
  .nav nav { display: none; }
  .block { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #rain { display: none; }
}
