.bofs-services-overview {
  --services-blue: #2563eb;
  --services-purple: #7c3aed;
  --services-cyan: #0891b2;
  --services-ink: #0b1733;
  --services-muted: #52627a;
  --services-shell: min(1360px, calc(100vw - 64px));
  position: relative;
  isolation: isolate;
  padding: clamp(82px, 8vw, 132px) 0 clamp(92px, 9vw, 146px);
  overflow: clip;
  color: var(--services-ink);
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bofs-services-overview,
.bofs-services-overview *,
.bofs-services-overview *::before,
.bofs-services-overview *::after { box-sizing: border-box; }

.bofs-services-overview::before,
.bofs-services-overview::after {
  position: absolute;
  z-index: -2;
  width: 420px;
  height: 420px;
  content: "";
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.bofs-services-overview::before { top: -280px; left: -170px; background: radial-gradient(circle, rgba(37,99,235,.11), transparent 68%); }
.bofs-services-overview::after { right: -210px; bottom: -270px; background: radial-gradient(circle, rgba(124,58,237,.08), transparent 68%); }
.bofs-services-overview__grid-pattern { position: absolute; z-index: -1; inset: 0; opacity: .38; background-image: linear-gradient(rgba(20,48,91,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(20,48,91,.04) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); pointer-events: none; }
.bofs-services-shell { width: var(--services-shell); margin-inline: auto; }
.bofs-services-heading { max-width: 1220px; margin: 0 auto clamp(48px, 5vw, 72px); }
.bofs-services-heading__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: var(--services-blue); font-size: 13px; font-weight: 800; letter-spacing: .19em; }
.bofs-services-heading__eyebrow::before { width: 42px; height: 2px; content: ""; background: currentColor; box-shadow: 0 0 10px rgba(37,99,235,.25); }
.bofs-services-heading__row { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.72fr); align-items: end; gap: clamp(38px, 7vw, 110px); }
.bofs-services-heading h2 { max-width: 720px; margin: 0; color: var(--services-ink); font-size: clamp(38px, 4.2vw, 64px); font-weight: 760; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.bofs-services-heading__row > p { max-width: 560px; margin: 0 0 4px; color: var(--services-muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; }
.bofs-services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px, 2vw, 28px); }

.bofs-services-card { --card-accent: var(--services-blue); --card-accent-rgb: 37,99,235; position: relative; display: flex; min-width: 0; min-height: 650px; flex-direction: column; padding: clamp(25px, 2.4vw, 38px); overflow: hidden; border: 1px solid #dce4ef; border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 18px 50px rgba(15,36,72,.07); transition: transform .35s cubic-bezier(.2,.75,.25,1), border-color .35s ease, box-shadow .35s ease; }
.bofs-services-card::before { position: absolute; right: -100px; bottom: -115px; width: 240px; height: 240px; content: ""; border: 1px solid rgba(var(--card-accent-rgb),.1); border-radius: 50%; box-shadow: 0 0 0 35px rgba(var(--card-accent-rgb),.025), 0 0 0 72px rgba(var(--card-accent-rgb),.018); transition: transform .5s ease; pointer-events: none; }
.bofs-services-card--automation { --card-accent: var(--services-purple); --card-accent-rgb: 124,58,237; }
.bofs-services-card--app { --card-accent: var(--services-cyan); --card-accent-rgb: 8,145,178; }
.bofs-services-card:hover { z-index: 2; border-color: rgba(var(--card-accent-rgb),.3); box-shadow: 0 26px 64px rgba(15,36,72,.13), 0 0 0 1px rgba(var(--card-accent-rgb),.04); transform: translateY(-9px); }
.bofs-services-card:hover::before { transform: scale(1.09); }
.bofs-services-card__topline { position: absolute; top: -1px; left: 12%; width: 76%; height: 3px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, transparent, var(--card-accent), transparent); transform: scaleX(.34); opacity: .65; transition: transform .45s ease, opacity .45s ease; }
.bofs-services-card:hover .bofs-services-card__topline { transform: scaleX(1); opacity: 1; }
.bofs-services-card__meta { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 22px; }
.bofs-services-card__meta small { color: #8794a8; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.bofs-services-card__visual { position: relative; display: grid; height: 172px; place-items: center; margin-bottom: 29px; overflow: hidden; border: 1px solid rgba(var(--card-accent-rgb),.12); border-radius: 16px; background: linear-gradient(145deg, rgba(var(--card-accent-rgb),.07), rgba(var(--card-accent-rgb),.015)); }
.bofs-services-card__visual::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(var(--card-accent-rgb),.055) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--card-accent-rgb),.055) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle, #000, transparent 75%); }
.bofs-services-card h3 { margin: 0 0 14px; color: var(--services-ink); font-size: clamp(25px, 2vw, 31px); font-weight: 750; letter-spacing: -.035em; line-height: 1.12; }
.bofs-services-card__description { min-height: 84px; margin: 0 0 22px; color: var(--services-muted); font-size: 15px; line-height: 1.62; }
.bofs-services-card__capabilities { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 30px; list-style: none; }
.bofs-services-card__capabilities li { max-width: 100%; padding: 8px 11px; border: 1px solid rgba(var(--card-accent-rgb),.13); border-radius: 8px; color: #35455e; background: rgba(var(--card-accent-rgb),.045); font-size: 11px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.bofs-services-card__link { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 19px; margin-top: auto; border-top: 1px solid #e5eaf1; color: var(--services-ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.bofs-services-card__link span:last-child { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--card-accent); box-shadow: 0 8px 18px rgba(var(--card-accent-rgb),.22); transition: transform .25s ease; }
.bofs-services-card__link:hover span:last-child { transform: translateX(4px); }
.bofs-services-card__link:focus-visible { outline: 3px solid var(--card-accent); outline-offset: 5px; border-radius: 3px; }

.bofs-mini-browser { position: relative; width: 76%; height: 112px; padding-top: 20px; border: 1px solid rgba(37,99,235,.3); border-radius: 9px; background: #fff; box-shadow: 0 16px 32px rgba(37,99,235,.13); transform: perspective(450px) rotateX(2deg) rotateY(-4deg); transition: transform .4s ease; }
.bofs-services-card:hover .bofs-mini-browser { transform: perspective(450px) rotateX(0) rotateY(0) translateY(-3px); }
.bofs-mini-browser > i { position: absolute; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #d3dbea; }
.bofs-mini-browser > i:nth-child(1) { left: 10px; background: #ff8490; }.bofs-mini-browser > i:nth-child(2) { left: 19px; background: #ffc55f; }.bofs-mini-browser > i:nth-child(3) { left: 28px; background: #67d99c; }
.bofs-mini-browser > div { position: relative; height: 100%; padding: 15px; overflow: hidden; border-top: 1px solid #e7ebf2; background: linear-gradient(125deg,#f7faff 0 62%,#e6efff 62%); }
.bofs-mini-browser span { display: block; width: 35%; height: 5px; margin-bottom: 9px; border-radius: 4px; background: #b5c2d7; }
.bofs-mini-browser strong { display: block; width: 54%; height: 15px; margin-bottom: 8px; border-radius: 3px; background: #1a3976; }
.bofs-mini-browser em { display: block; width: 43%; height: 5px; border-radius: 4px; background: #cad4e4; }
.bofs-mini-browser b { position: absolute; right: 14px; bottom: 0; width: 30%; height: 67%; border-radius: 40px 40px 0 0; background: linear-gradient(140deg,#70b3ff,#2563eb); box-shadow: -8px 0 22px rgba(37,99,235,.16); }
.bofs-mini-workflow { position: relative; z-index: 1; width: 86%; overflow: visible; }
.bofs-mini-workflow path { fill: none; stroke: rgba(124,58,237,.48); stroke-width: 2; stroke-dasharray: 5 6; animation: bofs-services-dash 12s linear infinite; }
.bofs-mini-workflow circle { fill: #fff; stroke: #7c3aed; stroke-width: 2; filter: drop-shadow(0 5px 7px rgba(124,58,237,.18)); }
.bofs-mini-workflow .bofs-mini-workflow__node { fill: #7c3aed; stroke: none; filter: drop-shadow(0 0 5px #7c3aed); animation: bofs-services-node 3.5s ease-in-out infinite; }
.bofs-mini-dashboard { position: relative; z-index: 1; display: grid; grid-template-columns: 23% 77%; width: 78%; height: 116px; overflow: hidden; border: 1px solid rgba(8,145,178,.28); border-radius: 10px; background: #fff; box-shadow: 0 16px 32px rgba(8,145,178,.12); transform: perspective(450px) rotateY(4deg); transition: transform .4s ease; }
.bofs-services-card:hover .bofs-mini-dashboard { transform: perspective(450px) rotateY(0) translateY(-3px); }
.bofs-mini-dashboard aside { padding: 15px 10px; background: #12314b; }
.bofs-mini-dashboard aside i { display: block; width: 100%; height: 5px; margin-bottom: 10px; border-radius: 3px; background: rgba(255,255,255,.25); }.bofs-mini-dashboard aside i:first-child { width: 58%; height: 9px; margin-bottom: 22px; background: #20bfd0; }
.bofs-mini-dashboard > div { padding: 16px; background: linear-gradient(145deg,#fbfeff,#effbfc); }
.bofs-mini-dashboard > div > span { display: block; width: 53%; height: 7px; margin-bottom: 8px; border-radius: 4px; background: #b7c9d3; }.bofs-mini-dashboard > div > span:nth-child(2) { width: 34%; height: 4px; }
.bofs-mini-dashboard strong { display: flex; align-items: end; gap: 7px; height: 58px; margin-top: 4px; }
.bofs-mini-dashboard b { width: 14%; height: 35%; border-radius: 3px 3px 0 0; background: #a7e2e8; }.bofs-mini-dashboard b:nth-child(2) { height: 55%; }.bofs-mini-dashboard b:nth-child(3) { height: 78%; background: #27b6c7; }.bofs-mini-dashboard b:nth-child(4) { height: 100%; background: #087e9a; }

.bofs-services-overview.is-reveal-ready [data-services-reveal] { opacity: 0; transform: translateY(24px); }
.bofs-services-overview.is-reveal-ready [data-services-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .65s ease var(--reveal-delay,0ms), transform .65s cubic-bezier(.2,.7,.25,1) var(--reveal-delay,0ms); }

@keyframes bofs-services-dash { to { stroke-dashoffset: -88; } }
@keyframes bofs-services-node { 50% { transform: translateX(64px); opacity: .65; } }

@media (max-width: 1100px) {
  .bofs-services-overview { --services-shell: min(940px, calc(100vw - 48px)); }
  .bofs-services-heading__row { grid-template-columns: 1fr minmax(320px,.74fr); gap: 42px; }
  .bofs-services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bofs-services-card { min-height: 620px; }
  .bofs-services-card--app { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
}

@media (max-width: 767px) {
  .bofs-services-overview { --services-shell: calc(100vw - 32px); padding: 72px 0 82px; overflow: clip; }
  .bofs-services-heading { margin-bottom: 38px; }
  .bofs-services-heading__eyebrow { margin-bottom: 16px; font-size: 11px; }
  .bofs-services-heading__row { display: block; }
  .bofs-services-heading h2 { font-size: clamp(34px,9vw,48px); }
  .bofs-services-heading__row > p { margin-top: 20px; font-size: 16px; line-height: 1.6; }
  .bofs-services-grid { grid-template-columns: 1fr; gap: 18px; }
  .bofs-services-card, .bofs-services-card--app { grid-column: auto; width: 100%; min-height: 0; padding: 25px; border-radius: 19px; }
  .bofs-services-card:hover { transform: translateY(-4px); }
  .bofs-services-card__visual { height: 158px; margin-bottom: 24px; }
  .bofs-services-card h3 { font-size: 27px; }
  .bofs-services-card__description { min-height: 0; margin-bottom: 20px; font-size: 15px; }
  .bofs-services-card__capabilities { margin-bottom: 28px; }
}

@media (max-width: 430px) {
  .bofs-services-overview { --services-shell: calc(100vw - 28px); padding-top: 62px; }
  .bofs-services-heading h2 { font-size: clamp(32px,9.2vw,40px); }
  .bofs-services-card { padding: 21px; }
  .bofs-services-card__visual { height: 145px; }
  .bofs-mini-browser, .bofs-mini-dashboard { width: 84%; }
  .bofs-services-card__link { font-size: 13px; }
}

@media (max-width: 350px) {
  .bofs-services-overview { --services-shell: calc(100vw - 24px); }
  .bofs-services-card { padding: 18px; }
  .bofs-services-card__capabilities li { padding: 7px 9px; font-size: 10px; }
  .bofs-services-card__link span:first-child { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .bofs-services-overview *, .bofs-services-overview *::before, .bofs-services-overview *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bofs-services-overview.is-reveal-ready [data-services-reveal] { opacity: 1; transform: none; }
}
