/* =========================================================
   Karen Tech — static company site (RTL / Persian)
   ========================================================= */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #070f26;
  --navy-900: #0b1636;
  --navy-800: #13214d;
  --blue-700: #1739a8;
  --blue-600: #1f4fd1;
  --blue-500: #2f6bff;
  --blue-400: #5b8cff;
  --blue-100: #e6eeff;
  --blue-50: #f3f7ff;
  --ink: #0f1a3a;
  --text: #3d4766;
  --muted: #6b7596;
  --line: #e3e9f6;
  --white: #fff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(16, 36, 94, .06);
  --shadow: 0 12px 34px -12px rgba(16, 36, 94, .22);
  --shadow-lg: 0 30px 60px -20px rgba(16, 36, 94, .35);
  --grad: linear-gradient(135deg, #2f6bff 0%, #1739a8 100%);

  --font: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.45; margin: 0; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.en { font-family: var(--font); direction: ltr; unicode-bidi: isolate; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--blue-600); color: #fff; padding: 8px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { font-size: 18px; stroke-width: 2.4; }
.btn--lg { padding: 14px 30px; font-size: 16px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(47, 107, 255, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(47, 107, 255, .7); }
.btn--primary:hover svg { transform: translateX(-3px); }
.btn--primary svg { transition: transform .25s; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }
.eyebrow--light { color: #a9c1ff; }
.eyebrow--light::before { background: linear-gradient(90deg, #5b8cff, #a9c1ff); }
.hero .eyebrow::before { display: none; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5bffb0; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(91, 255, 176, .35); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(16, 36, 94, .25);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 22px; font-weight: 900; color: #fff; transition: color .3s; }
.brand__text small { font-size: 12px; color: rgba(255, 255, 255, .7); transition: color .3s; }
.header.is-scrolled .brand img { filter: none; }
.header.is-scrolled .brand__text strong { color: var(--blue-700); }
.header.is-scrolled .brand__text small { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; padding: 8px 14px; font-weight: 500; font-size: 15px;
  color: rgba(255, 255, 255, .85); border-radius: 10px; transition: color .25s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--blue-400); transform: scaleX(0); transition: transform .3s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header.is-scrolled .nav a:not(.btn) { color: var(--text); }
.header.is-scrolled .nav a:not(.btn):hover, .header.is-scrolled .nav a.is-active { color: var(--blue-600); }
.nav__cta { margin-inline-start: 10px; }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s, background .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.header.is-scrolled .burger { background: var(--blue-50); }
.header.is-scrolled .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  background: radial-gradient(120% 90% at 85% 0%, #1b2f72 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #cfdaf7;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(120, 160, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 30% 50%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow--1 { width: 520px; height: 520px; background: #2f6bff; top: -180px; left: -120px; animation: float 14s ease-in-out infinite; }
.hero__glow--2 { width: 420px; height: 420px; background: #6a3dff; bottom: -200px; right: 10%; opacity: .35; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 48px; }
.hero__title { color: #fff; font-size: clamp(30px, 4.2vw, 52px); font-weight: 900; line-height: 1.4; letter-spacing: -.5px; }
.grad {
  display: block;
  background: linear-gradient(90deg, #7fa6ff 0%, #b7ccff 50%, #8fb0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 22px; max-width: 580px; font-size: clamp(16px, 1.5vw, 18px); color: #b9c6ea; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__tags { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 10px; direction: ltr; justify-content: flex-end; }
.hero__tags li {
  font-size: 13px; font-weight: 500; letter-spacing: .3px; color: #a9bdf3;
  padding: 5px 14px; border: 1px solid rgba(140, 170, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .03);
}

.hero__visual { display: grid; place-items: center; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(20, 36, 88, .7); border: 1px solid rgba(140, 170, 255, .25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  animation: bob 6s ease-in-out infinite;
}
.chip svg { font-size: 18px; color: #7fa6ff; }
.chip--a { top: 8%; right: -4%; }
.chip--c { top: 44%; left: -2%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 20px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); }
.section--dark { background: var(--navy-900); color: #b9c6ea; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; border: 1px solid rgba(120, 160, 255, .1);
  transform: rotate(45deg); top: -350px; left: -200px;
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head .eyebrow { justify-content: center; }
.section__title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.section__head--light .section__title { color: #fff; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s, border-color .35s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: right; transition: transform .45s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfdcff; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); font-size: 28px; margin-bottom: 22px;
  transition: background .35s, color .35s, transform .35s;
}
.card:hover .card__icon { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.card h3 .en { color: var(--blue-600); }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { text-align: center; padding: 30px 20px; border-radius: var(--radius); transition: background .3s, box-shadow .3s; }
.why__item:hover { background: #fff; box-shadow: var(--shadow); }
.why__icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 32px; color: var(--blue-600); background: #fff; box-shadow: 0 10px 26px -10px rgba(31, 79, 209, .45), inset 0 0 0 1px var(--line);
}
.why__item h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.why__item p { font-size: 15px; color: var(--muted); }

.banner {
  margin-top: 48px; display: flex; align-items: center; gap: 22px;
  padding: 24px 32px; border-radius: var(--radius-lg);
  background: var(--grad); color: #e8efff; box-shadow: var(--shadow-lg);
}
.banner__icon { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .14); color: #fff; }
.banner p { font-size: 17px; }
.banner strong { color: #fff; }

/* ---------- Clients ---------- */
.clients { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.client {
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 20px 24px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.client:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfdcff; }
.client__logo { height: 110px; width: 100%; display: grid; place-items: center; }
.client__logo img { max-height: 96px; max-width: 80%; width: auto; height: auto; object-fit: contain; filter: grayscale(1) opacity(.7); transition: filter .4s, transform .4s; }
.client:hover .client__logo img { filter: none; transform: scale(1.05); }
.client h3 { font-size: 16px; font-weight: 700; color: var(--text); padding-top: 16px; border-top: 1px solid var(--line); width: 100%; text-align: center; }
@media (hover: none) { .client__logo img { filter: none; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.about__text .section__title { margin-bottom: 20px; }
.about__text p + p { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checks li { position: relative; padding-inline-start: 30px; font-weight: 500; color: var(--ink); font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.about__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  padding: 28px 22px; border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stat__k { font-size: 44px; font-weight: 900; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__l { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat--wide {
  grid-column: 1 / -1; background: var(--navy-900); border-color: transparent; position: relative; overflow: hidden;
}
.stat--wide::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(120, 160, 255, .25); transform: rotate(45deg); left: -60px; bottom: -90px; }
.stat__en { direction: ltr; text-align: left; font-size: 15px; letter-spacing: 6px; color: #a9c1ff; font-weight: 600; line-height: 1.9; }
.stat--wide .stat__l { color: #cfdaf7; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step {
  position: relative; padding: 30px 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(140, 170, 255, .16);
  transition: background .3s, transform .3s;
}
.step:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.step__n { display: inline-block; font-size: 34px; font-weight: 900; line-height: 1; margin-bottom: 18px; background: linear-gradient(135deg, #7fa6ff, #2f6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; left: -20px; width: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 170, 255, .5));
}

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 36px;
  background: radial-gradient(90% 120% at 0% 100%, #1f4fd1 0%, var(--navy-900) 60%);
  color: #b9c6ea; box-shadow: var(--shadow-lg);
}
.contact::before {
  content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(140, 170, 255, .18);
  transform: rotate(45deg); top: -200px; left: -120px;
}
.contact h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.contact__sign { margin-top: 26px; font-size: 18px; color: #a9c1ff; }
.contact__sign em { font-style: normal; color: #fff; font-weight: 700; }
.contact__list { display: grid; gap: 14px; position: relative; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(140, 170, 255, .18);
  transition: background .3s, transform .3s, border-color .3s;
}
.contact__item:hover { background: rgba(255, 255, 255, .12); border-color: rgba(140, 170, 255, .4); transform: translateX(-4px); }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 22px; }
.contact__item small { display: block; font-size: 13px; color: #8fa3d6; line-height: 1.5; }
.contact__item strong { display: block; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .3px; text-align: right; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand--footer img { filter: none; }
.brand--footer .brand__text strong { color: var(--blue-700); }
.brand--footer .brand__text small { color: var(--muted); }
.footer__tag { direction: ltr; letter-spacing: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.footer__copy { font-size: 14px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .why, .steps, .clients { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 12px auto; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn), .header.is-scrolled .nav a:not(.btn) { color: var(--ink); padding: 12px 14px; }
  .nav a:not(.btn)::after { display: none; }
  .nav a:not(.btn):hover { background: var(--blue-50); color: var(--blue-600); }
  .nav__cta { margin: 8px 0 0; }

  .hero { min-height: auto; padding-bottom: 100px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__tags { justify-content: center; }
  .hero__visual { order: -1; }
  .chip { font-size: 12px; padding: 6px 12px; }

  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .services, .why, .steps, .checks, .about__panel { grid-template-columns: 1fr; }
  .clients { gap: 14px; }
  .client { padding: 20px 12px 16px; }
  .client__logo { height: 80px; }
  .client__logo img { max-height: 70px; }
  .banner { flex-direction: column; text-align: center; padding: 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s;
}
.faq__item[open] { border-color: #cfdcff; box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 24px; padding-inline-end: 64px;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd1' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s, background-color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: #d6e2ff; }
.faq__item summary:hover { color: var(--blue-600); }
.faq__a { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }
.faq__a p { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .faq__item summary { font-size: 15.5px; padding: 16px 18px; padding-inline-end: 56px; }
  .faq__a { padding: 0 18px 18px; }
}

/* ---------- Service links on home ---------- */
.card { display: flex; flex-direction: column; }
.card p { flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; align-self: flex-start;
  font-size: 14.5px; font-weight: 700; color: var(--blue-600);
}
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link svg { font-size: 16px; stroke-width: 2.4; transition: transform .25s; }
.card:hover .card__link svg { transform: translateX(-4px); }



/* ---------- Service page ---------- */
.section--tight { padding: clamp(56px, 7vw, 84px) 0; }
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 64px;
  background: radial-gradient(120% 90% at 85% 0%, #1b2f72 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #cfdaf7;
}
.page-hero .hero__grid { mask-image: radial-gradient(60% 80% at 20% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 80% at 20% 40%, #000 20%, transparent 75%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #8fa3d6; margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #cfdaf7; }
.page-hero__row { display: flex; align-items: flex-start; gap: 24px; max-width: 860px; }
.page-hero__icon {
  flex: none; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 40px; box-shadow: 0 0 50px -6px rgba(47, 107, 255, .7);
}
.page-hero__title { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 900; line-height: 1.45; }
.page-hero__lead { margin-top: 14px; font-size: clamp(16px, 1.5vw, 18.5px); color: #b9c6ea; }
.page-hero .hero__actions { margin-top: 36px; }

.svc-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: start; }
.prose p { font-size: 17px; }
.prose p + p { margin-top: 16px; }
.usecases { padding: 28px; border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--line); }
.usecases h2 { font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.checks--single { grid-template-columns: 1fr; margin: 0; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  position: relative; transition: transform .3s, box-shadow .3s;
}
.feat::before { content: ""; position: absolute; inset-inline-start: 24px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.related__item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 15px; transition: border-color .3s, transform .3s, color .3s;
}
.related__item:hover { border-color: #cfdcff; transform: translateY(-3px); color: var(--blue-600); }

/* ---------- Footer (columns) ---------- */
.footer { padding: 56px 0 0; background: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: 48px; padding-bottom: 40px; }
.footer__about p { margin-top: 14px; font-size: 14.5px; color: var(--muted); max-width: 360px; }
.footer__about .footer__tag { margin-top: 18px; }
.footer__col h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__col a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--blue-600); }
.footer__col a[dir="ltr"] { unicode-bidi: isolate; }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; text-align: center; }

@media (max-width: 1080px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .svc-intro { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .feats, .footer__grid { grid-template-columns: 1fr; }
  .page-hero__row { flex-direction: column; gap: 16px; }
  .page-hero__icon { width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }
  .footer__inner, .footer__grid { text-align: right; }
}
.footer__about .footer__tag { text-align: right; }

/* =========================================================
   Visual refresh (2026-10): photos and product glimpses
   Photos: assets/img/photos (Unsplash License), built by build_photos.py
   ========================================================= */

/* ---------- Hero showcase ---------- */
.hero__inner { grid-template-columns: 1.25fr .75fr; }
.showcase { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; }
.showcase__frame { position: absolute; inset: -6%; width: 112%; height: 112%; stroke: rgba(130, 165, 255, .28); stroke-width: 1; animation: spin 90s linear infinite; }
.showcase__frame rect { stroke: rgba(91, 140, 255, .4); }
.showcase__photo {
  position: absolute; inset: 9% 3% 13% 9%; margin: 0; overflow: hidden; border-radius: 30px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(140, 170, 255, .28), 0 0 90px -10px rgba(47, 107, 255, .45);
}
.showcase__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.showcase__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(11, 22, 54, 0) 45%, rgba(11, 22, 54, .55)); }
.glass {
  position: absolute; z-index: 1; padding: 14px 16px; border-radius: 18px; color: #fff;
  background: rgba(14, 28, 76, .66); border: 1px solid rgba(140, 170, 255, .3);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .65); animation: bob 7s ease-in-out infinite;
}
.glass--chat { top: 0; left: -3%; width: 236px; animation-delay: -3s; }
.glass__q { display: block; font-size: 13px; font-weight: 600; line-height: 1.7; padding: 6px 12px; margin-bottom: 12px; border-radius: 14px 14px 4px 14px; background: var(--grad); }
.glass__bars { display: grid; gap: 7px; }
.glass__bars i { display: block; width: var(--w); height: 8px; border-radius: 4px; background: linear-gradient(270deg, #5b8cff, #a9c1ff); }
.glass--kpi { bottom: 3%; right: -3%; width: 178px; }
.glass--kpi small { display: block; font-size: 12.5px; color: #a9bdf3; }
.glass--kpi b { display: block; font-size: 28px; font-weight: 900; line-height: 1.35; }
.spark { display: block; width: 100%; height: 30px; stroke: #5bffb0; stroke-width: 2.6; }
.showcase .chip--a { top: 40%; right: -7%; }
.showcase .chip--c { top: auto; bottom: 26%; left: -8%; animation-delay: -4s; }

/* ---------- Service cards with photos ---------- */
.card--media { padding: 0; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 54, 0) 50%, rgba(11, 22, 54, .4)); }
.card--media:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 0 26px 26px; }
.card--media .card__icon {
  position: relative; z-index: 1; margin: -30px 0 16px; background: var(--grad); color: #fff;
  box-shadow: 0 0 0 5px #fff, 0 14px 26px -10px rgba(31, 79, 209, .6);
}
.card--media::before { z-index: 2; }


/* ---------- About photo ---------- */
.about { grid-template-columns: 1.05fr .95fr; }
.about__media { position: relative; min-height: 540px; }
.about__photo { position: absolute; inset: 0 0 0 14%; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 54, 0) 55%, rgba(11, 22, 54, .45)); }
.about__stat {
  position: absolute; left: 0; display: flex; flex-direction: column; gap: 2px; min-width: 190px;
  padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.about__stat--a { top: 10%; }
.about__stat--b { top: 42%; left: 4%; }
.about__stat .stat__k { font-size: 40px; }
.about__tag {
  position: absolute; right: 22px; bottom: 22px; direction: ltr; text-align: left; font-size: 13px; font-weight: 600;
  letter-spacing: 5px; line-height: 1.8; color: #fff;
}

/* ---------- Process icons ---------- */
.step__ic {
  position: absolute; top: 26px; left: 22px; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px; color: #8fb0ff; background: rgba(91, 140, 255, .14);
}

/* ---------- Service page hero with photo ---------- */
.page-hero__inner--media { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.page-hero__media { position: relative; margin: 0; }
.page-hero__media::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px; border-radius: 32px; border: 1px solid rgba(140, 170, 255, .3);
}
.page-hero__media img {
  position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(140, 170, 255, .25), 0 0 90px -10px rgba(47, 107, 255, .4);
}
.feat__n { display: block; font-size: 26px; font-weight: 900; line-height: 1; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.related__thumb { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .showcase { width: min(380px, 86vw); }
  .glass { padding: 10px 12px; }
  .glass--chat { width: 190px; left: -2%; }
  .glass__q { font-size: 11.5px; }
  .glass--kpi { width: 140px; right: -2%; }
  .glass--kpi b { font-size: 22px; }
  .showcase .chip--a { right: -4%; } .showcase .chip--c { left: -4%; }
  .about { grid-template-columns: 1fr; }
  .about__media { min-height: 420px; order: -1; }
  .page-hero__inner--media { grid-template-columns: 1fr; gap: 36px; }
  .page-hero__media { max-width: 520px; }
}
@media (max-width: 600px) {
  .card__body { padding: 0 22px 22px; }
  .about__media { min-height: 360px; }
  .about__photo { inset: 0 0 0 10%; }
  .about__stat { min-width: 150px; padding: 12px 16px; }
  .about__stat .stat__k { font-size: 30px; }
  .step__ic { top: 22px; }
}
