@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1526;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #8b97a8;
  --line: #dfe6f0;
  --line-strong: #cdd8e7;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --soft: #edf3fa;
  --soft-2: #e4edf8;
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-50: #eff6ff;
  --navy: #0a1530;
  --navy-2: #111f3d;
  --navy-line: #24365e;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --radius-card: 16px;
  --radius-control: 10px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -22px rgba(15, 23, 42, 0.22);
  --shadow-panel: 0 30px 70px -35px rgba(8, 20, 50, 0.55);
  --font-sans: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code, pre, .brand-tag, .rail-label, .code-command, .code-key, .code-args, .code-muted { font-family: var(--font-mono); }
p, h1, h2, h3, dl, dd, dt, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--brand); color: #fff; }

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

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}
.skip-link:focus { top: 12px; }

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

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 248, 252, 0.92);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 34px;
}
.brand img { width: 32px; height: 31px; object-fit: contain; }
.brand-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-tag {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  direction: ltr;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: 10px;
}
.primary-nav a {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  padding: 8px 0;
  transition: color 140ms var(--ease);
}
.primary-nav a:hover { color: var(--brand-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13px;
  padding: 7px 2px;
}
.github-link:hover { color: var(--brand-600); }
.github-link .icon { width: 16px; height: 16px; }

.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu-close { display: none; }
.site-header.nav-open .menu-open { display: none; }
.site-header.nav-open .menu-close { display: block; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 100ms var(--ease);
}
.button:active { transform: translateY(1px); }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-600); }
.button-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { border-color: var(--brand); color: var(--brand-700); }
.button-small { min-height: 34px; padding: 6px 12px; font-size: 12.5px; }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: #eaf0ff; }
.button-outline-light { border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.button-outline-light:hover { border-color: rgba(255, 255, 255, 0.58); background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 92px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 76%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.hero-copy { max-width: 590px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.hero h1 {
  font-size: clamp(38px, 3.45vw, 50px);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero h1 span { color: var(--brand-700); }
.hero-lead {
  max-width: 525px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 2.05;
}
.hero-lead strong { font-weight: 500; color: var(--ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}
.hero-facts div {
  min-width: 100px;
  padding: 14px 18px 0 0;
  border-inline-end: 1px solid var(--line);
  margin-inline-end: 18px;
}
.hero-facts div:last-child { border: 0; margin: 0; padding-inline-end: 0; }
.hero-facts dt { color: var(--muted); font-size: 11px; line-height: 1.6; }
.hero-facts dd {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* Hero relay */
.hero-visual { min-width: 0; }
.relay {
  position: relative;
  overflow: hidden;
  border: 1px solid #1b2e52;
  border-radius: 20px;
  background: var(--navy);
  color: #dbe7ff;
  box-shadow: var(--shadow-panel);
}
.relay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(147, 197, 253, 0.05) 1px, transparent 1px);
  background-size: 48px 100%;
  opacity: 0.45;
}
.relay-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--navy-line);
  background: rgba(17, 31, 61, 0.58);
}
.relay-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: #eff6ff; direction: ltr; }
.relay-brand img { width: 23px; height: 22px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #a9bce0; font-size: 10px; white-space: nowrap; }
.live-dot, .foot-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block;
}
.relay-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1.05fr);
  gap: 8px;
  padding: 16px;
}
.relay-column { min-width: 0; }
.rail-label { display: block; margin-bottom: 8px; color: #9bb0d2; font-size: 10px; line-height: 1.4; }
.provider-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #d4e0f6;
  font-size: 11px;
}
.provider-row img { width: 18px; height: 18px; object-fit: contain; filter: saturate(0.9); }
.provider-row:hover { border-color: var(--navy-line); background: rgba(37, 99, 235, 0.1); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; display: block; }
.relay-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.core-line { width: 1px; flex: 1; min-height: 16px; background: linear-gradient(to bottom, transparent, #3b82f6); }
.core-line:last-child { background: linear-gradient(to bottom, #3b82f6, transparent); }
.core-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 58px;
  border: 1px solid #2d4f88;
  border-radius: 11px;
  background: #10244a;
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.2;
  gap: 2px;
}
.core-mark img { width: 26px; height: 25px; }
.tool-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 3px 7px;
  border-radius: 7px;
  color: #dbe7ff;
  font-size: 10px;
}
.tool-row:hover { background: rgba(37, 99, 235, 0.1); }
.tool-prompt { color: #60a5fa; font-family: var(--font-mono); }
.tool-row code { font-size: 10px; color: #dbe7ff; direction: ltr; }
.tool-ok { margin-inline-start: auto; color: #9bb0d2; font-size: 9px; }
.relay-message {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #243b66;
  border-radius: 9px;
  background: #0e1e3a;
}
.msg-from { display: block; color: #9bb0d2; font-size: 9.5px; }
.relay-message p { margin-top: 4px; color: #eff6ff; font-size: 11.5px; line-height: 1.7; }
.msg-reply { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px solid #243b66; color: #93c5fd; font-size: 9px; }
.relay-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px solid var(--navy-line);
  color: #7f95be;
  font-family: var(--font-mono);
  font-size: 8px;
  direction: ltr;
}
.relay-foot span { display: inline-flex; align-items: center; gap: 6px; }
.relay-foot span:last-child { direction: rtl; }
.visual-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-why { background: var(--bg); }
.section-features { background: #fbfcfe; }
.section-integrations { background: var(--bg); }
.section-posts { background: #fbfcfe; }
.section-start { background: #f1f6fc; }
.section-roadmap { background: var(--bg); }
.section-security { background: var(--soft); }
.section-docs { background: #fbfcfe; }
.section-faq { background: var(--bg); }
.section-intro { max-width: 590px; }
.section-intro-wide {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}
.section-intro-wide .section-lead { max-width: 430px; margin-top: 0; padding-bottom: 4px; }
.section-kicker {
  margin-bottom: 10px;
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}
.section h2 {
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.025em;
}
.section-lead {
  margin-top: 15px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
}
.section-lead code, .security-list code {
  direction: ltr;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--brand-700);
  font-size: 0.86em;
  unicode-bidi: embed;
}

/* Principles */
.principles { margin-top: 48px; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.principle-number { color: var(--brand); font-family: var(--font-mono); font-size: 11px; padding-top: 3px; }
.principle h3 { font-size: 18px; font-weight: 500; line-height: 1.6; }
.principle p { max-width: 780px; margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 1.95; }

.contract-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.contract-label { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.contract-path { display: flex; align-items: center; gap: 9px; flex: 1; flex-wrap: wrap; }
.path-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 11px;
  white-space: nowrap;
}
.path-node-core { background: var(--brand-50); color: var(--brand-700); }
.path-node img { width: 17px; height: 16px; }
.path-line { width: 22px; height: 1px; background: var(--line-strong); position: relative; }
.path-line::after {
  content: "";
  position: absolute;
  inset-inline-start: -1px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--line-strong);
  border-inline-start: 1px solid var(--line-strong);
  transform: rotate(-45deg);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 42px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.feature-inbox { grid-column: span 7; }
.feature-triggers { grid-column: span 5; }
.feature-memory { grid-column: span 5; }
.feature-tools { grid-column: span 7; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-700);
}
.feature-icon .icon { width: 18px; height: 18px; }
.feature-card h3 { font-size: 18px; font-weight: 500; line-height: 1.6; }
.feature-card p { max-width: 510px; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.feature-content { position: relative; z-index: 1; }

.inbox-demo {
  margin-top: 20px;
  padding-top: 4px;
}
.inbox-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.inbox-row:first-child { border-top: 0; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 11px;
}
.avatar-a { background: #e0e9ff; color: #3156a3; }
.avatar-b { background: #e9e3f4; color: #6b528a; }
.avatar-c { background: #e2f0ea; color: #386e5b; }
.inbox-row div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-row strong { font-size: 11.5px; font-weight: 500; }
.inbox-row div span { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row time { color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; }

.rule-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 10px;
}
.rule i { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.rule i::after {
  content: "";
  position: absolute;
  inset-inline-start: -1px;
  top: -2px;
  width: 4px;
  height: 4px;
  border-top: 1px solid var(--line-strong);
  border-inline-start: 1px solid var(--line-strong);
  transform: rotate(-45deg);
}
.rule-action { color: var(--brand-700); }
.rule-note { margin-top: 9px; color: var(--muted-2); font-size: 10px; line-height: 1.8; }
.mobile-break { display: none; }

.memory-demo {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--brand-100, #dbeafe);
  border-radius: 9px;
  background: var(--brand-50);
}
.memory-label { display: block; color: var(--brand-700); font-size: 9px; }
.memory-demo p { margin-top: 5px; color: var(--ink-2); font-size: 12px; line-height: 1.8; }
.memory-meta { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }

.tool-code {
  direction: ltr;
  text-align: left;
  margin: 18px 0 0;
  padding: 13px;
  border-radius: 9px;
  background: var(--navy);
  color: #dbe7ff;
  font-size: 10px;
  line-height: 2;
  overflow-x: auto;
  unicode-bidi: embed;
}
.code-muted { color: #7890b8; }
.code-key { color: #93c5fd; }
.code-args { color: #c3d4f1; }

/* Integrations */
.integrations-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 64px;
}
.integration-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.integration-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--muted-2);
  font-size: 9.5px;
}
.integration-list { display: grid; grid-template-columns: 1fr; }
.integration-list li {
  display: grid;
  grid-template-columns: 26px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.integration-list li:last-child { border-bottom: 0; }
.integration-list img { width: 23px; height: 23px; object-fit: contain; }
.integration-meta { color: var(--muted-2); font-size: 10px; }
.integration-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.integration-state i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.integration-note { padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.integration-note a, .text-link { color: var(--brand-700); border-bottom: 1px solid rgba(37, 99, 235, 0.28); }
.integration-note a:hover, .text-link:hover { color: var(--brand-600); border-color: var(--brand-600); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  padding-bottom: 2px;
  font-size: 12px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
}
.text-link .icon { width: 13px; height: 13px; }

/* Start */
.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 66px;
}
.start-steps { margin-top: 28px; }
.start-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.start-steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 9px;
}
.start-steps strong { font-size: 13px; font-weight: 500; }
.start-steps p { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.85; }

.terminal-card {
  overflow: hidden;
  border: 1px solid #1d3157;
  border-radius: var(--radius-card);
  background: var(--navy);
  box-shadow: var(--shadow-panel);
  color: #dbe7ff;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--navy-line);
  color: #8299c5;
  font-family: var(--font-mono);
  font-size: 9px;
}
.terminal-dots { display: flex; gap: 4px; }
.terminal-dots i { width: 5px; height: 5px; border-radius: 50%; background: #314a76; }
.terminal-dots i:first-child { background: #5d7dae; }
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: auto;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9eb2d8;
  font-family: var(--font-sans);
  font-size: 9px;
  cursor: pointer;
}
.copy-button:hover { color: #fff; background: rgba(255,255,255,0.07); }
.copy-button .icon { width: 13px; height: 13px; }
.terminal-tabs { display: flex; gap: 4px; padding: 9px 14px 0; }
.terminal-tabs button {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #8299c5;
  font-family: var(--font-mono);
  font-size: 9px;
  cursor: pointer;
}
.terminal-tabs button[aria-selected="true"] { border-color: #2b4573; background: #13264a; color: #dbe7ff; }
.terminal-panel { padding: 12px 14px 14px; }
.terminal-panel pre {
  margin: 0;
  direction: ltr;
  text-align: left;
  color: #dbe7ff;
  font-size: 11px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-command { color: #93c5fd; }
.terminal-hint { margin-top: 9px; color: #8299c5; font-size: 9.5px; line-height: 1.8; }
.terminal-hint .ltr { direction: ltr; unicode-bidi: embed; }
.terminal-foot {
  display: flex;
  gap: 7px;
  padding: 9px 14px;
  border-top: 1px solid var(--navy-line);
  color: #6e86b0;
  font-family: var(--font-mono);
  font-size: 8px;
  direction: ltr;
}

/* Roadmap */
.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.roadmap-list { border-top: 1px solid var(--line); }
.roadmap-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.roadmap-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; padding-top: 2px; white-space: nowrap; }
.roadmap-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.roadmap-item.is-done .roadmap-status { color: #44745b; }
.roadmap-item.is-done .roadmap-status i { background: var(--green); }
.roadmap-item.is-progress .roadmap-status { color: var(--brand-700); }
.roadmap-item.is-progress .roadmap-status i { background: var(--brand); }
.roadmap-item h3 { font-size: 15px; font-weight: 500; line-height: 1.6; }
.roadmap-item p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.9; }

/* Security */
.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.security-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--line-strong); }
.security-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
}
.security-list .icon { width: 17px; height: 17px; color: var(--brand-700); margin-top: 3px; }
.security-list div { display: flex; flex-direction: column; gap: 3px; }
.security-list strong { font-size: 12px; font-weight: 500; }
.security-list span { color: var(--muted); font-size: 11px; line-height: 1.85; }

/* Docs */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}
.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 185px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
}
.doc-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.doc-type { color: var(--muted-2); font-family: var(--font-mono); font-size: 9px; }
.doc-card h3 { margin-top: 13px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.doc-card p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.doc-arrow { display: inline-flex; margin-top: auto; padding-top: 14px; color: var(--brand-700); }
.doc-arrow .icon { width: 15px; height: 15px; }

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 64px;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  transition: transform 140ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 660px; padding: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 2; }

/* CTA */
.cta-section { padding: 64px 0 80px; border-bottom: 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 30px 32px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-panel);
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(147, 197, 253, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 197, 253, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.65), transparent 72%);
}
.cta-mark { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #2b4573; border-radius: 12px; background: #10244a; }
.cta-mark img { width: 31px; height: 30px; }
.cta-copy { position: relative; z-index: 1; }
.cta-panel .section-kicker { color: #93c5fd; margin-bottom: 4px; }
.cta-panel h2 { font-size: clamp(23px, 2.5vw, 31px); font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.cta-panel p { margin-top: 5px; color: #a9bce0; font-size: 12px; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 9px; flex-wrap: wrap; }

/* Footer */
.site-footer { padding: 44px 0 22px; background: var(--bg); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 50px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { min-height: 0; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.95; }
.footer-brand p a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.footer-brand p a:hover { color: var(--brand-700); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links > div { display: flex; flex-direction: column; gap: 7px; }
.footer-links span { margin-bottom: 3px; color: var(--muted-2); font-size: 9px; }
.footer-links a { color: var(--ink-2); font-size: 11px; }
.footer-links a:hover { color: var(--brand-700); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 16px; color: var(--muted-2); font-size: 9px; }
.footer-status { display: inline-flex; align-items: center; gap: 5px; }
.footer-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-inner { gap: 38px; }
  .relay-body { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.05fr); padding: 13px; }
  .integrations-layout, .start-layout, .roadmap-layout, .security-layout, .faq-layout { gap: 42px; }
  .section { padding: 80px 0; }
}

@media (max-width: 900px) {
  .shell { width: min(var(--shell), calc(100% - 36px)); }
  .header-inner { min-height: 62px; gap: 16px; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.32);
  }
  .site-header.nav-open .primary-nav { display: flex; }
  .primary-nav a { padding: 11px 10px; border-radius: 7px; font-size: 13px; }
  .primary-nav a:hover { background: var(--soft); }
  .github-link span { display: none; }
  .menu-button { display: inline-flex; }
  .hero { padding: 52px 0 68px; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 650px; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .hero h1 { font-size: clamp(38px, 8vw, 58px); }
  .section { padding: 70px 0; }
  .section-intro-wide { display: block; }
  .section-intro-wide .section-lead { max-width: 590px; margin-top: 14px; }
  .feature-inbox, .feature-triggers, .feature-memory, .feature-tools { grid-column: span 6; }
  .integrations-layout, .start-layout, .roadmap-layout, .security-layout, .faq-layout { grid-template-columns: 1fr; }
  .start-copy { max-width: 620px; }
  .terminal-card { max-width: 620px; }
  .security-list { border-top: 0; }
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: 48px minmax(0, 1fr); }
  .cta-actions { grid-column: 2; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .header-actions { gap: 6px; }
  .button-small { display: none; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(34px, 10.8vw, 48px); line-height: 1.38; }
  .mobile-break { display: block; }
  .hero-lead { font-size: 14.5px; line-height: 2; }
  .hero-actions .button { width: 100%; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .hero-facts div { min-width: 0; padding: 11px 0; margin: 0; border-inline-end: 1px solid var(--line); }
  .hero-facts div:nth-child(2n) { border-inline-end: 0; padding-inline-start: 14px; }
  .hero-facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .relay-body { grid-template-columns: 1fr; gap: 10px; }
  .relay-core { flex-direction: row; gap: 8px; }
  .core-line { width: auto; height: 1px; min-height: 0; flex: 1; background: linear-gradient(to right, transparent, #3b82f6); }
  .core-line:last-child { background: linear-gradient(to right, #3b82f6, transparent); }
  .core-mark { flex-direction: row; width: auto; height: 38px; padding: 0 8px; gap: 5px; }
  .core-mark img { width: 20px; height: 19px; }
  .relay-providers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .relay-providers .rail-label { grid-column: 1 / -1; }
  .relay-tools { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .relay-tools .rail-label, .relay-message { grid-column: 1 / -1; }
  .relay-message { margin-top: 6px; }
  .relay-foot { font-size: 7px; }
  .section { padding: 58px 0; }
  .section h2 { font-size: 29px; }
  .principles { margin-top: 34px; }
  .principle { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 18px 0; }
  .principle h3 { font-size: 16px; }
  .contract-strip { display: block; padding: 14px; }
  .contract-path { margin-top: 10px; gap: 6px; }
  .path-line { width: 12px; }
  .path-node { font-size: 9.5px; padding: 4px 6px; }
  .feature-grid { display: block; margin-top: 30px; }
  .feature-card { min-height: 0; margin-bottom: 12px; padding: 19px; }
  .feature-card:last-child { margin-bottom: 0; }
  .inbox-row { grid-template-columns: 27px minmax(0, 1fr); }
  .inbox-row time { display: none; }
  .integration-list { grid-template-columns: 1fr; }
  .integration-list li { grid-template-columns: 24px minmax(0, 1fr) auto; padding-inline: 14px; }
  .integration-meta { display: none; }
  .integration-list li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .integration-list li:last-child { border-bottom: 0; }
  .integration-head { display: none; }
  .integration-note { padding: 11px 14px; }
  .start-steps li { padding: 11px 0; }
  .terminal-card { margin-top: 4px; }
  .terminal-panel pre { font-size: 10px; }
  .roadmap-item { grid-template-columns: 1fr; gap: 3px; padding: 14px 0; }
  .security-list { grid-template-columns: 1fr; }
  .security-list li:last-child { border-bottom: 0; }
  .docs-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .doc-card { min-height: 165px; padding: 13px; }
  .doc-card h3 { font-size: 14px; }
  .doc-card p { font-size: 10px; }
  .faq-layout { gap: 18px; }
  .faq-list summary { padding: 13px 0; font-size: 12px; }
  .cta-section { padding: 42px 0 58px; }
  .cta-panel { grid-template-columns: 1fr; gap: 14px; padding: 23px 20px; }
  .cta-mark { width: 42px; height: 42px; }
  .cta-actions { grid-column: auto; }
  .cta-actions .button { flex: 1 1 140px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   Installer, finance and network sections
   ================================================================ */
.section-setup { background: #fbfcfe; }
.section-finance { background: var(--bg); }
.section-network { background: #f1f6fc; }

/* extra integrations: finance, social and tools */
.integrations-layout { grid-template-areas: "intro panel" "extra extra"; row-gap: 28px; }
.integrations-layout > .section-intro { grid-area: intro; }
.integrations-layout > .integration-panel { grid-area: panel; }
.integration-extra { grid-area: extra; display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 16px; align-items: start; }
.integration-group {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.integration-group-title { display: block; margin-bottom: 12px; color: var(--muted-2); font-size: 10.5px; font-weight: 500; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 7px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fbfcfe; font-size: 12.5px;
}
.chip-list i {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 7px;
  color: #fff; font-family: var(--font-mono); font-size: 9.5px; font-style: normal; font-weight: 700;
}
.chip-list img { width: 22px; height: 22px; object-fit: contain; }
.chip-list small { color: var(--muted-2); font-size: 10px; }

/* installer steps */
.setup-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.setup-steps li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start;
  padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.setup-steps li > span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 700; line-height: 1;
}
.setup-steps strong { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.7; }
.setup-steps p { margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.85; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; align-items: start; }
.shot { margin: 0; min-width: 0; }
.shot-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.shots .shot-frame { aspect-ratio: 16 / 11; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* نصب‌کننده وسط قاب تصویر است؛ بزرگ‌نمایی از بالا-وسط خودِ کارت را پر می‌کند */
.shots .shot-frame img { transform: scale(1.42); transform-origin: 50% 4%; }
.shot-wide .shot-frame img { height: auto; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.shot figcaption strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 500; }
.shots-note { margin-top: 20px; color: var(--muted); font-size: 12px; }

/* text beside a screenshot */
.split-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.split-reverse > .section-intro { order: 2; }
.check-list { display: grid; gap: 10px; margin-top: 22px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; color: var(--ink-2); font-size: 12.5px; line-height: 1.9; }
.check-list .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--green); }
.check-list strong { font-weight: 500; color: var(--ink); }

/* responsibility notice */
.notice {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px;
  margin-top: 34px; padding: 18px 20px;
  border: 1px solid #f3d9a4; border-radius: 12px; background: #fffaf0;
}
.notice .icon { width: 20px; height: 20px; margin-top: 3px; color: #b45309; }
.notice strong { display: block; font-size: 13px; font-weight: 500; color: #7c2d12; }
.notice p { margin-top: 4px; color: #713f12; font-size: 12px; line-height: 1.95; }
.notice a { color: #7c2d12; border-bottom: 1px solid rgba(124, 45, 18, 0.35); }

@media (max-width: 1080px) {
  .split-layout { gap: 38px; }
}
@media (max-width: 900px) {
  .integrations-layout { grid-template-areas: "intro" "panel" "extra"; }
  .integration-extra { grid-template-columns: 1fr; }
  .setup-steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shots .shot-frame { aspect-ratio: 16 / 12; }
  .split-layout { grid-template-columns: 1fr; gap: 28px; }
  .split-reverse > .section-intro { order: 0; }
}
@media (max-width: 620px) {
  .setup-steps { grid-template-columns: 1fr; margin-top: 26px; }
  .notice { padding: 15px; }
}
