/* ============================================================
   WDA — Landing page styles
   Built on the WDA UI Kit (tokens.css · kit.css · motion.css).
   Only page-level composition lives here; all values read tokens.
   ============================================================ */

body { background: var(--color-bg-page); overflow-x: hidden; }

/* ---- shared section scaffolding ---- */
.sec { position: relative; padding: clamp(64px, 9vw, 120px) var(--page-margin-tablet); }
.sec--tint { background: var(--color-bg-surface); }
.sec--ink { background: var(--color-ink); color: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap--narrow { max-width: 880px; }

.sec__head { max-width: 720px; }
.sec__head--center { margin: 0 auto; text-align: center; }
.sec__eyebrow { display: inline-block; font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-brand); margin: 0 0 14px; }
.sec--ink .sec__eyebrow { color: var(--color-brand-primary); }
.sec__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--color-text-primary); }
.sec--ink .sec__title { color: #fff; }
.sec__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--color-text-secondary); margin: 18px 0 0; }
.sec--ink .sec__lead { color: var(--color-text-on-dark-muted); }
.sec__foot { margin-top: 40px; }

.eyebrow-line { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-line::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--color-brand-mix-line); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: fixed; inset: 0 0 auto; z-index: var(--z-header); transition: background var(--motion-duration-standard) var(--motion-easing-standard), box-shadow var(--motion-duration-standard), border-color var(--motion-duration-standard); border-bottom: 1px solid transparent; }
/* max-width = hero content width (.thero__inner = 1240px) + the shared page gutter
   on each side, so the 40px border-box padding leaves a 1240px content band that
   lines the logo/CTA up with the hero grid. */
.site-header__inner { max-width: calc(1240px + 2 * var(--page-margin-tablet)); margin: 0 auto; padding: 18px var(--page-margin-tablet); display: flex; align-items: center; gap: 28px; }
.site-header.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--color-border-default); box-shadow: 0 1px 0 rgba(11,16,32,.02), var(--shadow-sm); }
.site-header.is-scrolled .site-header__inner { padding-top: 12px; padding-bottom: 12px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; color: var(--color-text-primary); }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--color-brand-primary); display: grid; place-items: center; color: var(--color-text-on-brand); flex: none; }
.brand__mark svg { width: 18px; height: 18px; }
.brand b { font-weight: 800; }
.brand span { color: var(--color-text-brand); }

/* ---- Canonical brand logo (WDA lockup) ---- */
.brand { gap: 0; }
.brand__logo { display: block; height: 34px; width: auto; object-fit: contain; flex: none; }
.site-header.is-scrolled .brand__logo { height: 30px; }
/* dark surfaces — logo sits on a clean light plate (the XI mark + CRM read as graphite,
   so they need a light backing for contrast; the logo itself is never recoloured). */
.site-footer .brand, .mobile-nav__top .brand { background: #fff; padding: 9px 15px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.site-footer .brand:hover, .mobile-nav__top .brand:hover { background: #fff; }
.site-footer .brand__logo { height: 38px; }
.mobile-nav__top .brand__logo { height: 28px; }
@media (max-width: 720px) { .brand__logo { height: 30px; } .site-header.is-scrolled .brand__logo { height: 28px; } }

.site-nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: nowrap; }
.site-nav a { white-space: nowrap; }
.site-nav a { padding: 9px 13px; border-radius: var(--radius-sm); text-decoration: none; color: var(--color-text-secondary); font-weight: var(--fw-medium); font-size: 15px; transition: background var(--dur), color var(--dur); }
.site-nav a:hover { background: var(--color-bg-surface); color: var(--color-text-primary); }
.site-nav a:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* ---- Services dropdown (desktop) ----
   Opens on hover (mouse) and :focus-within (keyboard) — no JS required, so
   it works before scripts load. On touch, tapping "Услуги" navigates to the
   services index; the 6 services also live in the mobile nested menu. */
.nav-item { position: relative; display: inline-flex; }
.nav-item--has-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item__chev { width: 14px; height: 14px; transition: transform var(--motion-duration-fast) var(--motion-easing-standard); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: var(--z-dropdown);
  min-width: 300px; padding: 8px; border-radius: var(--radius-lg);
  background: var(--color-bg-page); border: 1px solid var(--color-border-default);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--motion-duration-standard) var(--motion-easing-standard),
              transform var(--motion-duration-standard) var(--motion-easing-standard),
              visibility var(--motion-duration-standard);
}
/* Transparent hover bridge: fills the 8px gap between the trigger and the panel
   so the cursor never leaves the hover area in transit (no dead zone). */
.nav-drop::before {
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
}
.nav-item--has-drop:hover .nav-drop,
.nav-item--has-drop:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.nav-item--has-drop:hover .nav-item__chev,
.nav-item--has-drop:focus-within .nav-item__chev { transform: rotate(180deg); }
.nav-drop__link { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--color-text-primary); font-weight: var(--fw-semibold); font-size: 15px; }
.nav-drop__link span { font-weight: var(--fw-regular); font-size: 13px; color: var(--color-text-muted); }
.nav-drop__link:hover, .nav-drop__all:hover { background: var(--color-bg-surface); }
.nav-drop__link:focus-visible, .nav-drop__all:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.nav-drop__all { display: flex; align-items: center; gap: 7px; margin-top: 4px; padding: 11px 12px; border-top: 1px solid var(--color-border-default); border-radius: 0 0 var(--radius-md) var(--radius-md); text-decoration: none; color: var(--color-text-brand); font-weight: var(--fw-bold); font-size: 14px; }
.nav-drop__all svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .nav-drop, .nav-item__chev { transition: none; } }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { text-decoration: none; font-weight: var(--fw-bold); font-size: 15px; color: var(--color-text-primary); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color var(--dur); }
.header-phone:hover { color: var(--color-text-brand); }
.header-phone svg { width: 16px; height: 16px; color: var(--color-text-brand); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--color-border-strong); background: var(--color-bg-page); color: var(--color-text-primary); cursor: pointer; }
.nav-toggle .burger3 { margin: 0 auto; }

/* mobile slide-over */
.mobile-nav { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--color-ink); color: #fff; transform: translateX(101%); transition: transform var(--motion-duration-page) var(--motion-easing-cinematic); display: flex; flex-direction: column; padding: 24px; }
.mobile-nav.is-open { transform: none; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__top .brand { color: #fff; }
.mobile-nav__close { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--color-ink-border-strong); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.mobile-nav__links { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.mobile-nav__links > a { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #fff; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--color-ink-border); }
.mobile-nav__links > a:focus-visible, .m-nav-group summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* Nested services — native <details>, accessible without JS */
.m-nav-group { border-bottom: 1px solid var(--color-ink-border); }
.m-nav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #fff; padding: 10px 0; }
.m-nav-group summary::-webkit-details-marker { display: none; }
.m-nav-group summary svg { width: 22px; height: 22px; transition: transform var(--motion-duration-fast) var(--motion-easing-standard); flex: none; }
.m-nav-group[open] summary svg { transform: rotate(180deg); }
.m-nav-sub { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 14px 14px; }
.m-nav-sub a { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--color-text-on-dark-muted); text-decoration: none; padding: 8px 0; }
.m-nav-sub a:hover, .m-nav-sub a:focus-visible { color: #fff; outline: none; }
@media (prefers-reduced-motion: reduce) { .m-nav-group summary svg { transition: none; } }
.mobile-nav__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.thero { position: relative; padding: 150px var(--page-margin-tablet) clamp(64px, 8vw, 110px); overflow: hidden; background: var(--color-bg-page); }
.thero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.thero__bg::before, .thero__bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.thero__bg::before { width: 620px; height: 620px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(var(--color-brand-primary-rgb),.22), transparent 68%); }
.thero__bg::after { width: 520px; height: 520px; bottom: -260px; left: -160px; background: radial-gradient(circle, rgba(var(--color-brand-secondary-rgb),.12), transparent 70%); }
.thero__grid-lines { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--color-border-default) 1px, transparent 1px), linear-gradient(90deg, var(--color-border-default) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 0%, transparent 75%); opacity: .5; }

.thero__inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.thero__badge { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border-radius: var(--radius-pill); background: var(--color-brand-tint); color: var(--color-text-brand); font-size: 13px; font-weight: var(--fw-bold); letter-spacing: .02em; border: 1px solid var(--color-brand-tint-strong); }
.thero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-gradient); box-shadow: 0 0 0 4px rgba(var(--color-brand-primary-rgb),.18); }

.thero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5.1vw, 60px); line-height: 1.04; letter-spacing: -.025em; margin: 22px 0 0; color: var(--color-text-primary); }
.thero h1 .accent { color: var(--color-text-brand); }
.thero__lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--color-text-secondary); max-width: 540px; margin: 22px 0 0; }
.thero__lead b { color: var(--color-text-primary); font-weight: var(--fw-semibold); }

.thero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.thero__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--color-text-muted); max-width: 440px; }
.thero__note svg { width: 18px; height: 18px; color: var(--color-text-brand); flex: none; margin-top: 1px; }

.thero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.thero__chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: var(--radius-pill); background: var(--color-bg-surface); border: 1px solid var(--color-border-default); font-size: 13px; font-weight: var(--fw-semibold); color: var(--color-text-secondary); }
.thero__chip svg { width: 14px; height: 14px; color: var(--color-text-brand); }

/* ---- hero product visual (transparent CRM illustration) ---- */
.thero__visual { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; margin-inline: auto; isolation: isolate; }
.thero__picture { display: block; width: 100%; min-width: 0; }
.thero__image { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 22px 38px rgba(42, 84, 145, .14)); transform: translateZ(0); }

/* desktop: nudge the illustration outward for a touch more presence (safe — .thero is overflow:hidden) */
@media (min-width: 1200px) { .thero__visual { transform: translateX(18px); } }

/* shared keyframes — also used by case-study.css / site.css / services/modules.css, keep */
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--color-brand-primary-rgb),.5); } 70% { box-shadow: 0 0 0 7px rgba(var(--color-brand-primary-rgb),0); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* shared channel-icon chips — used by service/case views and services.js, keep */
.ic-wa { background: #25D366; } .ic-ig { background: linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7); } .ic-tg { background: #2AABEE; } .ic-web { background: var(--color-text-primary); } .ic-call { background: var(--color-brand-primary); color: var(--color-text-on-brand) !important; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { position: relative; z-index: 3; max-width: 1160px; margin: -36px auto 0; padding: 0 var(--page-margin-tablet); }
.trust__inner { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: flex; align-items: stretch; }
.trust__item { flex: 1; display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-left: 1px solid var(--color-border-default); }
.trust__item:first-child { border-left: 0; }
.trust__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--color-brand-tint); color: var(--color-text-brand); display: grid; place-items: center; flex: none; }
.trust__ic svg { width: 20px; height: 20px; }
.trust__item span { font-size: 14px; font-weight: var(--fw-bold); line-height: 1.3; color: var(--color-text-primary); }
.trust__note { text-align: center; max-width: 760px; margin: 22px auto 0; font-size: 13.5px; color: var(--color-text-muted); padding: 0 var(--page-margin-tablet); }

/* ============================================================
   PAIN — premium SaaS cards, calm blue→violet brand accent.
   Scoped under #pain / .pain-* so no other section is touched.
   ============================================================ */
#pain { overflow: hidden; }

/* very soft blue + violet ambient glow behind the section (accent, not a blob) */
#pain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 14% 22%, rgba(41,185,242,.10) 0%, rgba(41,185,242,0) 70%),
    radial-gradient(44% 42% at 90% 78%, rgba(105,74,217,.09) 0%, rgba(105,74,217,0) 72%);
}

/* headline — only "не успевает" carries the brand gradient (scoped) */
.pain-title__accent {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .pain-title__accent { -webkit-text-fill-color: currentColor; color: var(--color-brand-primary); }
}
/* the forced two-line break is desktop-only; tablet/mobile wrap naturally */
.pain-title__br { display: none; }
@media (min-width: 861px) { .pain-title__br { display: inline; } }

.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }

.pain-card {
  position: relative;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
          backdrop-filter: blur(10px) saturate(125%);
  border: 1px solid rgba(116,151,205,.22);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: 0 14px 34px rgba(23,36,58,.07), 0 2px 6px rgba(23,36,58,.04);
  overflow: hidden;
  transition: transform var(--motion-duration-standard) var(--motion-easing-standard),
              box-shadow var(--motion-duration-standard) var(--motion-easing-standard);
}
/* keep real content above the decorative pseudo-layers */
.pain-card > * { position: relative; z-index: 1; }

/* selective gradient border — bright near one corner, fading to neutral.
   Built with the standard padding + mask-composite ring technique. */
.pain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--pain-ring, linear-gradient(135deg, rgba(116,151,205,.30) 0%, rgba(116,151,205,0) 50%));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .9;
  pointer-events: none;
  transition: opacity var(--motion-duration-standard) var(--motion-easing-standard);
}
.pain-card--blue {
  --pain-ring: linear-gradient(135deg, rgba(41,185,242,.55) 0%, rgba(41,185,242,0) 34%, rgba(89,140,240,0) 66%, rgba(89,140,240,.30) 100%);
}
.pain-card--violet {
  --pain-ring: linear-gradient(135deg, rgba(105,74,217,.50) 0%, rgba(105,74,217,0) 36%, rgba(89,140,240,0) 66%, rgba(41,185,242,.26) 100%);
}

/* almost-invisible dotted texture in the lower-right corner */
.pain-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  z-index: 0;
  background-image: radial-gradient(rgba(116,151,205,.55) 1px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: .22;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 72%);
  pointer-events: none;
}

.pain-card__ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: box-shadow var(--motion-duration-standard) var(--motion-easing-standard);
}
.pain-card__ic svg { width: 26px; height: 26px; }
.pain-card--blue .pain-card__ic {
  background: linear-gradient(150deg, rgba(41,185,242,.18), rgba(89,140,240,.12));
  color: var(--wda-sky-700);
  box-shadow: 0 6px 14px rgba(41,185,242,.16), inset 0 0 0 1px rgba(41,185,242,.14);
}
.pain-card--violet .pain-card__ic {
  background: linear-gradient(150deg, rgba(105,74,217,.16), rgba(89,140,240,.10));
  color: var(--wda-violet-500);
  box-shadow: 0 6px 14px rgba(105,74,217,.15), inset 0 0 0 1px rgba(105,74,217,.14);
}

.pain-card h3 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 10px; color: var(--color-text-primary); }
.pain-card p { margin: 0; font-size: 14.5px; color: var(--color-text-secondary); line-height: 1.6; }

/* restrained, premium hover — desktop pointers only */
@media (hover: hover) {
  .pain-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(23,36,58,.12), 0 6px 14px rgba(23,36,58,.06); }
  .pain-card:hover::before { opacity: 1; }
  .pain-card--blue:hover .pain-card__ic { box-shadow: 0 10px 22px rgba(41,185,242,.24), inset 0 0 0 1px rgba(41,185,242,.18); }
  .pain-card--violet:hover .pain-card__ic { box-shadow: 0 10px 22px rgba(105,74,217,.22), inset 0 0 0 1px rgba(105,74,217,.18); }
}

@media (prefers-reduced-motion: reduce) {
  .pain-card { transition: box-shadow var(--motion-duration-standard); }
  .pain-card:hover { transform: none; }
}

/* ============================================================
   ONE SYSTEM DIAGRAM — premium CRM ecosystem, blue→violet brand.
   Scoped under #system / .system-* so no other section is touched.
   Shares the visual language of the PAIN section above (glass cards,
   selective masked gradient borders, calm ambient glow).
   ============================================================ */
#system { overflow: hidden; }

/* very soft blue + violet ambient glow toward the upper corners */
#system::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 34% at 12% 16%, rgba(41,185,242,.10) 0%, rgba(41,185,242,0) 70%),
    radial-gradient(42% 36% at 88% 14%, rgba(105,74,217,.09) 0%, rgba(105,74,217,0) 72%);
}

/* headline — only "клиентами" carries the brand gradient (scoped) */
.system-title__accent {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* forced two-line break is desktop-only; smaller screens wrap naturally */
.system-title__br { display: none; }
@media (min-width: 680px) { .system-title__br { display: inline; } }

/* eyebrow — restrained blue→violet gradient, premium and clean */
#system .sec__eyebrow {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- diagram grid: left cards · central hub · right cards ---- */
.system {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(26px, 5vw, 84px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 72px);
}
.system__col { position: relative; z-index: 2; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); }

/* ---- premium translucent SaaS cards ---- */
.system__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  min-height: 96px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
          backdrop-filter: blur(10px) saturate(125%);
  border: 1px solid rgba(116,151,205,.20);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(23,36,58,.07), 0 2px 6px rgba(23,36,58,.04);
  transition: transform var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1),
              box-shadow var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}
.system__col--right .system__node { flex-direction: row-reverse; text-align: right; }
/* keep real content above the decorative pseudo-layers */
.system__node > span:not(.ic) { position: relative; z-index: 1; min-width: 0; }

/* selective gradient border — bright near one corner, fades to neutral */
.system__node::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--node-ring, linear-gradient(135deg, rgba(116,151,205,.30) 0%, rgba(116,151,205,0) 50%));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .9;
  pointer-events: none;
  transition: opacity var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}
.system__node--blue   { --node-ring: linear-gradient(135deg, rgba(41,185,242,.55) 0%, rgba(41,185,242,0) 34%, rgba(89,140,240,0) 66%, rgba(89,140,240,.30) 100%); --conn: rgba(89,140,240,.55); --conn-dot: rgba(89,140,240,.95); }
.system__node--violet { --node-ring: linear-gradient(135deg, rgba(105,74,217,.50) 0%, rgba(105,74,217,0) 36%, rgba(89,140,240,0) 66%, rgba(41,185,242,.26) 100%); --conn: rgba(140,82,255,.46); --conn-dot: rgba(140,82,255,.90); }

/* thin connector line + endpoint dot from each card toward the hub */
.system__col--left .system__node::after,
.system__col--right .system__node::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  height: 8px;
  width: clamp(16px, 4.4vw, 72px);
  transform: translateY(-50%);
  pointer-events: none;
}
.system__col--left .system__node::after {
  left: 100%;
  background:
    linear-gradient(90deg, var(--conn) 0%, transparent 90%) 0 50%/100% 1.5px no-repeat,
    radial-gradient(circle at 3px 50%, var(--conn-dot) 0 2.3px, transparent 2.9px) 0 50%/14px 8px no-repeat;
}
.system__col--right .system__node::after {
  right: 100%;
  background:
    linear-gradient(270deg, var(--conn) 0%, transparent 90%) 100% 50%/100% 1.5px no-repeat,
    radial-gradient(circle at calc(100% - 3px) 50%, var(--conn-dot) 0 2.3px, transparent 2.9px) 100% 50%/14px 8px no-repeat;
}

/* ---- refined icon containers ---- */
.system__node .ic { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; flex: none; transition: box-shadow var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1); }
.system__node .ic svg { width: 24px; height: 24px; }
.system__node--blue .ic {
  background: linear-gradient(150deg, rgba(41,185,242,.16), rgba(89,140,240,.10));
  color: #3679F5;
  box-shadow: 0 6px 14px rgba(41,185,242,.14), inset 0 0 0 1px rgba(41,185,242,.14);
}
.system__node--violet .ic {
  background: linear-gradient(150deg, rgba(140,82,255,.14), rgba(105,74,217,.10));
  color: #8C52FF;
  box-shadow: 0 6px 14px rgba(105,74,217,.13), inset 0 0 0 1px rgba(105,74,217,.14);
}
.system__node b { font-size: 15.5px; font-weight: var(--fw-bold); display: block; line-height: 1.3; color: var(--color-text-primary); }
.system__node small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--color-text-muted); }

/* ---- central CRM hub: the dominant focal point ---- */
.system__hub {
  position: relative;
  z-index: 3;
  isolation: isolate;
  width: clamp(220px, 23vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(42% 32% at 32% 18%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(130% 130% at 24% 18%, rgba(89,140,240,.55) 0%, rgba(89,140,240,0) 46%),
    radial-gradient(130% 130% at 82% 86%, rgba(140,82,255,.46) 0%, rgba(140,82,255,0) 50%),
    radial-gradient(120% 120% at 34% 28%, #243a63 0%, #16233c 48%, #0d1a32 100%);
  box-shadow:
    0 30px 70px rgba(13,26,50,.34),
    0 10px 26px rgba(71,123,255,.20),
    inset 0 1px 0 rgba(255,255,255,.08);
}
/* glowing blue→violet perimeter (1px gradient rim) */
.system__hub::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: 1;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(41,185,242,.85) 0%, rgba(89,140,240,.45) 50%, rgba(140,82,255,.85) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* soft ambient glow halo behind the hub */
.system__hub::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71,123,255,.22) 0%, rgba(140,82,255,.12) 46%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
/* orbital rings (decorative spans, square so they stay circular) */
.system__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.system__orbit--1 { width: calc(100% + 46px); height: calc(100% + 46px); border: 1px solid rgba(108,147,205,.20); }
.system__orbit--2 {
  width: calc(100% + 96px); height: calc(100% + 96px);
  border: 1px dashed rgba(89,140,240,.22);
  animation: systemOrbit 46s linear infinite;
}
@keyframes systemOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .system__orbit--2 { animation: none; } }

.system__hub-in { position: relative; z-index: 2; padding: 22px; }
.system__hub .badge-brand {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #4fd0f7 0%, #7aa6ff 55%, #b49cff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.system__hub h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); margin: 10px 0 0; letter-spacing: -.01em; color: #fff; }
.system__hub p { font-size: 12.5px; line-height: 1.45; color: var(--color-text-brand-on-dark); margin: 8px 0 0; }

/* ---- closing quote: navy line + brand-gradient emphasis line ---- */
.system__quote {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: clamp(48px, 6vw, 76px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.45;
  letter-spacing: -.01em;
}
.system__quote-line { color: var(--color-text-primary); }
.system__quote-accent {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (min-width: 1024px) { .system__quote-accent { display: block; } }
/* subtle dotted decorative clusters flanking the quote (desktop only) */
.system__quote::before, .system__quote::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 40px;
  transform: translateY(-50%);
  background-image: radial-gradient(rgba(116,151,205,.50) 1px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: .30;
  pointer-events: none;
}
.system__quote::before { right: calc(100% + 26px); }
.system__quote::after  { left: calc(100% + 26px); background-image: radial-gradient(rgba(140,82,255,.45) 1px, transparent 1.4px); }

/* restrained, premium hover — desktop pointers only */
@media (hover: hover) {
  .system__node:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(23,36,58,.12), 0 6px 14px rgba(23,36,58,.06); }
  .system__node:hover::before { opacity: 1; }
  .system__node--blue:hover .ic { box-shadow: 0 10px 22px rgba(41,185,242,.24), inset 0 0 0 1px rgba(41,185,242,.18); }
  .system__node--violet:hover .ic { box-shadow: 0 10px 22px rgba(105,74,217,.22), inset 0 0 0 1px rgba(105,74,217,.18); }
}
@media (prefers-reduced-motion: reduce) {
  .system__node { transition: box-shadow var(--motion-duration-standard); }
  .system__node:hover { transform: none; }
}

/* graceful fallback where background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #system .sec__eyebrow, .system-title__accent, .system__quote-accent { -webkit-text-fill-color: currentColor; color: var(--color-brand-primary); background: none; }
  .system__hub .badge-brand { -webkit-text-fill-color: currentColor; color: var(--color-text-brand-on-dark); background: none; }
}

/* ============================================================
   SERVICES (uses .svc-grid / .svc-tile from motion.css)
   ============================================================ */
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: var(--fw-bold); color: var(--color-text-brand); text-decoration: none; }
.svc-link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--motion-easing-standard); }
.svc-tile:hover .svc-link svg { transform: translateX(4px); }
.svc-tile { display: flex; flex-direction: column; }

/* ============================================================
   JOURNEY
   ============================================================ */
.journey { margin-top: 56px; }
.journey__track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.journey__track::before { content: ""; position: absolute; top: 26px; left: 9%; right: 9%; height: 2px; background: var(--color-border-default); z-index: 0; }
.journey__line { position: absolute; top: 26px; left: 9%; height: 2px; background: var(--color-brand-primary); z-index: 1; width: 0; transition: width 1.4s var(--motion-easing-soft) .2s; }
.journey.is-in .journey__line { width: 82%; }
.journey__step { position: relative; z-index: 2; text-align: center; }
.journey__n { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--color-bg-page); border: 2px solid var(--color-border-strong); color: var(--color-text-primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; transition: all var(--motion-duration-standard) var(--motion-easing-standard); }
.journey.is-in .journey__step:nth-child(1) .journey__n { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-text-on-brand); transition-delay: .3s; }
.journey.is-in .journey__step:nth-child(2) .journey__n { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-text-on-brand); transition-delay: .55s; }
.journey.is-in .journey__step:nth-child(3) .journey__n { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-text-on-brand); transition-delay: .8s; }
.journey.is-in .journey__step:nth-child(4) .journey__n { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-text-on-brand); transition-delay: 1.05s; }
.journey.is-in .journey__step:nth-child(5) .journey__n { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-text-on-brand); transition-delay: 1.3s; }
.journey__ic { width: 20px; height: 20px; }
.journey__step h4 { font-size: 15px; font-weight: var(--fw-bold); margin: 0 0 6px; }
.journey__step p { font-size: 13px; color: var(--color-text-muted); margin: 0; line-height: 1.5; }
.journey__close { margin-top: 44px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2vw, 22px); }
.journey__close span { color: var(--color-text-brand); }

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; margin-top: 48px; align-items: stretch; border: 1px solid var(--color-border-default); border-radius: var(--radius-xl); overflow: hidden; background: var(--color-bg-page); }
.ba__col { padding: 34px; }
.ba__col--before { background: var(--color-bg-surface); }
.ba__col--after { background: linear-gradient(180deg, var(--color-brand-tint), var(--color-bg-page)); }
.ba__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.ba__col--before .ba__tag { color: var(--color-text-muted); }
.ba__col--after .ba__tag { color: var(--color-text-brand); }
.ba__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ba__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.ba__list .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.ba__col--before .ic { background: var(--color-bg-surface-2); color: var(--color-text-muted); }
.ba__col--before .ic svg { width: 12px; height: 12px; }
.ba__col--before li { color: var(--color-text-secondary); }
.ba__col--after .ic { background: var(--color-brand-primary); color: var(--color-text-on-brand); }
.ba__col--after .ic svg { width: 13px; height: 13px; }
.ba__col--after li { color: var(--color-text-primary); font-weight: var(--fw-medium); }
.ba__mid { display: grid; place-items: center; padding: 0 8px; background: var(--color-bg-page); position: relative; }
.ba__arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--color-ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.ba__arrow svg { width: 22px; height: 22px; }

/* ============================================================
   SCENARIOS
   ============================================================ */
.scen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
/* Deterministic reveal: this transition MUST list `opacity` because each
   .scen-card is also a [data-stagger] child whose reveal toggles opacity 0→1
   (via .is-in). This rule loads after motion.css with equal specificity, so it
   wins and replaces the stagger transition — if `opacity` is omitted the reveal
   snaps instead of fading and the shared `transform` is fought over by the
   reveal (translateY→0) and :hover (translateY(-5px)), which made the
   right-hand card flicker as the section crossed the observer threshold. */
.scen-card { display: flex; flex-direction: column; gap: 16px; background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); padding: 30px; transition: opacity var(--motion-duration-standard) var(--motion-easing-enter), transform var(--motion-duration-standard) var(--motion-easing-standard), box-shadow var(--motion-duration-standard) var(--motion-easing-standard), border-color var(--motion-duration-standard) var(--motion-easing-standard); }
.scen-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.scen-card__ic { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--color-ink); color: #fff; display: grid; place-items: center; }
.scen-card__ic svg { width: 28px; height: 28px; }
.scen-card h3 { font-size: var(--fs-h4); font-weight: var(--fw-bold); margin: 0; }
.scen-card p { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.55; flex: 1; }
.scen-card .btn { align-self: flex-start; }

/* ============================================================
   PROCESS
   ============================================================ */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 56px; position: relative; }
.proc__step { position: relative; }
.proc__step::before { content: ""; position: absolute; top: 26px; left: 52px; right: -18px; height: 2px; background: var(--color-border-default); }
.proc__step:last-child::before { display: none; }
.proc__n { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-brand-tint); color: var(--color-text-brand); font-family: var(--font-display); font-weight: 700; font-size: 18px; display: grid; place-items: center; margin-bottom: 18px; position: relative; z-index: 1; }
.proc__step h4 { font-size: var(--fs-h5); font-weight: var(--fw-bold); margin: 0 0 8px; }
.proc__step p { font-size: 13.5px; color: var(--color-text-secondary); margin: 0; line-height: 1.55; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.exp-card { position: relative; overflow: hidden; background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); padding: 26px; transition: transform var(--motion-duration-standard) var(--motion-easing-standard), box-shadow var(--motion-duration-standard), border-color var(--motion-duration-standard); }
.exp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.exp-card__ptn { position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--color-brand-primary-rgb),.1), transparent 70%); }
.exp-card__ic { position: relative; width: 50px; height: 50px; border-radius: var(--radius-md); background: var(--color-brand-tint); color: var(--color-text-brand); display: grid; place-items: center; margin-bottom: 18px; }
.exp-card__ic svg { width: 25px; height: 25px; }
.exp-card__tag { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.exp-card h3 { font-size: var(--fs-h5); font-weight: var(--fw-bold); margin: 4px 0 10px; }
.exp-card p { font-size: 13.5px; color: var(--color-text-secondary); margin: 0; line-height: 1.55; }

/* ============================================================
   FAQ (uses .faq from kit.css)
   ============================================================ */
.faq-wrap { margin-top: 44px; }
.faq__item.is-open .faq__a { max-height: 420px; }

/* ============================================================
   FINAL CTA + FORM
   ============================================================ */
.cta-final { position: relative; overflow: hidden; }
.cta-final__glow { position: absolute; pointer-events: none; }
.cta-final__glow--1 { width: 460px; height: 460px; top: -160px; right: -80px; background: radial-gradient(circle, rgba(var(--color-brand-primary-rgb),.28), transparent 70%); filter: blur(40px); }
.cta-final__glow--2 { width: 360px; height: 360px; bottom: -180px; left: -100px; background: radial-gradient(circle, rgba(var(--color-brand-secondary-rgb),.14), transparent 70%); filter: blur(40px); }
.cta-final__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-final h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 0; color: #fff; }
.cta-final__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--color-text-on-dark-muted); margin: 18px 0 28px; max-width: 480px; }
.cta-final__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-final__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 13.5px; color: var(--color-text-on-dark-muted); max-width: 440px; }
.cta-final__note svg { width: 18px; height: 18px; color: var(--color-brand-primary); flex: none; margin-top: 1px; }

.form-card { background: var(--color-bg-page); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: var(--fs-h4); font-weight: var(--fw-bold); margin: 0 0 6px; }
.form-card__sub { font-size: 14px; color: var(--color-text-muted); margin: 0 0 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { text-align: center; padding: 20px 10px; display: none; }
.form-success.is-on { display: block; animation: msgIn .5s var(--motion-easing-enter) both; }
.form-success .tick { width: 60px; height: 60px; border-radius: 50%; background: var(--color-state-success-tint); color: var(--color-state-success); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .tick svg { width: 28px; height: 28px; }
.form-success h3 { margin: 0 0 8px; }
.form-success p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-ink); color: #fff; padding: clamp(48px, 6vw, 72px) var(--page-margin-tablet) 36px; }
.site-footer__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer__about { color: var(--color-text-on-dark-muted); font-size: 14.5px; line-height: 1.6; margin: 18px 0 0; max-width: 280px; }
.site-footer h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-on-dark-muted); margin: 0 0 18px; font-weight: var(--fw-bold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer a { color: #C7CEC9; text-decoration: none; font-size: 14.5px; transition: color var(--dur); display: inline-flex; align-items: center; gap: 8px; }
.site-footer a:hover { color: var(--color-brand-primary); }
.site-footer a svg { width: 15px; height: 15px; }
.site-footer__bottom { max-width: 1160px; margin: 44px auto 0; padding-top: 24px; border-top: 1px solid var(--color-ink-border); display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; font-size: 13px; color: var(--color-text-on-dark-muted); }
.site-footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__bottom a { font-size: 13px; }

/* whatsapp float */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: var(--z-float); width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); text-decoration: none; transition: transform var(--dur) var(--motion-easing-standard); }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulseRing 2.6s var(--motion-easing-soft) infinite; }
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .header-phone { display: none; }
  .thero__inner { grid-template-columns: 1fr; gap: 44px; }
  /* stacked: illustration sits below the text, centered, still prominent */
  .thero__visual { max-width: 600px; transform: none; }
  .pain-grid, .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .proc__step::before { display: none; }
  .cta-final__grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* hero illustration — controlled edge-bleed on phones (never scrolls: .thero is overflow:hidden) */
@media (max-width: 767.98px) {
  .thero__visual { max-width: 620px; margin-top: 24px; }
  .thero__picture { width: 112%; margin-inline: -6%; }
  .thero__image { filter: drop-shadow(0 16px 26px rgba(42, 84, 145, .12)); }
}
@media (max-width: 479.98px) {
  .thero__visual { margin-top: 18px; }
  .thero__picture { width: 118%; margin-inline: -9%; }
}

/* ---- ONE SYSTEM: tablet — hub on top, feature cards in two columns ---- */
@media (max-width: 1024px) {
  .system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "hub hub" "left right";
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
    margin-top: clamp(40px, 5vw, 56px);
  }
  .system__col--left  { grid-area: left; }
  .system__col--right { grid-area: right; }
  .system__hub { grid-area: hub; margin: 0 auto clamp(12px, 2vw, 24px); }
  .system__col--right .system__node { flex-direction: row; text-align: left; }
  .system__node::after { display: none; }       /* connectors off on tablet */
  .system__orbit--2 { display: none; }            /* simplify orbital rings */
  .system__quote::before, .system__quote::after { display: none; }
}

@media (max-width: 820px) {
  .header-cta-text { display: none; }
  .journey__track { grid-template-columns: 1fr; gap: 0; }
  .journey__track::before, .journey__line { display: none; }
  .journey__step { display: grid; grid-template-columns: 54px 1fr; gap: 16px; text-align: left; padding-bottom: 26px; }
  .journey__n { margin: 0; }
  .journey__step::before { content: ""; position: absolute; left: 26px; top: 54px; bottom: 0; width: 2px; background: var(--color-border-default); }
  .journey__step:last-child::before { display: none; }
  .ba { grid-template-columns: 1fr; }
  .ba__mid { padding: 14px; }
  .ba__arrow { transform: rotate(90deg); }
  .scen-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pain-grid, .exp-grid, .proc { grid-template-columns: 1fr; }
  .pain-grid { gap: 14px; }
  .pain-card { padding: 24px 22px; }
  #pain::before { opacity: .55; }
  /* ONE SYSTEM: single column — hub first, then all feature cards */
  .system { grid-template-columns: 1fr; grid-template-areas: "hub" "left" "right"; gap: 14px; }
  .system__hub { width: clamp(184px, 62vw, 224px); }
  .system__orbit--1 { width: calc(100% + 34px); height: calc(100% + 34px); }
  .system__node { min-height: 0; padding: 16px 18px; }
  .system__node .ic { width: 50px; height: 50px; border-radius: 14px; }
  .system__node .ic svg { width: 22px; height: 22px; }
  #system::before { opacity: .6; }
  .trust__inner { flex-direction: column; }
  .trust__item { border-left: 0; border-top: 1px solid var(--color-border-default); }
  .trust__item:first-child { border-top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .thero h1 { font-size: 33px; }
}

/* ============================================================
   EFFECTS-LAYER PAGE COMPOSITION  (uses assets/effects.css)
   ============================================================ */

/* integrations marquee band */
.mq-band__cap { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 40px); text-align: center; font-size: 14px; font-weight: var(--fw-semibold); letter-spacing: .02em; text-transform: uppercase; color: var(--color-text-muted); }

/* skills / competencies */
.skills-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.skills-intro .sec__title { margin-top: 12px; }
.skills-intro .sec__lead { margin-bottom: 28px; }

/* showcase (parallax + gallery) */
.showcase { overflow: hidden; }
.showcase__head { margin-bottom: clamp(8px, 1.5vw, 20px); }
.showcase__display { margin-top: 10px; }
.showcase__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; margin-top: clamp(24px, 4vw, 48px); }
.showcase__note { max-width: 440px; font-size: var(--fs-body-lg); line-height: 1.55; color: var(--color-text-secondary); margin: 0; }

/* footer mega marquee */
.footer-mq { margin: 0 calc(-1 * var(--page-margin-tablet)) clamp(36px, 5vw, 56px); padding: clamp(20px, 3vw, 34px) 0; border-top: 1px solid var(--color-ink-border); border-bottom: 1px solid var(--color-ink-border); overflow: hidden; }

@media (max-width: 900px) {
  .skills-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .showcase__foot { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HOMEPAGE COMPOSITION (index.html)
   Small token-driven values that were previously inline styles.
   Layout/spacing here is scoped by section id so the shared
   components (.stats, .svc-grid, .projlist) are untouched elsewhere.
   ============================================================ */
.form-card__title { color: var(--color-text-primary); }
.stat-cell__pre { font-size: .5em; align-self: center; color: var(--color-text-on-dark-muted); margin-right: .18em; }
.hp-trust-band { padding-bottom: var(--space-8); }
.mq-band { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
#services .svc-grid { margin-top: var(--space-48); }
#skills .skills__cta { margin-top: var(--space-8); }
#experience .projlist { margin-top: 44px; }
.gmq { margin-top: clamp(40px, 5vw, 72px); }
.sec__foot--center { text-align: center; }

/* ============================================================
   RESULTS — premium dark-navy stats panel (scoped to #results).
   Overrides the shared .stats / .stat-cell base (effects.css) for
   the homepage results section only. Counter logic, data-* hooks
   and the reveal engine are left untouched. This block is fully
   self-contained (base + its own breakpoints) so source order
   keeps the responsive overrides correct.
   ============================================================ */
#results {
  position: relative;
  overflow: hidden;
  /* deep, dimensional WDA navy — never pure black */
  background:
    radial-gradient(140% 90% at 50% -8%, #0c1d3b 0%, #091a36 48%, #07152d 100%);
}
/* restrained ambient glows behind everything */
#results::before,
#results::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
#results::before {
  inset: -14% 0 auto 0;
  height: 86%;
  background:
    radial-gradient(48% 54% at 50% 6%, rgba(41,140,242,.20) 0%, rgba(41,140,242,0) 60%),
    radial-gradient(42% 52% at 8% 98%, rgba(41,140,242,.07) 0%, rgba(41,140,242,0) 72%);
}
#results::after {
  inset: 0;
  background: radial-gradient(38% 52% at 90% 90%, rgba(140,82,255,.16) 0%, rgba(140,82,255,0) 70%);
}
#results .wrap { position: relative; z-index: 1; max-width: 1500px; }

/* heading */
#results .sec__eyebrow {
  letter-spacing: .18em;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#results .sec__title { max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.12; }
.results-title__br { display: none; }
@media (min-width: 760px) { .results-title__br { display: inline; } }

/* decorative dotted clusters (subtle, behind content) */
.results-dots {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .26;
  background-image: radial-gradient(rgba(122,166,255,.55) 1px, transparent 1.6px);
  background-size: 13px 13px;
}
.results-dots--tl {
  width: 122px; height: 88px;
  left: clamp(-8px, 1vw, 18px); top: 12%;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000, transparent 80%);
          mask-image: radial-gradient(circle at 0 0, #000, transparent 80%);
}
.results-dots--br {
  width: 140px; height: 96px;
  right: clamp(-8px, 1vw, 18px); bottom: 9%;
  background-image: radial-gradient(rgba(176,128,255,.5) 1px, transparent 1.6px);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 80%);
          mask-image: radial-gradient(circle at 100% 100%, #000, transparent 80%);
}

/* ---- the single unified glass panel ---- */
#results .stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(48px, 7vw, 84px);
  min-height: 348px;
  border: 1px solid rgba(114,153,225,.22);
  border-radius: 30px;
  background: rgba(8,24,53,.62);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
          backdrop-filter: blur(14px) saturate(125%);
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(4,10,24,.50),
    0 0 46px rgba(71,123,255,.08),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1),
              box-shadow var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #results .stats { background: rgba(8,24,53,.92); }
}
/* top inner highlight + soft blue crown glow */
#results .stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 64% at 50% 0%, rgba(71,123,255,.10) 0%, rgba(71,123,255,0) 62%);
}
/* thin WDA gradient line along the bottom edge */
#results .stats::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 4%; right: 4%; bottom: 0;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
  background: var(--gradient-brand);
  opacity: .85;
  pointer-events: none;
  transition: opacity var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1),
              box-shadow var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}

/* ---- equal stat columns ---- */
#results .stat-cell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  text-align: left;
  padding: clamp(30px, 3.2vw, 48px) clamp(22px, 2.3vw, 40px);
}
/* thin vertical divider (fades before the rounded corners) */
#results .stat-cell + .stat-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, rgba(113,148,210,0) 0%, rgba(113,148,210,.26) 16%, rgba(113,148,210,.26) 84%, rgba(113,148,210,0) 100%);
  pointer-events: none;
}
/* small glowing marker at the centre of each divider (alternating hue) */
#results .stat-cell + .stat-cell::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #0a1a35;
  border: 1px solid rgba(71,123,255,.6);
  box-shadow: 0 0 10px rgba(71,123,255,.35);
  z-index: 2;
  pointer-events: none;
}
#results .stat-cell:nth-child(3)::after { border-color: rgba(140,82,255,.6); box-shadow: 0 0 10px rgba(140,82,255,.35); }

/* ---- numbers ---- */
#results .stat-cell__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
/* gradient suffix on metrics 1, 4 (and the % on metric 3) */
#results .stat-cell__num .suf {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* metric 2 prefix "от" — muted light blue */
#results .stat-cell__pre { color: var(--color-text-brand-on-dark); font-weight: 700; font-size: .42em; margin-right: .14em; align-self: center; }
/* metric 3 (+24%) — the strongest accent: whole number on the gradient */
#results .stat-cell--accent .stat-cell__num {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(71,123,255,.22));
  transition: filter var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}
#results .stat-cell--accent .stat-cell__num .pre,
#results .stat-cell--accent .stat-cell__num .suf {
  background: none;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- labels ---- */
#results .stat-cell__label {
  margin: 16px 0 0;
  max-width: 232px;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.5;
  color: #A7B7D3;
}
/* the per-cell reveal bar is replaced by the unified bottom line */
#results .stat-cell__bar { display: none; }

/* restrained hover — desktop pointers only */
@media (hover: hover) {
  #results .stats:hover {
    border-color: rgba(114,153,225,.34);
    box-shadow:
      0 34px 80px rgba(4,10,24,.55),
      0 0 56px rgba(71,123,255,.13),
      inset 0 1px 0 rgba(255,255,255,.06);
  }
  #results .stats:hover::after { opacity: 1; box-shadow: 0 0 14px rgba(71,123,255,.40); }
  #results .stats:hover .stat-cell--accent .stat-cell__num { filter: drop-shadow(0 2px 22px rgba(71,123,255,.42)); }
}

/* graceful fallback where background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #results .sec__eyebrow,
  #results .stat-cell__num .suf,
  #results .stat-cell--accent .stat-cell__num,
  #results .stat-cell--accent .stat-cell__num .pre,
  #results .stat-cell--accent .stat-cell__num .suf {
    -webkit-text-fill-color: currentColor;
    color: var(--color-brand-primary);
    background: none;
  }
}

/* ---- tablet: two columns, box separators, markers off ---- */
@media (max-width: 1024px) {
  #results .stats { grid-template-columns: repeat(2, 1fr); min-height: 0; }
  #results .stat-cell + .stat-cell::before,
  #results .stat-cell + .stat-cell::after { display: none; }
  #results .stat-cell { border-top: 1px solid rgba(113,148,210,.16); border-left: 1px solid rgba(113,148,210,.16); }
  #results .stat-cell:nth-child(1),
  #results .stat-cell:nth-child(2) { border-top: 0; }
  #results .stat-cell:nth-child(odd) { border-left: 0; }
}

/* ---- mobile: single column, horizontal separators only ---- */
@media (max-width: 560px) {
  #results .stats { grid-template-columns: 1fr; border-radius: 22px; }
  #results .stat-cell { border-left: 0; border-top: 1px solid rgba(113,148,210,.16); padding: clamp(24px, 7vw, 32px) 26px; }
  #results .stat-cell:first-child { border-top: 0; }
  #results .stat-cell__num { font-size: clamp(48px, 15vw, 64px); }
  #results .stat-cell__label { max-width: none; }
  #results .stats::after { left: 7%; right: 7%; }
}

/* reduced motion — no transitions / no glow travel */
@media (prefers-reduced-motion: reduce) {
  #results .stats,
  #results .stats::after,
  #results .stat-cell--accent .stat-cell__num { transition: none; }
}

/* ============================================================
   SERVICES — premium light SaaS grid (scoped to #services).
   Shares the PAIN section visual language: glass cards, selective
   masked gradient borders, pastel icon containers, dotted corners.
   Overrides the shared .svc-grid / .svc-tile base (motion.css) for
   the homepage services section only. Links, hrefs, grid logic and
   the stagger reveal engine are left untouched. Self-contained
   (base + breakpoints) so source order keeps overrides correct.
   ============================================================ */
#services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfeff 0%, #f4f8fd 58%, #eef3fb 100%);
}
/* very soft blue + violet ambient glow toward the upper corners */
#services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 15% 8%, rgba(41,185,242,.10) 0%, rgba(41,185,242,0) 70%),
    radial-gradient(42% 38% at 85% 12%, rgba(140,82,255,.08) 0%, rgba(140,82,255,0) 72%);
}
/* faint dotted micro-pattern, upper-left */
#services::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: clamp(6px, 3vw, 52px);
  top: clamp(78px, 12vw, 150px);
  width: 150px;
  height: 108px;
  background-image: radial-gradient(rgba(116,151,205,.5) 1px, transparent 1.5px);
  background-size: 13px 13px;
  opacity: .3;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000, transparent 78%);
          mask-image: radial-gradient(circle at 0 0, #000, transparent 78%);
}
#services .wrap { position: relative; z-index: 1; }

/* soften the right-side office/glass photo further on this light section */
#services .sec-photo { --photo-saturation: .45; }

/* ---- pill eyebrow with a small gradient dot ---- */
#services .sec__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  letter-spacing: .16em;
  border: 1px solid rgba(124,147,197,.28);
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(25,48,92,.05);
}
.svc-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, #11B9F2, #8C52FF);
  box-shadow: 0 0 0 3px rgba(71,123,255,.12);
}
.svc-eyebrow__txt {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- header typography ---- */
#services .sec__title { color: #10213D; font-size: clamp(30px, 4.2vw, 46px); }
#services .sec__lead { max-width: 620px; margin-left: auto; margin-right: auto; color: #667792; }

/* ---- grid ---- */
#services .svc-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 1.6vw, 24px);
  margin-top: clamp(40px, 5vw, 60px);
}

/* ---- premium translucent service cards ---- */
#services .svc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2vw, 32px);
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
          backdrop-filter: blur(10px) saturate(125%);
  border: 1px solid rgba(124,147,197,.22);
  box-shadow: 0 18px 48px rgba(25,48,92,.08), 0 2px 6px rgba(25,48,92,.04);
  overflow: hidden;
  transition: transform var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1),
              box-shadow var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1),
              border-color var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}
/* keep real content above the decorative pseudo-layers */
#services .svc-tile > * { position: relative; z-index: 1; }

/* selective gradient border — bright near top-left, fading to neutral */
#services .svc-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: var(--svc-ring, linear-gradient(135deg, rgba(124,147,197,.30) 0%, rgba(124,147,197,0) 50%));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .9;
  pointer-events: none;
  transition: opacity var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}
/* almost-invisible dotted texture in the lower-right corner */
#services .svc-tile::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  z-index: 0;
  background-image: radial-gradient(rgba(116,151,205,.55) 1px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: .22;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 72%);
}

/* accent families — ring + icon tokens (blue · cyan · violet · indigo) */
#services .svc-tile--blue {
  --svc-ring: linear-gradient(135deg, rgba(46,102,245,.52) 0%, rgba(46,102,245,0) 38%, rgba(124,147,197,0) 70%, rgba(124,147,197,.18) 100%);
  --svc-ic-bg: linear-gradient(150deg, rgba(46,102,245,.16), rgba(89,140,240,.10));
  --svc-ic-fg: #2E66F5; --svc-ic-sh: rgba(46,102,245,.16);
}
#services .svc-tile--cyan {
  --svc-ring: linear-gradient(135deg, rgba(41,185,242,.55) 0%, rgba(41,185,242,0) 38%, rgba(124,147,197,0) 70%, rgba(89,140,240,.18) 100%);
  --svc-ic-bg: linear-gradient(150deg, rgba(41,185,242,.16), rgba(89,140,240,.10));
  --svc-ic-fg: var(--wda-sky-700); --svc-ic-sh: rgba(41,185,242,.16);
}
#services .svc-tile--violet {
  --svc-ring: linear-gradient(135deg, rgba(140,82,255,.50) 0%, rgba(140,82,255,0) 38%, rgba(124,147,197,0) 70%, rgba(140,82,255,.16) 100%);
  --svc-ic-bg: linear-gradient(150deg, rgba(140,82,255,.15), rgba(105,74,217,.10));
  --svc-ic-fg: #8C52FF; --svc-ic-sh: rgba(140,82,255,.15);
}
#services .svc-tile--indigo {
  --svc-ring: linear-gradient(135deg, rgba(71,123,255,.50) 0%, rgba(71,123,255,0) 36%, rgba(140,82,255,0) 66%, rgba(140,82,255,.24) 100%);
  --svc-ic-bg: linear-gradient(150deg, rgba(71,123,255,.15), rgba(140,82,255,.10));
  --svc-ic-fg: #477BFF; --svc-ic-sh: rgba(71,123,255,.15);
}

/* ---- refined pastel icon containers ---- */
#services .svc-tile__ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  background: var(--svc-ic-bg, var(--color-brand-tint));
  color: var(--svc-ic-fg, var(--color-text-brand));
  box-shadow: 0 6px 14px var(--svc-ic-sh, rgba(46,102,245,.14)), inset 0 0 0 1px rgba(255,255,255,.5);
  transition: box-shadow var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1),
              transform var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1);
}
#services .svc-tile__ic svg { width: 26px; height: 26px; }

/* ---- card typography ---- */
#services .svc-tile h4 { margin: 0 0 9px; font-size: 18px; font-weight: var(--fw-bold); line-height: 1.3; letter-spacing: -.01em; color: #10213D; }
#services .svc-tile p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #667792; }

/* ---- elegant CTA link ---- */
#services .svc-link { margin-top: auto; gap: 7px; font-size: 14px; font-weight: var(--fw-bold); color: #2E66F5; }
#services .svc-link svg { width: 15px; height: 15px; transition: transform var(--motion-duration-standard) cubic-bezier(.2,.8,.2,1); }

/* ---- restrained premium hover — desktop pointers only ---- */
@media (hover: hover) {
  #services .svc-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(124,147,197,.30);
    box-shadow: 0 28px 60px rgba(25,48,92,.12), 0 6px 16px rgba(25,48,92,.06);
  }
  #services .svc-tile:hover::before { opacity: 1; }
  #services .svc-tile:hover .svc-tile__ic {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 10px 22px var(--svc-ic-sh), inset 0 0 0 1px rgba(255,255,255,.6);
  }
}

/* graceful fallback where background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .svc-eyebrow__txt { -webkit-text-fill-color: currentColor; color: var(--color-brand-primary); background: none; }
}

/* ---- responsive ---- */
@media (max-width: 1024px) { #services .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  #services .svc-grid { grid-template-columns: 1fr; }
  #services .svc-tile { padding: 24px 22px; border-radius: 22px; }
  #services::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #services .svc-tile,
  #services .svc-tile__ic,
  #services .svc-link svg { transition: none; }
  #services .svc-tile:hover { transform: none; }
  #services .svc-tile:hover .svc-tile__ic { transform: none; }
}
