:root {
  --bg: #eef1f4;
  --bg-2: #e2e7ec;
  --paper: #f8fafb;
  --white: #ffffff;
  --ink: #1a2742;
  --muted: #4d5a6e;
  --line: #bcc5cf;
  --line-soft: #d6dce3;
  --teal: #50acb4;
  --teal-ink: #1f6f77;
  --teal-soft: #dcefF0;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Montserrat", "Heebo", Arial, sans-serif;
  --body: "Heebo", "Helvetica Neue", Arial, sans-serif;
}
html[lang="he"] { --head: "Heebo", Arial, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Type */
h1, h2, h3 { text-wrap: balance; font-family: var(--head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
html[lang="he"] h1 { font-weight: 800; letter-spacing: 0; }
html[lang="he"] h2, html[lang="he"] h3 { letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.07rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.kicker { color: var(--teal-ink); font-weight: 600; margin-bottom: 0.6em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: block; flex: none; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.96rem; white-space: nowrap; }
.nav a:hover { color: var(--teal-ink); }
.nav .lang { border: 1px solid var(--line); padding: 4px 10px; border-radius: 3px; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 20px; background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; border: 2px solid var(--ink); border-radius: 3px; font-size: 0.98rem; font-family: var(--body); cursor: pointer;
}
.btn:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: clamp(64px, 9vw, 108px) 0; }
.band { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dark { background: var(--ink); color: #e6ebf1; }
.dark .lead, .dark p { color: #b8c3d1; }
.dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: #7fcad0; }
.section-head { margin-bottom: 44px; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-note { margin-top: 26px; font-size: 0.93rem; color: var(--muted); border-inline-start: 3px solid var(--teal); padding-inline-start: 12px; }

/* Cabinet illustration */
.cabinet { width: 100%; height: auto; }
.cabinet text { font-family: var(--body); }
.cabinet .lg-title { font-size: 14px; font-weight: 700; fill: var(--ink); }
.cabinet .lg-head { font-size: 12px; font-weight: 700; fill: var(--teal-ink); letter-spacing: .02em; }
.cabinet .lg-sub { font-size: 11.5px; fill: var(--muted); }
.cabinet .num-c { fill: var(--teal); }
.cabinet .num-t { font-size: 11px; font-weight: 700; fill: #fff; }
.cabinet .led { fill: #3b4a66; }
.cabinet.live .led { animation: led 0.5s steps(1) forwards; }
.cabinet.live .led:nth-of-type(2) { animation-delay: .25s; }
.cabinet.live .led:nth-of-type(3) { animation-delay: .5s; }
.cabinet.live .led:nth-of-type(4) { animation-delay: .75s; }
@keyframes led { to { fill: #7fe0c8; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cabinet .led { fill: #7fe0c8; }
  .cabinet.live .led { animation: none; }
}

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--paper); }
.compare > div { padding: clamp(22px, 3vw, 36px); }
.compare > div + div { border-inline-start: 1px solid var(--line); background: var(--white); }
.compare h3 { margin-bottom: 14px; }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.compare .after li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--teal); margin-inline-end: 10px; vertical-align: middle; }
.compare .before li { color: var(--muted); }

/* Platform stack */
.stack { display: grid; grid-template-columns: 1fr; gap: 10px; }
.layers { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 18px 20px; }
.layer img, .app img { width: 44px; height: 44px; }
.layer h3, .app h3 { margin: 0 0 2px; font-family: var(--head); }
.layer p, .app p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.layer.base { background: var(--ink); border-color: var(--ink); }
.layer.base h3 { color: #fff; }
.layer.base p { color: #b8c3d1; }
.layer.base img { background: #fff; padding: 4px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: 18px; }
.app img { margin-bottom: 12px; }
.onprem { grid-column: 1 / -1; text-align: center; border: 2px dashed var(--teal-ink); color: var(--teal-ink); font-weight: 600; padding: 10px 12px; font-size: 0.95rem; }
.stack-caption { margin-top: 18px; font-size: 0.93rem; color: var(--muted); }

/* Interfaces rail */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 6px solid #8b97a6; border-bottom: 6px solid #8b97a6; background: #2a7c84; }
.term {
  background: var(--teal-ink); color: #fff; padding: 16px 16px; display: flex; align-items: center; gap: 12px;
  border-inline-end: 1px solid #164f55; border-bottom: 1px solid #164f55; min-height: 64px;
}
.term.power { background: var(--ink); }
.term .screw { width: 18px; height: 18px; border-radius: 50%; background: #e3e8ed; border: 2px solid #6e7b8b; position: relative; flex: none; }
.term .screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px; background: #6e7b8b; }
.term-name { font-weight: 600; font-size: 0.97rem; line-height: 1.25; }
.rail-caption { margin-top: 16px; font-size: 0.93rem; color: var(--muted); }

/* Equipment examples */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--white); border: 1px solid var(--line); padding: 7px 13px; font-size: 0.95rem; }
.chips li.more { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); font-weight: 600; }
.sub-head { font-family: var(--head); font-size: 1.15rem; margin: 48px 0 16px; }

/* Facts */
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); }
.facts li strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.facts li span { color: #b8c3d1; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding-inline-end: 20px; position: relative; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 2px solid var(--teal-ink); color: var(--teal-ink); font-weight: 800; margin-bottom: 16px; background: var(--paper); position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 20px; inset-inline-start: 40px; inset-inline-end: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* Projects */
.project { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project.has-img { grid-template-columns: 220px 1fr 240px; }
.project-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line-soft); }
.project-meta { color: var(--muted); font-size: 0.93rem; }
.project-meta strong { display: block; color: var(--teal-ink); font-size: 1rem; }
.project h3 { font-size: 1.28rem; }
.project p { color: var(--muted); }
.tag { display: inline-block; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.8rem; padding: 2px 8px; margin-top: 8px; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.plain-list { margin: 0; padding-inline-start: 1.1em; }
.plain-list li, .ol-tight li { margin-bottom: 10px; }
.ol-tight { margin: 0; padding-inline-start: 1.3em; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.person { padding: 26px 0; padding-inline-end: 20px; display: flex; gap: 16px; align-items: center; }
.avatar { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal); flex: none; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; font-family: var(--head); }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); }
.contact-details { margin-top: 24px; }
.contact-details p { margin-bottom: 8px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.93rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--ink); }
input[type="email"], input[type="tel"] { direction: ltr; }
html[lang="he"] input[type="email"], html[lang="he"] input[type="tel"] { text-align: right; }
textarea { min-height: 130px; resize: vertical; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-note { grid-column: 1 / -1; font-size: 0.86rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #b8c3d1; padding: 44px 0; font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer img { height: 18px; width: auto; margin-bottom: 10px; }
.site-footer a { color: #e6ebf1; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Simple pages */
.page { padding: 64px 0 96px; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 1040px) {
  .rail { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .split, .contact-grid, .partner-grid { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 1220px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--line-soft); }
  .nav .lang { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 14px var(--gutter); }
  .nav .btn { margin: 12px var(--gutter); text-align: center; }
  }
@media (max-width: 860px) {
  .project, .project.has-img { grid-template-columns: 1fr; gap: 8px; }
  .project-img { max-width: 420px; margin-top: 8px; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rail { grid-template-columns: 1fr 1fr; }
  .term { padding: 12px; gap: 10px; }
  body { font-size: 16px; }
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .apps { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 44px 1fr; padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  form { grid-template-columns: 1fr; }
}

/* Client and partner logos */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logos li { background: var(--white); border: 1px solid var(--line-soft); height: 112px; display: flex; align-items: center; justify-content: center; padding: 18px 22px; }
.logos img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos li { height: 96px; } }

/* Security section background */
#security { background: linear-gradient(rgba(26,39,66,.55), rgba(26,39,66,.75)), url("assets/img/network-bg.svg") center / cover no-repeat, var(--ink); }
.sec-art { width: 100%; height: auto; display: block; }
.sec-art text { font-family: var(--body); }

/* Security options */
.sec-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sec-opt { border: 1px solid rgba(255,255,255,.18); background: rgba(26,39,66,.6); padding: clamp(20px, 3vw, 32px); }
.sec-opt .sec-art { margin: 0 auto 20px; max-width: 360px; }
.sec-opt h3 { font-size: 1.25rem; margin-bottom: 6px; }
.sec-opt p { margin-bottom: 12px; }
.sec-opt ul { margin: 0; padding: 0; list-style: none; }
.sec-opt li { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.14); color: #e6ebf1; }
.sec-opt li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--teal); margin-inline-end: 10px; vertical-align: middle; }
.dark .sub-head { color: #fff; }
.sec-common { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 860px) { .sec-options, .sec-common { grid-template-columns: 1fr; } }
.project-imgs { display: grid; gap: 10px; align-content: start; }
.project-img.tall { aspect-ratio: 2 / 3; }

/* Cabinet figure: drawing + HTML legend */
.cab-fig { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 24px; align-items: start; }
.cab-legend { min-width: 0; }
.cab-legend .lg-group { font-size: .82rem; font-weight: 700; color: var(--teal-ink); margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); letter-spacing: .02em; }
.cab-legend .lg-group:first-child { margin-top: 0; }
.cab-legend ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cab-legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; }
.cab-legend .lg-num { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cab-legend strong { display: block; font-size: .95rem; line-height: 1.25; color: var(--ink); }
.cab-legend .lg-desc { display: block; font-size: .84rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 640px) {
  .cab-fig { grid-template-columns: 1fr; }
  .cab-fig .cabinet { max-width: 280px; margin: 0 auto; }
}

/* Platform flow diagram (hero) */
.platform { width: 100%; height: auto; max-width: 560px; margin-inline: auto; display: block; }
.platform text { font-family: var(--body); }
.platform .pf-org { fill: rgba(80,172,180,.07); stroke: var(--teal-ink); stroke-width: 1.4; stroke-dasharray: 6 5; }
.platform .pf-orgt { font-size: 12px; font-weight: 700; fill: var(--teal-ink); }
.platform .pf-line { fill: none; stroke: #8fa3bd; stroke-width: 2; }
.platform .pf-line-in { stroke: var(--teal-ink); }
.platform .pf-pipe { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.5; }
.platform .pf-lock { fill: var(--ink); }
.platform .pf-shackle { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.platform .pf-wire { stroke: #8fa3bd; stroke-width: 1.4; }
.platform .pf-dev { fill: #fff; stroke: var(--teal-ink); stroke-width: 1.6; }
.platform .pf-dbring { fill: none; stroke: #50acb4; stroke-width: 1; opacity: .6; }
.platform .pf-dbt { font-size: 15px; font-weight: 800; fill: #fff; font-family: "Montserrat", var(--body); }
.platform .pf-box { fill: var(--white); stroke: var(--line); }
.platform .pf-boxtop { fill: var(--teal); }
.platform .pf-boxt { font-size: 13.5px; font-weight: 700; fill: var(--ink); }
.platform .pf-boxs { font-size: 11px; fill: var(--muted); }
.platform .pf-num { fill: var(--teal); }
.platform .pf-numt { font-size: 11px; font-weight: 700; fill: #fff; }
.platform .pf-side { font-size: 13px; font-weight: 700; fill: var(--ink); }
.platform .pf-sub { font-size: 10.5px; fill: var(--muted); }
.platform .pf-led { fill: #3b4a66; }
.platform.live .pf-led { animation: led .4s 1s steps(1) forwards; }
.platform .pf-pulse { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 12 600; stroke-dashoffset: 612; opacity: 0; }
.platform.live .pf-pulse { animation: pfflow 1.6s ease-in-out forwards; }
@keyframes pfflow { 0% { stroke-dashoffset: 612; opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.cab-figure { margin: 0 0 36px; max-width: 820px; }
@media (prefers-reduced-motion: reduce) {
  .platform.live .pf-pulse { animation: none; }
  .platform .pf-led { fill: #7fe0c8; }
}

/* Platform diagram on phones: larger labels, drop the small sub-lines */
@media (max-width: 640px) {
  .platform .pf-side { font-size: 17px; }
  .platform .pf-sub { display: none; }
  .platform .pf-orgt { font-size: 15px; }
  .platform .pf-boxt { font-size: 16px; }
  .platform .pf-boxs { font-size: 11.5px; }
  .platform .pf-numt { font-size: 12px; }
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }

/* Projects: images in a row under the text */
.project.has-img { grid-template-columns: 220px 1fr; }
.project-body { min-width: 0; }
.project-body p { margin-bottom: 14px; }
.project-imgs { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.project-imgs .project-img { width: auto; height: 170px; aspect-ratio: 4 / 3; max-width: 100%; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 4px; }
.project-imgs .project-img.tall { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .project.has-img { grid-template-columns: 1fr; }
  .project-imgs .project-img { height: 140px; }
}
.project { padding: 22px 0; gap: 24px; }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.project-body p { margin-bottom: 0; }
.project-imgs { flex-wrap: nowrap; gap: 8px; }
.project-imgs .project-img { height: 130px; }
@media (max-width: 1040px) {
  .project-body { grid-template-columns: 1fr; gap: 12px; }
  .project-imgs { flex-wrap: wrap; }
}
@media (max-width: 860px) { .project-imgs .project-img { height: 120px; } }
.hero-logo { display: block; height: 42px; width: auto; margin: 0 0 14px; margin-inline-start: -6px; }
@media (max-width: 640px) { .hero-logo { height: 34px; } }
html[lang="en"] .hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
html[lang="en"] .hero .kicker { max-width: 34ch; }
