/* SmartPath (مسیر هوشمند) — static site styles
   RTL-first: logical properties only (margin-inline, inset-inline, text-align:start). */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy-950: #06374f;
  --navy-900: #0a4d73;
  --navy-800: #0f6794;
  --navy-700: #1779a1;
  --brand: #4ab5d9;
  --brand-500: #2a9fcc;
  --brand-600: #1779a1;
  --brand-100: #e3f4fa;
  --brand-50: #f1f9fc;
  --ink: #12233a;
  --ink-soft: #4a5b72;
  --ink-mute: #7a8aa0;
  --line: #e1e9f2;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --ok: #1fb57a;
  --warn: #f2a516;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 51, .05), 0 4px 14px rgba(8, 26, 51, .05);
  --shadow: 0 2px 4px rgba(8, 26, 51, .05), 0 14px 38px rgba(8, 26, 51, .09);
  --shadow-lg: 0 24px 60px rgba(8, 26, 51, .18);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.5; font-weight: 700; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--brand); color: var(--navy-950); padding: 8px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(120, 214, 245, .25), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900) 60%, var(--navy-950)); color: #d7ecf8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.section--dark .section-head p { color: #a9bfd9; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--brand-600); background: var(--brand-100); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--brand); background: rgba(74, 181, 217, .12); border: 1px solid rgba(74, 181, 217, .28); }

/* icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--flip { transform: scaleX(-1); }
[dir="rtl"] .i--dir { transform: scaleX(-1); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.4; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, #5cc3e6, #2a9fcc); color: var(--navy-950); box-shadow: 0 8px 24px rgba(42, 159, 204, .35); }
.btn--primary:hover { color: var(--navy-950); box-shadow: 0 12px 30px rgba(42, 159, 204, .5); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--outline { border-color: var(--brand-600); color: var(--brand-600); background: transparent; }
.btn--outline:hover { background: var(--brand-600); color: #fff; }
.btn--sm { padding: 8px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10, 77, 115, .94); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .07); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(3, 10, 22, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }
.nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px; color: #cfdcee; font-weight: 500; font-size: .98rem; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"], .has-menu:has(:focus-visible) > .nav-link { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-link .i { width: 1em; height: 1em; transition: transform .2s; }
.nav-badge { font-size: .7rem; font-weight: 700; background: var(--brand); color: var(--navy-950); padding: 0 8px; border-radius: 999px; line-height: 1.7; }
.submenu { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); min-width: 280px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-menu:hover > .submenu, .has-menu:has(:focus-visible) > .submenu, .has-menu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover > .nav-link .i, .has-menu.is-open > .nav-link .i { transform: rotate(180deg); }
.submenu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .95rem; line-height: 1.6; }
.submenu a:hover { background: var(--brand-50); color: var(--brand-600); }
.sm-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-100); color: var(--brand-600); flex: none; }
.submenu small { display: block; color: var(--ink-mute); font-size: .78rem; }
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .95rem; }
.header-phone:hover { color: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle .i { width: 24px; height: 24px; }

/* hero */
.hero { position: relative; overflow: hidden; color: #d6ecf8; background:
  radial-gradient(900px 480px at 15% 0%, rgba(120, 214, 245, .42), transparent 62%),
  radial-gradient(700px 420px at 100% 100%, rgba(74, 181, 217, .28), transparent 60%),
  linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; margin-bottom: .45em; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #7ed3ee, #4ab5d9 60%, #6f9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; max-width: 580px; color: #cfe6f4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(74, 181, 217, .38), transparent 68%); filter: blur(10px); }
.hero-art > img { position: relative; width: min(100%, 460px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); animation: float 7s ease-in-out infinite; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: .88rem; line-height: 1.5; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: float 6s ease-in-out infinite; }
.float-chip b { display: block; font-size: 1.2rem; line-height: 1.2; color: var(--brand); }
.float-chip--a { inset-inline-start: 0; top: 14%; animation-delay: -1.5s; }
.float-chip--b { inset-inline-end: 0; top: 46%; animation-delay: -3s; }
.float-chip--c { inset-inline-start: 6%; bottom: 8%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.page-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px); color: #cfe6f4; background: radial-gradient(800px 320px at 85% 0%, rgba(120, 214, 245, .35), transparent 62%), linear-gradient(160deg, var(--navy-800), var(--navy-900) 60%, var(--navy-950)); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.page-hero p { max-width: 680px; margin: 0; font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 14px; color: #8fa8c6; }
.breadcrumb a { color: #b9cde4; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li + li::before { content: "‹"; margin-inline-end: 8px; opacity: .6; }

/* stats */
.stats { position: relative; margin-top: -48px; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.3; font-weight: 700; background: linear-gradient(120deg, var(--brand-600), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* cards & grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
a.card:hover, .card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe2f0; }
.product-card { display: flex; flex-direction: column; color: inherit; }
.product-card:hover { color: inherit; }
.product-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .kicker { font-size: .8rem; font-weight: 600; color: var(--brand-600); letter-spacing: 0; }
.product-card h3 { margin: 0; }
.product-card p { color: var(--ink-soft); font-size: .96rem; margin: 0 0 10px; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--brand-600); }
.more .i { transition: transform .2s; }
a:hover > .body .more .i, a.more:hover .i { transform: translateX(-4px); }

.feature { padding: 26px 24px; text-align: start; }
.feature .ico, .ico-box { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--brand-100), #fff); border: 1px solid #cfe7f2; color: var(--brand-600); margin-bottom: 16px; }
.feature .ico .i { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .2em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.feature small { display: block; color: var(--ink-mute); font-size: .82rem; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.section--dark .feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section--dark .feature h3 { color: #fff; }
.section--dark .feature p { color: #a9bfd9; }
.section--dark .feature .ico { background: rgba(74, 181, 217, .14); border-color: rgba(74, 181, 217, .3); color: var(--brand); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }
.split img.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list li { position: relative; padding-inline-start: 34px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231779a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.section--dark .check-list li::before { background-color: rgba(74, 181, 217, .18); }

/* hardware */
.hw-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hw-tile { display: block; padding: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; color: #fff; transition: transform .25s, border-color .25s, background .25s; }
.hw-tile:hover { transform: translateY(-6px); border-color: var(--brand); color: #fff; background: linear-gradient(160deg, rgba(74, 181, 217, .18), rgba(255, 255, 255, .04)); }
.hw-tile img { aspect-ratio: 16 / 10; object-fit: contain; width: 100%; padding: 8px 6px 0; }
.hw-tile span { display: block; padding: 4px 18px 18px; font-weight: 600; text-align: center; }
.hw-tile small { display: block; font-weight: 400; color: #9fb7d3; font-size: .85rem; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand-600); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.hw-card { display: flex; flex-direction: column; }
.hw-card[hidden] { display: none; }
.hw-card .art { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #ffffff 0%, #e8f2fa 70%), #eaf3fa; border-bottom: 1px solid var(--line); overflow: hidden; }
.hw-card .art img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s; }
.hw-card:hover .art img { transform: scale(1.05); }
.hw-card .tag { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; background: var(--navy-900); color: #fff; font-size: .78rem; font-weight: 600; padding: 2px 12px; border-radius: 999px; }
.hw-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hw-card h3 { margin: 0; }
.hw-card .sub { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.hw-card ul { margin: 6px 0 10px; flex: 1; font-size: .92rem; color: var(--ink); }
.hw-card li { position: relative; padding-inline-start: 22px; margin-bottom: 4px; line-height: 1.8; }
.hw-card li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .8em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.note { margin-top: 28px; text-align: center; color: var(--ink-mute); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 8px 10px; }
.step .num { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, #5cc3e6, #2a9fcc); color: var(--navy-950); font-weight: 700; font-size: 1.3rem; box-shadow: 0 8px 20px rgba(42, 159, 204, .35); position: relative; z-index: 1; }
.section--dark .step h3 { color: #fff; }
.section--dark .step p { color: #a9bfd9; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 36px; inset-inline-start: calc(-50% + 36px); width: calc(100% - 72px); border-top: 2px dashed rgba(130, 170, 200, .5); }
.step h3 { font-size: 1.02rem; margin-bottom: .2em; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.bundle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.bundle .card { text-align: center; padding: 14px 14px 20px; }
.bundle .card img { aspect-ratio: 16 / 10; object-fit: contain; width: 100%; background: radial-gradient(circle at 50% 55%, #fff, #e8f2fa 75%); border-radius: var(--radius-sm); margin-bottom: 10px; }
.bundle b { display: block; }
.bundle .qty { display: inline-block; font-size: .85rem; color: var(--brand-600); background: var(--brand-100); border-radius: 999px; padding: 0 12px; margin-top: 4px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #bcd9ea; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* clients */
.logos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.logos .logo { display: grid; place-items: center; aspect-ratio: 1; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .2s, box-shadow .2s; }
.logos .logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.logos img { max-height: 100%; width: auto; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logos .logo:hover img { filter: none; opacity: 1; }

/* docs gallery (about) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.gallery button:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.gallery--wide img { aspect-ratio: 4 / 3; object-fit: contain; background: #f5f8fc; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 24px; background: rgba(3, 10, 22, .88); backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 90vh; max-width: min(92vw, 900px); width: auto; border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-900); cursor: pointer; display: grid; place-items: center; }

/* blog */
.post-card .thumb { aspect-ratio: 16 / 10; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-mute); font-size: .85rem; margin-bottom: 4px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 0 12px; border-radius: 999px; background: var(--brand-100); color: var(--brand-600); line-height: 1.9; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); background: var(--navy-900); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.prose { font-size: 1.04rem; line-height: 2.15; color: #1f324a; max-width: 78ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.prose h4, .prose h5 { font-size: 1.12rem; margin: 1.4em 0 .3em; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--navy-900); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.6em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand-500); }
.prose ul ul { margin: .5em 0 0; list-style: circle; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em auto; box-shadow: var(--shadow-sm); }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: start; }
.prose th { background: var(--bg-alt); }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; display: grid; gap: 16px; }
.aside-card h3 { font-size: 1.05rem; margin: 0; }
.aside-list a { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; line-height: 1.7; }
.aside-list a:hover { color: var(--brand-600); }
.cta-card { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #cfe0f3; border: 0; }
.cta-card h3 { color: #fff; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); transition: border-color .2s, background .2s; }
.pager a:hover { border-color: var(--brand); background: var(--brand-50); }
.pager small { display: block; color: var(--ink-mute); font-size: .8rem; }
.pager .next { text-align: end; }

/* forms / contact */
.form-card { padding: clamp(22px, 3vw, 36px); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid #cfdbe8; border-radius: 12px; background-color: #fff; font: inherit; line-height: 1.6; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
/* the subject <select> looks exactly like the text fields: same height, border and radius, with our own arrow */
.field select { appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231779a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 20px; }
.field select::-ms-expand { display: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(74, 181, 217, .22); }
.field input[dir="ltr"] { text-align: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-row > .field { min-width: 0; }   /* every field has the same bottom margin, so vertical spacing is even in one or two columns */
.form-hint { font-size: .85rem; color: var(--ink-mute); margin: 12px 0 0; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #e8f8f1; color: #11694a; font-weight: 500; }
.form-status[hidden] { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.info-card h3 { font-size: 1rem; margin: 0 0 2px; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.info-stack { display: grid; gap: 16px; }

.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; color: #cfe0f3; background: radial-gradient(600px 260px at 0% 0%, rgba(74, 181, 217, .35), transparent 62%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.cta-band h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; max-width: 560px; }

/* footer */
.site-footer { background: var(--navy-950); color: #9fb4cd; padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 1em; }
.site-footer a { color: #b9cde4; }
.site-footer a:hover { color: var(--brand); }
.site-footer li { margin-bottom: 8px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 380px; margin: 0; line-height: 2; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .i { margin-top: .45em; color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .88rem; color: #7e95b1; }

/* misc */
.to-top { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy-900); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.error-page .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(120deg, var(--brand-600), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* responsive */
@media (max-width: 1100px) {
  /* backdrop-filter would make the fixed mobile menu relative to the header box */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-900); }
  .nav-toggle { display: grid; }
  .header-phone span { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-950); padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1.05rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(255, 255, 255, .05); display: none; margin: 2px 0 8px; }
  .has-menu.is-open > .submenu { display: block; }
  .submenu a { color: #dbe8f7; }
  .submenu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .sm-ico { background: rgba(74, 181, 217, .14); color: var(--brand); }
  .submenu small { color: #8fa8c6; }
  .header-cta { margin-inline-start: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 340px; }
  .grid--4, .hw-teaser { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .logos { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .step::after { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .grid--2, .grid--3, .split, .split--wide, .bundle, .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { display: none; }
  .header-cta .btn { display: none; }
  .pager { grid-template-columns: 1fr; }
  .cta-band { text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .hw-teaser, .grid--4 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .to-top, .cta-band, .aside-card { display: none !important; }
  body { font-size: 12pt; }
}

/* screenshot frames inside articles */
.shot { margin: 1.6em 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot-bar { display: flex; gap: 7px; padding: 11px 16px; background: #eef3f9; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c6d3e2; }
.shot-bar i:nth-child(1) { background: #ff6b6b; } .shot-bar i:nth-child(2) { background: #ffc24b; } .shot-bar i:nth-child(3) { background: #3ddc97; }
.shot img { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
.shot figcaption { padding: 10px 16px; font-size: .88rem; color: var(--ink-mute); text-align: center; border-top: 1px solid var(--line); }
.prose .shot img { margin: 0; }
.hw-teaser .hw-tile img, .product-card .thumb img[src$=".svg"] { object-fit: cover; }

.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--bg-alt); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: var(--brand-50); }

/* ---- additions: layout helpers (no inline styles, so a strict CSP works) ---- */
.hero-actions--flush { margin: 0; } .hero-actions--center { justify-content: center; }
.center-cta { text-align: center; margin: 36px 0 0; }
img.clickable { cursor: pointer; }
.bundle-wrap { max-width: 880px; margin: 48px auto 0; } .bundle-wrap h3 { text-align: center; margin-bottom: 20px; }
.split--form { align-items: start; grid-template-columns: .85fr 1.15fr; } .split--top { align-items: start; }
.info-stack--spaced { margin-top: 28px; }
.stats--flat { margin-top: 0; }
.post-meta--spaced { margin-bottom: 20px; }
.aside-card p { margin: 0; } .aside-card--static { margin-top: 20px; position: static; }
.thumb--hw { background: linear-gradient(135deg, #1384b3, #073a57); } .thumb--hw img { object-fit: contain !important; padding: 10px; }
.section--tight { padding-block: clamp(32px, 5vw, 60px); }
.stat small { display: block; color: var(--ink-mute); font-size: .82rem; line-height: 1.5; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; }

/* home: products + hardware side by side */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card { display: flex; flex-direction: column; gap: 6px; padding: 32px; }
.duo-card h2 { font-size: 1.6rem; margin: 6px 0 4px; }
.duo-card p { color: var(--ink-soft); margin: 0 0 12px; }
.duo-card .eyebrow { align-self: flex-start; }
.duo-card .btn { align-self: flex-start; margin-top: auto; }
.duo-list { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.duo-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.duo-list a:hover { background: var(--brand-50); color: var(--brand-600); }
.duo-list small { display: block; font-weight: 400; color: var(--ink-mute); font-size: .78rem; }
.sm-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-100); color: var(--brand-600); flex: none; }
.duo-card--hw { background: radial-gradient(500px 260px at 100% 0%, rgba(120, 214, 245, .35), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); border: 0; color: #cfe6f4; }
.duo-card--hw h2 { color: #fff; } .duo-card--hw p { color: #cfe6f4; }
.duo-card--hw .eyebrow { color: var(--brand); background: rgba(74, 181, 217, .14); border: 1px solid rgba(74, 181, 217, .3); }
.duo-hw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.duo-hw a { display: block; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; color: #fff; text-align: center; overflow: hidden; font-weight: 600; font-size: .88rem; transition: transform .2s, background .2s; }
.duo-hw a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); color: #fff; }
.duo-hw img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 4px 2px 0; }
.duo-hw span { display: block; padding: 0 6px 10px; }

/* services dropdown: link plus toggle */
.has-link { display: flex; align-items: center; }
.nav-sub-toggle { display: none; }
.img-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.2em 0; }
.prose .img-row a { display: block; text-align: center; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--navy-900); }
.prose .img-row img { margin: 0 0 6px; border-radius: 12px; box-shadow: var(--shadow-sm); }
@media (max-width: 1100px) {
  .has-link { flex-wrap: wrap; }
  .has-link > .nav-link { flex: 1; width: auto; }
  .nav-sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: #cfdcee; cursor: pointer; border-radius: 10px; }
  .nav-sub-toggle .i { transition: transform .2s; }
  .has-menu.is-open > .nav-sub-toggle .i { transform: rotate(180deg); }
  .has-link > .submenu { flex-basis: 100%; }
  .duo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .duo-list { grid-template-columns: 1fr; } .duo-hw { grid-template-columns: repeat(2, 1fr); }
  .img-row { gap: 8px; } .split--form { grid-template-columns: 1fr; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font-size: .78rem; font-weight: 600; background: var(--brand-100); color: var(--brand-600); padding: 0 11px; border-radius: 999px; line-height: 1.9; }

.form-status--error { background: #fdecec; color: #8a1f1f; }
