/* HS-IIoT landing page. An industrial datasheet look: charcoal, one accent
   (the theme's, from the panel), sharp corners, hairlines, technical labels
   in a monospaced face. No gradients, no glow, no blur. */
:root {
  --accent: #ffb81c;
  --bg: #0e0f11;
  --surface: #17191c;
  --text: #f2f0ea;
  --muted: #8a8f98;
  --line: color-mix(in srgb, var(--text) 11%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 22%, 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;
  --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.65 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; }

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

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic.flip { transform: translateX(4px); }
[dir="rtl"] .btn:hover .ic.flip { transform: scaleX(-1) translateX(4px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--text); }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---- technical labels */
.badge, .eyebrow, .p-num, .trust, .readout, figcaption, .idx, .step-n, .specs dd, .fld span, .stats-head p, .copy {
  font-family: var(--mono);
}
/* Arabic letters join and the monospaced space is wide: in Arabic the
   labels use the text face, untracked; the numbers keep the mono face. */
[dir="rtl"] :is(.badge, .eyebrow, .p-num, .trust, figcaption, .fld span, .stats-head p, .readout p, .specs .specs-title, .specs dd, .copy) { letter-spacing: 0; font-size: 13.5px; font-family: var(--sans); }
[dir="rtl"] :is(.eyebrow span, .p-num span, figcaption b) { font-family: var(--mono); }
.live, .dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); flex: none; }
.live { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---- navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.scrolled { background: var(--bg); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--sans); letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.links a:not(.btn) { color: var(--muted); transition: color .2s; }
.links a:not(.btn):hover { color: var(--text); }
.links .lang { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line-strong); padding: 5px 9px; }
.links .login { color: var(--text) !important; }
.menu { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }

/* ---- hero */
.hero { position: relative; padding: 150px 0 96px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .45;
}
.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: .82; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 7px 12px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hl { color: var(--accent); }
.lead { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.trust { margin-top: 30px; font-size: 13px; color: var(--muted); letter-spacing: .02em; padding-top: 18px; border-top: 1px solid var(--line); max-width: 36em; }

/* ---- figures (illustrations with a caption, like a datasheet) */
.fig { position: relative; margin: 0; }
.fig-body {
  position: relative; aspect-ratio: 1 / 1; background-color: var(--surface); border: 1px solid var(--line);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  overflow: hidden;
}
.fig-body > .lottie, .fig-body > .media { position: absolute; inset: 0; width: 100%; height: 100%; }
.fig-body > .media { object-fit: cover; }
.lottie svg { width: 100% !important; height: 100% !important; }
.tick { position: absolute; width: 14px; height: 14px; border: 0 solid var(--accent); z-index: 2; }
.tick.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.tick.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.tick.bl { bottom: 30px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.tick.br { bottom: 30px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
figcaption { height: 31px; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
figcaption b { color: var(--accent); font-weight: 500; }

/* ---- live fleet figures */
.stats { padding: 88px 0; border-bottom: 1px solid var(--line); }
.stats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; 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: 13px; color: var(--muted); letter-spacing: .03em; }
/* Hairline grids: each cell draws its end and bottom lines, so a short last
   row leaves the free slots open instead of filled. */
.stat-grid, .rows, .inds { display: grid; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.stat, .cell, .ind { border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.stat { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; justify-content: space-between; }
.stat .num { font: 500 clamp(30px, 3vw, 44px)/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); color: var(--muted); margin-inline-start: 6px; letter-spacing: 0; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---- sections */
section { scroll-margin-top: 72px; }
.problems, .products, .steps, .why, .industries, .faq, .contact { padding: 120px 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: 60px; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow span { color: var(--accent); }
.eyebrow span::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line-strong); vertical-align: middle; margin-inline-start: 14px; }
.sec-title { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
[dir="rtl"] .sec-title { letter-spacing: 0; line-height: 1.3; }
.sec-sub { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 40em; }

/* hairline grids of cells */
.rows.four { grid-template-columns: repeat(4, 1fr); }
.rows.three { grid-template-columns: repeat(3, 1fr); }
.cell { position: relative; background: var(--bg); padding: 34px 30px 36px; transition: background .25s; }
.cell:hover { background: var(--surface); }
.cell h3 { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 18px 0 10px; }
.cell p { color: var(--muted); font-size: 15.5px; }
.cell-ic { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.4; }
.idx { position: absolute; top: 30px; inset-inline-end: 28px; font-size: 12px; color: var(--muted); }

/* ---- products */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 88px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 16px; }
.product.rev .p-copy { order: 2; }
.p-num { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.p-num span { color: var(--accent); }
.p-num i { width: 28px; height: 1px; background: var(--line-strong); }
.p-tag { margin-top: 20px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; font-weight: 700; }
.p-desc { margin-top: 18px; color: var(--muted); }
.benefits { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: baseline; }
.benefits i { width: 8px; height: 8px; background: var(--accent); flex: none; transform: translateY(-2px); }
.specs { margin: 34px 0 32px; border-top: 1px solid var(--line-strong); }
.specs .specs-title { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 0; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: end; font-size: 14px; }
.readout {
  position: absolute; inset-inline-start: 16px; bottom: 16px; z-index: 2; width: 196px;
  background: var(--bg); border: 1px solid var(--line-strong); font-size: 12px;
}
.readout p { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.readout div { display: grid; grid-template-columns: 1fr auto 30px; gap: 8px; align-items: baseline; padding: 6px 12px; direction: ltr; }
.readout div + div { border-top: 1px solid var(--line); }
.readout span { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.readout b { font-weight: 500; font-size: 14px; text-align: end; }
.readout em { font-style: normal; color: var(--muted); font-size: 11px; }

/* ---- steps */
.step::before { content: ''; position: absolute; top: -1px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--accent); }
.step-n { display: block; font-size: 44px; line-height: 1; font-weight: 300; color: var(--text); }
.step h3 { margin-top: 26px; }

/* ---- why */
.why-media-wrap { margin-bottom: 48px; 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; }
.why-media-wrap .media { filter: grayscale(1) contrast(1.05); }

/* ---- industries */
.inds { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ind { background: var(--bg); padding: 26px; display: flex; flex-direction: column; gap: 22px; min-height: 150px; justify-content: space-between; transition: background .25s; }
.ind:hover { background: var(--surface); }
.ind .ic { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.4; }
.ind span { font-weight: 600; }
.ind.has-img { padding: 0; gap: 0; }
.ind.has-img .ind-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.ind.has-img .lottie.ind-img { background: var(--surface); }
.ind.has-img:hover .ind-img { filter: none; }
.ind.has-img span { padding: 16px 20px 18px; }

/* ---- FAQ */
.faq-in { display: grid; grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: start; }
.faq-in .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.qa { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary .ic { transition: transform .25s var(--ease); color: var(--accent); }
details[open] summary .ic { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 26px; max-width: 46em; }

/* ---- contact */
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.c-copy .sec-head { margin-bottom: 36px; }
.c-lines { margin-top: 36px; border-top: 1px solid var(--line); }
.c-lines a, .c-lines p { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .2s; }
.c-lines a:hover { color: var(--text); }
.c-lines .ic { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); padding: 36px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 8px; }
.fld span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; 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: 0;
  padding: 13px 14px; font: 400 16px/1.4 var(--sans); transition: border-color .2s;
}
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld .bad { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.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(--text); }
.form-msg.ok::before { content: '■ '; color: var(--accent); }
.form-msg.err { color: var(--accent); }
.fine { font-size: 13px; color: var(--muted); }

/* ---- footer */
.footer { padding: 48px 0 40px; }
.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: 12.5px; }

.preview-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 60; background: var(--accent); color: var(--on-accent); text-align: center; font: 600 14px/1 var(--sans); padding: 12px; }

/* ---- reveal on scroll (only when scripts run: .js set by boot.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.benefits li.reveal:nth-child(2) { transition-delay: .06s; }
.benefits li.reveal:nth-child(3) { transition-delay: .12s; }
.benefits li.reveal:nth-child(4) { transition-delay: .18s; }
.rows > .reveal:nth-child(2), .stat-grid > .reveal:nth-child(2) { transition-delay: .06s; }
.rows > .reveal:nth-child(3), .stat-grid > .reveal:nth-child(3) { transition-delay: .12s; }
.rows > .reveal:nth-child(4), .stat-grid > .reveal:nth-child(4) { transition-delay: .18s; }

/* ---- smaller screens */
@media (max-width: 1080px) {
  .rows.four { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .product, .faq-in, .contact-in { gap: 48px; }
}
@media (max-width: 960px) {
  .menu { display: inline-flex; }
  .links {
    display: none; position: absolute; top: 72px; 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 .lang { align-self: flex-start; margin: 14px 0; border-bottom: 1px solid var(--line-strong) !important; padding: 5px 9px !important; }
  .links .btn { margin-top: 10px; }
  .nav:has(.links.open) { background: var(--bg); }
  .hero-in, .product, .faq-in, .contact-in { grid-template-columns: 1fr; }
  .product.rev .p-copy { order: 0; }
  .hero-visual { max-width: 560px; }
  .rows.three { grid-template-columns: 1fr; }
  .faq-in .sec-head { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 116px 0 64px; }
  .stats, .problems, .products, .steps, .why, .industries, .faq, .contact { padding: 80px 0; }
  .product { padding: 64px 0; }
  .rows.four { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; min-height: 120px; }
  .form { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .readout { width: 172px; inset-inline-start: 10px; bottom: 10px; }
  .inds { grid-template-columns: 1fr 1fr; }
  .why-media-wrap { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .live { animation: none; }
}
