/* NexaDesk's site, in the app's look: IBM Carbon greys, Blue 60, square edges. */
:root {
  --bg: #ffffff;
  --layer: #f4f4f4;
  --layer-2: #e8e8e8;
  --border: #e0e0e0;
  --text: #161616;
  --text-2: #525252;
  --text-3: #6f6f6f;
  --blue: #0f62fe;
  --blue-hover: #0050e6;
  --link: #0f62fe;
  --ok: #198038;
  --warn: #8e6a00;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.12);
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --layer: #1f1f1f;
    --layer-2: #262626;
    --border: #393939;
    --text: #f4f4f4;
    --text-2: #c6c6c6;
    --text-3: #a8a8a8;
    --link: #78a9ff;
    --ok: #42be65;
    --warn: #f1c21b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Header: dark in both themes, as the app's shell is. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 22, 22, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #393939;
  color: #f4f4f4;
}
.top-row { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f4f4f4; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 600; }
.brand img { border-radius: 6px; }
.links { display: flex; gap: 4px; margin-right: auto; }
.links a { color: #c6c6c6; padding: 8px 12px; font-size: 14px; }
.links a:hover { color: #fff; background: #2c2c2c; text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4f4f4;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #525252;
}
.gh-link:hover { background: #2c2c2c; text-decoration: none; }
.gh { width: 16px; height: 16px; flex: none; }

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  color: #c6c6c6;
  font-size: 14px;
  padding: 8px 12px;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; color: #8d8d8d; }
.lang summary:hover { color: #fff; background: #2c2c2c; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 140px;
  background: #262626;
  border: 1px solid #393939;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.lang-menu a { color: #f4f4f4; padding: 10px 14px; font-size: 14px; }
.lang-menu a:hover { background: #393939; text-decoration: none; }
.lang-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(15, 98, 254, 0.35), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(15, 98, 254, 0.18), transparent 70%),
    #161616;
  color: #f4f4f4;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 88px 0 96px;
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: #0043ce;
  color: #d0e2ff;
  font-size: 13px;
  letter-spacing: 0.04em;
}
h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 18px 0 20px;
}
.lead { font-size: 19px; color: #c6c6c6; margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  border: 1px solid transparent;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--blue); color: #fff; min-width: 160px; }
.button.primary:hover { background: var(--blue-hover); }
.button.ghost { color: #f4f4f4; border-color: #6f6f6f; }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.note { color: #8d8d8d; font-size: 14px; margin: 24px 0 0; }

.hero-shots { position: relative; padding-bottom: 40px; }
.shot { margin: 0; }
.shot img { background: var(--layer); box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.08); }
.window img { border-radius: 10px; }
.hero-shots .window img { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.hero-shots .phone {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 26%;
  min-width: 120px;
}
.hero-shots .phone img { border-radius: 22px; border: 6px solid #262626; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
figcaption { color: var(--text-3); font-size: 14px; margin-top: 10px; }

/* Sections */
.band { padding: 96px 0; }
.band.alt { background: var(--layer); }
.band.dark { background: #161616; color: #f4f4f4; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 400; margin: 0 0 14px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.section-lead { color: var(--text-2); font-size: 18px; margin: 0 0 40px; max-width: 46em; }
.dark .section-lead { color: #c6c6c6; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--bg); padding: 28px 24px 32px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.icon { width: 32px; height: 32px; color: var(--blue); margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .icon { color: #78a9ff; } }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.narrow { max-width: 440px; justify-self: center; }
.wide { margin: 56px auto 0; max-width: 760px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.3 3.2 8l-1 1 4.3 4.3 7.3-7.3-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.3 3.2 8l-1 1 4.3 4.3 7.3-7.3-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.paths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.paths li { border-top: 2px solid var(--blue); padding-top: 20px; }
.paths p { color: var(--text-2); margin: 0; }
.step { display: block; font-family: var(--mono); color: var(--text-3); font-size: 14px; margin-bottom: 8px; }

.table-scroll { overflow-x: auto; margin-top: 32px; }
.platforms { width: 100%; border-collapse: collapse; min-width: 520px; }
.platforms th, .platforms td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 400; }
.platforms thead th { font-size: 14px; color: var(--text-2); font-weight: 600; }
.platforms tbody th { font-weight: 500; }
.mark { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 12px; font-size: 13px; margin-right: 10px; font-weight: 600; }
.mark.yes { background: rgba(25, 128, 56, 0.14); color: var(--ok); }
.mark.beta { background: rgba(142, 106, 0, 0.14); color: var(--warn); }
.mark.soon { background: var(--layer-2); color: var(--text-3); }
.mark.none { color: var(--text-3); }
.mark-text { color: var(--text-2); font-size: 14px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; background: #1f1f1f; border: 1px solid #393939; padding: 22px 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); color: #78a9ff; margin-bottom: 10px; }
.steps p { color: #c6c6c6; margin: 0; font-size: 15px; }
pre { margin: 0; overflow-x: auto; }
code { font-family: var(--mono); font-size: 14px; color: #f4f4f4; background: #262626; padding: 8px 10px; display: block; }
.docs { margin: 36px 0 0; color: #c6c6c6; }
.dark a { color: #78a9ff; }

.foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-langs { display: flex; gap: 16px; }
.foot-langs a[aria-current="page"] { color: var(--text); }

/* Narrower screens */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .links { display: none; }
  .top-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 40px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .narrow { order: 2; }
  .paths { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .gh-link span { display: none; }
  .lead { font-size: 17px; }
  .hero-shots .phone { width: 34%; right: -4px; }
  .button { flex: 1 1 auto; justify-content: center; }
}
