/* Service-template pages (services hub, service pages, Market Research tools, white-label pages).
 * Loaded before tailwind.css (it used to sit at the end of <head>, before Tailwind's injected styles).
 */

.text-grad-ink { background: linear-gradient(100deg, #0E8CC4 0%, #4A6BFF 55%, #7C5CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wi.text-grad-ink { padding: 0 .08em .2em 0; margin: 0 -.08em -.2em 0; }

/* Rich text copied from the live pages */
.svc-prose > * + * { margin-top: .9em; }
.svc-prose ul, .svc-prose ol { display: grid; gap: .45em; }
.svc-prose li { position: relative; padding-left: 1.25em; }
.svc-prose ul > li::before { content: ""; position: absolute; left: 0; top: .68em; height: 6px; width: 6px; border-radius: 50%; background: var(--grad-accent); }
.svc-prose ol { counter-reset: n; }
.svc-prose ol > li::before { counter-increment: n; content: counter(n) "."; position: absolute; left: 0; font-weight: 600; color: #0E8CC4; }
.svc-prose a { color: #1763cd; text-decoration: underline; text-decoration-color: rgba(23,99,205,.35); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.svc-prose a:hover { text-decoration-color: currentColor; }
.svc-prose b { color: #0A1333; font-weight: 600; }
.svc-prose h3, .svc-prose h4, .svc-prose h5, .svc-prose h6 { font: 600 1.1rem/1.35 "Inter Tight", Inter, sans-serif; color: #0A1333; margin-top: 1.4em; }
.svc-dark .svc-prose a { color: #7FE0FF; text-decoration-color: rgba(127,224,255,.4); }
.svc-dark .svc-prose b, .svc-dark .svc-prose h3, .svc-dark .svc-prose h4, .svc-dark .svc-prose h5, .svc-dark .svc-prose h6 { color: #fff; }

/* Hero */
.svc-frame { border-radius: 1.75rem; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(160deg, rgba(255,255,255,.97), rgba(232,243,251,.94)); padding: clamp(1rem, 3vw, 2rem); box-shadow: 0 40px 90px -35px rgba(0,0,0,.75); }
.svc-frame img { display: block; margin: 0 auto; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
/* Photo variant: an illustration cropped from a legacy banner fills the card edge to edge */
.svc-frame--photo { overflow: hidden; padding: 0; background: #0A1333; }
.svc-frame--photo img { aspect-ratio: 1.15; object-fit: cover; }
.svc-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; max-width: 15rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,.14); background: rgba(10,19,51,.85); padding: .55rem .9rem .55rem .55rem; font-size: .8rem; line-height: 1.3; color: #fff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: float-slow 6s ease-in-out infinite; }
.svc-chip i { display: grid; place-items: center; height: 2.1rem; width: 2.1rem; flex: none; border-radius: .7rem; background: var(--grad-accent); color: #0A1333; font-style: normal; }
.svc-hero-bg { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mix-blend-mode: luminosity; }
@media (min-width: 1024px) and (max-height: 820px) {
  .svc-hero .svc-hero-in { padding-top: 6.25rem; padding-bottom: 2rem; }
  .svc-hero .hero-title { font-size: clamp(2.4rem, 3.4vw, 3rem); }
  .svc-frame img { max-height: 300px; }
  .svc-hero .hero-title { margin-top: 1rem; }
  .svc-hero .svc-prose { font-size: 1rem; line-height: 1.6; }
  .svc-hero [data-hero].mt-6 { margin-top: 1rem; }
  .svc-hero [data-hero].mt-8 { margin-top: 1.5rem; }
  .svc-hero [data-hero].mt-7 { margin-top: 1.1rem; }
}
@media (min-width: 1024px) and (max-height: 680px) {
  .svc-hero .hero-title { font-size: clamp(2.2rem, 3vw, 2.6rem); }
  .svc-hero .svc-prose { font-size: .95rem; line-height: 1.55; }
}

/* Icon tiles (live icons are dark line art, so they always sit on a light tile) */
.svc-ico { display: grid; place-items: center; height: 3.5rem; width: 3.5rem; flex: none; border-radius: 1rem; background: #fff; box-shadow: 0 0 0 1px #E2E7EE, 0 10px 24px -14px rgba(23,99,205,.55); }
.svc-ico img { max-height: 2rem; max-width: 2rem; width: auto; height: auto; object-fit: contain; }
.svc-ico--soft { background: linear-gradient(150deg, #F3F5FC, #E8F3FB); box-shadow: none; }

.svc-card { position: relative; display: flex; flex-direction: column; border-radius: 1.75rem; border: 1px solid #E2E7EE; background: #fff; padding: 1.75rem; transition: border-color .4s, box-shadow .5s var(--ease), translate .5s var(--ease); }
.svc-card:hover { border-color: rgba(74,107,255,.35); box-shadow: 0 30px 60px -36px rgba(29,49,112,.45); translate: 0 -3px; }
.svc-card--dark { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.svc-card--dark:hover { border-color: rgba(127,224,255,.35); box-shadow: 0 30px 60px -30px rgba(61,207,245,.35); }
.svc-num { font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; color: #8A97AB; }
.svc-dark .svc-num { color: rgba(255,255,255,.4); }
@media (min-width: 640px) { .svc-card { padding: 2rem; } }

/* Tabs (vertical on desktop, scrollable chips on phones) */
.svc-tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tab { display: flex; align-items: center; gap: .9rem; flex: none; border-radius: 999px; border: 1px solid #E2E7EE; background: #fff; padding: .6rem 1.1rem; text-align: left; font-size: .9rem; font-weight: 600; color: #2B3B52; transition: background .3s, color .3s, border-color .3s; }
.svc-tab:hover { border-color: #0A1333; }
.svc-tab[aria-selected="true"] { border-color: transparent; background: #0A1333; color: #fff; }
.svc-tab .svc-num { display: none; }
@media (min-width: 1024px) {
  .svc-tab { width: 100%; border-radius: 1.1rem; padding: 1rem 1.25rem; font-size: 1rem; }
  .svc-tab .svc-num { display: inline; }
  .svc-tab[aria-selected="true"] .svc-num { color: #7FE0FF; }
}
[role="tabpanel"][hidden] { display: none; }
.svc-pill { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid #E2E7EE; background: #fff; padding: .3rem .8rem; font-size: .8rem; font-weight: 500; color: #2B3B52; }
.svc-dark .svc-pill { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }

/* Tech-stack logos + client logos */
.svc-logo { display: grid; place-items: center; height: 4.5rem; width: 11rem; flex: none; border-radius: 1.1rem; border: 1px solid #E2E7EE; background: #fff; padding: .9rem 1.25rem; }
.svc-logo img { max-height: 2.4rem; max-width: 8.25rem; width: auto; height: auto; object-fit: contain; }
.svc-logo img.is-faint { filter: brightness(.45) contrast(1.15); }   /* very light logos (grey wordmarks) stay readable on white */
.svc-tech { display: flex; align-items: center; gap: .6rem; border-radius: .9rem; border: 1px solid #E2E7EE; background: #fff; padding: .5rem .85rem .5rem .5rem; font-size: .9rem; font-weight: 500; color: #0A1333; transition: border-color .3s, translate .4s var(--ease); }
.svc-tech:hover { border-color: rgba(74,107,255,.4); translate: 0 -2px; }
.svc-tech img { height: 1.9rem; width: 1.9rem; object-fit: contain; }

/* Media on cards */
.svc-media { position: relative; overflow: hidden; border-radius: 1.25rem; background: radial-gradient(circle at 80% 0%, rgba(124,92,255,.14), transparent 55%), linear-gradient(160deg, #F3F5FC, #E8F3FB); }
.svc-media img { transition: transform .8s var(--ease); }
.group:hover .svc-media img { transform: scale(1.04); }

/* Hub hero: vector scene + linked labels */
.svc-scene { aspect-ratio: 560 / 520; }
@media (min-width: 1024px) { .svc-hero .svc-scene { width: min(100%, calc((100svh - 12.5rem) * 560 / 520)); } }
@media (min-width: 1280px) and (min-height: 860px) { .svc-hero .svc-scene { max-width: 620px; } }
.svc-scene-svg { display: block; height: 100%; width: 100%; overflow: visible; }
.svc-scene .svc-float { animation: float-slow 7s ease-in-out infinite; transform-box: fill-box; }
.svc-scene .svc-spin { animation: svc-spin 40s linear infinite; transform-origin: 280px 265px; }
@keyframes svc-spin { to { transform: rotate(360deg); } }
.svc-node { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(10,19,51,.72); padding: .3rem .75rem .3rem .6rem; font-size: .78rem; font-weight: 600; color: #fff; box-shadow: 0 12px 30px -14px rgba(0,0,0,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, background .3s; }
.svc-node i { height: .45rem; width: .45rem; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.svc-node:hover { border-color: rgba(127,224,255,.55); background: rgba(22,36,90,.9); }
@media (max-width: 639px) { .svc-node { font-size: .68rem; padding: .22rem .55rem .22rem .45rem; gap: .35rem; } }
@media (prefers-reduced-motion: reduce) { .svc-scene .svc-float, .svc-scene .svc-spin { animation: none; } }
.svc-pop { border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); padding: .35rem .85rem; font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.8); transition: background .3s, color .3s, border-color .3s; }
.svc-pop:hover { border-color: rgba(127,224,255,.5); background: rgba(127,224,255,.1); color: #fff; }
.svc-tile { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.12); background: #0B2A3A; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.svc-tile--tall { grid-row: span 2; }
.svc-tile > img { position: absolute; inset: 0; z-index: -1; height: 100%; width: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-tile:hover > img { transform: scale(1.06); }
.svc-tile--tall > img { inset: auto 0 0; height: 140%; object-position: 50% 100%; transform-origin: 50% 100%; }
.svc-tile:not(.svc-tile--tall) > img { bottom: 3.1rem; height: calc(100% - 3.1rem); object-position: 50% 60%; }
.svc-tile:not(.svc-tile--tall)::after { background: linear-gradient(180deg, transparent 0, transparent calc(100% - 3.1rem), rgba(5,10,31,.95) calc(100% - 3.1rem)); }
.svc-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(5,10,31,.85)); }
.svc-tile-cap { position: absolute; inset: auto 1rem 1rem; }
.svc-tile-label { position: absolute; inset: auto .6rem .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(10,19,51,.6); padding: .35rem .35rem .35rem .85rem; font-size: .8rem; font-weight: 600; color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.svc-tile-go { display: grid; place-items: center; height: 1.75rem; width: 1.75rem; flex: none; border-radius: 50%; background: #fff; color: #0A1333; transition: transform .5s var(--ease); }
.svc-tile-go svg { height: .8rem; width: .8rem; }
.svc-tile:hover .svc-tile-go { transform: rotate(45deg); }
.svc-orb { position: absolute; top: 1.25rem; left: -.25rem; z-index: 2; display: block; height: clamp(4.75rem, 13vw, 7.5rem); width: clamp(4.75rem, 13vw, 7.5rem); overflow: hidden; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: radial-gradient(circle at 40% 35%, #3B2BB0, #0A1333 75%); box-shadow: 0 20px 50px -18px rgba(124,92,255,.8); animation: float-slow 6s ease-in-out infinite; }
.svc-orb img { height: 100%; width: 100%; object-fit: cover; }
@media (min-width: 1024px) { .svc-orb { top: auto; bottom: 22%; left: -2.25rem; } }
@media (max-width: 639px) { .svc-tile-label { font-size: .72rem; padding-left: .65rem; } .svc-tile-go { height: 1.5rem; width: 1.5rem; } }

/* Hub filter */
.svc-filter[aria-pressed="true"] { border-color: transparent; background: #0A1333; color: #fff; }
.svc-item[hidden] { display: none; }

/* ---------------- sitemap (tools/build_services.py r_sitemap) ---------------- */
.sm-grid { columns: 1; column-gap: 1rem; }
@media (min-width: 768px) { .sm-grid { columns: 2; } }
@media (min-width: 1024px) { .sm-grid { columns: 3; } }
.sm-card { break-inside: avoid; margin-bottom: 1rem; scroll-margin-top: 7rem; }
.sm-card[hidden], .sm-card li[hidden] { display: none; }
.sm-card:target { border-color: rgba(74,107,255,.55); box-shadow: 0 0 0 4px rgba(74,107,255,.12), 0 30px 60px -36px rgba(29,49,112,.45); }
.sm-link { display: flex; align-items: center; gap: .75rem; border-radius: .85rem; padding: .55rem .75rem; color: #3B4458; font-size: 15px; transition: background .3s, color .3s; }
.sm-link:hover { background: #F2F5FA; color: #0B1224; }
.sm-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #CBD3E1; transition: background .3s, transform .3s var(--ease); }
.sm-link:hover .sm-dot { background: linear-gradient(135deg, #3DCFF5, #6E5BFF); transform: scale(1.5); }
.sm-arrow { color: #4A6BFF; opacity: 0; translate: -6px 0; transition: opacity .3s, translate .4s var(--ease); }
.sm-arrow svg { width: 1rem; height: 1rem; }
.sm-link:hover .sm-arrow, .sm-link:focus-visible .sm-arrow { opacity: 1; translate: 0 0; }
.sm-search { display: flex; width: 100%; align-items: center; gap: .75rem; border-radius: 9999px; border: 1px solid #E2E7EE; background: #fff; padding: .85rem 1.25rem; transition: border-color .3s, box-shadow .3s; }
.sm-search:focus-within { border-color: rgba(74,107,255,.55); box-shadow: 0 0 0 4px rgba(74,107,255,.12); }
@media (min-width: 768px) { .sm-search { width: 380px; } }
.sm-search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------------- thank-you hero (tools/build_services.py r_message) ---------------- */
.ty-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ty-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .25rem; }
.ty-step + .ty-step::before { content: ""; position: absolute; top: 19px; right: calc(50% + 26px); width: calc(100% - 52px); height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.ty-step--done + .ty-step::before { background: linear-gradient(90deg, #3DCFF5, rgba(61,207,245,.35)); }
.ty-step-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.ty-step--done .ty-step-ic { background: #3DCFF5; color: #070B1A; box-shadow: 0 0 0 5px rgba(61,207,245,.15); }
.ty-step--active .ty-step-ic { border: 2px solid #3DCFF5; color: #7FE0FF; background: rgba(61,207,245,.08); }
.ty-step--active .ty-step-ic::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #3DCFF5; animation: ty-ring 2s ease-out infinite; }
.ty-step--next .ty-step-ic { border: 1.5px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.55); }
.ty-illus svg { overflow: visible; }
.ty-float { animation: ty-float 6s ease-in-out infinite; }
.ty-float--late { animation-duration: 7.5s; animation-delay: -2s; }
.ty-spin { transform-origin: 240px 245px; animation: ty-spin 40s linear infinite; }
.ty-pulse { transform-origin: 240px 245px; animation: ty-pulse 3.2s ease-out infinite; }
@keyframes ty-float { 50% { transform: translateY(-10px); } }
@keyframes ty-spin { to { transform: rotate(360deg); } }
@keyframes ty-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(1.12); opacity: 0; } }
@keyframes ty-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ty-float, .ty-spin, .ty-pulse, .ty-step--active .ty-step-ic::after { animation: none; } }

/* transparent cut-out hero art (image_style "bare") */
.svc-bare { max-height: 600px; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
@media (max-width: 1023px) { .svc-bare { max-height: 380px; } }

/* app-screen slider (r_gallery tall images + services.js [data-screens]); per view: 1.3 phone, 2 small tablet, 3 tablet, 4 desktop */
.scr { --gap: 1rem; --per: 1.35; }
@media (min-width: 480px) { .scr { --per: 2; } }
@media (min-width: 768px) { .scr { --per: 3; --gap: 1.25rem; } }
@media (min-width: 1024px) { .scr { --per: 4; --gap: 1.5rem; } }
.scr-track { display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: .5rem .25rem 1.5rem; margin: -.5rem -.25rem 0; }
.scr-track::-webkit-scrollbar { display: none; }
.scr-item { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); scroll-snap-align: start; display: flex; justify-content: center; }
.scr-img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 1.5rem; border: 1px solid #E2E7EE; background: #fff; box-shadow: 0 24px 50px -30px rgba(29,49,112,.45); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.scr-item:hover .scr-img { transform: translateY(-4px); box-shadow: 0 34px 60px -30px rgba(29,49,112,.55); }
.scr-nav { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: .75rem; }
.scr.is-static .scr-nav { display: none; }
.scr-btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 9999px; border: 1px solid #E2E7EE; background: #fff; color: #0B1224; transition: background .3s, color .3s, border-color .3s; }
.scr-btn:hover { background: #0B1224; border-color: #0B1224; color: #fff; }
.scr-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 70%; }
.scr-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: #CBD3E1; transition: width .4s var(--ease), background .3s; }
.scr-dot[aria-current="true"] { width: 1.75rem; background: linear-gradient(90deg, #3DCFF5, #6E5BFF); }

/* market stats orbit (tools/build_pages.py r_market_stats): spinning circles art, logo core, a stat bubble on each corner */
.mk-orbit { position: relative; width: 100%; max-width: 540px; margin: 0 auto; aspect-ratio: 1; }
.mk-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(61,207,245,.28), rgba(110,91,255,.12) 60%, transparent 72%); filter: blur(30px); }
.mk-spin { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; animation: mk-spin 60s linear infinite; }
.mk-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 24%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 8px rgba(255,255,255,.55), 0 24px 50px -20px rgba(29,49,112,.55); }
.mk-core img { width: 64%; height: auto; }
.mk-stats { position: absolute; inset: 0; }
.mk-stat { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 31%; aspect-ratio: 1; padding: .5rem; border-radius: 50%; text-align: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #3DCFF5, #6E5BFF) border-box; border: 3px solid transparent;
  box-shadow: 0 26px 50px -24px rgba(29,49,112,.55); animation: mk-bob 6s ease-in-out infinite; }
.mk-stat b { font-family: "Inter Tight", Inter, sans-serif; font-weight: 600; font-size: clamp(1.05rem, 4.2vw, 1.85rem); line-height: 1.05; letter-spacing: -.02em; color: #0B1224; }
.mk-stat span { margin-top: .3rem; font-size: clamp(.68rem, 2.4vw, .85rem); line-height: 1.25; color: #3B4458; }
.mk-stat--0 { left: 0; top: 8%; }
.mk-stat--1 { right: 0; top: 8%; }
.mk-stat--2 { left: 0; bottom: 8%; }
.mk-stat--3 { right: 0; bottom: 8%; }
@media (min-width: 1024px) { .mk-stat b { font-size: clamp(1.3rem, 2vw, 1.85rem); } .mk-stat span { font-size: .85rem; } }
@keyframes mk-spin { to { rotate: 360deg; } }
@keyframes mk-bob { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .mk-spin, .mk-stat { animation: none; } }
.scr-track { cursor: grab; scroll-behavior: auto; }
.scr-track:focus-visible { outline: 2px solid #4A6BFF; outline-offset: 4px; border-radius: 1.5rem; }
.scr.is-dragging .scr-track { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.scr.is-dragging .scr-img { pointer-events: none; }
.scr-img { -webkit-user-drag: none; user-select: none; }
@media (hover: none) { .scr-track { cursor: auto; } }
