/* Yozef Automations — main stylesheet (one file for both directions; logical properties throughout) */

/* ─── fonts (self-hosted, SIL OFL: see /assets/fonts/*-OFL.txt) ─────────────── */
@font-face {
  font-family: 'Heebo';
  src: url(/assets/fonts/heebo-hebrew-wght.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  src: url(/assets/fonts/heebo-latin-wght.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Heebo';
  src: url(/assets/fonts/heebo-latin-ext-wght.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(/assets/fonts/jetbrains-mono-latin-wght.woff2) format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── tokens ──────────────────────────────────────────────────────────────── */
:root {
  --navy: #0B0A38;
  --navy-2: #13124A;
  --navy-3: #1D1C5E;
  --navy-deep: #07062A;
  --teal: #14B8A9;
  --teal-bright: #2EE6D0;
  --teal-ink: #086D65;
  --amber: #F2B654;
  --paper: #F5F4EF;
  --stone: #EAE8E0;
  --white: #FFFFFF;
  --ink: #0B0A38;
  --ink-2: #44436B;
  --ink-3: #5E5D7C;
  --line: rgba(11, 10, 56, .13);
  --line-strong: rgba(11, 10, 56, .26);
  --on-navy-2: rgba(255, 255, 255, .76);
  --on-navy-3: rgba(255, 255, 255, .6);
  --line-navy: rgba(255, 255, 255, .14);
  --focus: var(--teal-ink);

  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Heebo', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --shell: 1312px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: 24px;
  --head-h: 72px;
}

/* ─── base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal-bright); color: var(--navy); }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.hero, .sec--navy, .site-head, .site-foot, .wa-float { --focus: var(--teal-bright); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 6px;
  background: var(--teal-bright); color: var(--navy); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; outline: 2px solid var(--white); outline-offset: 2px; }

.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.i { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.i-dir:dir(rtl) { transform: scaleX(-1); }

/* ─── buttons & links ─────────────────────────────────────────────────────── */
.btn {
  --cap-l: none; --cap-r: none; --cap-off: -10px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 30px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  background-image: var(--cap-l), var(--cap-r);
  background-repeat: no-repeat; background-size: auto 100%;
  background-position: left var(--cap-off) center, right var(--cap-off) center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), background-position .45s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { --cap-off: 0px; }
.btn .i-dir { transition: translate .25s var(--ease); }
.btn:hover .i-dir { translate: 3px 0; }
.btn:dir(rtl):hover .i-dir { translate: -3px 0; }
.btn--teal {
  --cap-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='56' viewBox='0 0 72 56' fill='none' stroke-width='1.15' stroke-linecap='round'%3E%3Cg%3E%3Cpath d='M-4 9L31 60' stroke='%230B0A38' stroke-opacity='0.34'/%3E%3Cpath d='M35 -4L-4 45' stroke='%23FFFFFF' stroke-opacity='0.62'/%3E%3Cpath d='M55 -4L23 60' stroke='%230B0A38' stroke-opacity='0.26'/%3E%3Cpath d='M12 -4L47 60' stroke='%23FFFFFF' stroke-opacity='0.37'/%3E%3C/g%3E%3C/svg%3E");
  --cap-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='56' viewBox='0 0 72 56' fill='none' stroke-width='1.15' stroke-linecap='round'%3E%3Cg transform='translate(72 0) scale(-1 1)'%3E%3Cpath d='M-4 9L31 60' stroke='%23FFFFFF' stroke-opacity='0.62'/%3E%3Cpath d='M35 -4L-4 45' stroke='%230B0A38' stroke-opacity='0.34'/%3E%3Cpath d='M55 -4L23 60' stroke='%23FFFFFF' stroke-opacity='0.46'/%3E%3Cpath d='M12 -4L47 60' stroke='%230B0A38' stroke-opacity='0.2'/%3E%3C/g%3E%3C/svg%3E");
  background-color: var(--teal); color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 26px -16px rgba(46, 230, 208, .7);
}
.btn--teal:hover { background-color: var(--teal-bright); }
.btn--navy {
  --cap-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='56' viewBox='0 0 72 56' fill='none' stroke-width='1.15' stroke-linecap='round'%3E%3Cg%3E%3Cpath d='M-4 9L31 60' stroke='%232EE6D0' stroke-opacity='0.95'/%3E%3Cpath d='M35 -4L-4 45' stroke='%2314B8A9' stroke-opacity='0.75'/%3E%3Cpath d='M55 -4L23 60' stroke='%232EE6D0' stroke-opacity='0.71'/%3E%3Cpath d='M12 -4L47 60' stroke='%2314B8A9' stroke-opacity='0.45'/%3E%3C/g%3E%3C/svg%3E");
  --cap-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='56' viewBox='0 0 72 56' fill='none' stroke-width='1.15' stroke-linecap='round'%3E%3Cg transform='translate(72 0) scale(-1 1)'%3E%3Cpath d='M-4 9L31 60' stroke='%2314B8A9' stroke-opacity='0.85'/%3E%3Cpath d='M35 -4L-4 45' stroke='%239BE9DF' stroke-opacity='0.6'/%3E%3Cpath d='M55 -4L23 60' stroke='%2314B8A9' stroke-opacity='0.64'/%3E%3Cpath d='M12 -4L47 60' stroke='%239BE9DF' stroke-opacity='0.36'/%3E%3C/g%3E%3C/svg%3E");
  background-color: var(--navy); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 26px -16px rgba(11, 10, 56, .8);
}
.btn--navy:hover { background-color: #15144C; }
.btn--lg { min-height: 56px; padding: 0 36px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-u {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .32em; text-decoration-color: var(--teal-ink);
  padding-block: 10px; transition: text-decoration-thickness .2s;
}
.link-u:hover { text-decoration-thickness: 2px; }
.link-u--light { color: var(--white); text-decoration-color: var(--teal-bright); }

/* ─── header ──────────────────────────────────────────────────────────────── */
.site-head {
  position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--head-h);
  color: var(--white);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-head.is-scrolled, .menu-open .site-head {
  background: rgba(11, 10, 56, .94);
  box-shadow: 0 1px 0 var(--line-navy);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.head-row { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; padding-block: 4px; text-decoration: none; }
.brand img { display: block; width: auto; }
.brand .brand-mark { height: 56px; }
.brand .brand-word { height: 38px; }
.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) {
  display: block; padding: 10px 10px; border-radius: 4px;
  font-size: .9375rem; color: rgba(255, 255, 255, .8); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav-list a:not(.btn):hover { color: var(--white); }
.nav-cta-item { display: none; }
.lang-link, .foot-lang {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line-navy); border-radius: 999px; padding-inline: 16px;
  font-size: .875rem; color: var(--white); text-decoration: none;
  transition: border-color .2s var(--ease);
}
.lang-link:hover, .foot-lang:hover { border-color: var(--teal-bright); }
.head-cta { min-height: 42px; padding: 0 22px; font-size: .9375rem; }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-navy); border-radius: 6px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon i { position: absolute; inset-inline: 0; height: 1.5px; background: var(--white); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-icon i:first-child { top: 2px; }
.menu-icon i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 5.5px; transform: rotate(-45deg); }

@media (max-width: 1179px) {
  .js .main-nav {
    display: none; position: fixed; inset: var(--head-h) 0 0 0; z-index: 49;
    padding: 12px var(--gutter) 40px; background: var(--navy); overflow-y: auto; overscroll-behavior: contain;
  }
  .js.menu-open .main-nav { display: block; }
  /* a backdrop-filter on the header would become the containing block of the fixed menu panel */
  .menu-open .site-head { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js.menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a:not(.btn) {
    padding: 15px 0; border-radius: 0; border-bottom: 1px solid var(--line-navy);
    font-size: 1.3125rem; font-weight: 600; color: var(--white);
  }
  .nav-cta-item { display: block; margin-top: 28px; }
  .nav-cta-item .btn { width: 100%; min-height: 56px; font-size: 1.0625rem; }
  .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .lang-link { margin-inline-start: auto; }
  html:not(.js) .site-head { position: relative; height: auto; background: var(--navy); }
  html:not(.js) .head-row { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .menu-btn { display: none; }
}

/* ─── section scaffolding ─────────────────────────────────────────────────── */
.sec { padding-block: clamp(84px, 10vw, 152px); overflow-x: clip; }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--stone { background: var(--stone); color: var(--ink); }
.sec--navy { background: var(--navy); color: var(--white); }


.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px;
  margin-bottom: clamp(52px, 6vw, 92px);
}
.sec-title {
  margin: 0; font-size: clamp(2.125rem, 1.15rem + 2.9vw, 3.875rem); line-height: 1.07;
  font-weight: 800; letter-spacing: -.015em;
}
.sec-head .sec-title { grid-column: 1 / span 7; }
.sec-sub { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
.sec-head .sec-sub { grid-column: 9 / span 4; align-self: end; }
.sec--navy .sec-sub { color: var(--on-navy-2); }

:lang(en) .sec-title, :lang(en) .hero-title, :lang(en) .about-title { letter-spacing: -.025em; }
:lang(en) .foot-col-title, :lang(en) .ch-label,
:lang(en) .svc-example-label, :lang(en) .case-dl dt, :lang(en) .case-tag {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem;
}

/* ─── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: clip; }
.hero-stage {
  position: relative; display: flex; align-items: center;
  min-height: clamp(620px, calc(100svh - 84px), 860px);
  padding-block: calc(var(--head-h) + 44px) 56px;
}
.hero-3d { position: absolute; inset: 0; }
.hero-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { position: relative; z-index: 1; pointer-events: none; }
.hero-copy { max-width: 640px; pointer-events: auto; }
.hero-badge {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font-size: .9375rem; font-weight: 500; color: var(--teal-bright); letter-spacing: .01em;
}
.hero-badge::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.hero-title {
  margin: 26px 0 26px; font-size: clamp(2.6rem, 1.05rem + 4.5vw, 5.4rem); line-height: 1.02;
  font-weight: 800; letter-spacing: -.02em;
}
.hero-title em { font-style: normal; color: var(--teal-bright); }
.hero-sub { margin: 0; max-width: 33em; font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem); line-height: 1.7; color: var(--on-navy-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 38px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 44px 0 0;
  font-size: .9375rem; color: var(--on-navy-2);
}
.hero-points li { display: flex; align-items: baseline; gap: 10px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--teal-bright); translate: 0 -2px; }

/* tools carousel, same list and icons as the live site's strip */
.tech-strip {
  position: relative; z-index: 1; overflow: hidden; direction: ltr; padding-block: 18px;
  background: linear-gradient(90deg, var(--navy), var(--navy-2), var(--navy));
  border-block: 1px solid rgba(46, 230, 208, .15);
}
.tech-track { display: flex; align-items: center; gap: 52px; width: max-content; animation: marquee 45s linear infinite; }
.tech-strip:hover .tech-track { animation-play-state: paused; }
.tech-item { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .90625rem; white-space: nowrap; letter-spacing: .02em; }
.tech-item img { display: block; width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .15)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* static fallback for the 3D scene: a rendered still of it (assets/img/hero3d-still.webp),
   in the same spot and size as the live scene (centre at 27% / 73%, about half the width) */
.hero-fallback {
  position: absolute; top: 47.5%; left: 27%;
  width: auto; height: auto; max-width: 47%; max-height: 80%;
  translate: -50% -50%;
  transition: opacity .8s var(--ease), visibility 0s linear .8s;
}
.hero-fallback:dir(ltr) { left: 73%; }
.hero-3d[data-hero3d="ready"] .hero-fallback { opacity: 0; visibility: hidden; }

/* ─── services ────────────────────────────────────────────────────────────── */
/* cards with a glossy 3D orb per service; each service has its own accent color */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.svc { --acc: var(--teal-bright); perspective: 1000px; }
.svc--bot { --acc: #2EE6D0; }
.svc--phone { --acc: #5B8CFF; }
.svc--doc { --acc: #F5B544; }
.svc--users { --acc: #FF7E67; }
.svc--link { --acc: #3DDC97; }
.svc--form { --acc: #38C6F4; }
.svc-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 34px 30px 28px; border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(120% 70% at 85% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 62%),
    linear-gradient(180deg, #FFFFFF, #FBFBF8);
  box-shadow: 0 1px 0 rgba(11, 10, 56, .04), 0 22px 40px -30px rgba(11, 10, 56, .45);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.svc-card::before { /* accent bar */
  content: ""; position: absolute; inset-inline: 30px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
}
.svc-card::after { /* glare that follows the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 45%);
  transition: opacity .35s var(--ease);
}
.svc-card:hover {
  border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  box-shadow: 0 1px 0 rgba(11, 10, 56, .04), 0 34px 60px -30px color-mix(in srgb, var(--acc) 55%, rgba(11, 10, 56, .6));
}
.svc-card:hover::after { opacity: 1; }

.svc-orb {
  position: relative; display: grid; place-items: center; width: 86px; height: 86px; margin-bottom: 26px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #3B3F96 0%, #1A1960 34%, #0B0A38 68%, #05041F 100%);
  box-shadow:
    inset 0 -8px 16px rgba(0, 0, 0, .5), inset 0 5px 12px rgba(255, 255, 255, .14),
    0 0 0 2px color-mix(in srgb, var(--acc) 60%, transparent),
    0 0 26px -4px color-mix(in srgb, var(--acc) 75%, transparent),
    0 22px 26px -16px rgba(11, 10, 56, .6);
  transform: translateZ(46px);
}
.svc-orb::before { /* specular highlight */
  content: ""; position: absolute; left: 20%; top: 12%; width: 38%; height: 26%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent); filter: blur(1px);
}
.svc-orb::after { /* ground shadow */
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -20px; height: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 45%, rgba(11, 10, 56, .45)), transparent);
}
.svc-ico { position: relative; width: 40px; height: 40px; color: var(--acc); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--acc) 70%, transparent)); }
@media (prefers-reduced-motion: no-preference) {
  .svc-orb { animation: svc-float 5s ease-in-out infinite; }
  .svc:nth-child(2) .svc-orb { animation-delay: -1s; }
  .svc:nth-child(3) .svc-orb { animation-delay: -2s; }
  .svc:nth-child(4) .svc-orb { animation-delay: -3s; }
  .svc:nth-child(5) .svc-orb { animation-delay: -4s; }
  @keyframes svc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
}
.svc-title { margin: 0 0 12px; font-size: clamp(1.3125rem, 1.1rem + .5vw, 1.5625rem); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.svc-what { margin: 0 0 22px; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.svc-example {
  margin-top: auto; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--acc) 11%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--acc) 26%, transparent);
  font-size: .9375rem; line-height: 1.65; color: var(--ink-2);
}
.svc-example p { margin: 0; }
.svc-example .svc-example-label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: .8125rem; font-weight: 700; color: color-mix(in srgb, var(--acc) 40%, #0B0A38);
}
.svc-example .svc-example-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }

/* ─── cases ───────────────────────────────────────────────────────────────── */
.case {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding-block: clamp(64px, 7vw, 112px); border-top: 1px solid var(--line-navy);
}
.case:first-child { padding-top: 8px; border-top: 0; }
.case:last-child { padding-bottom: 0; }
.case-text { grid-column: 1 / span 5; grid-row: 1; }
.case-visual { grid-column: 7 / span 6; grid-row: 1; }
.case--even .case-text { grid-column: 8 / span 5; }
.case--even .case-visual { grid-column: 1 / span 6; }

.case-meta { display: flex; align-items: baseline; gap: 14px; margin: 0; font-size: .9375rem; color: var(--on-navy-3); }
.case-title { margin: 18px 0 20px; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.status {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0;
  padding: 7px 14px; border: 1px solid var(--line-navy); border-radius: 4px; font-size: .875rem;
}
.status strong { font-weight: 600; }
.status-note { color: var(--on-navy-3); }
.status-note::before { content: "·"; margin-inline-end: 10px; color: var(--on-navy-3); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 3px rgba(46, 230, 208, .18); }
.status--pilot .status-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 182, 84, .18); }
.status--spec .status-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--white); }
.case-dl { margin: 34px 0 0; }
.case-dl > div { margin-bottom: 22px; }
.case-dl dt { margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--teal-bright); }
.case-dl dd { margin: 0; font-size: 1rem; line-height: 1.72; color: var(--on-navy-2); }
.case-dl .case-impact { margin: 30px 0 0; padding-inline-start: 18px; border-inline-start: 2px solid var(--teal-bright); }
.case-dl .case-impact dd { color: var(--white); font-size: 1.0625rem; }

/* ─── screen mockups (HTML/CSS, tilted in real 3D) ────────────────────────── */
.mock {
  --c: .45;               /* scroll position: 1 entering below · 0 centred · -1 leaving above (set by main.js) */
  --face: -1;             /* turns the screen towards the copy (visual on the inline-end side) */
  --amp: 1;
  position: relative; container-type: inline-size;
  perspective: 1700px; perspective-origin: 50% 40%;
  padding-block: 4% 9%;
}
.mock:dir(rtl) { --face: 1; }
.case--even .mock { --face: 1; }
.case--even .mock:dir(rtl) { --face: -1; }
.mock-stage {
  position: relative; transform-style: preserve-3d;
  font-size: clamp(5px, 1.92cqi, 13.4px);
  transform:
    rotateX(calc((4deg + var(--c) * 7deg) * var(--amp)))
    rotateY(calc(var(--face) * (9deg + var(--c) * 7deg) * var(--amp)));
  will-change: transform;
}
.mk-i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }

.win {
  position: relative; overflow: hidden; border-radius: .9em;
  background: #fff; color: #1D1C3F; font-family: var(--font); font-size: 1em; line-height: 1.35; text-align: start;
  box-shadow: 0 3em 6em -1.6em rgba(0, 0, 0, .6), 0 .6em 1.4em -.4em rgba(0, 0, 0, .35);
}
.win p { margin: 0; }
.win-bar {
  display: flex; align-items: center; gap: .9em; height: 2.7em; padding: 0 1.1em;
  background: #F1F2F6; border-bottom: 1px solid #E3E5EC; color: #5B5D77; font-size: .95em;
}
.win-bar--dark { background: var(--navy); border-bottom-color: transparent; color: rgba(255, 255, 255, .82); }
.win-dots { display: flex; gap: .42em; }
.win-dots i { width: .72em; height: .72em; border-radius: 50%; background: #D3D6DF; }
.win-bar--dark .win-dots i { background: rgba(255, 255, 255, .22); }
.win-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-status { margin-inline-start: auto; display: flex; align-items: center; gap: .45em; font-size: .88em; white-space: nowrap; }
.win-status i { width: .55em; height: .55em; border-radius: 50%; background: var(--teal); }

.mk-pill { display: inline-block; padding: .32em .8em; border-radius: 99em; font-size: .8em; font-weight: 600; white-space: nowrap; }
.mk-pill--ok { background: #DDF6F2; color: var(--teal-ink); }
.mk-pill--wait { background: #FFF0D4; color: #7A4F00; }
.mk-avatar {
  display: grid; place-items: center; flex: none; width: 2.7em; height: 2.7em; border-radius: 50%;
  background: #E0F6F3; color: var(--teal-ink); font-weight: 700; font-size: .95em;
}

.mk-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .75em;
  padding: .9em 1.2em; border-radius: .8em; background: #fff; color: var(--navy);
  font-size: 1.04em; line-height: 1.3;
  box-shadow: 0 2.2em 3.6em -1em rgba(0, 0, 0, .55), 0 0 0 1px rgba(11, 10, 56, .06);
}
.mk-float b { display: block; font-weight: 700; }
.mk-float small { display: block; color: #66688A; font-size: .86em; }
.mk-float-icon { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .6em; background: var(--teal); color: #fff; flex: none; }

/* CRM client record */
.mk-app { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); min-height: 31em; }
.mk-side { display: flex; flex-direction: column; gap: .25em; padding: 1.2em .9em; background: var(--navy); color: rgba(255, 255, 255, .66); font-size: .95em; }
.mk-side-logo { width: 1.9em; height: 1.9em; margin: 0 .3em 1.1em; border-radius: .55em; background: var(--teal); }
.mk-side-item { padding: .55em .75em; border-radius: .45em; }
.mk-side-item.is-on { background: rgba(255, 255, 255, .1); color: #fff; }
.mk-main { display: flex; flex-direction: column; gap: .95em; min-width: 0; padding: 1.2em 1.5em 1.4em; }
.mk-search { display: flex; align-items: center; gap: .55em; height: 2.5em; padding: 0 .9em; border: 1px solid #E3E5EC; border-radius: .55em; color: #9A9CB3; font-size: .92em; }
.mk-client { display: flex; align-items: center; gap: .9em; }
.mk-client-id { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mk-client-id b { font-size: 1.28em; color: var(--navy); }
.mk-client-id small { color: #686A86; font-size: .9em; }
.mk-chips { display: flex; flex-wrap: wrap; gap: .5em; }
.mk-chips span { padding: .3em .7em; border: 1px solid #E3E5EC; border-radius: .4em; color: #5B5D77; font-size: .82em; }
.mk-tabs { display: flex; gap: 1.4em; border-bottom: 1px solid #E8E9EF; color: #7A7C95; font-size: .92em; }
.mk-tabs span { padding-bottom: .65em; }
.mk-tabs .is-on { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px var(--teal); }
.mk-timeline { display: flex; flex-direction: column; gap: .15em; list-style: none; margin: 0; padding: 0; }
.mk-timeline li { display: grid; grid-template-columns: 2.3em minmax(0, 1fr) auto; align-items: center; gap: .85em; padding: .5em .5em; border-radius: .55em; }
.mk-timeline li.is-hot { background: #EFFAF8; }
.mk-tl-icon { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .6em; background: #F1F2F6; color: var(--navy); }
.is-hot .mk-tl-icon { background: var(--teal); color: #fff; }
.mk-tl-text b { display: block; font-size: .95em; color: var(--navy); }
.mk-tl-text small { color: #686A86; font-size: .86em; }
.mk-timeline time { font-family: var(--mono); font-size: .78em; color: #9A9CB3; }
.mk-float--crm { left: -5%; bottom: 13%; transform: translateZ(5.5em); }

/* AI document filing */
.mk-ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5em; padding: 1.5em; background: #F6F7FA; }
.mk-scan {
  position: relative; padding: 1.3em 1.2em 2.6em; border: 1px solid #E1E3EA; border-radius: .25em; background: #FDFDFB;
  box-shadow: 0 .5em 1.2em rgba(11, 10, 56, .08); transform: rotate(-1.4deg);
}
.mk-scan-head { display: flex; justify-content: space-between; margin-bottom: 1.3em; }
.mk-scan-head span { display: block; width: 38%; height: .75em; border-radius: .2em; background: #C9CCD6; }
.mk-scan-head span:last-child { width: 20%; }
.mk-scan-lines { display: flex; flex-direction: column; gap: .7em; }
.mk-scan-lines i { display: block; height: .46em; border-radius: .2em; background: #DCDFE6; }
.mk-scan-lines .w40 { width: 40%; } .mk-scan-lines .w60 { width: 60%; } .mk-scan-lines .w70 { width: 70%; }
.mk-scan-lines .w75 { width: 75%; } .mk-scan-lines .w85 { width: 85%; }
.mk-scan-lines .is-mark { height: .95em; margin-block: -.2em; background: rgba(20, 184, 169, .22); box-shadow: inset 0 0 0 1.5px var(--teal); }
.mk-scan-lines .is-mark--a { width: 55%; }
.mk-scan-file { position: absolute; bottom: .8em; inset-inline-start: 1.2em; font-family: var(--mono); font-size: .74em; color: #9A9CB3; }
.mk-extract { display: flex; flex-direction: column; gap: .85em; padding: 1.15em 1.25em; border: 1px solid #E3E5EC; border-radius: .65em; background: #fff; }
.mk-extract-from { display: flex; align-items: center; gap: .5em; font-weight: 600; color: var(--navy); font-size: .95em; }
.mk-extract dl { display: flex; flex-direction: column; gap: .55em; margin: 0; }
.mk-extract dl div { display: flex; justify-content: space-between; gap: 1em; padding-bottom: .55em; border-bottom: 1px dashed #E1E3EA; }
.mk-extract dt { color: #7A7C95; font-size: .88em; }
.mk-extract dd { display: flex; align-items: center; gap: .35em; margin: 0; font-weight: 600; color: var(--navy); font-size: .92em; }
.mk-ok { color: var(--teal); }
.mk-extract-result { display: flex; align-items: center; gap: .5em; margin-top: .1em; padding: .7em .9em; border-radius: .5em; background: #E0F6F3; color: var(--teal-ink); font-weight: 700; }
.mk-extract-result .mk-i:dir(rtl) { transform: scaleX(-1); }
.mk-queue { padding: 1em 1.5em 1.3em; border-top: 1px solid #E8E9EF; }
.mk-queue-title { margin-bottom: .4em !important; font-family: var(--mono); font-size: .76em; color: #9A9CB3; }
.mk-queue-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .55em 0; border-bottom: 1px solid #F0F1F5; font-size: .9em; color: var(--navy); }
.mk-queue-row:last-child { border-bottom: 0; }
.mk-float--ai { left: 33%; top: 31%; gap: .5em; padding: .65em 1em; background: var(--navy); color: #fff; transform: translateZ(6.5em); }
.mk-float--ai .mk-i { color: var(--teal-bright); }

/* scheduling board + technician app */
.mk-board { padding-bottom: 1.2em; font-size: .92em; }
.mk-board-row { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); border-bottom: 1px solid #EEF0F4; }
.mk-board-tech { align-self: center; padding: .8em .9em; font-weight: 600; color: var(--navy); font-size: .92em; white-space: nowrap; }
.mk-board-days {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 5.4em; align-items: center;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), #EEF0F4 calc(20% - 1px) 20%);
}
.mk-board-row--head .mk-board-days { min-height: 0; background: none; }
.mk-board-day { padding: .75em .6em; font-family: var(--mono); font-size: .8em; color: #8A8CA5; }
.mk-job {
  grid-row: 1; display: flex; flex-direction: column; min-width: 0; margin: .45em .3em; padding: .5em .65em;
  border-radius: .45em; border-inline-start: .26em solid var(--teal); background: #E3F7F4; overflow: hidden;
}
.mk-job b { font-size: .88em; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-job small { font-size: .78em; color: #5B5D77; }
.mk-job--alt { background: #EEF0F6; border-inline-start-color: #9A9CB3; }
.mk-job--hot { background: var(--navy); border-inline-start-color: var(--teal-bright); }
.mk-job--hot b { color: #fff; }
.mk-job--hot small { color: rgba(255, 255, 255, .7); }
.mk-phone {
  position: absolute; z-index: 2; right: -3%; bottom: -12%; width: 33%;
  padding: .55em; border-radius: 2.3em; background: #0D0C2E;
  box-shadow: 0 2.6em 4.6em -1em rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform: translateZ(7.5em);
}
.mk-phone-screen { display: flex; flex-direction: column; align-items: flex-start; gap: .4em; min-height: 26em; padding: 1.3em 1.1em 1.2em; border-radius: 1.8em; background: #fff; color: var(--navy); }
.mk-phone-screen p { margin: 0; }
.mk-phone-offline { display: flex; align-items: center; gap: .4em; align-self: stretch; margin-bottom: .6em !important; padding: .45em .6em; border-radius: .5em; background: #F1F2F6; color: #5B5D77; font-size: .74em; }
.mk-phone-job { font-family: var(--mono); font-size: .76em; color: #8A8CA5; }
.mk-phone-title { font-size: 1.22em; font-weight: 700; }
.mk-phone-site { font-size: .84em; color: #5B5D77; margin-bottom: .3em !important; }
.mk-phone-list { list-style: none; margin: .7em 0 0; padding: 0; align-self: stretch; }
.mk-phone-list li { display: flex; align-items: center; gap: .55em; padding: .55em 0; border-top: 1px solid #EEF0F4; font-size: .84em; }
.mk-box { display: grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: .3em; border: 1.5px solid #C9CBD6; flex: none; }
.is-done .mk-box { border-color: var(--teal); background: var(--teal); color: #fff; }
.is-done .mk-box .mk-i { width: .9em; height: .9em; }
.mk-phone-btn { align-self: stretch; margin-top: auto; padding: .7em; border-radius: .6em; background: var(--navy); color: #fff; font-weight: 600; font-size: .86em; text-align: center; }

/* dashboard */
.mk-dash { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.2em; padding: 1.5em; background: #F4F5F8; }
.mk-card { padding: 1.15em 1.25em; border: 1px solid #E6E8EE; border-radius: .7em; background: #fff; }
.mk-card-title { margin-bottom: 1.1em !important; font-weight: 600; color: var(--navy); font-size: .95em; }
.mk-chart { padding-bottom: 2.4em; }
.mk-bars { display: flex; align-items: flex-end; gap: .55em; height: 15em; border-bottom: 1px solid #E6E8EE; }
.mk-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mk-bar i { display: block; width: 100%; border-radius: .28em .28em 0 0; background: #C8EEE9; }
.mk-bar.is-hot i { background: var(--teal); }
.mk-bar small { position: absolute; bottom: -1.75em; inset-inline: 0; text-align: center; font-size: .72em; color: #8A8CA5; }
.mk-todo-row { display: flex; align-items: center; gap: .65em; padding: .8em 0; border-bottom: 1px solid #F0F1F5; font-size: .9em; color: var(--navy); }
.mk-todo-row:last-child { border-bottom: 0; }
.mk-todo-dot { width: .55em; height: .55em; border-radius: 50%; background: var(--teal); flex: none; }
.is-warn .mk-todo-dot { background: var(--amber); }
.mk-todo-t { flex: 1; min-width: 0; }
.mk-btn { padding: .35em .85em; border-radius: .4em; background: var(--navy); color: #fff; font-size: .82em; font-weight: 600; white-space: nowrap; }
.mk-float--toast { right: 5%; top: -3%; transform: translateZ(6.5em); }

/* spec sketch (wireframe: not built yet) */
.mock--wire .mock-stage { min-height: 33em; }
.mk-wire-pdf {
  position: absolute; left: 4%; top: 5%; width: 44%; padding: 1.5em 1.4em;
  display: flex; flex-direction: column; gap: .75em;
  border: 1.5px dashed rgba(255, 255, 255, .34); border-radius: .4em; color: rgba(255, 255, 255, .72);
  transform: translateZ(-2.5em) rotate(-4deg);
}
.mk-wire-pdf:dir(rtl) { left: auto; right: 4%; transform: translateZ(-2.5em) rotate(4deg); }
.mk-wire-pdf p { margin: 0 0 .4em; font-family: var(--mono); font-size: .86em; }
.mk-wire-pdf i { display: block; height: .46em; border-radius: .2em; background: rgba(255, 255, 255, .2); }
.mk-wire-pdf .w40 { width: 40%; } .mk-wire-pdf .w60 { width: 60%; } .mk-wire-pdf .w70 { width: 70%; } .mk-wire-pdf .w80 { width: 80%; }
.mk-wire-pdf-img { display: block; height: 8em; margin-block: .4em; border: 1px dashed rgba(255, 255, 255, .3); border-radius: .3em; }
.mk-wire-phone {
  position: relative; width: 44%; margin-inline-start: auto; margin-inline-end: 8%;
  display: flex; flex-direction: column; gap: .75em; padding: 1.7em 1.35em 1.5em;
  border: 1.5px solid rgba(255, 255, 255, .62); border-radius: 2.1em; background: rgba(11, 10, 56, .82); color: #fff;
  box-shadow: 0 2.4em 4em -1.2em rgba(0, 0, 0, .6);
  transform: translateZ(4em);
}
.mk-wire-phone p { margin: 0; }
.mk-wire-tag { align-self: flex-start; padding: .25em .7em; border: 1px dashed var(--teal-bright); border-radius: 99em; color: var(--teal-bright); font-size: .78em; }
.mk-wire-title { font-weight: 700; font-size: 1.12em; margin-bottom: .2em !important; }
.mk-wire-field { display: flex; flex-direction: column; gap: .25em; }
.mk-wire-field small { color: rgba(255, 255, 255, .62); font-size: .78em; }
.mk-wire-field span { padding: .5em .7em; border: 1px dashed rgba(255, 255, 255, .4); border-radius: .4em; font-size: .9em; }
.mk-wire-photo { display: flex; align-items: center; justify-content: center; gap: .5em; height: 4.4em; border: 1px dashed rgba(255, 255, 255, .4); border-radius: .4em; color: rgba(255, 255, 255, .7); font-size: .84em; }
.mk-wire-btn { padding: .65em; border: 1.5px solid var(--teal-bright); border-radius: .5em; color: var(--teal-bright); font-weight: 600; font-size: .9em; text-align: center; }

/* WP Inbox */
.mk-inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 28em; }
.mk-convs { display: flex; flex-direction: column; gap: .2em; list-style: none; margin: 0; padding: .5em; border-inline-end: 1px solid #E8E9EF; }
.mk-convs li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: start; gap: .7em; padding: .7em .6em; border-radius: .55em; }
.mk-convs li.is-on { background: #EFFAF8; }
.mk-conv-text b { display: block; font-size: .95em; color: var(--navy); }
.mk-conv-text small { display: block; overflow: hidden; color: #686A86; font-size: .85em; white-space: nowrap; text-overflow: ellipsis; }
.mk-conv-text em { display: block; margin-top: .2em; font-style: normal; font-size: .76em; color: var(--teal-ink); }
.mk-unread { display: grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em; border-radius: 99em; background: var(--teal); color: #fff; font-size: .74em; font-weight: 700; }
.mk-chat { display: flex; flex-direction: column; min-width: 0; background: #F4F5F1; }
.mk-chat-head { padding: .8em 1.1em; border-bottom: 1px solid #E8E9EF; background: #fff; }
.mk-chat-head b { display: block; color: var(--navy); }
.mk-chat-head small { color: var(--teal-ink); font-size: .82em; }
.mk-chat-body { display: flex; flex-direction: column; gap: .6em; flex: 1; padding: 1.1em; }
.mk-msg { max-width: 82%; margin: 0 !important; padding: .6em .85em; border-radius: .75em; font-size: .92em; line-height: 1.4; }
.mk-msg--them { align-self: flex-start; background: #fff; box-shadow: 0 0 0 1px #E8E9EF; }
.mk-msg--ai { align-self: flex-end; background: #D9F4EF; }
.mk-handoff { align-self: center; margin-top: .4em !important; padding: .35em .85em; border: 1px dashed #C3C5D2; border-radius: 99em; background: #fff; color: #5B5D77; font-size: .76em; }
.mk-composer { margin: .8em; padding: .7em 1.1em; border: 1px solid #E3E5EC; border-radius: 99em; background: #fff; color: #9A9CB3; font-size: .9em; }
.mk-float--ai-badge { right: -4%; top: 38%; padding: .7em 1.05em; background: var(--navy); color: #fff; transform: translateZ(6em); }
.mk-float--ai-badge .mk-float-icon { background: rgba(46, 230, 208, .16); color: var(--teal-bright); }

/* ─── industries ──────────────────────────────────────────────────────────── */
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); align-items: start; }
.ind:nth-child(3n+2) { margin-top: 72px; }
.ind { position: relative; perspective: 1100px; }
.ind-card {
  position: relative; height: 100%; padding: 30px 30px 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 1px 0 rgba(11, 10, 56, .04), 0 18px 30px -26px rgba(11, 10, 56, .35);
}
@media (hover: hover) {
  .ind:hover .ind-card { transform: translateZ(26px) rotateX(4deg); box-shadow: 0 1px 0 rgba(11, 10, 56, .04), 0 34px 54px -30px rgba(11, 10, 56, .5); }
}
.ind:focus-within .ind-card { transform: translateZ(26px) rotateX(4deg); }
.ind-title { margin: 0 0 18px; font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.ind-list { list-style: none; margin: 0; padding: 0; }
.ind-list li { padding: 13px 0; border-top: 1px solid var(--line); font-size: .96875rem; line-height: 1.62; color: var(--ink-2); }
.ind-note {
  display: flex; gap: 10px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line-strong);
  font-size: .9375rem; line-height: 1.55; font-weight: 600; color: var(--teal-ink);
}
.ind-note::before { content: ""; width: 7px; height: 7px; margin-top: .55em; flex: none; background: var(--teal); }
.ind--built .ind-card { border-color: rgba(20, 184, 169, .55); }
.ind-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: 88px; padding-top: 32px; border-top: 1px solid var(--line-strong);
}
.ind-foot p { margin: 0; max-width: 46em; font-size: 1.125rem; line-height: 1.65; }

/* ─── process ─────────────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 5px; height: 1px; background: var(--line-strong); }
.step-node { position: relative; z-index: 1; display: block; width: 11px; height: 11px; margin: 0 0 26px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 2px var(--teal-ink); }
.step:last-child .step-node { background: var(--teal-ink); }
.step-title { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.step p { margin: 0; font-size: .96875rem; line-height: 1.68; color: var(--ink-2); }

/* ─── product ─────────────────────────────────────────────────────────────── */
.product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.product-text { grid-column: 1 / span 5; }
.product-visual { grid-column: 7 / span 6; }
.product-name { margin: 0 0 12px; font-size: 1.125rem; font-weight: 700; color: var(--teal-bright); }
.product .sec-title { font-size: clamp(2rem, 1.2rem + 2.3vw, 3.4rem); }
.product-desc { margin: 24px 0 30px; font-size: 1.0625rem; line-height: 1.72; color: var(--on-navy-2); }
.product-points { list-style: none; margin: 0 0 38px; padding: 0; border-top: 1px solid var(--line-navy); }
.product-points li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-navy); font-size: .96875rem; line-height: 1.55; }
.product-points li::before { content: ""; width: 6px; height: 6px; margin-top: .62em; flex: none; background: var(--teal-bright); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

/* ─── about ───────────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.about-id { grid-column: 1 / span 6; }
.about-title {
  margin: 0 0 44px; font-size: clamp(3rem, 1.3rem + 5vw, 6.5rem); line-height: .96;
  font-weight: 800; letter-spacing: -.03em; color: var(--navy);
}
.about-title:lang(en) { font-size: clamp(2.75rem, 1.2rem + 4.1vw, 5.5rem); }
.about-mark { display: flex; align-items: center; gap: 20px; }
.about-mark img { width: 96px; height: auto; }
.about-mark p { margin: 0; font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.about-body { grid-column: 8 / span 5; padding-top: 10px; }
.about-body > p { margin: 0 0 22px; font-size: 1.0625rem; line-height: 1.78; color: var(--ink-2); }
.about-body > p:first-child { font-size: clamp(1.1875rem, 1rem + .5vw, 1.4375rem); line-height: 1.6; font-weight: 500; color: var(--ink); }
.about-note { margin: 28px 0; padding-inline-start: 20px; border-inline-start: 2px solid var(--teal); font-size: 1.125rem; }
.about-points { list-style: none; margin: 40px 0 0; padding: 0; }
.about-points li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line-strong); font-weight: 600; line-height: 1.5; }
.about-points li::before { content: ""; width: 7px; height: 7px; margin-top: .58em; flex: none; background: var(--teal); }

/* ─── faq ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.faq-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--head-h) + 40px); }
.faq-head .sec-title { margin: 0 0 18px; font-size: clamp(2rem, 1.3rem + 1.7vw, 3rem); }
.faq-head .sec-sub { margin-bottom: 28px; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 12px;
  min-height: 64px; padding: 20px 0; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-q { font-size: 1.1875rem; line-height: 1.4; font-weight: 600; }
.qa summary:hover .qa-q { color: var(--teal-ink); }
.qa-icon { position: relative; width: 28px; height: 28px; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; top: 50%; inset-inline: 7px; height: 1.5px; margin-top: -.75px; background: currentColor; transition: rotate .3s var(--ease); }
.qa-icon::after { rotate: 90deg; }
.qa[open] .qa-icon::after { rotate: 0deg; }
.qa-a { padding: 0 0 26px; padding-inline-end: 40px; }
.qa-a p { margin: 0 0 12px; max-width: 64ch; font-size: 1.0625rem; line-height: 1.78; color: var(--ink-2); }

/* ─── contact ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.contact-text { grid-column: 1 / span 5; }
.contact .sec-title { margin: 0 0 22px; }
.contact-lead { margin: 0 0 40px; max-width: 30em; font-size: 1.125rem; line-height: 1.72; color: var(--on-navy-2); }
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-navy); }
.channels li { display: grid; grid-template-columns: 40px 88px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-navy); }
.ch-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-navy); border-radius: 50%; color: var(--teal-bright); }
.ch-label { font-size: .875rem; color: var(--on-navy-3); }
.channels a { padding-block: 9px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(46, 230, 208, .55); text-underline-offset: .32em; overflow-wrap: anywhere; }
.channels a:hover { text-decoration-color: var(--teal-bright); }

.lead-form {
  grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px;
  padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line-navy); border-radius: 8px; background: var(--navy-2);
}
.form-title, .form-hint, .field--wide, .form-error, .form-status, .lead-form .btn, .form-privacy { grid-column: 1 / -1; }
.form-title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.form-hint { margin: -12px 0 2px; font-size: .875rem; color: var(--on-navy-3); }
.field label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; }
.req { margin-inline-start: 4px; color: #FF9494; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 6px; background: rgba(255, 255, 255, .045);
  color: var(--white); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 124px; resize: vertical; }
.field ::placeholder { color: rgba(255, 255, 255, .52); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .4); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--teal-bright); outline-offset: 1px; background: rgba(255, 255, 255, .07); }
.field [aria-invalid="true"] { border-color: #FF9494; }
.field select {
  appearance: none; cursor: pointer; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232EE6D0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:dir(rtl) { background-position: left 16px center; }
.field select option { background: var(--white); color: var(--navy); }
#f-phone:dir(ltr) { text-align: start; }
html[dir="rtl"] #f-phone { text-align: right; }
.form-error { margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 148, 148, .45); border-radius: 6px; background: rgba(255, 148, 148, .1); color: #FFC7C7; font-size: .9375rem; }
.form-status { margin: 0; color: var(--teal-bright); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 12px 14px; border: 1px solid rgba(46, 230, 208, .45); border-radius: 6px; background: rgba(46, 230, 208, .08); }
.form-privacy { margin: -4px 0 0; text-align: center; font-size: .8125rem; color: var(--on-navy-3); }

/* ─── footer ──────────────────────────────────────────────────────────────── */
.site-foot { padding-block: 76px 30px; background: var(--navy-deep); color: var(--on-navy-2); border-top: 1px solid rgba(46, 230, 208, .22); }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line-navy); }
.foot-brand .brand-mark { height: 76px; }
.foot-brand .brand-word { height: 52px; }
.foot-tagline { margin: 0; max-width: 32em; font-size: 1rem; line-height: 1.65; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); padding-block: 46px; }
.foot-col-title { margin: 0 0 14px; font-size: .875rem; color: var(--on-navy-3); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a, .foot-col span { display: inline-block; padding-block: 8px; font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .84); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .3em; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 26px; border-top: 1px solid var(--line-navy); font-size: .875rem; }
.foot-legal { margin: 0; margin-inline-end: auto; }
.foot-mark { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--on-navy-3); }
.foot-top-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--white); text-underline-offset: .3em; }

/* ─── floating WhatsApp ───────────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: var(--navy);
  box-shadow: 0 12px 28px -8px rgba(7, 6, 42, .55), 0 0 0 1px rgba(255, 255, 255, .2);
  transition: opacity .3s var(--ease), translate .3s var(--ease), background-color .2s var(--ease);
}
.wa-float svg { width: 27px; height: 27px; }
.wa-float:hover { background: var(--teal-bright); }
.wa-float.is-tucked, .menu-open .wa-float { opacity: 0; translate: 0 14px; pointer-events: none; }

/* ─── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1179px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 1023px) {
  .sec-head .sec-title { grid-column: 1 / -1; }
  .sec-head .sec-sub { grid-column: 1 / span 9; }

  .case { row-gap: 44px; }
  .case-text, .case--even .case-text { grid-column: 1 / span 10; grid-row: 1; }
  .case-visual, .case--even .case-visual { grid-column: 1 / -1; grid-row: 2; }
  .case .mock, .case--even .mock { --face: -1; }
  .case .mock:dir(rtl), .case--even .mock:dir(rtl) { --face: 1; }

  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind:nth-child(3n+2) { margin-top: 0; }
  .ind:nth-child(2n) { margin-top: 56px; }

  .steps { grid-template-columns: 1fr; gap: 0; padding-inline-start: 28px; }
  .steps::before { inset-inline-start: 5px; inset-inline-end: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .step { position: relative; padding-bottom: 40px; }
  .step:last-child { padding-bottom: 0; }
  .step-node { position: absolute; inset-inline-start: -28px; top: 6px; margin: 0; }

  .product-text { grid-column: 1 / span 10; }
  .product-visual { grid-column: 1 / -1; margin-top: 56px; }

  .about-id, .about-body { grid-column: 1 / -1; }
  .about-body { padding-top: 0; }

  .faq-head { grid-column: 1 / -1; position: static; }
  .faq-list { grid-column: 1 / -1; }

  .contact-text, .lead-form { grid-column: 1 / -1; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --gap: 16px; --head-h: 64px; }
  body { font-size: 1rem; }
  .brand .brand-mark { height: 46px; }
  .brand .brand-word { height: 31px; }

  .hero-stage { flex-direction: column; align-items: stretch; min-height: 0; padding-block: calc(var(--head-h) + 36px) 0; }
  .hero-grid { order: 1; }
  .hero-3d { position: relative; inset: auto; order: 2; height: min(84vw, 340px); margin-top: 4px; }
  .hero-fallback, .hero-fallback:dir(ltr) { left: 50%; max-width: 92%; }
  .hero-title { margin: 20px 0 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 30px; }
  .hero-actions .link-u { align-self: flex-start; }
  .hero-points { flex-direction: column; gap: 10px; margin-top: 32px; }
  .tech-strip { padding-block: 14px; }
  .tech-track { gap: 36px; }

  .sec-head { display: block; }
  .sec-head .sec-title { margin-top: 0; }
  .sec-head .sec-sub { margin-top: 18px; }

  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .svc-card { padding: 28px 22px 22px; border-radius: 18px; }
  .svc-orb { width: 72px; height: 72px; margin-bottom: 22px; }
  .svc-ico { width: 34px; height: 34px; }

  .case-text, .case--even .case-text { grid-column: 1 / -1; }
  .mock { --amp: .7; padding-block: 2% 10%; }

  .ind-grid { grid-template-columns: 1fr; gap: 20px; }
  .ind:nth-child(2n) { margin-top: 0; }
  .ind-card { padding: 26px 22px 24px; }
  .ind-foot { margin-top: 56px; }


  .product-text { grid-column: 1 / -1; }
  .about-points li { font-size: .96875rem; }

  .qa summary { grid-template-columns: minmax(0, 1fr) 24px; gap: 10px; }
  .qa-q { font-size: 1.0625rem; }
  .qa-a { padding-inline-start: 0; padding-inline-end: 0; }

  .lead-form { grid-template-columns: 1fr; }
  .channels li { grid-template-columns: 40px minmax(0, 1fr); }
  .channels li .ch-label { display: none; }

  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-brand .brand-mark { height: 52px; }
  .foot-brand .brand-word { height: 34px; }
  .foot-nav { gap: 28px 16px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .about-mark p { font-size: .75rem; letter-spacing: .1em; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .mock { --c: 0; }
  .ind:hover .ind-card, .ind:focus-within .ind-card { transform: none; }
}
.nowrap { white-space: nowrap; }
