/* Landing-only design system, independent of application UI tokens. */

:root {
  --bg: #111413;
  --surface: #191d1a;
  --surface-2: #202620;
  --ink: #f2f4ed;
  --muted: #a4aca3;
  --line: #343b33;
  --lime: #d0f99c;
  --dark: #172014;
  --font: Inter,Arial,sans-serif;
  --display: 'Space Grotesk',Inter,Arial,sans-serif;
  --mono: Consolas,monospace;
  --shell: 1280px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.055em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

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

button:focus-visible,a:focus-visible,[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 6px;
}

::selection {
  background: var(--lime);
  color: var(--dark);
}

[hidden] {
  display: none !important;
}

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

.accent {
  color: var(--lime);
}

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

.mono,.eyebrow,.mini-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 54px;
  padding: 14px 22px;
  background: var(--lime);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--lime);
  border-radius: 3px;
  transition: background .2s,transform .2s;
}

.button:hover {
  background: #e0ffb8;
  transform: translateY(-2px);
}

.button>span:last-child:not(:first-child) {
  font-size: 21px;
  line-height: 1;
}

.button-small {
  min-height: 42px;
  padding: 8px 15px;
  gap: 22px;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  min-height: 44px;
}

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

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--lime);
  color: var(--dark);
  padding: 12px;
}

.skip:focus {
  top: 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.5px;
  direction: ltr;
  flex-shrink: 0;
}

.brand-dot {
  color: var(--lime);
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  gap: 24px;
  margin-inline: auto;
}

.desktop-nav a,.sign-in {
  font-size: 12px;
  color: #c0c6be;
  white-space: nowrap;
}

.desktop-nav a:hover,.sign-in:hover {
  color: var(--lime);
}

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

.language {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #626b60;
  direction: ltr;
}

.lang__btn {
  background: none;
  color: var(--muted);
  min-height: 36px;
  min-width: 28px;
  padding: 4px;
  font-size: 11px;
}

.lang__btn[aria-pressed=true] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: transparent;
  min-width: 44px;
  height: 44px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 6px 0;
}

.nav-drawer {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.nav-drawer a {
  display: block;
  padding: 12px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 76px;
  padding-bottom: 54px;
  min-height: 680px;
}

.hero-copy {
  padding-bottom: 24px;
}

.hero h1 {
  font-size: clamp(54px,5.5vw,82px);
  line-height: 1.04;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.hero-lede {
  max-width: 450px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}

.play-icon {
  font-size: 23px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 38px;
}

.tiny-cross {
  font: 22px var(--mono);
  color: var(--lime);
}

.hero-visual {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-topline,.visual-bottomline {
  font: 10px var(--mono);
  letter-spacing: .1em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visual-topline {
  margin-bottom: 12px;
}

.architecture {
  width: 100%;
  overflow: visible;
}

.visual-bottomline {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: -18px;
  letter-spacing: 0;
}

.visual-bottomline>span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.visual-bottomline i {
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
}

.visual-bottomline>span:last-child {
  font-size: 20px;
}

.flow {
  stroke-dasharray: 5 8;
  animation: flow 8s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -104;
  }
}

.connections {
  border-block: 1px solid var(--line);
  padding: 25px 0 32px;
}

.connection-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 28px;
}

.connection-heading .mono {
  font-size: 10px;
}

.section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 64px;
  margin-bottom: 48px;
}

h2 {
  font-size: clamp(36px,4vw,56px);
}

.section-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  max-width: 370px;
}

.capability-tabs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  gap: 12px;
}

.capability-tabs button {
  background: none;
  display: flex;
  align-items: center;
  text-align: start;
  gap: 12px;
  min-height: 70px;
  padding: 16px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
}

.capability-tabs button>span:first-child {
  font: 10px var(--mono);
  color: #84927f;
}

.capability-tabs button>span:last-child {
  margin-inline-start: auto;
  font-size: 18px;
  padding-inline-end: 12px;
}

.capability-tabs button[aria-selected=true] {
  border-color: var(--lime);
  color: var(--lime);
}

.capability-tabs button:hover {
  color: var(--ink);
}

.capability-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: center;
  min-height: 384px;
  padding: 24px 0;
}

.capability-copy h3 {
  font-size: 32px;
  margin: 18px 0;
}

.mini-label {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: .08em;
}

.capability-copy p {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 18px;
  font-size: 12px;
  color: #ced4c9;
}

.check-list li {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list li:before {
  content: '↳';
  color: var(--lime);
  font-family: var(--mono);
}

.capability-copy .text-link {
  font-size: 12px;
}

.preview,.code-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font: 10px var(--mono);
  color: var(--muted);
}

.preview-bar>span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preview-bar>span:last-child {
  font-size: 9px;
}

.pipeline-canvas {
  display: flex;
  align-items: center;
  padding: 36px 28px;
  background-image: radial-gradient(#3b4435 .7px,transparent .7px);
  background-size: 15px 15px;
  direction: ltr;
}

.pipeline-node {
  background: #20251f;
  border: 1px solid #4a5345;
  border-radius: 4px;
  padding: 12px;
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.pipeline-node strong {
  font-size: 11px;
  font-weight: 500;
}

.pipeline-node small {
  font: 9px var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.node-icon {
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 5px;
}

.node-output {
  border-color: #99b47d;
}

.node-output .node-icon {
  color: var(--lime);
}

.pipeline-edge {
  height: 1px;
  background: #829b6d;
  width: 30px;
  flex-shrink: 0;
  position: relative;
}

.pipeline-edge:after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--lime);
}

.preview-table {
  margin: 0 20px 20px;
  font: 11px var(--mono);
  direction: ltr;
}

.preview-table>div {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 10px 12px;
  border-bottom: 1px solid #30372f;
  color: var(--muted);
}

.preview-table>div:first-child {
  background: #252c23;
  color: #c1ceba;
  font-size: 10px;
}

.preview-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  color: var(--muted);
  font: 10px/1.6 var(--mono);
}

.relationship-map {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 45px 20px;
  background-image: radial-gradient(#3b4435 .7px,transparent .7px);
  background-size: 16px 16px;
  direction: ltr;
}

.entity {
  display: grid;
  text-align: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 22px;
}

.entity strong {
  font-size: 15px;
}

.entity small {
  font: 10px var(--mono);
}

.entity-accent {
  border-color: #859c70;
  color: var(--lime);
}

.relation-label {
  font: 10px var(--mono);
  color: var(--muted);
}

.relationship-caption {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.chart-preview {
  height: 300px;
  display: flex;
  gap: 20px;
  padding: 30px;
  direction: ltr;
}

.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font: 10px var(--mono);
  color: var(--muted);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--line) 25%);
}

.chart-bars i {
  width: 8%;
  height: var(--bar);
  background: #738465;
}

.chart-bars i:nth-child(2n) {
  background: var(--lime);
}

.workflow {
  list-style: none;
  margin: 0;
  padding: 20px 28px;
}

.workflow li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.workflow li:last-child {
  border: 0;
}

.workflow li>span {
  font: 12px var(--mono);
  color: var(--lime);
}

.workflow strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.workflow small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.workflow b {
  margin-inline-start: auto;
  color: var(--lime);
  font-weight: 400;
}

.model-section {
  background: #1a2019;
  border-block: 1px solid var(--line);
  padding: 80px 0;
}

.model-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
}

.model-grid .section-intro {
  margin: 28px 0;
  max-width: 420px;
}

.model-art {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 480px;
  width: 100%;
  background-image: radial-gradient(#44543a 1px,transparent 1px);
  background-size: 24px 24px;
  direction: ltr;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid #526b42;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

.orbit-one {
  width: 44%;
  height: 44%;
}

.orbit-two {
  width: 68%;
  height: 68%;
}

.orbit-three {
  width: 92%;
  height: 92%;
  border-style: dashed;
  border-color: #3d4e32;
}

.orbit-core {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%,-50%);
  font: 600 40px var(--display);
  letter-spacing: -2px;
}

.orbit-core span {
  color: var(--lime);
}

.orbit-label {
  position: absolute;
  font: 10px var(--mono);
  letter-spacing: .1em;
  background: #25301f;
  border: 1px solid #586e46;
  padding: 10px 14px;
  color: var(--lime);
  border-radius: 3px;
}

.orbit-a {
  left: 14%;
  top: 19%;
}

.orbit-b {
  right: 0;
  top: 45%;
}

.orbit-c {
  bottom: 20%;
  left: 10%;
}

.orbit-point {
  position: absolute;
  border: 5px solid #1a2019;
  outline: 1px solid #879f72;
  width: 17px;
  height: 17px;
  background: var(--lime);
  border-radius: 50%;
}

.point-a {
  left: 62%;
  top: 17%;
}

.point-b {
  left: 26%;
  top: 43%;
}

.point-c {
  left: 65%;
  bottom: 25%;
}

.model-coordinate {
  position: absolute;
  bottom: 0;
  left: 0;
  font: 9px var(--mono);
  letter-spacing: .15em;
  color: var(--muted);
}

.model-details>div {
  display: flex;
  gap: 18px;
  border-top: 1px solid #36412f;
  padding: 16px 0;
  font-size: 12px;
}

.model-details span {
  color: var(--lime);
  font: 10px/2 var(--mono);
}

.journey {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-block: 1px solid var(--line);
}

.journey article {
  padding: 30px 32px 32px 0;
}

.journey article+article {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 32px;
}

.journey-number {
  display: flex;
  justify-content: space-between;
  color: var(--lime);
  font: 12px var(--mono);
  margin-bottom: 44px;
}

.journey-number span {
  font-size: 24px;
  color: #77836f;
}

.journey h3 {
  font-size: 25px;
  margin-bottom: 16px;
}

.journey p {
  font-size: 13px;
  color: var(--muted);
  max-width: 290px;
  min-height: 65px;
}

.journey a {
  display: inline-block;
  padding-top: 24px;
  font-size: 12px;
  color: #d5dbcf;
}

.journey a:hover {
  color: var(--lime);
}

.foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.foundation-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  scroll-margin-top: 110px;
}

.foundation-card h3 {
  font-size: 31px;
  letter-spacing: -.04em;
}

.foundation-card>p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 450px;
  margin-top: 20px;
}

.card-bottom {
  display: block;
  margin-top: 32px;
  font: 9px var(--mono);
  letter-spacing: .08em;
  color: #b0b9a7;
}

.access-art {
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: ltr;
}

.access-art>span:not(.access-lock) {
  font: 9px var(--mono);
  color: var(--muted);
  border: 1px solid #4c5745;
  padding: 8px;
  border-radius: 3px;
}

.access-lock {
  font-size: 46px;
  color: var(--lime);
  border: 1px solid #6b8457;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 8px;
}

.storage-art {
  height: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  direction: ltr;
}

.storage-art>div {
  display: flex;
  gap: 5px;
  width: 80%;
  transform: skewY(-8deg);
}

.storage-art i {
  height: 48px;
  flex: 1;
  background: #91b575;
  border: 1px solid #bed8a8;
}

.storage-art i:nth-child(n+5) {
  background: #516444;
  border-color: #6c855a;
}

.storage-art i:nth-child(n+9) {
  background: #2b3526;
  border-color: #526448;
}

.storage-art>span {
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: .1em;
}

.build-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.build-section .section-intro {
  margin: 24px 0;
}

.code-window pre {
  margin: 0;
  padding: 24px 30px;
  font: 12px/1.95 var(--mono);
  overflow: auto;
  color: #ccd5c5;
}

.code-comment {
  color: #96a58e;
}

.code-purple {
  color: #cdb6eb;
}

.code-lime {
  color: var(--lime);
}

.workspace-section {
  padding-bottom: 112px;
}

.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.workspace-heading .eyebrow {
  margin: 0;
}

.workspace-heading>p:last-child {
  font-size: 12px;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}

.app-grid a {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background .2s;
}

.app-grid a:hover {
  background: var(--surface-2);
}

.app-grid strong {
  font-family: var(--display);
  font-size: 17px;
  display: block;
  font-weight: 500;
}

.app-grid small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.app-grid a>span {
  float: right;
  color: var(--lime);
  font-size: 18px;
}

.cta-section {
  background: var(--lime);
  color: var(--dark);
  padding: 70px 0;
}

.cta-section .eyebrow {
  font-size: 10px;
}

.cta-section h2 {
  font-size: clamp(42px,5.3vw,76px);
  max-width: 1000px;
}

.cta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 40px;
}

.cta-bottom p {
  font-size: 14px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--lime);
}

.button-dark:hover {
  background: #2d3b25;
}

.cta-actions .text-link:hover {
  color: #425234;
}

.cta-section :focus-visible {
  outline-color: var(--dark);
}

.footer {
  padding-top: 56px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer>div:first-child p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

.footer nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  align-items: flex-start;
}

.footer nav a:hover {
  color: var(--lime);
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font: 10px var(--mono);
  color: var(--muted);
}

html[lang=fa] {
  --font: Vazirmatn,Arial,sans-serif;
  --display: Vazirmatn,Arial,sans-serif;
  --mono: Vazirmatn,Arial,sans-serif;
}

html[lang=fa] h1,html[lang=fa] h2,html[lang=fa] h3 {
  letter-spacing: -.025em;
  line-height: 1.35;
}

html[lang=fa] .hero h1 {
  font-size: clamp(44px,4.7vw,70px);
}

html[lang=fa] .eyebrow,html[lang=fa] .mini-label {
  letter-spacing: 0;
}

html[lang=fa] .brand,html[lang=fa] .orbit-core {
  font-family: 'Space Grotesk',sans-serif;
}

html[lang=fa] .hero-visual {
  direction: ltr;
}

html[lang=fa] .architecture text {
  font-family: Consolas,monospace;
}

html[lang=fa] .code-window pre {
  font-family: Consolas,monospace;
}

html[lang=fa] .app-grid a>span {
  float: left;
}

@media (min-width:1500px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 72px;
    min-height: 760px;
  }
}

@media (max-width:1180px) {
  .shell {
    width: calc(100% - 64px);
  }
  .nav-inner {
    gap: 24px;
  }
  .desktop-nav {
    gap: 16px;
  }
  .nav-actions {
    gap: 16px;
  }
  .nav-actions .sign-in {
    display: none;
  }
  .hero h1 {
    font-size: 6vw;
  }
  .hero-actions {
    gap: 16px;
  }
  .hero-actions .button {
    gap: 18px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .capability-panel {
    gap: 40px;
  }
  .model-grid,.build-section {
    gap: 56px;
  }
  .pipeline-canvas {
    padding-inline: 20px;
  }
  .pipeline-edge {
    width: 18px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width:960px) {
  .desktop-nav {
    display: none;
  }
  .nav-actions {
    margin-inline-start: auto;
  }
  .hero {
    padding-top: 58px;
    min-height: 580px;
    gap: 10px;
  }
  .hero h1 {
    font-size: 6.2vw;
  }
  .hero-lede {
    font-size: 14px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .hero-note {
    margin-top: 22px;
  }
  .section {
    padding-block: 80px;
  }
  .section-heading {
    gap: 40px;
  }
  .section-intro {
    max-width: 320px;
  }
  .capability-tabs button {
    font-size: 11px;
    gap: 8px;
  }
  .capability-tabs button>span:last-child {
    display: none;
  }
  .capability-panel {
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
  }
  .pipeline-canvas {
    padding-inline: 12px;
  }
  .pipeline-node {
    padding: 8px;
  }
  .pipeline-edge {
    width: 12px;
  }
  .model-grid {
    gap: 40px;
  }
  .foundation-card {
    padding: 28px;
  }
  .access-art {
    gap: 6px;
  }
  .access-art>span:not(.access-lock) {
    font-size: 8px;
    padding: 5px;
  }
  .build-section {
    gap: 40px;
  }
  .app-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .workspace-section {
    padding-bottom: 80px;
  }
  .footer nav {
    gap: 20px;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width:700px) {
  html {
    scroll-padding-top: 90px;
  }
  .shell {
    width: calc(100% - 40px);
  }
  .nav-inner {
    min-height: 72px;
    gap: 16px;
  }
  .brand {
    font-size: 28px;
  }
  .nav-actions {
    gap: 12px;
  }
  .nav-actions>.button {
    display: none;
  }
  .language {
    gap: 1px;
  }
  .lang__btn {
    min-height: 44px;
    min-width: 30px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 32px;
    gap: 38px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(45px,9.6vw,68px);
    white-space: normal;
  }
  .hero-lede {
    font-size: 14px;
    max-width: 440px;
    margin-top: 24px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: .08em;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 26px;
  }
  .hero-actions .button {
    padding-inline: 16px;
    font-size: 12px;
  }
  .hero-note {
    font-size: 10px;
    margin-top: 24px;
  }
  .hero-visual {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }
  .visual-topline {
    font-size: 9px;
  }
  .architecture {
    margin-block: 8px;
  }
  .visual-bottomline {
    font-size: 10px;
  }
  .connections {
    padding: 24px 0;
  }
  .connection-heading {
    display: block;
    margin-bottom: 20px;
  }
  .connection-heading .mono {
    display: block;
    margin-top: 8px;
    font-size: 9px;
  }
  .section {
    padding-block: 64px;
  }
  .section-heading {
    display: block;
    margin-bottom: 24px;
  }
  h2 {
    font-size: 39px;
  }
  .section-heading .section-intro {
    margin-top: 24px;
    max-width: 440px;
  }
  .capability-tabs {
    grid-template-columns: repeat(2,1fr);
    gap: 0 20px;
    margin-bottom: 16px;
  }
  .capability-tabs button {
    font-size: 12px;
    min-height: 58px;
  }
  .capability-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
    min-height: 0;
  }
  .capability-copy h3 {
    font-size: 31px;
    max-width: 400px;
  }
  .capability-copy p {
    max-width: 440px;
  }
  .preview-bar {
    padding: 13px 14px;
    font-size: 9px;
  }
  .preview-bar>span:last-child {
    font-size: 8px;
  }
  .pipeline-canvas {
    padding: 28px 14px;
  }
  .pipeline-node {
    padding: 10px;
  }
  .pipeline-edge {
    width: 16px;
  }
  .preview-table {
    margin-inline: 14px;
  }
  .preview-foot {
    padding-inline: 14px;
    font-size: 9px;
  }
  .model-section {
    padding: 56px 0;
  }
  .model-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .model-art {
    max-width: 380px;
    margin-inline: auto;
    order: 2;
  }
  .model-grid .section-intro {
    max-width: 440px;
  }
  .journey {
    grid-template-columns: 1fr;
  }
  .journey article,.journey article+article {
    padding: 28px 0;
    border-inline-start: 0;
  }
  .journey article+article {
    border-top: 1px solid var(--line);
  }
  .journey-number {
    margin-bottom: 20px;
  }
  .journey p {
    max-width: none;
    min-height: 0;
  }
  .journey a {
    padding-top: 16px;
  }
  .foundation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .foundation-card {
    padding: 28px;
  }
  .foundation-card h3 {
    font-size: 30px;
  }
  .access-art {
    gap: 12px;
  }
  .access-art>span:not(.access-lock) {
    font-size: 9px;
    padding: 8px;
  }
  .build-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .code-window pre {
    font-size: 11px;
    padding: 20px;
  }
  .workspace-heading {
    display: block;
  }
  .workspace-heading>p:last-child {
    margin-top: 12px;
  }
  .app-grid a {
    padding: 20px 16px;
  }
  .app-grid strong {
    font-size: 16px;
  }
  .app-grid small {
    font-size: 11px;
    max-width: 160px;
  }
  .workspace-section {
    padding-bottom: 64px;
  }
  .cta-section {
    padding-block: 48px;
  }
  .cta-section h2 {
    font-size: 42px;
  }
  .cta-bottom {
    display: block;
    margin-top: 26px;
  }
  .cta-actions {
    margin-top: 26px;
    gap: 12px;
  }
  .footer {
    padding-top: 40px;
    gap: 28px;
  }
  .footer nav {
    flex-wrap: wrap;
    gap: 12px 22px;
  }
  .footer nav a {
    min-height: 32px;
  }
  .footer-bottom {
    gap: 18px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .footer-bottom>span:nth-child(2) {
    display: none;
  }
  html[lang=fa] .hero h1 {
    font-size: clamp(40px,9vw,60px);
  }
  html[lang=fa] h2 {
    font-size: 34px;
  }
}

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

/* Keep the smallest phone viewport free of intrinsic-size overflow. */

.architecture {
  overflow: hidden;
}

.foundation-card {
  min-width: 0;
}

.foundation-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

@media (max-width:700px) {
  .foundation-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width:380px) {
  .foundation-card {
    padding: 24px;
  }
  .access-art {
    gap: 5px;
  }
  .access-art>span:not(.access-lock) {
    font-size: 8px;
    padding: 5px;
  }
  .access-lock {
    padding: 7px 10px;
    font-size: 36px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .text-link {
    font-size: 11px;
    gap: 8px;
  }
  .pipeline-node {
    padding: 8px;
  }
  .pipeline-edge {
    width: 10px;
  }
  .entity {
    padding: 16px;
  }
  .relationship-map {
    gap: 12px;
  }
}

/* Motion language: connected systems, flowing data, deliberate entrances. */
.visual-tools,
.connection-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}
.visual-topline { min-height: 38px; }

/* Static lists are the default; JavaScript supplies the duplicate loop. */
.connector-marquee {
  overflow: hidden;
  direction: ltr;
  padding-block: 5px;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee-lane + .marquee-lane { margin-top: 14px; }
.marquee-track { width: 100%; }
.marquee-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.connector-chip {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 16px 24px;
  border: 1px solid #30382e;
  border-radius: 5px;
  background: #181d17;
  color: #bec9b8;
  font: 500 16px var(--display);
  white-space: nowrap;
  transition: background 200ms, border-color 200ms, color 200ms;
}
.connector-chip:hover { background: #232f1e; border-color: #779461; color: var(--lime); }
.connector-logo { width: 30px; height: 30px; flex-shrink: 0; }
.marquee-ready .marquee-track {
  display: flex;
  width: max-content;
  animation: connector-scroll 65s linear infinite;
}
.marquee-ready .marquee-group {
  flex-wrap: nowrap;
  flex-shrink: 0;
  justify-content: flex-start;
  padding-inline-end: 14px;
}
.marquee-ready .marquee-lane-reverse .marquee-track { animation-duration: 59s; animation-direction: reverse; }
.connector-marquee:hover .marquee-track,
.connector-marquee:focus-within .marquee-track { animation-play-state: paused; }
html[dir=rtl] .marquee-track { animation-direction: reverse; }
html[dir=rtl] .marquee-lane-reverse .marquee-track { animation-direction: normal; }
@keyframes connector-scroll { to { transform: translateX(-50%); } }

/* One-time hero entrance, kept short enough that it never gates reading. */
[data-motion=running] .hero-copy > * { animation: hero-arrive 800ms cubic-bezier(.16,1,.3,1) both; }
[data-motion=running] .hero-copy > :nth-child(2) { animation-delay: 70ms; }
[data-motion=running] .hero-copy > :nth-child(3) { animation-delay: 140ms; }
[data-motion=running] .hero-copy > :nth-child(4) { animation-delay: 210ms; }
[data-motion=running] .hero-copy > :nth-child(5) { animation-delay: 280ms; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-visual { perspective: 1000px; }
.architecture {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 240ms ease-out;
}
.architecture-layer { transform-box: view-box; transform-origin: 50% 50%; }
.layer-apps { animation: layer-float-top 7s ease-in-out infinite; }
.layer-model { animation: layer-float-middle 7s ease-in-out infinite; }
.layer-core { animation: layer-float-middle 7s ease-in-out infinite; }
.layer-data { animation: layer-float-bottom 7s ease-in-out infinite; }
@keyframes layer-float-top { 0%,100% { transform: translateY(8px); } 50% { transform: translateY(-1px); } }
@keyframes layer-float-middle { 0%,100% { transform: translateY(4px); } 50% { transform: translateY(-4px); } }
@keyframes layer-float-bottom { 0%,100% { transform: translateY(-4px); } 50% { transform: translateY(8px); } }
.packet { fill: #efffd8; offset-rotate: 0deg; animation: packet-travel 4s linear infinite; }
.packet-one { offset-path: path('M196 322 L196 230 L320 159'); }
.packet-two { offset-path: path('M460 322 L460 230 L320 149'); animation-delay: -1.6s; }
.packet-three { offset-path: path('M320 238 L320 84'); animation-delay: -2.7s; }
@keyframes packet-travel { 0% { offset-distance: 0%; opacity: 0; } 12%,80% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.16,1,.3,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.journey article:nth-child(2), .foundation-card:nth-child(2) { transition-delay: 90ms; }
.journey article:nth-child(3) { transition-delay: 180ms; }
.app-grid a:nth-child(4n+2) { transition-delay: 50ms; }
.app-grid a:nth-child(4n+3) { transition-delay: 100ms; }
.app-grid a:nth-child(4n+4) { transition-delay: 150ms; }
.capability-panel:not([hidden]) .capability-copy { animation: panel-arrive 420ms ease-out both; }
.capability-panel:not([hidden]) .preview { animation: panel-arrive 550ms ease-out both; }
@keyframes panel-arrive { from { opacity: .3; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pipeline-edge:after { animation: pipeline-packet 2.6s ease-in-out infinite; }
.pipeline-edge:nth-of-type(2):after { animation-delay: 1.3s; }
@keyframes pipeline-packet { 0% { transform: translateX(-22px); opacity: 0; } 20%,75% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.node-output { animation: output-pulse 5.2s ease-in-out infinite; }
@keyframes output-pulse { 0%,70%,100% { border-color: #657957; } 80%,90% { border-color: #d0f99c; } }
.chart-bars i { transform-origin: bottom; animation: bar-arrive 800ms cubic-bezier(.16,1,.3,1) both; }
.chart-bars i:nth-child(2n) { animation-delay: 90ms; }
.chart-bars i:nth-child(3n) { animation-delay: 180ms; }
@keyframes bar-arrive { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
.workflow li { animation: workflow-step 6s linear infinite; }
.workflow li:nth-child(2) { animation-delay: 2s; }
.workflow li:nth-child(3) { animation-delay: 4s; }
@keyframes workflow-step { 0%,28% { color: var(--lime); } 34%,100% { color: var(--ink); } }
.orbit-satellite { position: absolute; left: 50%; top: 48%; border-radius: 50%; pointer-events: none; }
.orbit-satellite:after { content: ''; display: block; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px #d0f99c0d; }
.satellite-one { width: 68%; height: 68%; animation: satellite-orbit 24s linear infinite; }
.satellite-two { width: 92%; height: 92%; animation: satellite-orbit 36s linear infinite reverse; }
@keyframes satellite-orbit { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.storage-art i { animation: storage-wave 4s ease-in-out infinite; }
.storage-art i:nth-child(3n+2) { animation-delay: 300ms; }
.storage-art i:nth-child(3n) { animation-delay: 600ms; }
@keyframes storage-wave { 0%,65%,100% { transform: translateY(0); } 25%,40% { transform: translateY(-7px); } }
.button>span:last-child:not(:first-child), .app-grid a>span { transition: transform 200ms; }
.button:hover>span:last-child:not(:first-child), .app-grid a:hover>span { transform: translate(3px,-3px); }

/* Pause all continuing motion offscreen, in background tabs, or on request. */
.motion-scene:not(.is-scene-visible) *,
.motion-scene:not(.is-scene-visible) *:after,
[data-page-hidden] *, [data-page-hidden] *:after,
[data-motion=paused] *, [data-motion=paused] *:after {
  animation-play-state: paused !important;
}
[data-motion=paused] [data-reveal],
[data-motion=paused] .capability-copy,
[data-motion=paused] .preview,
[data-motion=paused] .chart-bars i {
  opacity: 1;
  transform: none;
  animation: none !important;
  transition: none;
}
[data-motion=paused] .architecture { transform: none; transition: none; }
@media (max-width:700px) {
  .connection-heading { display: flex; flex-direction: column; gap: 12px; }
  .connection-tools { justify-content: space-between; gap: 8px; }
  .connection-heading .mono { margin: 0; font-size: 8px; }
  .visual-tools { gap: 12px; }
  .visual-tools>span { display: none; }
  .connector-chip { min-height: 62px; padding: 14px 18px; font-size: 14px; gap: 12px; }
  .connector-logo { width: 26px; height: 26px; }
  .marquee-ready .marquee-track { animation-duration: 70s; }
  .marquee-ready .marquee-lane-reverse .marquee-track { animation-duration: 64s; }
}
@media (prefers-reduced-motion:reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .architecture { transform: none; }
  .orbit-satellite { transform: translate(-50%,-50%); }
  .packet { display: none; }
  .connector-marquee { overflow: visible; mask-image: none; }
  .marquee-ready .marquee-track { display: block; width: auto; transform: none; }
  .marquee-ready .marquee-group { flex-wrap: wrap; justify-content: center; padding: 0; }
  .marquee-group[aria-hidden=true] { display: none; }
  .connector-chip { min-width: 0; }
}
/* No script means a complete, still page rather than unpausable decoration. */
html:not([data-motion]) *,
html:not([data-motion]) *:before,
html:not([data-motion]) *:after {
  animation: none !important;
}
