/* Locly landing page. No external resources: fonts are self-hosted. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ------------------------------------------------------------------ tokens */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --text: #0b1220;
  --text-2: #334155;
  --muted: #5b6474;
  --border: #e4e8ef;
  --border-strong: #cfd6e2;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #e8efff;
  --accent: #16a34a;
  --accent-soft: #e7f7ed;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --grad: linear-gradient(100deg, #2563eb 0%, #7c3aed 55%, #16a34a 100%);
  --term-bg: #0d1117;
  --term-bar: #161b22;
  --term-text: #e6edf3;
  --term-dim: #8b949e;
  --term-border: #263040;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e17;
    --bg-soft: #0e1420;
    --surface: #111827;
    --surface-2: #162032;
    --text: #e7ebf3;
    --text-2: #c3cad8;
    --muted: #97a1b4;
    --border: #1f2a3c;
    --border-strong: #2c3a52;
    --brand: #4f8cff;
    --brand-strong: #7aa7ff;
    --brand-soft: #14254a;
    --accent: #34d26f;
    --accent-soft: #0f2a1c;
    --danger: #f26b6b;
    --danger-soft: #2c1416;
    --grad: linear-gradient(100deg, #6aa1ff 0%, #a78bfa 55%, #4ade80 100%);
    --term-bg: #070a10;
    --term-bar: #0f141c;
    --term-border: #1f2a3c;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  }
}

/* ------------------------------------------------------- language switching */

html[lang="ar"] .en,
html[lang="en"] .ar {
  display: none !important;
}

/* ------------------------------------------------------------------- base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ar"] body {
  line-height: 1.85;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  letter-spacing: 0; /* letter-spacing breaks Arabic joining */
  line-height: 1.35;
}

p {
  margin: 0;
}

code,
pre {
  font-family: var(--mono);
}

:not(pre) > code {
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
  unicode-bidi: isolate;
}

/* Longer snippets in running text may wrap rather than overflow. */
.section-head code,
.checklist code,
.callout code,
.cmd-card > p code,
.faq code,
.usage {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

.container.narrow {
  max-width: 820px;
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

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

.brand img {
  border-radius: 8px;
}

.brand-name {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  gap: 4px;
  margin-inline-start: 8px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

@media (min-width: 940px) {
  .nav-links {
    display: flex;
  }
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  line-height: 1.5;
}

.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.lang-toggle [lang="ar"] {
  font-family: "IBM Plex Sans Arabic", var(--font);
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text);
}

.icon-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: 56px 40px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(600px 320px at 20% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(520px 300px at 85% 10%, color-mix(in srgb, #7c3aed 14%, transparent), transparent 70%),
    radial-gradient(500px 260px at 70% 80%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}

@media (min-width: 960px) {
  .hero {
    padding-block: 88px 56px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
  }
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px 5px 12px;
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

html[lang="ar"] .hero h1 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  max-width: 40em;
}

.sublead {
  margin-top: 12px;
  color: var(--muted);
  max-width: 40em;
}

.sublead em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-cta.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 32%, transparent);
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

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

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

.btn-light {
  background: #fff;
  color: #0b1220;
}

.btn-light:hover {
  color: #0b1220;
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  color: #fff;
  border-color: #fff;
}

/* ------------------------------------------------------------------- tabs */

.install-tabs {
  margin-top: 28px;
  max-width: 640px;
}

.tablist {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

.tablist [role="tab"] {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 6px 14px;
  cursor: pointer;
}

.tablist [role="tab"][aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
}

.fine-print {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.fine-print svg {
  flex: none;
  color: var(--accent);
}

/* --------------------------------------------------------- command blocks */

.cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  color: var(--term-text);
  text-align: left;
  min-width: 0;
}

.cmd > code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.9rem;
  padding-block: 8px;
  scrollbar-width: thin;
  background: none;
  border: 0;
  color: inherit;
}

.cmd.small {
  padding: 4px 4px 4px 12px;
  border-radius: 10px;
}

.cmd.small > code {
  font-size: 0.84rem;
  padding-block: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cmd > code.overflowing {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.prompt {
  color: #7ee787;
  margin-right: 10px;
  user-select: none;
}

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9d1d9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.copy.copied {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.4);
}

@media (max-width: 480px) {
  .copy-label {
    display: none;
  }
  .copy {
    padding: 8px;
  }
}

/* --------------------------------------------------------------- terminal */

.terminal {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  min-width: 0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-border);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-bar em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--term-dim);
  margin-inline-start: 10px;
  font-family: var(--mono);
}

.terminal-body,
pre.code {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--term-text);
  scrollbar-width: thin;
}

.terminal-body b {
  font-weight: 700;
  color: #fff;
}

.t-prompt {
  color: #7ee787;
}

.t-ok {
  color: #3fb950;
}

.t-link {
  color: #79c0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.t-dim {
  color: var(--term-dim);
}

.t-key {
  color: #79c0ff;
}

.t-str {
  color: #a5d6ff;
}

.t-num {
  color: #ffa657;
}

/* ---------------------------------------------------------------- mapping */

.mapping {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

@media (min-width: 1100px) {
  .mapping {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
    gap: 16px;
  }
}

.map-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.map-row code {
  font-size: 0.86rem;
  background: none;
  border: 0;
  padding: 0;
}

.map-row .from {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--danger) 60%, transparent);
}

.map-row .to {
  color: var(--brand);
  font-weight: 600;
}

.arrow {
  flex: none;
  color: var(--muted);
}

[dir="rtl"] .arrow {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------- sections */

.section {
  padding-block: 72px;
}

@media (min-width: 960px) {
  .section {
    padding-block: 104px;
  }
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
}

html[lang="ar"] .kicker {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 750;
}

.section-head p:not(.kicker),
.section-lead {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 1.08rem;
}

/* ------------------------------------------------------------------ steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  color: var(--text-2);
  flex: 1;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.how-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 960px) {
  .how-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.hosts-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.file-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  text-align: left;
}

pre.hosts {
  margin: 0;
  padding: 16px 0;
  white-space: normal;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.75;
  text-align: left;
  flex: 1;
}

pre.hosts span {
  display: block;
  white-space: pre;
  padding-inline: 18px;
}

pre.hosts .u {
  color: var(--muted);
}

pre.hosts .m {
  color: var(--text);
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding-left: 15px;
  font-weight: 500;
}

pre.hosts .m-first,
pre.hosts .m-last {
  color: var(--brand);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-2);
}

.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.swatch.u {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.swatch.m {
  background: var(--brand);
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.lane-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.lane-nodes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.node {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

code.node {
  font-family: var(--mono);
}

.node-mid {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--brand);
  font-weight: 600;
}

.node-ok {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
  font-weight: 600;
}

.lane-muted .node-mid {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
}

.flow-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.95rem;
  padding: 4px 4px 0;
}

.flow-note svg {
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}

/* -------------------------------------------------------------- browser */

.browser {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  direction: ltr;
}

.dots {
  display: inline-flex;
  gap: 7px;
}

.dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.dots span:nth-child(2) {
  background: #febc2e;
}

.dots span:nth-child(3) {
  background: #28c840;
}

.address {
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
}

.browser img {
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}

/* The Add dialog next to its explanation. */
.ui-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

@media (min-width: 860px) {
  .ui-detail {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 48px;
  }
}

.ui-detail-shot img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.ui-detail h3 {
  margin: 0 0 12px;
}

.ui-detail p {
  color: var(--text-2);
}

.feature-row {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

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

@media (min-width: 1000px) {
  .feature-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature-row li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-2);
}

.feature-row svg {
  flex: none;
  color: var(--accent);
}

/* --------------------------------------------------------------- examples */

.examples {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

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


.example {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.example h3 {
  font-size: 1.05rem;
}

.example .cmd > code {
  font-size: 0.84rem;
}

.result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--accent);
}

.result code {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  font-weight: 600;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 9px;
}

.split {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
  }
}

.split h3 {
  font-size: 1.4rem;
}

.split p {
  margin-top: 10px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- install */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 1000px) {
  .install-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 32px;
    align-items: start;
  }
}

.install-main,
.install-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.install-steps {
  list-style: none;
  counter-reset: s;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.install-steps li {
  counter-increment: s;
  position: relative;
  padding-inline-start: 44px;
  min-width: 0;
}

.install-steps li::before {
  content: counter(s);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
}

.install-steps p {
  margin-bottom: 10px;
  color: var(--text-2);
  font-weight: 500;
}

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  color: var(--text-2);
  font-size: 0.95rem;
}

.callout svg {
  flex: none;
  color: var(--brand);
  margin-top: 3px;
}

.callout strong {
  color: var(--text);
}

.callout-plain {
  margin-top: 36px;
  background: var(--surface);
  border-color: var(--border);
}

.callout-plain div {
  display: grid;
  gap: 12px;
}

.suffixes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suffixes code {
  font-size: 0.86rem;
  color: var(--brand);
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
}

.install-side h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.install-side h3 + .checklist + h3 {
  margin-top: 28px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  color: var(--text-2);
  font-size: 0.94rem;
}

.checklist li {
  position: relative;
  padding-inline-start: 26px;
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.side-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 16px 0 8px;
}

/* --------------------------------------------------------------- commands */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ref-table th,
.ref-table td {
  padding: 12px 18px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.ref-table th {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html[lang="ar"] .ref-table th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.ref-table td[dir="ltr"] {
  white-space: nowrap;
  width: 1%;
  text-align: left;
}

[dir="rtl"] .ref-table td[dir="ltr"] {
  text-align: right;
}

.ref-table td[dir="ltr"] code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.ref-table a code {
  color: var(--brand);
}

.ref-table td {
  color: var(--text-2);
}

.cmd-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 860px) {
  .cmd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cmd-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.cmd-card header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cmd-card h3 {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--brand);
}

.cmd-card .usage {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: normal;
}

.cmd-card > p {
  color: var(--text-2);
}

.flags {
  margin: 0;
  display: grid;
  gap: 8px;
}

.flags div {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 12px;
  font-size: 0.92rem;
}

.flags dt {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.flags dd {
  margin: 0;
  color: var(--muted);
}

pre.code {
  margin-top: auto;
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.84rem;
  text-align: left;
}

.ref-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  .ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ref-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.codes td[dir="ltr"] code {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  font-weight: 700;
}

/* ----------------------------------------------------------------- agents */

.agents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 1000px) {
  .agents-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.agent-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.agent-points li {
  display: flex;
  gap: 14px;
}

.agent-points svg {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.agent-points strong {
  display: block;
  color: var(--text);
}

.agent-points p {
  color: var(--text-2);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------- security */

.never-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .never-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .never-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.never-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.never-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  margin-bottom: 14px;
}

.never-grid h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.never-grid p {
  color: var(--muted);
  font-size: 0.93rem;
}

.proof {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.proof > svg {
  flex: none;
  color: var(--accent);
}

.proof h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.proof p {
  color: var(--text-2);
}

.this-page {
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent) !important;
}

/* -------------------------------------------------------------------- faq */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--text-2);
}

/* -------------------------------------------------------------------- cta */

.cta {
  padding-block: 72px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: 24px;
  padding: 56px 20px;
  background:
    radial-gradient(500px 240px at 15% 0%, rgba(124, 58, 237, 0.55), transparent 70%),
    radial-gradient(500px 260px at 90% 100%, rgba(22, 163, 74, 0.45), transparent 70%),
    linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.cta-card h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.cta-card > p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.cmd-on-dark {
  max-width: 680px;
  margin: 28px auto 0;
  background: rgba(3, 7, 18, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-inner .brand {
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-tag {
  font-weight: 400;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ----------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ================================================================= story film */

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--text-2);
}

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

.watch-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* A play triangle points right in every language (it is not mirrored). */
.watch-icon svg {
  margin-left: 2px;
}

.film-section {
  overflow: hidden;
}

.film {
  margin: 0 auto;
  max-width: 1060px;
}

.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #050812;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.film-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #050812;
}

/* The poster's own play button; the browser's controls take over once the
   video plays. The film is dark in both themes, so the button is too. */
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  padding: clamp(12px, 3.5%, 28px);
  border: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 18, 0.55));
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.film-play[hidden] {
  display: none;
}

.film-play-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(48px, 9vw, 76px);
  height: clamp(48px, 9vw, 76px);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 30%, transparent), 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

/* A play triangle points right in every language; nudge it to look centred. */
.film-play-icon svg {
  width: 44%;
  height: 44%;
  margin-left: 6%;
}

.film-play-label {
  margin-inline-start: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(5, 8, 18, 0.72);
  font-size: 15px;
  font-weight: 600;
}

.film-play:hover .film-play-icon {
  transform: scale(1.07);
}

.film-play:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -6px;
}

.film figcaption {
  margin-top: 14px;
  text-align: center;
}

.film-transcript {
  display: inline-block;
  max-width: 760px;
  text-align: start;
  color: var(--muted);
  font-size: 15px;
}

.film-transcript summary {
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: var(--text-2);
}

.film-transcript summary:hover {
  color: var(--brand);
}

.film-transcript p {
  margin: 10px 0 0;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .film-play-label {
    font-size: 13px;
    padding: 5px 11px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ ease cards */

.ease-head {
  margin-top: 56px;
  text-align: center;
}

.ease-head h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.ease-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 860px) {
  .ease-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ease-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.ease-card h4 {
  margin: 0;
  font-size: 1.15rem;
}

.ease-card p {
  color: var(--text-2);
  flex: 1;
}

.ease-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.sudo-note {
  margin-top: 14px !important;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  font-size: 0.98rem !important;
}
