/* Nocturnal: one stylesheet for every page. System fonts only, so nothing loads from elsewhere. */

:root {
  --bg: #0b0a14;
  --bg-raised: #12111e;
  --bg-card: #161527;
  --border: #26243d;
  --border-strong: #37345a;
  --text: #eceaf7;
  --text-muted: #a8a5c2;
  --text-faint: #8a87a6;
  --violet: #8b7cf6;
  --violet-bright: #a99dff;
  --violet-ink: #0f0d24;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Code', Consolas, ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: #c4bcff;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--violet);
  color: var(--violet-ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10;
}

.skip:focus {
  left: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 10, 20, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-card);
}

.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--violet);
  color: var(--violet-ink);
}

.btn-primary:hover {
  background: var(--violet-bright);
  color: var(--violet-ink);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ext::after {
  content: '\2197';
  font-weight: 400;
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 650;
}

h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 650;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 14px;
}

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

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

:not(pre) > code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

.noc {
  color: var(--violet-bright);
}

.eyebrow .noc {
  text-transform: none;
  font-family: var(--font-mono);
  letter-spacing: 0;
  font-size: 1.1em;
}

/* Sections */

main {
  display: block;
}

.hero {
  padding: 88px 0 40px;
  background:
    radial-gradient(900px 420px at 72% -10%, rgba(139, 124, 246, 0.22), transparent 70%),
    radial-gradient(600px 300px at 10% 0%, rgba(139, 124, 246, 0.08), transparent 70%);
}

.hero .lead {
  margin-bottom: 28px;
}

.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

/* Screenshots */

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.shot-hero {
  margin-top: 56px;
  box-shadow:
    0 40px 120px -40px rgba(139, 124, 246, 0.45),
    0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

figure.captioned {
  margin: 0;
}

figure.captioned figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-faint);
}

/* Grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(139, 124, 246, 0.14);
  color: var(--violet-bright);
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.split.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split.flip .split-text {
  order: 2;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--text-muted);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
}

.ticks strong {
  color: var(--text);
  font-weight: 600;
}

.views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.views li {
  font-size: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

/* Terminal */

.terminal {
  background: #08070f;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.terminal pre {
  margin: 0;
  padding: 20px 22px 22px;
  overflow-x: auto;
  font: 14.5px/1.75 var(--font-mono);
  color: #d6d3ea;
}

.terminal .prompt {
  color: var(--text-faint);
  user-select: none;
}

.terminal .out {
  color: var(--text-faint);
}

/* Call to action band */

.cta {
  text-align: center;
  padding: 80px 0;
  background: radial-gradient(700px 260px at 50% 100%, rgba(139, 124, 246, 0.18), transparent 70%);
  border-top: 1px solid var(--border);
}

.cta .lead {
  margin: 0 auto 28px;
}

.cta .btn-row {
  justify-content: center;
}

/* Coming soon */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tag-now {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.tag-next {
  background: rgba(139, 124, 246, 0.16);
  color: var(--violet-bright);
}

.family {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.family li {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

/* Legal pages */

.legal {
  padding: 64px 0 80px;
}

.legal .wrap {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  letter-spacing: 0;
}

.legal p,
.legal li {
  color: #cfccE3;
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 15px;
  margin-bottom: 32px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.legal th {
  color: var(--text);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--text-faint);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Narrow screens */

@media (max-width: 900px) {
  .grid-3,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .split,
  .split.flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split.flip .split-text {
    order: 0;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 56px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .site-header {
    position: static;
  }

  .site-header .wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav a {
    padding: 6px 9px;
    font-size: 14px;
  }

  .brand img {
    height: 26px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .site-nav a {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}

/* More features: a multi-column list at the end of the Desk page */

.more {
  columns: 3 240px;
  column-gap: 40px;
}

.more section {
  break-inside: avoid;
  margin-bottom: 28px;
}

.more h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.more ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.more li {
  color: var(--text-muted);
  font-size: 15px;
  padding: 3px 0;
}

/* Access table on the AI page */

.access {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.access th,
.access td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.access thead th {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.access td {
  color: var(--text-muted);
}

/* Command reference on the CLI page */

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cmd-grid .card h3 {
  margin-bottom: 12px;
}

.cmd-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cmd-grid li {
  padding: 5px 0;
  font-size: 15px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.cmd-grid li:first-child {
  border-top: 0;
}

.cmd-grid code {
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  margin-right: 6px;
}

.stack {
  display: grid;
  gap: 28px;
}

.terminal + .terminal {
  margin-top: 20px;
}
