/* ==========================================================================
   Autorix — marketing site
   Layout uses logical properties (inline-start/end) so the same rules work
   for left-to-right and right-to-left languages; [dir="rtl"] overrides only
   cover things that are genuinely directional (arrows, gradients, animation).
   ========================================================================== */

/* Dark tokens are the default; diagrams stay dark even inside light sections */
:root,
.theme-light .viz {
  --bg: #05080f;
  --bg-2: #080d18;
  --bg-3: #0c1322;
  --surface: rgba(8, 13, 24, 0.85);
  --ghost-bg: rgba(5, 8, 15, 0.35);
  --line: rgba(150, 180, 230, 0.12);
  --line-2: rgba(150, 180, 230, 0.22);
  --text: #e8eef8;
  --text-2: #a9b5c9;
  --muted: #6f7d95;
  --accent: #4fb6ff;
  --accent-2: #7af0c9;
  --accent-glow: rgba(79, 182, 255, 0.35);
  --danger: #ff7a7a;
}

.theme-light {
  --bg: #ffffff;
  --bg-2: #f3f6fb;
  --bg-3: #e9eff8;
  --surface: #ffffff;
  --ghost-bg: transparent;
  --line: rgba(10, 30, 70, 0.09);
  --line-2: rgba(10, 30, 70, 0.16);
  --text: #0a1222;
  --text-2: #4a5872;
  --muted: #687489; /* 4.7:1 on white, meets WCAG AA for small text */
  --accent: #1673d9;
  --accent-2: #0f9f78;
  --accent-glow: rgba(22, 115, 217, 0.25);
  --danger: #c62f3b;
  background-color: var(--bg);
  color: var(--text);
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --label-tracking: 0.16em;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 12px;
  --nav-h: 72px;
}

/* Hebrew: Heebo for Hebrew glyphs, Latin brand names keep Inter / JetBrains Mono */
:root[lang="he"] {
  --font: "Inter", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "Heebo", ui-monospace, Consolas, monospace;
  --label-tracking: 0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

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

/* Hidden until focused with the keyboard */
.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: #0a1222; color: #fff; font-weight: 500;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: progress; }
.arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--light { background: #fff; color: #05080f; }
.btn--light:hover { background: #dcecff; }
.theme-light .btn--light { background: var(--text); color: #fff; }
.theme-light .btn--light:hover { background: #1d2b45; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: var(--ghost-bg); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); }

/* Arrows point the way the text reads */
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow,
[dir="rtl"] .product:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 8px 30px -18px rgba(10, 30, 70, 0.35); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: 0.22em; font-size: 17px; direction: ltr; }
.logo__mark { width: 30px; height: 30px; color: var(--text); }
.logo__dot { fill: var(--accent); }

.nav__links { margin-inline-start: auto; display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { color: var(--text-2); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__cta { padding: 10px 18px; font-size: 14px; }
.nav__cta-mobile { display: none; }

.nav__links .lang-switch {
  font-size: 13px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
}
.nav__links .lang-switch:hover { border-color: var(--accent); }

.nav__burger {
  display: none;
  margin-inline-start: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text);
  transition: transform .25s, top .25s;
}
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 60px);
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(40, 80, 160, 0.28), transparent 70%),
    linear-gradient(180deg, #060b18 0%, #05080f 100%);
  overflow: hidden;
  isolation: isolate;
}
[dir="rtl"] .hero {
  background:
    radial-gradient(80% 60% at 30% 30%, rgba(40, 80, 160, 0.28), transparent 70%),
    linear-gradient(180deg, #060b18 0%, #05080f 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* darken the side where the text sits */
  --vignette-dir: 90deg;
  background:
    linear-gradient(var(--vignette-dir), rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.55) 45%, rgba(5, 8, 15, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
[dir="rtl"] .hero__vignette { --vignette-dir: 270deg; }
.hero__content { position: relative; padding-bottom: 56px; }
.hero__title { font-size: clamp(36px, 7vw, 84px); font-weight: 700; letter-spacing: -0.045em; }
.hero__lead { margin-top: 28px; max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  list-style: none; margin: 0; padding: 26px 0 40px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  border-top: 1px solid var(--line);
  position: relative;
}
.stats li { display: flex; flex-direction: column; gap: 8px; }
.stats__label { font-family: var(--mono); font-size: 11px; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--accent); }
.stats__value { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- HUD (decorative, always laid out left-to-right) ---------- */
.hud { position: absolute; z-index: 1; font-family: var(--mono); pointer-events: none; direction: ltr; }
.hud--track { top: 50%; right: 11%; animation: drift 14s ease-in-out infinite; }
[dir="rtl"] .hud--track { right: auto; left: 11%; }
.hud__box { position: relative; width: 150px; height: 104px; }
.hud__box i { position: absolute; width: 18px; height: 18px; border-color: var(--accent-2); border-style: solid; border-width: 0; }
.hud__box i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud__box i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud__box i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud__box i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud__tag {
  position: absolute; bottom: calc(100% + 8px); left: 0; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.12em; color: var(--accent-2);
  background: rgba(5, 8, 15, 0.6); padding: 3px 7px; border: 1px solid rgba(122, 240, 201, 0.35);
}
.hud__tag b { font-weight: 500; }
.hud__cross { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); }
.hud__cross::before, .hud__cross::after { content: ""; position: absolute; background: var(--accent-2); opacity: .8; }
.hud__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hud__cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.hud--telemetry {
  top: calc(var(--nav-h) + 40px); right: var(--gutter);
  border: 1px solid var(--line-2);
  background: rgba(8, 13, 24, 0.55);
  backdrop-filter: blur(6px);
  padding: 12px 16px;
  min-width: 210px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-2);
}
[dir="rtl"] .hud--telemetry { right: auto; left: var(--gutter); }
.hud--telemetry::before, .hud--telemetry::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--accent);
}
.hud--telemetry::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud--telemetry::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud__title { color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.hud--telemetry dl { margin: 0; display: grid; gap: 4px; }
.hud--telemetry dl div { display: flex; justify-content: space-between; gap: 16px; }
.hud--telemetry dt { color: var(--muted); }
.hud--telemetry dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 1.8s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 18px); }
  50% { transform: translate(-12px, 40px); }
  75% { transform: translate(24px, 12px); }
}
@keyframes pulse { 50% { opacity: .35; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section--alt {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(79, 182, 255, 0.10), transparent 70%),
              linear-gradient(180deg, transparent 60%, var(--bg-2) 100%);
}
.section--alt > .container { position: relative; }

.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head h2, .contact h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; }
.section__lead { margin-top: 22px; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); max-width: 620px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); padding: 34px 30px 38px; position: relative; transition: background .3s; }
.card:hover { background: var(--bg-3); }
.card::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .5s;
}
[dir="rtl"] .card::after { background: linear-gradient(270deg, var(--accent), transparent); }
.card:hover::after { width: 100%; }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; }
.card h3 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 15px; }

/* ---------- Domains ---------- */
.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.domain {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 26px; position: relative;
  transition: border-color .3s, transform .3s;
}
.domain:hover { border-color: var(--accent); transform: translateY(-4px); }
.domain svg { width: 56px; height: 56px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 34px; }
.domain:hover svg { stroke: var(--accent); }
.domain__code { position: absolute; top: 26px; inset-inline-end: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.domain h3 { font-size: 22px; margin-bottom: 8px; }
.domain p { color: var(--text-2); font-size: 15px; }

/* ---------- Products overview ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product {
  --glow-at: 100% 0%;
  display: flex; flex-direction: column; min-height: 300px;
  padding: 32px 30px; border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 80% at var(--glow-at), rgba(79, 182, 255, 0.12), transparent 60%),
    var(--bg-2);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
[dir="rtl"] .product { --glow-at: 0% 0%; }
.product:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 60px -30px var(--accent-glow); }
.product__tag {
  align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: var(--label-tracking); text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text-2);
}
.product h3 { margin: 56px 0 14px; font-size: clamp(28px, 3vw, 36px); }
.product p { color: var(--text-2); font-size: 15px; }
.product__more { margin-top: auto; padding-top: 28px; font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; gap: 8px; }
.product:hover .arrow { transform: translateX(3px); }

/* ---------- Product detail ---------- */
.detail { padding: clamp(80px, 11vw, 130px) 0; border-top: 1px solid var(--line); }
.detail__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.detail__grid--flip .detail__intro { order: 2; }
.detail__intro h2 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; letter-spacing: -0.045em; }
.detail__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text); line-height: 1.55; }
.detail__note { margin-top: 16px; color: var(--text-2); }

.specs { margin: 0; border-top: 1px solid var(--line-2); position: sticky; top: calc(var(--nav-h) + 24px); }
.specs div {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  padding: 17px 0; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.specs div:hover dt { color: var(--accent-2); }
.specs dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-top: 3px; transition: color .2s; }
.specs dd { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Visuals (technical diagrams stay left-to-right in every language) ---------- */
.viz {
  direction: ltr;
  margin: 40px 0 0; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
}
.theme-light .viz { box-shadow: 0 30px 60px -36px rgba(10, 30, 70, 0.45); }
.viz svg { width: 100%; height: auto; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
.viz text { fill: var(--text); font-size: 11px; letter-spacing: 0.08em; text-anchor: middle; }
.viz text.sub { fill: var(--muted); font-size: 10px; letter-spacing: 0.04em; }
.viz text.caption { fill: var(--accent); font-size: 10px; letter-spacing: 0.16em; text-anchor: start; }

.viz--pipeline .viz__nodes rect { fill: var(--bg-3); stroke: var(--line-2); }
.viz--pipeline .viz__nodes rect.hl { stroke: var(--accent); fill: rgba(79, 182, 255, 0.08); }
.viz__lines path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.viz__flow path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 14; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }

.viz--board .board { fill: rgba(16, 40, 44, 0.55); stroke: rgba(122, 240, 201, 0.35); }
.viz--board .holes circle { fill: var(--bg); stroke: rgba(122, 240, 201, 0.35); }
.viz--board .traces path { fill: none; stroke: rgba(122, 240, 201, 0.5); stroke-width: 1.2; stroke-dasharray: 3 6; animation: flow 1.6s linear infinite; }
.viz--board .som { fill: #0d1626; stroke: var(--line-2); }
.viz--board .chip { fill: #05080f; stroke: var(--accent); }
.viz--board .chip-t { fill: var(--text); font-size: 12px; font-weight: 500; }
.viz--board .chip-s { fill: var(--accent); font-size: 8.5px; }
.viz--board .ports rect { fill: var(--bg-3); stroke: var(--line-2); }

.viz--gcs { padding: 12px; }
.viz--gcs .win { fill: #070c17; stroke: var(--line-2); }
.viz--gcs .bar { fill: #0d1526; }
.viz--gcs .dot { fill: var(--line-2); }
.viz--gcs text.ui { fill: var(--text-2); font-size: 9px; text-anchor: start; letter-spacing: 0.12em; }
.viz--gcs text.ui--b { fill: var(--text); }
.viz--gcs .map path { fill: none; stroke: rgba(150, 180, 230, 0.10); stroke-width: 1; }
.viz--gcs .fence { fill: rgba(255, 170, 60, 0.04); stroke: rgba(255, 170, 60, 0.6); stroke-width: 1.2; stroke-dasharray: 6 5; }
.viz--gcs .route { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 6; animation: flow 1.4s linear infinite; }
.viz--gcs .wps circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.viz--gcs .veh { fill: var(--accent-2); }
.viz--gcs .veh--2 { fill: var(--text-2); }
.viz--gcs .veh-ring { fill: none; stroke: var(--accent-2); stroke-opacity: .5; animation: ring 2s ease-out infinite; transform-origin: 207px 152px; transform-box: view-box; }
.viz--gcs .panel { fill: #0b1220; stroke: var(--line); }
.viz--gcs .video { fill: #13233a; }
.viz--gcs .video-hills { fill: #1d3452; }
.viz--gcs .vbox { fill: none; stroke: var(--accent-2); stroke-width: 1.2; }
.viz--gcs .rows rect { fill: #101a2c; }
.viz--gcs .meter { fill: #101a2c; }
.viz--gcs .meter-fill { fill: var(--accent-2); }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Architecture chain ---------- */
.chain { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr; align-items: stretch; }
.chain__node {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); padding: 24px 22px;
}
.chain__node--core { border-color: rgba(79, 182, 255, 0.55); box-shadow: 0 0 0 1px rgba(79, 182, 255, 0.08), 0 20px 60px -30px var(--accent-glow); }
.chain__tag { font-family: var(--mono); font-size: 11px; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--accent); }
.chain__node h3 { margin: 16px 0 14px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.chain__node ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chain__node li { font-size: 14px; color: var(--text-2); padding-inline-start: 14px; position: relative; }
.chain__node li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 5px; height: 1px; background: var(--accent); }
.chain__link { position: relative; display: flex; align-items: center; }
.chain__link span {
  display: block; width: 100%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 24px 1px;
  animation: dash 0.9s linear infinite;
}
.chain__link::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px;
  border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
@keyframes dash { to { background-position: 24px 0; } }
@media (min-width: 721px) {
  /* horizontal chain flows right-to-left in RTL */
  [dir="rtl"] .chain__link span { animation-direction: reverse; }
  [dir="rtl"] .chain__link::after { right: auto; left: 2px; transform: translateY(-50%) rotate(-135deg); }
}

/* ---------- Ecosystem ---------- */
.eco { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); }
.eco__group { padding-block: 26px 10px; padding-inline: 0 22px; }
.eco__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eco ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eco li {
  font-size: 14px; color: var(--text); padding: 7px 12px;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2);
  transition: border-color .2s;
}
.eco li:hover { border-color: var(--accent); }

/* ---------- Contact request ---------- */
.contact {
  padding: clamp(80px, 12vw, 140px) 0;
  background:
    radial-gradient(60% 70% at 50% 100%, var(--accent-glow), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.contact__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.contact__card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(22px, 3.5vw, 36px);
  box-shadow: 0 40px 80px -50px rgba(10, 30, 70, 0.45);
}

.contact-form { display: grid; gap: 18px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--text); }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--bg);
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 115, 217, 0.15);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 13px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }

.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 9px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 7px 14px;
  font-size: 14px; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2);
  transition: border-color .2s, background .2s, color .2s;
}
.choice:hover span { border-color: var(--accent); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.contact-form__consent { font-size: 13px; color: var(--muted); }
.contact-form__consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact-form__status { font-size: 14px; color: var(--danger); }

.contact-form__success { text-align: center; padding: 28px 8px; outline: none; }
.contact-form__success svg, .result__icon { width: 56px; height: 56px; margin: 0 auto 22px; fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-form__success h3 { font-size: 24px; margin-bottom: 10px; line-height: 1.25; }
.contact-form__success p { color: var(--text-2); }

/* ---------- Form result pages (no-JavaScript fallback) ---------- */
.result { min-height: 72vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 0 80px; }
.result__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.result__inner h1 { font-size: clamp(30px, 4.2vw, 48px); max-width: 22ch; line-height: 1.15; }
.result__inner .section__lead { margin-inline: auto; }
.result__icon--error { stroke: var(--danger); }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(80px, 10vw, 120px); }
.legal__inner { max-width: calc(780px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.1; }
.legal__updated { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.legal__intro { margin-top: 32px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.legal h2 { margin: 44px 0 12px; font-size: 22px; letter-spacing: -0.01em; line-height: 1.3; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--bg); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; }
.footer__tag { margin-top: 16px; color: var(--text-2); max-width: 340px; font-size: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer__nav div { display: flex; flex-direction: column; gap: 10px; }
.footer__nav .eco__label { margin-bottom: 6px; }
.footer__nav a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer__nav a:hover { color: var(--text); }
.footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer__base .mono { letter-spacing: 0.14em; font-size: 12px; }

/* ---------- Hebrew typography ---------- */
/* Hebrew has no capitals; wide tracking and tight negative tracking both hurt legibility */
:root[lang="he"] .eyebrow,
:root[lang="he"] .specs dt { letter-spacing: var(--label-tracking); font-size: 13px; }
:root[lang="he"] .stats__label,
:root[lang="he"] .chain__tag,
:root[lang="he"] .eco__label,
:root[lang="he"] .product__tag { font-size: 12.5px; }
:root[lang="he"] h1,
:root[lang="he"] h2,
:root[lang="he"] h3,
:root[lang="he"] .hero__title,
:root[lang="he"] .detail__intro h2 { letter-spacing: -0.01em; line-height: 1.12; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .chain { grid-template-columns: 1fr 40px 1fr; row-gap: 40px; }
  .chain > .chain__link:nth-of-type(4) { display: none; }
  .eco { grid-template-columns: repeat(3, 1fr); }
  .hud--track { right: 8%; }
  [dir="rtl"] .hud--track { right: auto; left: 8%; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 40px -24px rgba(10, 30, 70, 0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { background: #fff; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav__links .lang-switch { align-self: flex-start; margin-top: 16px; padding: 6px 14px; font-size: 15px; border: 1px solid var(--line-2); }
  .nav__cta-mobile { display: inline-flex; justify-content: center; margin-top: 20px; }

  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .domains { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .product { min-height: 0; }
  .product h3 { margin-top: 36px; }
  .detail__grid { grid-template-columns: 1fr; }
  .detail__grid--flip .detail__intro { order: 0; }
  .specs { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .hud--track { display: none; }
}

@media (max-width: 720px) {
  .hud--telemetry { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero__vignette {
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.55) 0%, rgba(5, 8, 15, 0.75) 60%, var(--bg) 100%);
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:last-child { grid-column: 1 / -1; }
  .cards--3 { grid-template-columns: 1fr; }
  .card h3 { margin-top: 24px; }
  .chain { grid-template-columns: 1fr; row-gap: 0; }
  .chain > .chain__link:nth-of-type(4) { display: flex; }
  .chain__link { height: 40px; justify-content: center; }
  .chain__link span { width: 1px; height: 100%; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 1px 24px; animation-name: dash-v; }
  .chain__link::after { right: auto; top: auto; bottom: 2px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .eco { grid-template-columns: 1fr 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .footer__nav { gap: 32px 48px; }
  .viz { padding: 10px; }
}
@keyframes dash-v { to { background-position: 0 24px; } }

@media (max-width: 480px) {
  .domains { grid-template-columns: 1fr; }
  .eco { grid-template-columns: 1fr; }
  .hero__actions .btn, .contact-form__actions .btn { flex: 1 1 100%; justify-content: center; }
}

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