/* I/Os Tailor — brand tokens
   Layout: a fixed full-bleed 3D canvas sits behind one scrolling column;
   copy holds the start side, the logo scene holds the end side (mirrors in Arabic). */
:root {
  color-scheme: dark;

  /* Color */
  --midnight: #050B18;
  --navy: #0E1A33;
  --navy-hi: #16284D;
  --cyan: #0AB4FF;
  --blue: #2A6BFF;
  --blue-hi: #4A82FF;
  --ice: #C8F1FF;
  --gold: #FFC857;
  --text: #A9BCD8;
  --text-dim: #6F86A8;
  --line: rgba(10, 180, 255, .16);
  --line-strong: rgba(10, 180, 255, .34);
  --glass: rgba(5, 11, 24, .72);

  /* Type */
  --font-display: "Chakra Petch", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1rem;
  --t-lg: 1.1875rem;
  --t-xl: clamp(1.6rem, 1.15rem + 1.7vw, 2.4rem);
  --t-hero: clamp(2.6rem, 1.3rem + 4.4vw, 5rem);

  /* Space and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --wrap: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ar) body, html:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font-body); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ice); margin: 0; text-wrap: balance; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { font-family: "IBM Plex Sans Arabic", sans-serif; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* 3D canvas */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.header, main, .footer { position: relative; z-index: 1; }

/* Skip link */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Loader */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: var(--s5);
  background: var(--midnight);
  transition: opacity .6s var(--ease), visibility .6s;
}
.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader__mark { width: 84px; height: 110px; fill: transparent; stroke: url(#markGrad); stroke-width: 4; overflow: visible; }
.loader__mark use { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s var(--ease) forwards, fillin .6s 1.3s forwards; }
.loader__text { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
html:lang(ar) .loader__text { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: url(#markGrad); filter: drop-shadow(0 0 14px rgba(10, 180, 255, .6)); } }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--midnight);
}
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(5, 11, 24, .9), rgba(5, 11, 24, .55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 26px; height: 34px; fill: url(#markGrad); filter: drop-shadow(0 0 8px rgba(10, 180, 255, .55)); }
.brand__name { font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; color: var(--ice); }
.nav { display: flex; gap: var(--s5); margin-inline-start: auto; }
.nav a {
  font-size: var(--t-sm); color: var(--text); text-decoration: none;
  padding: 6px 2px; position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 7px);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
html[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover { color: var(--ice); }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: var(--s3); }

.lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--t-xs); cursor: pointer;
  transition: border-color .2s;
}
.lang:hover { border-color: var(--cyan); }
.lang__opt[data-l="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .9rem; line-height: 1; }
html:lang(en) .lang__opt[data-l="en"], html:lang(ar) .lang__opt[data-l="ar"] { color: var(--ice); }
.lang__sep { opacity: .4; }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ice); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 500; font-size: var(--t-md);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .2s, border-color .2s;
}
html:lang(ar) .btn { font-family: "IBM Plex Sans Arabic", sans-serif; }
.btn--sm { height: 40px; padding: 0 16px; font-size: var(--t-sm); }
.btn--primary {
  background: var(--blue); color: #fff; border: 1px solid var(--blue-hi);
  box-shadow: 0 0 0 0 rgba(42, 107, 255, 0), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover {
  background: var(--blue-hi);
  box-shadow: 0 8px 32px -6px rgba(42, 107, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: translateY(-1px);
}
.btn--ghost { background: rgba(14, 26, 51, .6); color: var(--ice); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(14, 26, 51, .9); transform: translateY(-1px); }
.btn__arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }
.btn__icon { width: 20px; height: 20px; color: #4ADE80; }

/* Shared bits */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
}
html:lang(ar) .eyebrow { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); font-weight: 500; }
.eyebrow--gold { color: var(--gold); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(10, 180, 255, .6);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(10, 180, 255, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(10, 180, 255, 0); }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding-block: var(--s8) var(--s9);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 18% 50%, rgba(5, 11, 24, .85), rgba(5, 11, 24, 0) 70%);
}
html[dir="rtl"] .hero::before { background: radial-gradient(ellipse 60% 70% at 82% 50%, rgba(5, 11, 24, .85), rgba(5, 11, 24, 0) 70%); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: var(--s7); }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); max-width: 640px; min-width: 0; }
.hero__title {
  font-size: var(--t-hero); font-weight: 600; line-height: 1.02; letter-spacing: -.01em;
}
html:lang(ar) .hero__title { font-weight: 700; line-height: 1.25; letter-spacing: 0; font-size: clamp(2.3rem, 1.2rem + 3.8vw, 4.3rem); }
.stitch {
  color: var(--gold); position: relative; white-space: nowrap;
  text-shadow: 0 0 24px rgba(255, 200, 87, .35);
}
.stitch::after {
  content: ""; position: absolute; inset-inline: 2px; bottom: -.04em; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px);
  border-radius: 2px;
  animation: sew 1.4s steps(12) .4s both;
  transform-origin: left;
}
html[dir="rtl"] .stitch::after { transform-origin: right; }
@keyframes sew { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lede { font-size: var(--t-lg); line-height: 1.6; max-width: 54ch; color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  list-style: none; margin: var(--s2) 0 0; padding: 0;
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
}
html:lang(ar) .hero__facts { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); letter-spacing: 0; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--midnight); border: 1.5px solid var(--cyan);
}

.hero__fallback { display: none; margin: 0; justify-self: center; }
.hero__fallback svg { width: min(260px, 60vw); height: auto; aspect-ratio: 450 / 590; fill: url(#markGrad); filter: drop-shadow(0 0 28px rgba(10, 180, 255, .55)); }
.no-webgl .hero__fallback { display: block; }
.no-webgl #scene { display: none; }

/* Example workflow console */
.console {
  position: absolute; inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(-1 * var(--s8));
  width: min(360px, 100%);
  padding: var(--s3) var(--s4);
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: var(--t-xs);
}
.console__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .14em; }
html:lang(ar) .console__head { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; }
.console__live { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.console__live .pulse-dot { width: 6px; height: 6px; }
.console__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--text); transition: opacity .35s; min-height: 2.6em; }
.console__line.is-swapping { opacity: 0; }
.console__from { color: var(--cyan); }
.console__to { color: var(--gold); }
.console__arrow { color: var(--text-dim); }
html[dir="rtl"] .console__arrow { transform: scaleX(-1); display: inline-block; }
.console__msg { flex-basis: 100%; color: var(--ice); font-family: var(--font-body); font-size: var(--t-sm); }
html:lang(ar) .console__msg { font-family: "IBM Plex Sans Arabic", sans-serif; }
.console__from, .console__to { direction: ltr; unicode-bidi: isolate; }

/* Services band */
.band {
  padding-block: var(--s6);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(5, 11, 24, .9), rgba(14, 26, 51, .75), rgba(5, 11, 24, .9));
  overflow: hidden;
}
.band__label {
  text-align: center; margin-bottom: var(--s4);
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim);
}
html:lang(ar) .band__label { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  display: inline-flex; align-items: center; gap: var(--s5); padding-inline-end: var(--s5);
  font-family: var(--font-display); font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); font-weight: 500; color: var(--ice); white-space: nowrap;
}
html:lang(ar) .marquee__item { font-family: "IBM Plex Sans Arabic", sans-serif; }
.marquee__item::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.marquee__item:nth-child(3n)::after { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* Sections */
.section { position: relative; padding-block: var(--s9); }
.section__head { display: grid; gap: var(--s4); max-width: 720px; margin-bottom: var(--s7); }
.section__title { font-size: var(--t-xl); font-weight: 600; line-height: 1.15; }
html:lang(ar) .section__title { line-height: 1.4; font-weight: 700; }
.section__lede { font-size: var(--t-lg); max-width: 58ch; }
.section__note { margin-top: var(--s5); font-size: var(--t-sm); color: var(--text-dim); max-width: 72ch; }

/* Services */
.services { background: linear-gradient(to bottom, rgba(5, 11, 24, .6), rgba(5, 11, 24, .88) 18%, rgba(5, 11, 24, .88) 82%, rgba(5, 11, 24, .4)); }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5);
  background: linear-gradient(180deg, rgba(14, 26, 51, .92), rgba(8, 16, 34, .92));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.svc::before {
  content: ""; position: absolute; top: -6px; inset-inline-end: 28px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--midnight); border: 2px solid var(--cyan);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.svc:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(10, 180, 255, .45); }
.svc:hover::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px var(--gold); }
.svc--custom { border-color: rgba(255, 200, 87, .28); }
.svc--custom::before { border-color: var(--gold); }
.svc__icon {
  width: 40px; height: 40px; padding: 8px; flex-shrink: 0;
  border-radius: var(--r-md); background: rgba(10, 180, 255, .08); border: 1px solid var(--line);
  fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.svc--custom .svc__icon { stroke: var(--gold); background: rgba(255, 200, 87, .08); border-color: rgba(255, 200, 87, .25); }
.svc__title { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
html:lang(ar) .svc__title { line-height: 1.5; }
.svc__out { font-size: var(--t-sm); line-height: 1.55; }
.svc__ba { margin: auto 0 0; padding-top: var(--s3); display: grid; gap: var(--s2); border-top: 1px dashed var(--line-strong); }
.svc__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s2); font-size: var(--t-sm); line-height: 1.45; }
.svc__row dt { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding-top: 2px; }
html:lang(ar) .svc__row dt { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-size: var(--t-sm); padding-top: 0; }
.svc__row dd { margin: 0; color: var(--text-dim); }
.svc__row--after dt { color: var(--gold); }
.svc__row--after dd { color: var(--ice); }

.svc--custom { grid-column: span 2; }

/* Featured service: intake automation */
.feature {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s7); align-items: center;
  padding: var(--s7);
  margin-bottom: var(--s8);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(10, 180, 255, .12), transparent 60%),
    linear-gradient(180deg, rgba(14, 26, 51, .95), rgba(8, 16, 34, .95));
  border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 30px 80px -40px rgba(10, 180, 255, .45);
}
html[dir="rtl"] .feature { background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(10, 180, 255, .12), transparent 60%), linear-gradient(180deg, rgba(14, 26, 51, .95), rgba(8, 16, 34, .95)); }
.feature__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(255, 200, 87, .1); border: 1px solid rgba(255, 200, 87, .35); color: var(--gold);
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
}
html:lang(ar) .badge { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-size: var(--t-sm); }
.feature__title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 600; line-height: 1.1; }
html:lang(ar) .feature__title { line-height: 1.4; font-weight: 700; }
.feature__lede { font-size: var(--t-lg); max-width: 56ch; }
.feature__channels { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.feature__channels li {
  padding: 6px 12px; border-radius: var(--r-md);
  background: rgba(10, 180, 255, .07); border: 1px solid var(--line); color: var(--ice); font-size: var(--t-sm);
}
.feature__ba { width: 100%; max-width: 560px; margin: 0; }
.feature .btn { margin-top: var(--s2); }

.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.flow::before {
  content: ""; position: absolute; inset-inline-start: 23px; top: 24px; bottom: 24px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px);
}
.flow__step {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s4); row-gap: 2px; align-items: center;
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-radius: var(--r-md);
  transition: background-color .4s;
}
html[dir="rtl"] .flow__step { padding: var(--s3) 0 var(--s3) var(--s4); }
.flow__k {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--midnight); border: 2px solid var(--line-strong);
  font-family: var(--font-mono); font-size: var(--t-sm); color: var(--text-dim);
  transition: border-color .4s, color .4s, box-shadow .4s;
}
.flow__t { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text); transition: color .4s; }
html:lang(ar) .flow__t { font-family: "IBM Plex Sans Arabic", sans-serif; }
.flow__d { font-size: var(--t-sm); color: var(--text-dim); }
.flow__step.is-active { background: rgba(10, 180, 255, .06); }
.flow__step.is-active .flow__k { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(255, 200, 87, .1), 0 0 20px rgba(255, 200, 87, .4); }
.flow__step.is-active .flow__t { color: var(--ice); }

.svc-sub {
  font-size: var(--t-lg); font-weight: 600; margin-bottom: var(--s5);
  display: flex; align-items: center; gap: var(--s4);
}
.svc-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Live demo */
.demo { background: linear-gradient(to bottom, rgba(5, 11, 24, .7), rgba(5, 11, 24, .9) 15%, rgba(5, 11, 24, .9)); }
.demo-panel {
  border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 26, 51, .95), rgba(8, 16, 34, .95));
}
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line);
}
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-tab {
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  background: transparent; color: var(--text); border: 1px solid var(--line);
  font: 500 var(--t-sm) var(--font-body); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
html:lang(ar) .demo-tab { font-family: "IBM Plex Sans Arabic", sans-serif; }
.demo-tab:hover { border-color: var(--line-strong); color: var(--ice); }
.demo-tab.is-on { background: rgba(10, 180, 255, .14); border-color: var(--cyan); color: var(--ice); }
.demo-run { display: flex; align-items: center; gap: var(--s3); }
.demo-timer { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--gold); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: end; }
.btn__icon--play { width: 14px; height: 14px; color: currentColor; }
html[dir="rtl"] .btn__icon--play { transform: scaleX(-1); }

.demo-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-col {
  position: relative; display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s5); min-width: 0;
  border-inline-end: 1px solid var(--line);
  transition: background-color .4s;
}
.demo-col:last-child { border-inline-end: 0; }
.demo-col:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; inset-inline-end: -7px; z-index: 2;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--midnight); border: 2px solid var(--line-strong);
  transition: border-color .3s, box-shadow .3s;
}
.demo-col.is-active { background: rgba(10, 180, 255, .05); }
.demo-col.is-done:not(:last-child)::after, .demo-col.is-active:not(:last-child)::after { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 200, 87, .5); }
.demo-col__label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 1rem; }
html:lang(ar) .demo-col__label { font-family: "IBM Plex Sans Arabic", sans-serif; }
.demo-col__k {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-dim);
  transition: border-color .3s, color .3s;
}
.demo-col.is-active .demo-col__k, .demo-col.is-done .demo-col__k { border-color: var(--gold); color: var(--gold); }
.demo-col.is-active .demo-col__label, .demo-col.is-done .demo-col__label { color: var(--ice); }

/* WhatsApp-style message */
.wa { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); background: #0B141A; }
.wa__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1F2C33; }
.wa__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #2A3942; color: #D1D7DB; font-weight: 600; font-size: var(--t-sm); }
.wa__name { display: block; color: #E9EDEF; font-size: var(--t-sm); font-weight: 500; line-height: 1.3; }
.wa__via { display: block; color: #8696A0; font-size: var(--t-xs); line-height: 1.3; }
.wa__body { padding: 14px 12px 16px; min-height: 150px; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.wa__body.is-in { opacity: 1; transform: none; }
.wa__bubble {
  background: #202C33; color: #E9EDEF; padding: 9px 12px; border-radius: 10px; border-start-start-radius: 2px;
  font-size: var(--t-sm); line-height: 1.6; max-width: 100%;
}
.hl { background: transparent; color: inherit; border-radius: 3px; box-shadow: inset 0 -2px 0 transparent; transition: background-color .3s, box-shadow .3s; }
.hl.is-on { background: rgba(255, 200, 87, .18); box-shadow: inset 0 -2px 0 var(--gold); }

/* Extracted record */
.record { margin: 0; display: grid; gap: 6px; }
.record__row {
  display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: var(--s3); align-items: baseline;
  padding: 8px 12px; border-radius: var(--r-sm); background: rgba(5, 11, 24, .6); border: 1px solid var(--line);
  opacity: .25; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
html[dir="rtl"] .record__row { transform: translateX(6px); }
.record__row.is-in { opacity: 1; transform: none; border-color: rgba(255, 200, 87, .3); }
.record__row dt { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
html:lang(ar) .record__row dt { font-family: "IBM Plex Sans Arabic", sans-serif; text-transform: none; letter-spacing: 0; font-size: var(--t-sm); }
.record__row dd { margin: 0; color: var(--ice); font-size: var(--t-sm); overflow-wrap: anywhere; }

/* Destination sheet and notification */
.sheet { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgba(5, 11, 24, .6); }
.sheet__title { padding: 8px 12px; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--cyan); border-bottom: 1px solid var(--line); }
html:lang(ar) .sheet__title { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); }
.sheet__row { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 8px; padding: 7px 12px; font-size: var(--t-xs); color: var(--text-dim); border-bottom: 1px solid rgba(10, 180, 255, .08); }
.sheet__row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__row:last-child { border-bottom: 0; }
.sheet__row--head { color: var(--text); font-weight: 500; background: rgba(10, 180, 255, .05); }
.sheet__row--new { color: var(--ice); opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .35s var(--ease), background-color 1.2s; }
.sheet__row--new.is-in { opacity: 1; transform: none; background: rgba(255, 200, 87, .12); }
.notify {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(14, 26, 51, .9); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.notify.is-in { opacity: 1; transform: none; }
.notify__app { font-family: var(--font-mono); font-size: var(--t-xs); color: #4FB4F0; letter-spacing: .08em; text-transform: uppercase; }
.notify__text { font-size: var(--t-sm); color: var(--ice); }
.demo-foot { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: var(--s3) var(--s5); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--text-dim); }
html:lang(ar) .demo-foot { font-size: var(--t-sm); }
.demo-foot__sep { opacity: .5; }

/* Chat */
.chat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s7); align-items: start; margin-top: var(--s8); }
.chat__intro { display: grid; gap: var(--s3); align-content: start; padding-top: var(--s4); }
.chat__title { font-size: var(--t-xl); font-weight: 600; line-height: 1.15; }
html:lang(ar) .chat__title { line-height: 1.4; }
.chat__box { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(14, 26, 51, .95), rgba(8, 16, 34, .95)); }
.chat__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--midnight); border: 1px solid var(--line-strong); }
.chat__avatar svg { width: 18px; height: 24px; fill: url(#markGrad); }
.chat__name { color: var(--ice); font-weight: 500; font-size: var(--t-md); line-height: 1.3; }
.chat__status { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--text-dim); }
.chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.chat__status.is-live .chat__dot { background: #4ADE80; }
.chat__log { height: 340px; overflow-y: auto; padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 86%; }
.msg--bot { align-self: flex-start; align-items: flex-start; }
.msg--user { align-self: flex-end; align-items: flex-end; }
.msg__bubble { padding: 10px 14px; border-radius: 14px; font-size: var(--t-sm); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.msg--bot .msg__bubble { background: rgba(5, 11, 24, .8); border: 1px solid var(--line); color: var(--ice); border-start-start-radius: 4px; }
.msg--user .msg__bubble { background: var(--blue); color: #fff; border-start-end-radius: 4px; }
.msg__wa { font-size: var(--t-xs); color: #4ADE80; text-decoration: none; border: 1px solid rgba(74, 222, 128, .35); padding: 4px 10px; border-radius: var(--r-pill); }
html:lang(ar) .msg__wa { font-size: var(--t-sm); }
.msg__wa:hover { background: rgba(74, 222, 128, .1); }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--s5) var(--s3); }
.chat__chip {
  padding: 6px 12px; border-radius: var(--r-pill); background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--cyan); font: var(--t-xs) var(--font-body);
  transition: background-color .2s, border-color .2s;
}
html:lang(ar) .chat__chip { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); }
.chat__chip:hover { background: rgba(10, 180, 255, .1); border-color: var(--cyan); }
.chat__form { display: flex; gap: var(--s2); padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--line); }
.chat__form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--r-md);
  background: rgba(5, 11, 24, .8); border: 1px solid var(--line-strong); color: var(--ice);
  font: var(--t-md) var(--font-body);
}
html:lang(ar) .chat__form input { font-family: "IBM Plex Sans Arabic", sans-serif; }
.chat__form input::placeholder { color: var(--text-dim); }
.chat__form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(10, 180, 255, .18); }
.chat__send { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--r-md); border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat__send:hover { background: var(--blue-hi); }
.chat__send svg { width: 18px; height: 18px; }
html[dir="rtl"] .chat__send svg { transform: scaleX(-1); }
.chat__error { min-height: 0; padding: 0 var(--s4); font-size: var(--t-xs); color: #FF9B8A; }
.chat__error:not(:empty) { padding-bottom: var(--s3); }

/* Not a fit */
.fit { background: rgba(5, 11, 24, .9); border-top: 1px solid var(--line); }
.fit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.fit-list li {
  position: relative; padding: var(--s4) var(--s5); padding-inline-start: 56px;
  background: rgba(14, 26, 51, .6); border: 1px solid var(--line); border-radius: var(--r-md);
}
.fit-list li::before {
  content: ""; position: absolute; inset-inline-start: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(255, 200, 87, .6);
  background:
    linear-gradient(45deg, transparent 45%, var(--gold) 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--gold) 45% 55%, transparent 55%);
  background-size: 10px 10px; background-position: center; background-repeat: no-repeat;
}

/* How it works */
.how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 11, 24, .9) 0%, rgba(5, 11, 24, .75) 45%, rgba(5, 11, 24, 0) 70%);
}
html[dir="rtl"] .how::before { background: linear-gradient(270deg, rgba(5, 11, 24, .9) 0%, rgba(5, 11, 24, .75) 45%, rgba(5, 11, 24, 0) 70%); }
.how__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s7); }
.how__col { min-width: 0; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; padding-inline-start: 48px; display: grid; gap: var(--s8); }
.steps::before, .steps::after {
  content: ""; position: absolute; inset-inline-start: 11px; top: 12px; width: 2px;
}
.steps::before { bottom: 12px; background: var(--line); }
.steps::after {
  height: calc((100% - 24px) * var(--p, 0));
  background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 13px);
  filter: drop-shadow(0 0 4px rgba(255, 200, 87, .6));
}
.step { position: relative; display: grid; justify-items: start; gap: var(--s2); max-width: 520px; }
.step__node {
  position: absolute; inset-inline-start: -48px; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--midnight); border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  transition: border-color .4s, box-shadow .4s;
}
.step__node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background-color .4s; }
.step.is-reached .step__node { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255, 200, 87, .1), 0 0 18px rgba(255, 200, 87, .45); }
.step.is-reached .step__node::after { background: var(--gold); }
.step__k { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--cyan); letter-spacing: .12em; }
.step__title { font-size: 1.5rem; font-weight: 600; color: var(--text); transition: color .4s; }
.step.is-reached .step__title { color: var(--ice); }
.step__text { max-width: 48ch; }
.chip {
  display: inline-flex; align-items: center; margin-top: var(--s1);
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--cyan);
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
}
html:lang(ar) .chip { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-size: var(--t-sm); }
.how__cta { margin-top: var(--s7); padding-inline-start: 48px; }

/* Stage preview (temporary) */
.next { padding-block: var(--s9); }
.next__inner { display: grid; gap: var(--s5); max-width: 820px; }
.next__title { font-size: var(--t-xl); font-weight: 600; }
.next__list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.next__list li { display: flex; gap: var(--s4); align-items: baseline; padding: var(--s4) var(--s5); background: rgba(5, 11, 24, .82); color: var(--text); }
.next__k { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--cyan); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: rgba(5, 11, 24, .92); padding-block: var(--s8) var(--s6); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s7); }
.footer__brand { display: flex; align-items: center; gap: var(--s4); }
.footer__mark { width: 40px; height: 52px; fill: url(#markGrad); filter: drop-shadow(0 0 10px rgba(10, 180, 255, .5)); }
.footer__name { font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: .06em; color: var(--ice); }
.footer__tag { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
html:lang(ar) .footer__tag { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s5); font-size: var(--t-sm); min-width: 0; }
.footer__links li { display: contents; }
.footer__k { color: var(--text-dim); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; align-self: center; }
html:lang(ar) .footer__k { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-sm); }
.footer__links a { color: var(--ice); text-decoration: none; overflow-wrap: anywhere; text-align: start; }
.footer__links a:hover { color: var(--cyan); }
.footer__base { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--text-dim); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 30;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: max(20px, env(safe-area-inset-right, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #128C4A; color: #fff;
  box-shadow: 0 10px 30px -8px rgba(18, 140, 74, .7), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transition: transform .2s var(--ease), opacity .25s var(--ease), visibility .25s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float svg { width: 28px; height: 28px; }
/* Hidden while the hero is on screen: the hero has its own WhatsApp button,
   and on phones the floating one would sit on top of the hero text. */
.wa-float.is-away { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }

/* About */
.about { background: rgba(5, 11, 24, .86); border-top: 1px solid var(--line); }
.about__inner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.about__photo { margin: 0; position: relative; }
.about__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -24px rgba(10, 180, 255, .45);
}
.about__photo figcaption {
  position: absolute; inset-inline-start: var(--s4); bottom: var(--s4);
  display: grid; gap: 2px; padding: var(--s2) var(--s4);
  background: rgba(5, 11, 24, .82); border: 1px solid var(--line); border-radius: var(--r-md);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.about__name { color: var(--ice); font-weight: 600; font-size: var(--t-sm); }
.about__role { color: var(--gold); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; }
html:lang(ar) .about__role { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; text-transform: none; }
.about__p { font-size: var(--t-lg); line-height: 1.7; max-width: 60ch; margin: 0 0 var(--s4); }
.about__p + .about__p { color: var(--ice); }
@media (max-width: 820px) {
  .about__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .about__photo { max-width: 260px; }
}

/* FAQ */
.faq { background: rgba(5, 11, 24, .82); border-top: 1px solid var(--line); }
.faq-list { display: grid; gap: var(--s3); max-width: 860px; }
.faq-item { background: rgba(14, 26, 51, .6); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 48px; padding: var(--s4) var(--s5); padding-inline-end: 52px;
  font-weight: 600; color: var(--ice); font-size: var(--t-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 9px; height: 9px;
  border-inline-end: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: var(--r-md); }
.faq-item p { margin: 0; padding: 0 var(--s5) var(--s5); color: var(--text); max-width: 70ch; }
.faq-more { margin-top: var(--s5); color: var(--text-dim); font-size: var(--t-sm); }
html:lang(ar) .faq-item summary { font-family: "IBM Plex Sans Arabic", sans-serif; }

/* Comfortable tap sizes on touch screens */
@media (pointer: coarse) {
  .chat__chip { min-height: 40px; padding-block: 8px; }
  .footer__links a { display: inline-block; padding-block: 10px; }
}

/* Responsive */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr); }
  .demo-col { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .demo-col:last-child { border-bottom: 0; }
  .demo-col:not(:last-child)::after { top: auto; bottom: -7px; inset-inline-end: auto; inset-inline-start: 36px; }
  .chat { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .feature { grid-template-columns: minmax(0, 1fr); padding: var(--s6) var(--s5); }
  .fit-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .how__inner { grid-template-columns: minmax(0, 1fr); }
  .how__stage { display: none; }
  .how::before { background: rgba(5, 11, 24, .85); }
  html[dir="rtl"] .how::before { background: rgba(5, 11, 24, .85); }
  .section { padding-block: var(--s8); }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc--custom { grid-column: auto; }
  .steps { gap: var(--s7); }
}
@media (max-width: 960px) {
  .nav {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; gap: 0;
    padding: var(--s3) max(20px, env(safe-area-inset-right, 0px)) var(--s5) max(20px, env(safe-area-inset-left, 0px));
    background: rgba(5, 11, 24, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: var(--t-md); border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header__actions { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 820px) {
  .hero { align-items: flex-end; min-height: 100svh; padding-block: 44svh var(--s7); }
  .hero::before { background: linear-gradient(to bottom, rgba(5, 11, 24, 0) 30%, rgba(5, 11, 24, .9) 62%); }
  html[dir="rtl"] .hero::before { background: linear-gradient(to bottom, rgba(5, 11, 24, 0) 30%, rgba(5, 11, 24, .9) 62%); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .console { position: static; width: 100%; }
  .no-webgl .hero { padding-block: var(--s7); }
  .no-webgl .hero__fallback { order: -1; }
}
@media (max-width: 560px) {
  .header__cta { display: none; }
  .brand__name { font-size: 1rem; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__links { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer__k { margin-top: var(--s3); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: var(--s3); }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* ---------- contact form (added with the lead webhook) ---------- */
.quote { background: rgba(5, 11, 24, .9); border-top: 1px solid var(--line); }
.quote-form { display: grid; gap: var(--s5); max-width: 860px; }
.quote-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 720px) { .quote-form__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ice); }
.field .req { color: var(--cyan); }
.field input, .field textarea {
  width: 100%; padding: var(--s3) var(--s4); font: inherit; font-size: var(--t-md);
  color: var(--ice); background: rgba(14, 26, 51, .6);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(10, 180, 255, .14);
}
.field textarea { resize: vertical; min-height: 96px; }
.field__hint { margin: 0; font-size: var(--t-xs); color: var(--text-dim); }
.quote-form__foot { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.quote-form__note { margin: 0; font-size: var(--t-sm); color: var(--text-dim); }
.quote-form__msg { margin: 0; font-size: var(--t-sm); }
.quote-form__msg:empty { display: none; }
.quote-form__msg.is-err { color: #FF7A7A; }
.quote-form__msg.is-warn { color: var(--gold); }
.quote-done { display: grid; gap: var(--s3); max-width: 620px; }
.quote-done[hidden] { display: none; }
.quote-done__mark { margin: 0; font-size: 2rem; line-height: 1; color: var(--cyan); }
.quote-done__title { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.quote-done__body { margin: 0; color: var(--text); }
