:root {
  color-scheme: dark;
  --bg: #0d1115;
  --panel: #14191e;
  --panel-2: #1a2026;
  --line: #30383f;
  --text: #eff1ef;
  --muted: #9ba5ab;
  --soft: #68737a;
  --lime: #b9fa42;
  --coral: #cb7062;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  height: 610px;
  z-index: -1;
  background-image: linear-gradient(#a6b5bd09 1px, transparent 1px),
    linear-gradient(90deg, #a6b5bd09 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}
a { color: inherit; }
button, input { font: inherit; }
code, kbd { unicode-bidi: isolate; direction: ltr; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--bg);
}
.skip-link:focus { top: 10px; }

.site-header {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(24px, 3.35vw, 70px);
  border-bottom: 1px solid #ffffff12;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  min-width: 238px;
  text-decoration: none;
}
.apc-logo { display: block; width: 84px; height: 34px; flex: 0 0 auto; }
.brand span {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .23em;
  line-height: 1.5;
}
.main-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: clamp(22px, 3vw, 60px);
}
.main-nav a, .site-footer a {
  color: #c6cdd0;
  text-decoration: none;
  font-size: 13px;
  transition: color .18s;
}
.main-nav a:hover, .main-nav a[aria-current], .site-footer a:hover { color: var(--lime); }
.header-trial {
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid #88959b55;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.header-trial:hover { border-color: var(--lime); color: var(--lime); }
.mobile-nav { display: none; }
.language-picker { position: relative; z-index: 12; flex: 0 0 auto; }
.language-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 70px;
  height: 41px;
  padding: 0 9px;
  border: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker[open] summary, .language-picker summary:hover { border-color: var(--lime); }
.language-flag { display: block; width: 24px; height: 16px; flex: 0 0 auto; border: 1px solid #ffffff30; }
.language-arabic { display: grid; place-items: center; width: 24px; height: 20px; flex: 0 0 auto; color: var(--lime); font-size: 18px; line-height: 1; }
.language-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 190px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 35px #0008;
}
.language-menu a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; text-decoration: none; font-size: 13px; }
.language-menu a:hover, .language-menu a[aria-current] { background: #b9fa4216; color: var(--lime); }
html[dir="rtl"] .language-menu { right: auto; left: 0; }

.eyebrow, .panel-kicker {
  color: var(--lime);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .27em;
  line-height: 1.5;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  padding: 26px clamp(24px, 3.35vw, 70px) 30px;
  gap: 27px;
}
.hero-copy { max-width: 680px; padding: 17px 0; }
.hero h1 {
  margin: 29px 0 20px;
  font-size: clamp(58px, 5.45vw, 98px);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 750;
}
.hero h1 em { font-style: normal; color: #c4cbd0; }
.hero-title-middle { white-space: nowrap; }
.hero-lead {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 660;
  white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s;
}
.button:hover { transform: translateY(-2px); }
.play-icon { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.button-outline { border-color: #aab3b866; color: var(--text); background: #0b1014bb; }
.button-outline:hover { border-color: var(--lime); }
.button-lime { background: var(--lime); color: #10150e; }
.button-lime:hover { background: #ceff76; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 34px;
  color: #aab4b9;
  font-size: 10px;
  letter-spacing: .04em;
}
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg {
  width: 19px;
  height: 19px;
  color: var(--lime);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.hero-visual {
  min-width: 0;
  border: 1px solid #39434b;
  background: #11171c;
  box-shadow: 0 22px 55px #00000045;
}
.viewer-top {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}
.viewer-dots { display: flex; gap: 6px; }
.viewer-dots i { width: 6px; height: 6px; border-radius: 50%; background: #62717a; }
.viewer-stage { position: relative; overflow: hidden; aspect-ratio: 1.55; }
.viewer-stage img { width: 100%; height: 100%; object-fit: cover; }
/* Keep the assembly diagram aligned with the enlarged, mirrored robot. */
.viewer-stage img, .path-arrow, .robot-mark { transform: scale(1.2) scaleX(-1); transform-origin: center; }
html[lang="ar"] .viewer-stage img, html[lang="ar"] .path-arrow, html[lang="ar"] .robot-mark { transform: scale(1.2); }
.robot-mark { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none; }
.viewer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0b101599, transparent 25%);
  pointer-events: none;
}
.path-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--lime);
  overflow: visible;
  pointer-events: none;
}
.path-arrow path, .path-arrow circle, .path-arrow ellipse { vector-effect: non-scaling-stroke; }

.section-wrap { margin: 0 clamp(24px, 3.35vw, 70px); }
.demos { padding-top: 29px; border-top: 1px solid var(--line); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 24px;
}
.section-heading .eyebrow { margin: 0 0 8px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 2.8vw, 48px);
  font-weight: 690;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-card { min-width: 0; }
.demo-image { position: relative; overflow: hidden; aspect-ratio: 1.75; border: 1px solid #3d474f; background: #1c232a; }
.demo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.demo-card:hover .demo-image img { transform: scale(1.035); }
.demo-card:first-child .demo-image img { object-position: 44% 49%; }
.demo-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border: 1px solid #d8e4e055;
  background: #0a1015bb;
  color: #d4dee0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
.line-path {
  position: absolute;
  display: block;
  width: 10%;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 5px #a8f34855;
}
.line-path::after {
  content: "";
  position: absolute;
  left: -7px;
  top: -5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--lime);
}
.line-path-left { top: 45%; left: 52%; }
.line-path-pin { top: 47%; left: 42%; }
.demo-meta { margin-top: 14px; color: var(--lime); font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.demo-card h3 { margin: 10px 0 5px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.demo-card p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.features { padding-top: 96px; }
.feature-list { border-top: 1px solid var(--line); }
.feature-row {
  display: grid;
  grid-template-columns: 100px minmax(280px, 1fr) minmax(200px, .9fr);
  align-items: start;
  gap: 25px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row > span { color: var(--lime); font-size: 13px; font-weight: 750; }
.feature-row h3 { margin: 0 0 8px; font-size: 22px; font-weight: 650; }
.feature-row p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.feature-row small { justify-self: end; padding-top: 5px; color: var(--soft); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-align: right; }
.closing {
  margin-top: 105px;
  margin-bottom: 85px;
  padding: 45px 0 12px;
  border-top: 1px solid var(--lime);
}
.closing h2 { max-width: 900px; margin: 18px 0; font-size: clamp(34px, 5vw, 76px); line-height: 1.04; letter-spacing: -.055em; }
.closing > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.site-footer {
  display: block;
  padding-top: 38px;
  margin: 0 clamp(24px, 3.35vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
}
.footer-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-bottom: 32px; }
.footer-columns > div { min-width: 0; }
.footer-brand { display: inline-block; }
.footer-brand .apc-logo { width: 96px; height: 34px; }
.footer-about p { max-width: 320px; margin: 16px 0 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: normal; }
.footer-column h2 { margin: 0 0 18px; color: var(--lime); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .16em; }
.site-footer .footer-contact { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 14px; color: #c6cdd0; font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: normal; }
.footer-contact svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.footer-contact span { min-width: 0; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); max-width: 100%; color: #c6cdd0; font-size: 13px; font-weight: 400; letter-spacing: normal; }
.footer-links a, .footer-links .cookie-settings { white-space: nowrap; }
.footer-links .cookie-settings { padding-inline-start: 12px; border-inline-start: 1px solid var(--soft); }
html[dir="rtl"] .footer-links { justify-content: flex-start; }

.form-page {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 450px);
  gap: clamp(40px, 9vw, 170px);
  align-items: center;
  max-width: 1320px;
  min-height: calc(100vh - 150px);
  margin: auto;
  padding: 65px clamp(24px, 3.35vw, 70px);
}
.form-intro h1, .inner-page h1, .notice-page h1 {
  margin: 20px 0;
  font-size: clamp(45px, 5.5vw, 86px);
  line-height: 1.04;
  letter-spacing: -.06em;
}
.form-intro > p:not(.eyebrow), .inner-lead { max-width: 550px; color: var(--muted); font-size: 17px; line-height: 1.6; }
/* Center the copy in the viewport below the 76px header, independently of the form's height. */
.register-intro { align-self: start; display: flex; align-items: center; min-width: 0; min-height: calc(100svh - 76px - 130px); container-type: inline-size; --register-title-size: 13cqi; }
.register-page { grid-template-columns: minmax(0, 1fr) minmax(340px, 450px); }
html:lang(en) .register-intro, html:lang(es) .register-intro { --register-title-size: 11.8cqi; }
html:lang(de) .register-intro, html:lang(fr) .register-intro,
html:lang(ar) .register-intro { --register-title-size: 10.5cqi; }
html:lang(it) .register-intro { --register-title-size: 11cqi; }
html:lang(ko) .register-intro { --register-title-size: 10.8cqi; }
.register-intro .form-intro { width: 100%; min-width: 0; }
.register-intro .register-title { font-size: min(clamp(45px, 5.5vw, 86px), var(--register-title-size)); }
.register-title-part { display: block; white-space: nowrap; }
.text-link { display: inline-block; margin-top: 23px; color: var(--lime); font-size: 13px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.feature-row .feature-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
html[dir="rtl"] .feature-link-arrow { transform: scaleX(-1); }
.form-panel, .info-panel, .download-panel, .hash-panel, .notice-panel {
  border: 1px solid var(--line);
  background: #151b20;
}
.form-panel { padding: clamp(25px, 3vw, 47px); }
.form-panel h2 { margin: 7px 0 24px; font-size: 28px; letter-spacing: -.035em; }
.form-panel form { display: flex; flex-direction: column; }
.form-panel label { margin: 16px 0 8px; font-size: 12px; font-weight: 650; }
.form-panel input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #46515a;
  border-radius: 2px;
  outline: none;
  color: var(--text);
  background: #10161b;
}
.form-panel input:focus { border-color: var(--lime); }
.form-panel .button { margin-top: 26px; }
.field-note { margin: 9px 0 0; color: var(--soft); font-size: 11px; line-height: 1.5; }
.form-alternate { margin: 25px 0 0; color: var(--muted); font-size: 12px; }
.form-alternate a { color: var(--lime); }
.resend-form { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.resend-form .text-button { align-self: flex-start; }
.form-panel > p:not(.panel-kicker):not(.form-alternate) { padding: 11px; border-left: 2px solid var(--lime); color: var(--text); background: #b9fa4210; font-size: 13px; line-height: 1.5; }
.inner-page, .notice-page { max-width: 1030px; min-height: calc(100vh - 150px); margin: auto; padding: 85px clamp(24px, 3.35vw, 70px); }
.inner-page.download-page, .inner-page.history-page, .inner-page.profile-page { padding-top: 32px; }
.download-page > h1:first-child, .history-page > h1:first-child, .profile-page > h1:first-child { margin-top: 0; }
.info-panel { margin: 20px 0; padding: 26px; }
.info-panel strong { display: block; margin-top: 10px; overflow-wrap: anywhere; font-size: 19px; }
.info-panel h2 { margin: 11px 0 16px; font-size: 25px; }
.info-panel p { max-width: 680px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.info-panel form { display: inline-block; }
.profile-actions { display: flex; align-items: center; gap: 25px; margin-top: 26px; }
.text-button { padding: 12px 0; border: 0; color: var(--muted); background: none; text-decoration: underline; }
.text-button:hover { color: var(--text); }
.download-panel { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin: 30px 0 14px; padding: 27px; }
.download-panel h2 { margin: 9px 0; font-size: 29px; }
.download-panel p, .download-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.download-panel > div:first-child { min-width: 0; }
.download-panel p { overflow-wrap: anywhere; }
.download-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; margin-top: 30px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.download-tabs[hidden], .download-platform[hidden] { display: none; }
.download-tabs button { flex: 1 1 auto; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.download-tabs button:hover { color: var(--text); }
.download-tabs button[aria-selected="true"] { background: var(--lime); color: var(--bg); }
.download-platform .download-panel { margin-top: 18px; }
.download-actions a[aria-disabled="true"] { opacity: .6; cursor: wait; }
.hash-panel { padding: 20px 27px; }
.hash-panel code { display: block; margin-top: 8px; overflow-wrap: anywhere; color: #c9d2d4; font-size: 12px; }
html[dir="rtl"] .hash-panel code { text-align: left; }
.download-note { margin-top: 22px; }
.download-feedback { min-height: 20px; margin: 0; color: var(--lime); font-size: 12px; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px 35px; }
.release-notes, .release-entry { margin: 14px 0; padding: 20px 27px; border: 1px solid var(--line); background: #151b20; }
.release-notes h3, .release-entry h3 { margin: 16px 0 6px; font-size: 14px; }
.release-notes ul, .release-entry ul { margin: 8px 0; padding-inline-start: 20px; }
.release-notes li, .release-entry li, .release-notes p, .release-entry p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.release-entry h2 { margin: 0; font-size: 22px; }
.release-meta { margin: 4px 0 0; color: var(--soft); font-size: 12px; }
.history-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin: 30px 0; padding: 22px 27px; border: 1px solid var(--line); background: #151b20; }
.history-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 650; }
.history-form input, .history-form select { height: 46px; padding: 0 13px; border: 1px solid #46515a; border-radius: 2px; outline: none; color: var(--text); background: #10161b; font: inherit; }
.history-form input { width: min(340px, 80vw); font-family: ui-monospace, monospace; }
.history-form input:focus, .history-form select:focus { border-color: var(--lime); }
.form-error { flex-basis: 100%; margin: 0; padding: 11px; border-left: 2px solid var(--coral); background: #cb706214; font-size: 13px; }
.docs-page { max-width: 1230px; min-height: calc(100vh - 150px); margin: auto; padding: 32px clamp(24px, 3.35vw, 70px) 100px; }
.docs-page h1 { margin: 20px 0; font-size: clamp(48px, 6vw, 88px); line-height: 1.04; letter-spacing: -.06em; }
.docs-page > h1:first-child, .docs-page > .back-link + h1 { margin-top: 0; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.docs-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); background: #151b20; text-decoration: none; }
.docs-card span, .install-toc > span, .step-num, .docs-next > span { color: var(--lime); font-size: 10px; font-weight: 720; letter-spacing: .2em; }
.docs-card h2 { margin: 24px 0 8px; font-size: 25px; line-height: 1.12; letter-spacing: -.035em; }
.docs-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.docs-card b { display: inline-block; margin-top: 15px; color: var(--lime); font-size: 12px; }
.docs-card-active:hover { border-color: var(--lime); }
.docs-card-muted { opacity: .55; }
.docs-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.docs-legal h2 { margin: 0 0 22px; font-size: 25px; letter-spacing: -.035em; }
.docs-legal-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.docs-legal-links a { color: var(--muted); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.docs-legal-links a:hover { color: var(--lime); }
.back-link { display: block; width: fit-content; margin-bottom: 16px; color: var(--muted); font-size: 12px; text-decoration: none; }
.back-link:hover { color: var(--lime); }
.install-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 75px; margin-top: 62px; border-top: 1px solid var(--line); }
.install-toc { position: sticky; top: 25px; align-self: start; display: flex; flex-direction: column; gap: 18px; padding-top: 32px; }
.install-toc > span { margin-bottom: 13px; }
.install-toc a { color: var(--muted); font-size: 12px; text-decoration: none; }
.install-toc a:hover { color: var(--lime); }
.install-steps section { padding: 35px 0 39px; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.install-steps h2 { margin: 12px 0 14px; font-size: clamp(26px, 3vw, 41px); letter-spacing: -.04em; }
.install-steps p { max-width: 690px; margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.install-steps p:last-child { margin-bottom: 0; }
.install-steps a { color: var(--lime); }
.install-steps strong { color: var(--text); font-weight: 650; }
.install-steps .step-note { margin-top: 21px; padding: 13px 17px; border-left: 2px solid var(--lime); background: #b9fa420c; font-size: 13px; }
.install-steps kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); font: inherit; }
.install-license-figure { margin: 24px 0; }
.install-license-screenshot { position: relative; width: 288px; max-width: 100%; }
.install-license-screenshot img { display: block; width: 100%; height: auto; }
.install-license-highlight { position: absolute; left: 2.08%; top: 81.13%; width: 95.84%; height: 3.48%; border: 3px solid var(--lime); border-radius: 5px; box-sizing: border-box; pointer-events: none; }
.install-license-figure figcaption { max-width: 420px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.docs-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 45px; }
.docs-intro { max-width: 820px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.docs-intro p { margin: 0 0 14px; }
.docs-toc { max-height: calc(100dvh - 50px); overflow-y: auto; gap: 0; padding-bottom: 16px; scrollbar-width: thin; }
.docs-toc a { padding: 7px 6px 7px 0; line-height: 1.5; }
.docs-toc a:focus-visible, .docs-table-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.docs-content { min-width: 0; }
.docs-content ul, .docs-content ol { margin: 0 0 18px; padding-inline-start: 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.docs-content li { margin-bottom: 8px; }
.docs-content section { scroll-margin-top: 28px; }
.docs-content h2 { overflow-wrap: anywhere; }
.docs-command { color: var(--text); font-weight: 650; }
.docs-table-scroll { max-width: 100%; margin: 20px 0; overflow-x: auto; }
.docs-content table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.docs-content th, .docs-content td { border: 1px solid var(--line); padding: 13px 15px; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.docs-content th { color: var(--text); background: #1b242c; font-weight: 650; }
.docs-content td { color: var(--muted); }
.docs-content th:first-child, .docs-content td:first-child { width: 34%; }
.docs-content tbody tr:nth-child(even) { background: #151b20; }
.docs-related { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 40px; }
.notice-panel { margin-top: 35px; padding: 25px; color: var(--text); font-size: 15px; line-height: 1.6; }
.notice-panel p { margin: 0 0 12px; }
.notice-panel p:last-child { margin-bottom: 0; }
.notice-panel a { color: var(--lime); }
.notice-panel strong { overflow-wrap: anywhere; color: var(--lime); }
.notice-links { display: flex; gap: 20px; margin-top: 23px; color: var(--muted); font-size: 12px; }
.notice-links a:hover { color: var(--lime); }

.legal-page { max-width: 1000px; }
.legal-page h1 { font-size: clamp(30px, 5vw, 64px); overflow-wrap: anywhere; }
.legal-toc { margin: 32px 0; padding: 22px; border: 1px solid var(--line); }
.legal-toc div { display: flex; flex-direction: column; gap: 12px; }
.legal-toc a { color: var(--muted); font-size: 13px; line-height: 1.6; text-decoration: none; }
.legal-toc a:hover { color: var(--lime); }
.legal-text { max-width: 75ch; color: var(--muted); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.legal-text p { margin: 0 0 18px; }
.legal-text h2 { margin: 38px 0 18px; color: var(--text); font-size: 21px; line-height: 1.5; scroll-margin-top: 25px; }
.legal-original { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 25px; letter-spacing: -.035em; scroll-margin-top: 25px; }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.form-panel .privacy-consent { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; font-weight: 400; line-height: 1.7; }
.form-panel .privacy-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; padding: 0; accent-color: var(--lime); }
.privacy-consent a { color: var(--lime); }
.cookie-settings { padding: 0; border: 0; color: inherit; background: none; font: inherit; letter-spacing: inherit; cursor: pointer; }
.cookie-settings:hover { color: var(--lime); }
.cookie-settings[hidden] { display: none; }
.cookie-dialog { position: fixed; inset: auto 16px 16px auto; z-index: 30; margin: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); box-shadow: 0 24px 90px #0009; overflow: auto; }
.cookie-dialog h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.035em; }
.cookie-dialog p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.cookie-details { color: var(--lime); font-size: 13px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cookie-actions .button { flex: 1 1 180px; padding: 14px 18px; white-space: normal; }
.cookie-dialog button:focus-visible, .cookie-dialog a:focus-visible, .cookie-settings:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

@media (min-width: 721px) {
  html:lang(ru) .hero-copy { container-type: inline-size; }
  html:lang(ru) .hero h1 { font-size: min(clamp(58px, 5.45vw, 98px), 12cqi); }
  html:lang(ru) .hero-title-line { white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 1190px) {
  html:lang(ru) .hero h1 { font-size: min(clamp(57px, 9vw, 92px), 12cqi); }
}
@media (max-width: 1190px) {
  .site-header { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .register-intro { min-height: calc(100svh - 130px - 130px); }
  .brand { min-width: auto; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .header-trial { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(57px, 9vw, 92px); }
  .hero-visual { max-width: 1000px; }
  .demo-grid { gap: 13px; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .register-page { grid-template-columns: minmax(0, 1fr); gap: 35px; min-height: 0; }
  .register-intro { display: block; min-height: 0; }
  .register-intro .register-title { font-size: min(64px, var(--register-title-size)); }
}
@media (max-width: 720px) {
  .site-header {
    position: relative;
    z-index: 10;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 64px;
    padding: 10px 16px;
  }
  .brand { flex: 0 0 auto; }
  .brand .apc-logo { width: 68px; height: 28px; }
  .brand span, .main-nav { display: none; }
  .language-picker { margin-inline-start: auto; }
  .language-picker summary { min-width: 40px; width: 40px; padding: 0; }
  .language-code { display: none; }
  .header-trial {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 104px;
    min-height: 41px;
    margin-left: 0;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }
  .mobile-nav { display: block; flex: 0 0 auto; }
  .mobile-nav summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 3px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .mobile-nav-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 9px 16px 15px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 35px #0008;
  }
  .mobile-nav-panel a { padding: 12px 4px; text-decoration: none; }
  .mobile-nav-panel a[aria-current] { color: var(--lime); }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: clamp(24px, 9vw, 64px); }
  .hero-title-line { white-space: nowrap; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { flex: 1; }
  .hero .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero .hero-actions .button {
    min-width: 0;
    padding: 8px 6px;
    gap: 6px;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
  .hero .hero-actions .play-icon { width: 12px; height: 12px; }
  .hero-facts { margin-top: 24px; }
  .section-heading { display: block; }
  .demo-grid { grid-template-columns: 1fr; gap: 34px; }
  .features { padding-top: 75px; }
  .feature-row { grid-template-columns: 35px 1fr; gap: 10px; }
  .feature-row small { grid-column: 2; justify-self: start; text-align: left; }
  .closing { margin-top: 75px; margin-bottom: 60px; }
  .site-footer { padding-top: 28px; }
  .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 28px; }
  .footer-links { justify-content: flex-start; }
  .form-page { grid-template-columns: 1fr; gap: 35px; min-height: 0; padding-top: 55px; padding-bottom: 60px; }
  .register-intro { display: block; min-height: 0; }
  .form-intro h1, .inner-page h1, .notice-page h1 { font-size: 50px; }
  .register-page { grid-template-columns: minmax(0, 1fr); }
  .register-intro .register-title { font-size: min(50px, var(--register-title-size)); }
  .inner-page, .notice-page { padding-top: 60px; }
  .download-panel { align-items: flex-start; flex-direction: column; }
  .docs-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .docs-card { min-height: 170px; padding: 20px; }
  .docs-card h2 { margin-top: 18px; }
  .install-layout { display: block; margin-top: 35px; }
  .install-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px 18px; padding: 22px 0; }
  .install-toc > span { flex-basis: 100%; margin-bottom: 0; }
  .docs-toc { max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
  .docs-toc > span { grid-column: 1 / -1; margin-bottom: 12px; }
  .docs-toc a { padding: 7px 0; }
  .docs-content th, .docs-content td { padding: 10px 9px; }
  .docs-content table { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
