/* orqevio.com — the app's "paper, ink & signal" look, without a framework. */
:root {
  --desk: #f2efe8;
  --sheet: #fcfbf8;
  --surface: #ffffff;
  --sunken: #f0ede6;
  --line: #e6e1d7;
  --line-strong: #d4cec1;
  --ink: #1c1a16;
  --ink-2: #57524a;
  --ink-3: #6e685d;
  --accent: #e5532a;
  --accent-strong: #c9431d;
  --accent-soft: #fbe6dd;
  --accent-text: #b83a16;
  --agent: #3450e6;
  --agent-soft: #e7ebfe;
  --ok: #22764a;
  --code-bg: #1c1a16;
  --code-ink: #f2efe8;
  --shadow: 0 1px 0 rgb(28 26 22 / 0.03), 0 4px 12px -2px rgb(28 26 22 / 0.08), 0 2px 4px -2px rgb(28 26 22 / 0.06);
  --font-sans: 'Instrument Sans Variable', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Fraunces Variable', ui-serif, Georgia, serif;
  --font-mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #121110;
    --sheet: #181715;
    --surface: #201f1c;
    --sunken: #141311;
    --line: #2b2925;
    --line-strong: #3a3732;
    --ink: #edeae3;
    --ink-2: #b4aea2;
    --ink-3: #958f83;
    --accent: #ff6b3f;
    --accent-strong: #ff865f;
    --accent-soft: #3b2219;
    --accent-text: #ff7a52;
    --agent: #8097ff;
    --agent-soft: #1d2342;
    --ok: #4cbf83;
    --code-bg: #0c0b0a;
    --code-ink: #edeae3;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.2), 0 4px 12px -2px rgb(0 0 0 / 0.4);
  }
}

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

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

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-strong);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  overflow-wrap: anywhere;
}

/* Read by screen readers only, such as "(opens in a new tab)" after a link. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

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

/* ── Header ──────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--sheet) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.logo-bg {
  fill: var(--ink);
}

.logo-orbit {
  stroke: var(--sheet);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--sunken);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.button.primary {
  background: var(--ink);
  color: var(--sheet);
}

.button.primary:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--accent));
  color: var(--sheet);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--desk);
  border-bottom: 1px solid var(--line);
  padding: 88px 0 96px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero h1 {
  font-size: clamp(46px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-card .caption {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 14px;
}

/* ── Command blocks ──────────────────────────────────────────── */
.command {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
}

.command pre {
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.command code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.command .prompt {
  color: var(--accent);
  user-select: none;
}

.copy {
  flex-shrink: 0;
  align-self: flex-start;
  font: 600 12px var(--font-sans);
  color: var(--code-ink);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

.copy:hover {
  background: rgb(255 255 255 / 0.16);
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: 88px 0;
}

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

.section > .wrap > h2 {
  font-size: clamp(32px, 5vw, 44px);
  max-width: 760px;
}

.section > .wrap > .lead {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 720px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--ink-2);
  font-size: 15px;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.card .tag {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.card.agent {
  border-color: color-mix(in srgb, var(--agent) 35%, var(--line));
}

.card.agent .tag {
  color: var(--agent);
}

.checks {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checks strong {
  color: var(--ink);
}

/* ── Copy diagram ────────────────────────────────────────────── */
.copies {
  display: grid;
  gap: 12px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sheet);
}

.copy-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.copy-row.agent .dot {
  background: var(--agent);
}

.copy-row strong {
  display: block;
  font-size: 14.5px;
}

.copy-row span {
  font-size: 13px;
  color: var(--ink-3);
}

/* ── Prose pages (install, privacy) ──────────────────────────── */
.page-head {
  background: var(--desk);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}

.page-head h1 {
  font-size: clamp(38px, 6vw, 56px);
}

.prose {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.prose h2 {
  font-size: 32px;
  margin: 64px 0 16px;
  scroll-margin-top: 88px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 21px;
  margin: 36px 0 10px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 14px 0;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--ink);
}

.note {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 15px;
}

.note.agent {
  background: var(--agent-soft);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.toc a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.toc a:hover {
  border-color: var(--ink-3);
}

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

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

tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 600;
  background: var(--sunken);
  color: var(--ink);
}

td {
  color: var(--ink-2);
}

.deploy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f38020;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.deploy:hover {
  background: #e06d0c;
  color: #fff;
}

/* Japanese has no spaces: let browsers that can break lines between phrases do so. */
:lang(ja) {
  word-break: auto-phrase;
}

/* ── Footer ──────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  background: var(--desk);
  padding: 40px 0;
  font-size: 14px;
  color: var(--ink-3);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot a {
  color: var(--ink-2);
  text-decoration: none;
}

.foot .languages {
  flex-basis: 100%;
  gap: 8px 16px;
  font-size: 13px;
}

.foot .languages a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .nav a.hide-small {
    display: none;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .section {
    padding: 64px 0;
  }
  .card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
