/* HS-IIoT landing page. Charcoal with one accent (the theme's, from the
   panel), a red kept for alarms only, rounded panels, and live interfaces of
   the system itself: the diagram of the hero and each product's screen. */
:root {
  --accent: #ffb81c;
  --bg: #0e0f11;
  --surface: #17191c;
  --text: #f2f0ea;
  --muted: #8a8f98;
  --alarm: #ff5a4f;
  --line: color-mix(in srgb, var(--text) 9%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 18%, transparent);
  --raise: color-mix(in srgb, var(--text) 4%, var(--surface));
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --on-accent: var(--bg);
  --sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 32px;
  --r: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .ic.flip { transform: scaleX(-1); }

/* ---- steel plates: buttons and controls with two corners cut at 45°.
   The element is the edge; ::before is the face, 1px inside with the same
   cut, so the border follows the cut corners too; ::after is the light
   that follows the pointer inside (--mx, --my from app.js). */
:is(.btn, .menu, .lang, .p-tabs, .badge) {
  --cut: 11px;
  --edge: var(--line-strong);
  --face: color-mix(in srgb, var(--surface) 80%, var(--bg));
  --glow: color-mix(in srgb, var(--accent) 24%, transparent);
  position: relative; isolation: isolate; border: 0; border-radius: 0; background: var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
:is(.btn, .menu, .lang, .p-tabs, .badge)::before {
  content: ''; position: absolute; inset: 1px; z-index: -2; background: var(--face);
  clip-path: polygon(calc(var(--cut) - .4px) 0, 100% 0, 100% calc(100% - var(--cut) + .4px), calc(100% - var(--cut) + .4px) 100%, 0 100%, 0 calc(var(--cut) - .4px));
}
:is(.btn, .menu, .lang)::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
/* Hover: the edge lights up where the pointer is, the face glows under it. */
:is(.btn, .menu, .lang):is(:hover, :focus-visible) { background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), var(--accent), var(--edge) 80%); }
:is(.btn, .menu, .lang):is(:hover, :focus-visible)::after { opacity: 1; }
:is(.btn, .menu, .lang):focus-visible { outline: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; color: var(--text);
  font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic.flip { transform: translateX(4px); }
[dir="rtl"] .btn:hover .ic.flip { transform: scaleX(-1) translateX(4px); }
/* The main button: a machined yellow plate, a bevel, white light under the
   pointer, and a sheen crossing it every few seconds. */
.btn-accent {
  --edge: color-mix(in srgb, var(--accent) 62%, #000);
  --glow: rgba(255, 255, 255, .55);
  color: var(--on-accent);
}
.btn-accent::before {
  background:
    linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .6) 50%, transparent 56%),
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 62%, #fff) 0%, var(--accent) 36%, color-mix(in srgb, var(--accent) 82%, #000) 100%);
  background-size: 320% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .2);
  animation: sheen 6s var(--ease) infinite;
}
@keyframes sheen { 0%, 62% { background-position: 100% 0, 0 0; } 100% { background-position: 0% 0, 0 0; } }
.btn-accent:is(:hover, :focus-visible) { background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), #fff, var(--edge) 75%); }
.btn-line { color: var(--text); }
.btn-sm { --cut: 8px; height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --cut: 13px; height: 58px; padding: 0 32px; font-size: 17px; font-weight: 700; }
.btn-lg .ic { width: 21px; height: 21px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:active { transform: translateY(1px); }

.live, .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.live, .dot { animation: beat 2s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* ---- navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--sans); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.links a:not(.btn) { color: var(--muted); transition: color .2s; }
.links a:not(.btn):hover { color: var(--text); }
/* The three languages: the current one lit, the others links. */
.langs { display: inline-flex; gap: 4px; }
.links .lang { --cut: 6px; font: 500 13px/1 var(--sans); padding: 8px 10px; color: var(--muted); }
.links a.lang:hover { color: var(--text); }
.links .lang.on { --edge: var(--accent); color: var(--accent); }
/* The clients' way in: the page's main button, always on screen. */
.nav-login { --cut: 10px; height: 46px; padding: 0 22px; font-weight: 700; flex: none; }
.nav-in .links { margin-inline-start: auto; }
.menu { --cut: 8px; display: none; color: var(--text); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }

/* ---- hero */
.hero { position: relative; padding: 148px 0 110px; overflow: hidden; }
/* The grid drifts by a transform of its pattern (a GPU layer, no repaint),
   under a mask that stays put. */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.grid-bg::before {
  content: ''; position: absolute; inset: -64px 0 0 -64px; will-change: transform;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-move 30s linear infinite;
}
@keyframes grid-move { to { transform: translate(64px, 64px); } }
/* ---- the light that follows the mouse over the whole page: a soft light,
   a dot matrix in the accent around it, and a point at the mouse. Each part
   is its own GPU layer moved by a transform (app.js), so following the
   mouse repaints nothing. The dots' window moves while its pattern is moved
   back the same amount: the dots stay fixed on the screen. */
.cursor-field { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .5s; }
.cursor-field.on { opacity: 1; }
.cf-light, .cf-dots, .cf-dot { position: absolute; left: 0; top: 0; will-change: transform; }
.cf-light { width: 840px; height: 840px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent); }
.cf-dots {
  width: 420px; height: 420px; overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.cf-dots i { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; will-change: transform;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent) 1.1px, transparent 1.7px) 0 0 / 22px 22px; }
.cf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: .84; }
.hero-in { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.badge { --cut: 8px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 8px 18px 8px 16px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 5vw, 70px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.28; }
.hl { color: var(--accent); }
.lead { margin-top: 24px; font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust { margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-media { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-lg); object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---- the hero diagram: devices -> gateway -> cloud -> phone (drawn left to right) */
.diagram { position: relative; direction: ltr; aspect-ratio: 600 / 420; width: 100%; container-type: inline-size; }
/* cqw: a share of the diagram's width (on its children: on the container itself it would be the page's). */
.diagram > * { font-size: 1.9cqw; }
.dg-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dg-path { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 4 7; animation: flow 1.8s linear infinite; vector-effect: non-scaling-stroke; }
.dg-path.main { stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 2; stroke-dasharray: 7 7; animation-duration: 1s; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.dg-dot { fill: var(--accent); }
.dg-dot.big { fill: var(--text); }
.dg-tag { position: absolute; font: 500 1.6cqw/1 var(--mono); letter-spacing: .06em; color: var(--muted); padding: .5cqw 1cqw; border: 1px solid var(--line); border-radius: 1cqw; background: var(--bg); transform: translate(-50%, -50%); white-space: nowrap; }
.dg-node {
  position: absolute; left: 0; width: 25%; translate: 0 -50%;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.3cqw; align-items: center;
  padding: 1.4cqw 1.8cqw; border: 1px solid var(--line-strong); border-radius: 2.2cqw; background: var(--surface);
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s);
}
.dg-node .ic { grid-row: span 2; width: 3.6cqw; height: 3.6cqw; color: var(--accent); }
.dg-node span { color: var(--muted); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-node b { font: 600 2.1cqw/1.3 var(--mono); }
@keyframes float { 50% { transform: translateY(-4px); } }
.dg-gw, .dg-cloud { position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6cqw; padding: 1.8cqw 1.2cqw; border-radius: 2.6cqw; border: 1px solid var(--line-strong); background: var(--surface); translate: 0 -50%; }
.dg-gw { left: 43.7%; top: 50%; width: 12.6%; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.dg-cloud { left: 71.7%; top: 26%; width: 24%; }
.dg-gw .ic, .dg-cloud .ic { width: 4.6cqw; height: 4.6cqw; color: var(--text); }
.dg-gw .ic { color: var(--accent); }
.dg-gw b, .dg-cloud b { font-size: 2.1cqw; line-height: 1.2; }
.dg-gw small, .dg-cloud small { color: var(--muted); font-size: 1.5cqw; line-height: 1.25; }
.ping { position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--accent); animation: ping 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.dg-phone {
  position: absolute; left: 80%; top: 62.4%; width: 16.5%; aspect-ratio: 10 / 15;
  border-radius: 3cqw; border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .7);
  padding: 1.4cqw 1.4cqw 1.6cqw; display: flex; flex-direction: column; gap: 1.1cqw; overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.ph-notch { width: 34%; height: .8cqw; border-radius: 1cqw; background: var(--line-strong); margin: 0 auto; }
.ph-title { font-size: 1.5cqw; color: var(--muted); }
.ph-alert { display: flex; gap: .8cqw; align-items: flex-start; font-size: 1.45cqw; line-height: 1.3; padding: 1cqw; border-radius: 1.3cqw; background: color-mix(in srgb, var(--alarm) 14%, var(--bg)); border: 1px solid color-mix(in srgb, var(--alarm) 45%, transparent); animation: toast 5s var(--ease) infinite; }
.ph-alert i { width: 1cqw; height: 1cqw; margin-top: .4cqw; border-radius: 50%; background: var(--alarm); flex: none; }
@keyframes toast { 0%, 10% { opacity: 0; transform: translateY(-6px); } 18%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.ph-kpi b { font: 600 3.2cqw/1 var(--mono); }
.ph-kpi small { color: var(--muted); margin-inline-start: .5cqw; font-size: 1.5cqw; }
.ph-spark { width: 100%; height: 5cqw; margin-top: auto; }
.ph-spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

/* ---- live fleet figures */
.stats { padding: 80px 0 90px; }
.stats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.stats-head h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; }
.stats-head p { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px; min-height: 146px; justify-content: space-between; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.stat::after { content: ''; position: absolute; inset-inline-start: 24px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.stat:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.stat .num { font: 600 clamp(30px, 3vw, 42px)/1 var(--mono); letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; align-self: flex-start; }
.stat .num small { font-size: .42em; font-family: var(--sans); font-weight: 500; color: var(--muted); margin-inline-start: 6px; letter-spacing: 0; }
.stat span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---- sections */
section { scroll-margin-top: 74px; }
.problems, .products, .steps, .why, .industries, .faq, .contact { padding: 110px 0; }
.problems, .steps, .industries, .contact { background: color-mix(in srgb, var(--surface) 45%, var(--bg)); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.eyebrow i { width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.sec-title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
[dir="rtl"] .sec-title { letter-spacing: 0; line-height: 1.32; }
.sec-sub { margin-top: 18px; color: var(--muted); font-size: 18px; }
.sec-head.center .sec-sub { margin-inline: auto; max-width: 40em; }

/* cards */
.cards { display: grid; gap: 16px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; transition: border-color .3s, transform .35s var(--ease), background .3s; overflow: hidden; }
.card:hover { border-color: var(--line-strong); background: var(--raise); }
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 20px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); transition: transform .4s var(--ease); }
.card-ic .ic { width: 24px; height: 24px; }
.card:hover .card-ic { transform: rotate(-6deg) scale(1.06); }
/* The accent edge follows the pointer (--mx, --my set by app.js). */
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::before { opacity: .75; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---- products */
.p-tabs { --cut: 12px; --face: color-mix(in srgb, var(--bg) 94%, var(--surface)); position: sticky; top: 86px; z-index: 5; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: -20px auto 36px; padding: 6px; width: max-content; max-width: 100%; }
.p-tabs a { --cut: 7px; padding: 8px 18px; font-size: 14px; color: var(--muted); transition: background .3s, color .3s;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.p-tabs a:hover { color: var(--text); background: var(--line); }
.p-tabs a.on { color: var(--on-accent); background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 62%, #fff), var(--accent) 40%, color-mix(in srgb, var(--accent) 82%, #000)); }
.product { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; padding: 70px 0; }
.product.rev .p-copy { order: 2; }
.p-num { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.p-num span { color: var(--accent); font-size: 15px; }
.p-name { margin-top: 16px; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 700; }
.p-tag { margin-top: 10px; font-size: clamp(18px, 1.6vw, 22px); color: var(--accent); font-weight: 500; }
.p-desc { margin-top: 16px; color: var(--muted); }
.benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2.4; margin-top: 3px; }
.specs { margin: 26px 0 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.specs summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.specs summary::-webkit-details-marker { display: none; }
.specs summary .ic, .qa summary .ic { color: var(--accent); transition: transform .3s var(--ease); }
.specs[open] summary .ic, .qa details[open] summary .ic { transform: rotate(45deg); }
.specs dl { margin: 0; padding: 0 18px 10px; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: end; }
/* A product's manual: one download per language. */
.manual { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -12px 0 28px; }
.manual-t { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.manual-t .ic { color: var(--accent); }
.manual-links { display: flex; flex-wrap: wrap; gap: 8px; }
.manual-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s; }
.manual-link:hover { border-color: var(--accent); color: var(--accent); }
.manual-link .ic { width: 16px; height: 16px; }
.p-media { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }

/* ---- the live interfaces */
.vis { position: relative; direction: ltr; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); padding: 22px; font-size: 13px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
[dir="rtl"] .vis { direction: rtl; }
.vis::before { content: ''; position: absolute; inset: 0 22px auto; height: 1px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.vis-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--text); padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: beat 2s ease-out infinite; }
.vis small { display: block; color: var(--muted); font-size: 12px; }
.vis b { font: 600 20px/1.2 var(--mono); }
.vis em { font-style: normal; color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpis.col { grid-template-columns: 1fr; margin-top: 0; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.wave { width: 100%; height: 78px; margin-bottom: 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.wave path { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.wave path:nth-child(1) { stroke: var(--accent); }
.wave path:nth-child(2) { stroke: var(--text); opacity: .75; }
.wave path:nth-child(3) { stroke: var(--muted); }
.ph-row { display: grid; grid-template-columns: 26px 1fr 54px 14px 44px 14px; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); direction: ltr; }
.ph-row span { color: var(--muted); font: 600 12px var(--mono); }
.ph-row b { font-size: 14px; text-align: end; }
.ph-row small { margin: 0; }
.bar { height: 6px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; border-radius: 6px; background: var(--accent); transition: width 1.2s var(--ease); }
.gen-body { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.ring { position: relative; width: 156px; height: 156px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--bg); stroke-width: 11; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.4s var(--ease); }
.ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-val b { font-size: 34px; }
.oil { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.oil-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.oil-top b { font-size: 16px; }
.event { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.event i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.water-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
/* The tank: the level moves at a steady rate (each reading eases into the
   next over the tick, linearly); two surface waves drift at different
   speeds; while the pump runs, water pours in from the inlet at the top. */
.tank { --water: color-mix(in srgb, var(--accent) 38%, var(--bg)); position: relative; direction: ltr; min-height: 230px; border-radius: 18px 18px 28px 28px; border: 2px solid var(--line-strong); background: var(--bg); overflow: hidden; }
.fill { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 60%; background: var(--water); transition: height 1.6s linear; }
/* Twice the tank wide (max-width lifted), moved by half: a seamless loop. */
.fill .w { position: absolute; left: 0; width: 200%; max-width: none; height: 12px; }
.fill .w.front { top: -11px; fill: var(--water); animation: wave 4s linear infinite; }
.fill .w.back { top: -14px; fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); animation: wave 7s linear infinite reverse; }
@keyframes wave { to { transform: translateX(-50%); } }
.inlet { position: absolute; top: 0; left: 18%; z-index: 2; width: 22px; height: 12px; margin-left: -8px; border-radius: 0 0 4px 4px; background: var(--line-strong); }
.stream { position: absolute; top: 10px; bottom: 0; left: 18%; z-index: 0; width: 6px; border-radius: 3px;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--accent) 55%, var(--bg)) 0 10px, color-mix(in srgb, var(--accent) 30%, var(--bg)) 10px 16px);
  background-size: 100% 16px; animation: pour .45s linear infinite; opacity: 0; transition: opacity .5s; }
.tank.pumping .stream { opacity: 1; }
@keyframes pour { to { background-position: 0 16px; } }
.tank-marks { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: repeat(4, 1fr); pointer-events: none; }
.tank-marks i { border-bottom: 1px dashed var(--line-strong); }
.tank-val { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 34px !important; direction: ltr; }
.map { position: relative; height: 180px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background-color: var(--bg);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map svg path { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--accent); animation: beat 2.2s ease-out infinite; z-index: 1; }
.pin.alarm { background: var(--alarm); animation-name: beat-alarm; }
@keyframes beat-alarm { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--alarm) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 14px transparent; } }
.toasts { position: relative; height: 46px; margin: 12px 0; }
.toast { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: color-mix(in srgb, var(--alarm) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--alarm) 40%, transparent); font-size: 13px; animation: toastin .6s var(--ease); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--alarm); flex: none; }
.toast.ok { background: var(--bg); border-color: var(--line-strong); }
.toast.ok::before { background: var(--accent); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }
.sites { display: grid; gap: 8px; }
.sites div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.sites i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sites i.alarm { background: var(--alarm); }
.sites em { margin-inline-start: auto; }

/* ---- steps */
.step-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-line { position: absolute; top: 27px; inset-inline: 16%; height: 2px; border-radius: 2px; background: var(--line-strong); }
.step-line b { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: var(--accent); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font: 600 17px/1 var(--mono); }
.step h3 { margin: 22px 0 10px; font-size: 21px; font-weight: 600; }
.step p { color: var(--muted); max-width: 22em; margin: 0 auto; }

/* ---- why */
.why-media-wrap { margin-bottom: 40px; border-radius: var(--r-lg); border: 1px solid var(--line); aspect-ratio: 21 / 8; overflow: hidden; background: var(--surface); }
.why-media-wrap .media, .why-media-wrap .lottie { width: 100%; height: 100%; object-fit: cover; }

/* ---- industries: a slow strip */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee-track, .marquee-track .dup { gap: 14px; }
.marquee-track .dup { display: flex; padding-inline-start: 14px; }
.ind { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; font-weight: 600; }
.ind .ic { width: 24px; height: 24px; color: var(--accent); }
.ind.has-img { padding: 8px 20px 8px 8px; }
[dir="rtl"] .ind.has-img { padding: 8px 8px 8px 20px; }
.ind .ind-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }

/* ---- FAQ */
.qa { display: grid; gap: 12px; }
.qa details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s; }
.qa details[open] { border-color: var(--line-strong); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa details p { color: var(--muted); padding: 0 24px 22px; }

/* ---- contact */
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.c-copy .sec-head { margin-bottom: 30px; }
/* The people to call: a name, a number, and how to reach them. */
.people { margin-top: 30px; display: grid; gap: 10px; }
.people-t { margin: 0 0 2px; font: 500 14px/1.4 var(--sans); color: var(--muted); }
.person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.person-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.person-id > .ic { color: var(--accent); flex: none; }
.person-id b { display: block; font-weight: 600; }
.person-id span { display: block; color: var(--muted); font: 500 14px/1.5 var(--mono); unicode-bidi: plaintext; }
.person-act { display: flex; flex-wrap: wrap; gap: 8px; }
.person-act .btn .ic { width: 16px; height: 16px; }
.c-lines { margin-top: 30px; display: grid; gap: 10px; }
.people + .c-lines { margin-top: 10px; }
.c-lines a, .c-lines p { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: color .2s, border-color .2s; }
.c-lines a:hover { color: var(--text); border-color: var(--line-strong); }
.c-lines .ic { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: grid; gap: 8px; }
.fld span { font-size: 14px; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 13px 14px; font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld .bad { border-color: var(--alarm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alarm) 18%, transparent); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-msg { min-height: 1.4em; font-size: 15px; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--alarm); }
.fine { font-size: 13px; color: var(--muted); }

/* ---- footer */
.footer { padding: 44px 0 38px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.foot-in b { font-size: 18px; }
.foot-in p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 34em; }
.copy { font-size: 13px; }

.preview-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--accent); color: var(--on-accent); border-radius: 999px; font: 600 14px/1 var(--sans); padding: 12px 22px; }

.lottie svg { width: 100% !important; height: 100% !important; }

/* ---- motion: reveal on scroll (only when scripts run: .js set by boot.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { --d: 90ms; }
.js .reveal.d2 { --d: 180ms; }
.js .reveal.d3 { --d: 270ms; }
.js .reveal.d4 { --d: 360ms; }
/* Headings rise out of a mask (on the inner span: an element clipped away
   entirely never counts as on screen for the reveal). */
.unveil > span { display: block; }
.js .unveil > span { clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.js .unveil.in > span { clip-path: inset(-30% -5% -30% -5%); transform: none; }
/* The live interfaces settle in with a slight turn. */
.js .p-visual.reveal, .js .hero-visual.reveal { transform: perspective(1200px) rotateY(-8deg) translateY(30px); }
.js[dir="rtl"] .p-visual.reveal { transform: perspective(1200px) rotateY(8deg) translateY(30px); }
.js .p-visual.reveal.in, .js .hero-visual.reveal.in { transform: none; }

/* ---- smaller screens */
@media (max-width: 1080px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .product, .contact-in { gap: 48px; }
}
@media (max-width: 960px) {
  .menu { display: inline-flex; }
  .links {
    display: none; position: absolute; top: 74px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links .langs { align-self: flex-start; margin: 14px 0; }
  .nav-in { gap: 10px; }
  .nav-login { margin-inline-start: auto; }
  .links .btn { margin-top: 10px; }
  .nav:has(.links.open) { background: var(--bg); }
  .hero-in, .product, .contact-in { grid-template-columns: 1fr; }
  .product.rev .p-copy { order: 0; }
  .cards.three { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: 1fr; gap: 36px; }
  .step-line { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 112px 0 90px; }
  .problems, .products, .steps, .why, .industries, .faq, .contact { padding: 76px 0; }
  .product { padding: 44px 0; }
  .cards.four, .cards.three { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 20px 16px 18px; min-height: 120px; }
  .stat::after { inset-inline-start: 16px; }
  .form { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .nav-login { height: 42px; padding: 0 14px; font-size: 14px; gap: 8px; }
  .nav-login .ic { width: 16px; height: 16px; }
  .person-act { width: 100%; }
  .person-act .btn { flex: 1; }
  .vis { padding: 16px; }
  .gen-body { grid-template-columns: 1fr; justify-items: center; }
  .gen-body .kpis { width: 100%; grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .ph-row { grid-template-columns: 22px 1fr 48px 12px 36px 12px; gap: 6px; }
  .p-tabs { top: 80px; }
  .p-tabs a { padding: 7px 12px; font-size: 13px; }
  .why-media-wrap { aspect-ratio: 4 / 3; }
}
/* A narrow phone: the logo alone, so the login button keeps its place. */
@media (max-width: 400px) {
  .brand:has(img) span { display: none; }
}
/* The diagram at phone width: bigger type, the details left out. */
@container (max-width: 460px) {
  .dg-node { padding: 1.6cqw 2cqw; }
  .dg-node span, .dg-gw small, .dg-cloud small, .ph-title, .dg-tag { display: none; }
  .dg-node b { font-size: 2.8cqw; }
  .dg-gw b, .dg-cloud b { font-size: 2.6cqw; }
  .ph-alert { font-size: 1.9cqw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .unveil > span { opacity: 1; transform: none; clip-path: none; transition: none; }
  .live, .dot, .pill i, .pin, .ping, .dg-node, .dg-phone, .ph-alert, .dg-path, .grid-bg::before, .marquee-track, .fill svg, .stream, .scroll-cue span, .btn-accent::before { animation: none; }
  .dg-dot { display: none; }
}
