/*
 * QoS Consulting theme styles.
 *
 * @package QoSConsulting
 */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	font-style: normal;
}
@font-face {
	font-family: "Poppins";
	src: url("../fonts/poppins-600.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
	font-style: normal;
}
@font-face {
	font-family: "Poppins";
	src: url("../fonts/poppins-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
	font-style: normal;
}

/* ---------- Design tokens ---------- */
:root {
	--blue: #1268fb;
	--blue-600: #0d52cc;
	--blue-050: #f5f6f8;
	--ink: #262322;
	--ink-70: rgba(38, 35, 34, 0.7);
	--ink-55: rgba(38, 35, 34, 0.55);
	--ink-40: rgba(38, 35, 34, 0.4);
	--bg: #ffffff;
	--line: rgba(38, 35, 34, 0.1);
	--line-2: rgba(38, 35, 34, 0.06);
	--maxw: 1200px;
	--nav-h: calc(var(--logo-h, 42px) + 34px);
	--radius: 18px;
	--radius-lg: 28px;
	--ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--ff-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--shadow-sm: 0 2px 14px rgba(38, 35, 34, 0.06);
	--shadow: 0 24px 60px -28px rgba(38, 35, 34, 0.28);
	--shadow-blue: 0 18px 40px -18px rgba(18, 104, 251, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 34px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

/* ---------- A11y ---------- */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.qos-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.qos-section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.qos-section--tight { padding: clamp(48px, 6vw, 80px) 0; }

/* Background variants, alternated to separate adjacent sections. */
.qos-section--alt { background: #f5f6f8; }
.qos-section--line { border-top: 1px solid var(--line); }
.qos-section--blue { background: var(--blue); color: #fff; }
.qos-section--blue .qos-section__title,
.qos-section--blue .qos-eyebrow,
.qos-section--blue h2,
.qos-section--blue h3 { color: #fff; }
.qos-section--blue .qos-eyebrow::before { background: #fff; }
.qos-section--blue .qos-section__lead { color: rgba(255, 255, 255, 0.85); }
.qos-section__head { max-width: 760px; margin: 0 0 clamp(40px, 5vw, 68px); }
.qos-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.qos-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--ff-body); font-weight: 600; letter-spacing: 0.16em;
	text-transform: uppercase; font-size: 12.5px; color: var(--blue); margin: 0 0 18px;
}
.qos-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.qos-section__head--center .qos-eyebrow { justify-content: center; }
.qos-section__title { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 18px; }
.qos-section__lead { color: var(--ink-70); font-size: clamp(17px, 2vw, 20px); max-width: 60ch; }

/* ---------- Buttons ---------- */
.qos-btn {
	display: inline-flex; align-items: center; gap: 10px; justify-content: center;
	font-family: var(--ff-body); font-weight: 600; font-size: 15px; line-height: 1;
	padding: 15px 26px; border-radius: 50px; border: 1.5px solid transparent; cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s, border-color 0.2s;
	will-change: transform;
}
.qos-btn--accent { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.qos-btn--accent:hover { transform: translateY(-2px); color: #fff; background: var(--blue-600); }
.qos-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.qos-btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.qos-btn--wa { background: #25d366; color: #fff; }
.qos-btn--wa:hover { background: #1fbe5a; color: #fff; transform: translateY(-2px); }
.qos-btn--white { background: #fff; color: var(--blue); }
.qos-btn--white:hover { color: var(--blue-600); transform: translateY(-2px); }
.qos-btn--block { width: 100%; }
.qos-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	background: rgba(255, 255, 255, 0.5);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 10px 30px -16px rgba(38, 35, 34, 0.22);
}
.site-header__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 17px clamp(18px, 4vw, 34px);
	display: flex; align-items: center; gap: 22px;
	min-height: var(--nav-h);
	box-sizing: border-box;
	position: relative;
	transition: padding 0.35s var(--ease), min-height 0.35s var(--ease);
}
.site-header.is-scrolled .site-header__inner { padding-top: 11px; padding-bottom: 11px; min-height: calc(var(--logo-h, 42px) + 22px); }
.site-header__brand { display: inline-flex; align-items: center; position: relative; z-index: 1; margin-right: auto; }
.site-header__brand img, .custom-logo { height: var(--logo-h, 38px); width: auto; display: block; }
.site-logo-text { font-family: var(--ff-head); font-weight: 700; font-size: 22px; color: var(--blue); letter-spacing: 0.01em; }
.site-nav { position: relative; z-index: 1; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__list a {
	font-family: var(--ff-head); font-weight: 500; font-size: 14.5px; color: var(--ink);
	padding: 9px 16px; border-radius: 999px; display: block; transition: background 0.25s var(--ease), color 0.2s;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { background: var(--blue-050); color: var(--blue); }
.site-header__actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.site-header__cta { padding: 12px 22px; }
.site-header__wa {
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	background: #fff; color: var(--blue); border: 1.5px solid var(--line);
}
.site-header__wa:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.site-header__wa svg { width: 22px; height: 22px; }
.site-nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; padding: 11px; position: relative; z-index: 1; }
.site-nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.site-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.qos-hero {
	position: sticky; top: 0; z-index: 0;
	min-height: 100svh; display: flex; align-items: center;
	overflow: hidden; isolation: isolate; background: #06121f;
}
/* The hero is sticky, so following sections need an opaque background to scroll over it. */
.site-main__flow { position: relative; z-index: 1; background: var(--bg); }

.qos-hero__fallback {
	position: absolute; inset: 0; z-index: -3;
	background:
		radial-gradient(1100px 700px at 78% 18%, rgba(18, 104, 251, 0.45), transparent 60%),
		radial-gradient(900px 600px at 15% 85%, rgba(18, 104, 251, 0.22), transparent 55%),
		linear-gradient(160deg, #0a2540, #04101d);
}
.qos-hero__webgl { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.qos-hero__webgl.is-ready { opacity: 1; }
.qos-hero__overlay {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(4, 16, 29, 0.25) 0%, rgba(4, 16, 29, 0.35) 55%, rgba(4, 16, 29, 0.6) 100%);
}

.qos-hero__inner {
	width: 100%; max-width: var(--maxw);
	padding-top: calc(var(--nav-h) + 56px); padding-bottom: 96px; color: #fff;
	display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.qos-hero__text { max-width: 620px; }
.qos-hero__eyebrow { color: #fff; }
.qos-hero__eyebrow::before { background: #fff; }
.qos-hero__title { font-size: clamp(38px, 5.4vw, 70px); line-height: 1.04; color: #fff; margin-bottom: 22px; }
.qos-hero__title .hl { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 8px; text-decoration-thickness: 5px; }
.qos-hero__lead { font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.86); max-width: 560px; margin-bottom: 36px; }
.qos-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Monitor */
.qos-hero__visual { justify-self: center; width: 100%; max-width: 560px; perspective: 1400px; }
.qos-monitor { position: relative; width: 100%; }
.qos-monitor__screen {
	position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
	container-type: inline-size;
	background: linear-gradient(160deg, #ffffff, #eef1f6);
	border: 10px solid #dfe4ec;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.7),
		0 40px 80px -30px rgba(8, 22, 45, 0.55),
		inset 0 0 30px rgba(38, 35, 34, 0.05);
}
/* The dashboard drawn inside the monitor screen */
.qos-dash {
	position: absolute; inset: 0; display: flex; flex-direction: column;
	padding: clamp(10px, 3cqw, 18px); gap: clamp(8px, 2.6cqw, 14px);
	font-family: var(--ff-body); color: var(--ink-70);
	background:
		radial-gradient(120% 100% at 100% 0%, rgba(18, 104, 251, 0.08), transparent 55%),
		linear-gradient(160deg, #ffffff, #f3f5f9);
}
.qos-dash__bar { display: flex; align-items: center; gap: 10px; }
.qos-dash__dots { display: inline-flex; gap: 5px; }
.qos-dash__dots i { width: 8px; height: 8px; border-radius: 50%; background: #cdd5e0; }
.qos-dash__dots i:nth-child(1) { background: #ff5f57; }
.qos-dash__dots i:nth-child(2) { background: #febc2e; }
.qos-dash__dots i:nth-child(3) { background: #28c840; }
.qos-dash__name { font-family: var(--ff-head); font-weight: 600; font-size: clamp(10px, 2.8cqw, 14px); color: var(--ink); letter-spacing: 0.01em; }
.qos-dash__status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: clamp(9px, 2.4cqw, 11px); color: var(--ink-55); }
.qos-dash__led { width: 8px; height: 8px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6); animation: qos-led 2.2s ease-out infinite; }
@keyframes qos-led { 0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(40, 200, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); } }

.qos-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 2cqw, 12px); }
.qos-dash__kpi { background: #f5f6f8; border: 1px solid var(--line); border-radius: 10px; padding: clamp(7px, 2.4cqw, 12px); }
.qos-dash__kpi-label { display: block; font-size: clamp(8px, 2cqw, 10px); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-40); }
.qos-dash__kpi-val { display: block; margin-top: 4px; font-family: var(--ff-head); font-weight: 700; font-size: clamp(14px, 4.6cqw, 24px); color: var(--ink); line-height: 1; min-height: 1em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qos-dash__kpi-val--grade { color: #28c840; }

.qos-dash__chart { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 8px; min-height: 0; }
.qos-dash__svg { width: 100%; height: 100%; display: block; }
.qos-dash__area { fill: url(#qosDashFill); }
.qos-dash__line { fill: none; stroke: #1268fb; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(18, 104, 251, 0.35)); stroke-dasharray: 100; stroke-dashoffset: 100; animation: qos-draw 2.6s var(--ease) forwards 0.3s; }
@keyframes qos-draw { to { stroke-dashoffset: 0; } }
.qos-dash__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(4px, 1.6cqw, 8px); align-items: end; height: clamp(22px, 11cqw, 44px); }
.qos-dash__bars span { display: block; height: 0; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3d82ff, #1268fb); animation: qos-bar 1.1s var(--ease) forwards; }
.qos-dash__bars span:nth-child(1) { animation-delay: 0.4s; } .qos-dash__bars span:nth-child(2) { animation-delay: 0.5s; }
.qos-dash__bars span:nth-child(3) { animation-delay: 0.6s; } .qos-dash__bars span:nth-child(4) { animation-delay: 0.7s; }
.qos-dash__bars span:nth-child(5) { animation-delay: 0.8s; } .qos-dash__bars span:nth-child(6) { animation-delay: 0.9s; }
.qos-dash__bars span:nth-child(7) { animation-delay: 1s; }
@keyframes qos-bar { to { height: var(--h); } }

.qos-dash__svc { display: flex; gap: clamp(8px, 3cqw, 16px); flex-wrap: wrap; }
.qos-dash__svc span { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(8px, 2.2cqw, 11px); color: var(--ink-55); }
.qos-dash__svc span:nth-child(2) .qos-dash__led { animation-delay: 0.5s; }
.qos-dash__svc span:nth-child(3) .qos-dash__led { animation-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
	.qos-dash__led { animation: none; }
	.qos-dash__line { animation: none; stroke-dashoffset: 0; }
	.qos-dash__bars span { animation: none; height: var(--h); }
}

.qos-monitor__scan {
	position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
	background: repeating-linear-gradient(0deg, rgba(38, 35, 34, 0.03) 0 1px, transparent 1px 3px);
}
.qos-monitor__glow {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 30%),
		radial-gradient(120% 80% at 80% 0%, rgba(18, 104, 251, 0.1), transparent 60%);
}
.qos-monitor__bar { width: 14%; height: 14px; margin: 0 auto; background: linear-gradient(180deg, #d5dbe4, #bcc5d2); border-radius: 0 0 4px 4px; }
.qos-monitor__stand { width: 8px; height: 34px; margin: 0 auto; background: linear-gradient(180deg, #c9d2dd, #aeb8c5); }
.qos-monitor__base { width: 34%; height: 12px; margin: 0 auto; background: linear-gradient(180deg, #c2ccd8, #a7b2c0); border-radius: 50%; filter: blur(0.2px); box-shadow: 0 20px 30px -16px rgba(8, 22, 45, 0.4); }

/* ---------- Tech marquee ---------- */
.qos-tech { padding: 26px 0; border-bottom: 1px solid var(--line-2); background: #fff; }
.qos-tech__label { text-align: center; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 20px; }
.qos-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.qos-marquee__track { display: flex; width: max-content; gap: 64px; align-items: center; animation: qos-marquee 38s linear infinite; }
.qos-marquee:hover .qos-marquee__track { animation-play-state: paused; }
.qos-marquee__item { flex: 0 0 auto; height: 30px; display: flex; align-items: center; }
.qos-marquee__item img { height: 100%; width: auto; opacity: 0.55; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s; }
.qos-marquee__item:hover img { opacity: 1; filter: none; }
@keyframes qos-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .qos-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
/* GSAP tweens these properties per frame; the CSS transition would lag every write. */
.qos-gsap .reveal { transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- About ---------- */
.qos-about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.qos-about__title { font-size: clamp(28px, 4vw, 46px); }
.qos-about__text { color: var(--ink-70); font-size: 18px; }
.qos-about__sign { margin-top: 22px; font-family: var(--ff-head); font-weight: 600; color: var(--ink); }
.qos-about__sign span { display: block; font-family: var(--ff-body); font-weight: 400; color: var(--ink-55); font-size: 14px; }
.qos-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qos-stat { padding: 32px 26px; background: #fff; }
/* nowrap + tabular figures keep the box a constant height while the counter runs. */
.qos-stat__num { font-family: var(--ff-head); font-weight: 700; font-size: clamp(34px, 4.5vw, 50px); color: var(--blue); line-height: 1; letter-spacing: -0.03em; min-height: 1em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qos-stat__label { color: var(--ink-55); font-size: 14px; margin-top: 10px; }

/* ---------- Services ---------- */
.qos-services__list { border-top: 1px solid var(--line); }
.qos-service-row {
	display: grid; grid-template-columns: 80px 1fr auto; gap: 28px; align-items: center;
	padding: 34px 8px; border-bottom: 1px solid var(--line); position: relative;
	transition: padding 0.4s var(--ease);
}
.qos-service-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--blue-050); z-index: -1; transition: width 0.45s var(--ease); }
.qos-service-row:hover { padding-left: 24px; padding-right: 24px; }
.qos-service-row:hover::before { width: 100%; }
.qos-service-row__num { font-family: var(--ff-head); font-weight: 700; font-size: 20px; color: var(--ink-40); }
.qos-service-row__title { font-family: var(--ff-head); font-weight: 600; font-size: clamp(20px, 2.6vw, 27px); color: var(--ink); margin: 0; }
.qos-service-row__desc { color: var(--ink-70); margin: 8px 0 0; font-size: 16px; max-width: 60ch; }
.qos-service-row__icon { width: 50px; height: 50px; color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.qos-service-row__icon svg { width: 30px; height: 30px; }
.qos-service-row__arrow { color: var(--ink-40); transition: transform 0.35s var(--ease), color 0.3s; }
.qos-service-row:hover .qos-service-row__arrow { transform: translateX(6px); color: var(--blue); }

/* ---------- Integrations ---------- */
.qos-integ__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.qos-integ__title { font-size: clamp(26px, 3.6vw, 40px); }
.qos-integ__features { margin: 26px 0 0; display: grid; gap: 14px; }
.qos-integ__features li { color: var(--ink); padding-left: 36px; position: relative; font-size: 17px; }
.qos-integ__features li strong { color: var(--blue); }
.qos-integ__features li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--blue-050);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231268fb' stroke-width='3'><path d='M5 12l4 4 10-10'/></svg>");
	background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.qos-integ__media { justify-self: center; position: relative; }
.qos-integ__media img { width: auto; max-height: 460px; filter: drop-shadow(0 40px 60px rgba(38, 35, 34, 0.18)); }
.qos-integ__media::after { content: ""; position: absolute; inset: auto 0 -6% 0; height: 40px; background: radial-gradient(50% 100% at 50% 0, rgba(38,35,34,0.16), transparent 70%); z-index: -1; }

/* ---------- Expertise ---------- */
.qos-expertise__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.qos-expertise__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.qos-expertise__card { background: #fff; padding: 32px 28px; transition: background 0.4s var(--ease); }
.qos-expertise__card:hover { background: var(--blue-050); }
.qos-expertise__no { font-family: var(--ff-head); font-weight: 700; font-size: 14px; color: var(--blue); letter-spacing: 0.08em; }
.qos-expertise__name { font-family: var(--ff-head); font-weight: 600; font-size: 20px; margin: 10px 0 10px; color: var(--ink); }
.qos-expertise__desc { color: var(--ink-70); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* ---------- Process ---------- */
.qos-process__steps { display: grid; gap: clamp(48px, 6vw, 88px); margin-top: clamp(40px, 5vw, 64px); }
.qos-process__row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.qos-process__row:nth-child(even) .qos-process__media { order: 2; }
.qos-process__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.qos-process__media a { display: block; }
.qos-process__media img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.qos-process__media:hover img { transform: scale(1.04); }
.qos-process__kicker { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.qos-process__title { font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 16px; }
.qos-process__title a { color: var(--ink); transition: color 0.2s; }
.qos-process__title a:hover { color: var(--blue); }
.qos-process__text { color: var(--ink-70); font-size: 17px; line-height: 1.7; margin: 0; }
.qos-process__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--ff-head); font-weight: 600; font-size: 15px; color: var(--blue); }
.qos-process__more svg { transition: transform 0.25s var(--ease); }
.qos-process__more:hover { color: var(--blue-600); }
.qos-process__more:hover svg { transform: translateX(4px); }

/* ---------- Key activities band ---------- */
.qos-keyacts__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.qos-keyacts__lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.6; margin: 14px 0 0; color: rgba(255, 255, 255, 0.9); }
.qos-keyacts__item { border-top: 2px solid rgba(255, 255, 255, 0.35); padding-top: 18px; }
.qos-keyacts__no { font-family: var(--ff-head); font-weight: 700; font-size: 40px; line-height: 1; color: #fff; display: block; margin-bottom: 12px; }
.qos-keyacts__item p { color: rgba(255, 255, 255, 0.92); font-size: 17px; line-height: 1.5; margin: 0; }

/* ---------- Security & compliance ---------- */
.qos-compliance__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.qos-compliance__intro .qos-section__title { margin-bottom: 28px; }
.qos-compliance__blocks { display: grid; gap: 26px; }
.qos-compliance__block { border-left: 2px solid var(--blue); padding-left: 18px; }
.qos-compliance__block-title { font-family: var(--ff-head); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 6px; }
.qos-compliance__block-text { color: var(--ink-70); font-size: 16px; line-height: 1.6; margin: 0; }
.qos-compliance__panel {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm);
}
.qos-compliance__panel-title { font-family: var(--ff-head); font-weight: 600; font-size: 15px; color: var(--ink-55); margin: 0 0 26px; letter-spacing: 0.01em; }
.qos-compliance__badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.qos-badge { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qos-badge__ring {
	width: clamp(64px, 8vw, 84px); height: clamp(64px, 8vw, 84px); border-radius: 50%;
	display: grid; place-items: center; color: var(--blue);
	background: var(--blue-050); border: 1px solid var(--line);
	transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.qos-badge__ring svg { width: 56%; height: 56%; }
.qos-badge:hover .qos-badge__ring { transform: translateY(-4px); background: var(--blue); color: #fff; }
.qos-badge__label { font-family: var(--ff-head); font-weight: 600; font-size: 13px; color: var(--ink-70); line-height: 1.3; }

/* ---------- Methodology ---------- */
.qos-method__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.qos-method__card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: clamp(26px, 3vw, 34px); overflow: hidden;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.qos-method__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.qos-method__no { position: absolute; top: 22px; right: 26px; font-family: var(--ff-head); font-weight: 700; font-size: 14px; color: var(--ink-40); letter-spacing: 0.08em; }
.qos-method__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--blue-050); color: var(--blue); margin-bottom: 18px; transition: transform 0.4s var(--ease); }
.qos-method__icon svg { width: 30px; height: 30px; }
.qos-method__card:hover .qos-method__icon { transform: scale(1.06) rotate(-3deg); }
.qos-method__title { font-family: var(--ff-head); font-weight: 600; font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.qos-method__text { color: var(--ink-70); font-size: 15.5px; line-height: 1.6; margin: 0; }
.qos-method__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-family: var(--ff-head); font-weight: 600; font-size: 14.5px; color: var(--blue); }
.qos-method__more svg { transition: transform 0.35s var(--ease); }
.qos-method__card:hover .qos-method__more svg { transform: translateX(4px); }
.qos-method__card--chart { grid-column: span 1; }
.qos-method__chart { display: flex; align-items: center; gap: 22px; }
.qos-donut { position: relative; flex: 0 0 auto; width: clamp(92px, 12vw, 116px); height: clamp(92px, 12vw, 116px); }
.qos-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qos-donut__bg { fill: none; stroke: var(--line); stroke-width: 9; }
.qos-donut__val { fill: none; stroke: var(--blue); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.qos-donut__center { position: absolute; inset: 0; display: grid; place-items: center; }
.qos-donut__num { font-family: var(--ff-head); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qos-method__kpi-label { display: inline-block; margin-top: 8px; font-family: var(--ff-head); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

/* ---------- BOOGIT ---------- */
.qos-boogit { background: var(--blue-050); }
.qos-boogit__head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: clamp(36px, 4vw, 52px); }
.qos-boogit__logo { height: 56px; width: auto; }
.qos-boogit__title { font-size: clamp(24px, 3.2vw, 36px); margin: 0; }
.qos-boogit__title a { color: var(--ink); }
.qos-boogit__title a:hover { color: var(--blue); }
.qos-boogit__sub { color: var(--ink-55); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 6px; }
.qos-boogit__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qos-boogit .qos-integ__grid { margin-bottom: clamp(40px, 5vw, 64px); }
.qos-boogit-card {
	display: block; color: inherit;
	background: #fff; border-radius: var(--radius); padding: 32px 28px; text-align: center;
	box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.qos-boogit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.qos-boogit-card:hover .qos-boogit-card__name { color: var(--blue); }
.qos-boogit-card__icon { height: 64px; display: grid; place-items: center; margin-bottom: 18px; }
.qos-boogit-card__icon img { height: 64px; width: auto; }
.qos-boogit-card__name { font-family: var(--ff-head); font-weight: 600; color: var(--ink); font-size: 19px; margin-bottom: 8px; }
.qos-boogit-card__desc { color: var(--ink-70); font-size: 15px; margin: 0; }

/* ---------- Portfolio ---------- */
.qos-portfolio__grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 30px; align-items: stretch;
}
.qos-client { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.qos-client:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.qos-client__inner { display: grid; place-items: center; padding: clamp(18px, 2.2vw, 30px); background: var(--blue-050); }
.qos-client img { display: block; width: 100%; height: auto; object-fit: contain; opacity: 0.92; filter: grayscale(1); transition: opacity 0.45s var(--ease), filter 0.45s var(--ease); }
.qos-client:hover img { opacity: 1; filter: none; }
.qos-client__name { margin-top: auto; padding: 15px 18px; text-align: center; font-family: var(--ff-head); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; color: var(--ink); border-top: 1px solid var(--line); background: #fff; transition: color 0.3s var(--ease); }
.qos-client--link { color: inherit; text-decoration: none; cursor: pointer; }
.qos-client--link:hover .qos-client__name { color: var(--blue); }
.qos-portfolio__actions { text-align: center; margin-top: clamp(40px, 5vw, 60px); }
.qos-loadmore[hidden] { display: none; }
.qos-loadmore.is-done { opacity: 0.45; pointer-events: none; }

/* ---------- Blog ---------- */
.qos-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.qos-article-card { display: flex; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.qos-article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.qos-article-card__link { display: flex; flex-direction: column; width: 100%; color: inherit; }
.qos-article-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--blue-050); flex: 0 0 auto; }
.qos-article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.qos-article-card:hover .qos-article-card__media img { transform: scale(1.05); }
.qos-article-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
.qos-article-card__title { font-size: 19px; margin-bottom: 10px; color: var(--ink); white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qos-article-card__excerpt { color: var(--ink-70); font-size: 15px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qos-article-card__cat { display: inline-block; margin-top: auto; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.qos-blog__actions { text-align: center; margin-top: clamp(40px, 5vw, 60px); }

/* ---------- Articles overlay ---------- */
.qos-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px); display: none; opacity: 0; transition: opacity 0.35s var(--ease); overflow-y: auto; padding: 90px 0 60px; }
.qos-overlay.is-open { display: block; opacity: 1; }
.qos-overlay__close { position: fixed; top: 22px; right: 26px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; display: grid; place-items: center; z-index: 1; transition: transform 0.25s var(--ease), border-color 0.25s, color 0.2s; }
.qos-overlay__close:hover { transform: rotate(90deg); border-color: var(--blue); color: var(--blue); }
.qos-overlay__title { text-align: center; font-size: clamp(28px, 4vw, 44px); margin-bottom: 40px; }
.qos-overlay__status { text-align: center; color: var(--ink-55); padding: 26px; }

/* ---------- Contact ---------- */
.qos-contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.qos-contact__info p { color: var(--ink-70); }
.qos-contact__list { margin-top: 26px; display: grid; gap: 16px; }
.qos-contact__list li { display: flex; gap: 16px; align-items: center; color: var(--ink); }
.qos-contact__list a { color: var(--ink); }
.qos-contact__list a:hover { color: var(--blue); }
.qos-contact__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-050); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.qos-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.qos-field { margin-bottom: 20px; }
.qos-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.qos-field input, .qos-field textarea { width: 100%; padding: 15px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-family: var(--ff-body); font-size: 16px; transition: border-color 0.25s, box-shadow 0.25s; }
.qos-field input:focus, .qos-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-050); }
.qos-field textarea { resize: vertical; min-height: 120px; }
.qos-form__note { font-size: 13px; color: var(--ink-55); margin: 6px 0 18px; display: flex; gap: 8px; align-items: center; }
.qos-form__error { color: #c0392b; font-size: 14px; margin-top: 12px; display: none; }
.qos-form__error.is-visible { display: block; }
.qos-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Single posts and pages ---------- */
.qos-page-head { margin: calc(var(--nav-h) + 54px) 0 30px; }
.qos-page-title { font-size: clamp(30px, 5vw, 52px); }
.qos-breadcrumbs { font-size: 14px; color: var(--ink-55); margin-bottom: 16px; }
.qos-breadcrumbs a { color: var(--ink-55); }
.qos-breadcrumbs a:hover { color: var(--blue); }
.qos-single__media { margin: 24px 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.qos-single__content { font-size: 18px; color: var(--ink); max-width: 760px; }
.qos-single__content h2, .qos-single__content h3 { margin-top: 1.6em; }
.qos-single__content a { text-decoration: underline; }
.qos-single__meta { display: flex; gap: 18px; color: var(--ink-55); font-size: 14px; }
.qos-single__cat { color: var(--blue); }
.qos-single__nav { display: flex; justify-content: space-between; gap: 20px; margin: 48px 0; flex-wrap: wrap; }
.qos-single__back { margin-top: 24px; }
.qos-404 { text-align: center; padding-top: 170px; }
.qos-404 .qos-page-title { font-size: clamp(70px, 16vw, 150px); color: var(--blue); }
.qos-pagination { margin-top: 48px; }
.qos-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 0 4px; color: var(--ink); }
.qos-pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 86px); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 50px; }
.site-footer__brand img { height: var(--footer-logo-h, 44px); width: auto; }
.site-footer__tagline { color: var(--ink-70); max-width: 360px; margin-top: 18px; }
.site-footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-40); margin-bottom: 18px; }
.site-footer__list { display: grid; gap: 12px; }
.site-footer__list a, .site-footer__list li { color: var(--ink-70); }
.site-footer__list a:hover { color: var(--blue); }
.site-footer__bottom { border-top: 1px solid var(--line); padding: 24px 0; }
.site-footer__bottom p { margin: 0; color: var(--ink-55); font-size: 14px; text-align: center; }

/* ---------- WhatsApp float ---------- */
.qos-whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 1500; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(37, 211, 102, 0.6); transition: transform 0.25s var(--ease); }
.qos-whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Scroll to top ---------- */
.qos-to-top {
	position: fixed; right: 24px; bottom: 90px; z-index: 1500;
	width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
	background: #fff; color: var(--blue); border: 1.5px solid var(--line);
	display: grid; place-items: center;
	box-shadow: var(--shadow-sm);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s, color 0.25s;
}
.qos-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.qos-to-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

/* ---------- Custom cursor ---------- */
.qos-cursor__dot, .qos-cursor__ring {
	position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
	opacity: 0; transition: opacity 0.25s var(--ease); will-change: transform;
}
.qos-cursor__dot.is-visible, .qos-cursor__ring.is-visible { opacity: 1; }
.qos-cursor__dot::before {
	content: ""; position: absolute; top: 0; left: 0; width: 7px; height: 7px;
	border-radius: 50%; background: var(--blue); transform: translate(-50%, -50%);
}
.qos-cursor__ring::before {
	content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 34px;
	border-radius: 50%; border: 1.5px solid rgba(18, 104, 251, 0.7);
	transform: translate(-50%, -50%) scale(1);
	transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s, transform 0.18s var(--ease);
}
.qos-cursor__ring.is-active::before {
	width: 58px; height: 58px;
	background: rgba(18, 104, 251, 0.14); border-color: rgba(18, 104, 251, 0.9);
	box-shadow: 0 0 24px rgba(18, 104, 251, 0.35);
}
.qos-cursor__ring.is-down::before { transform: translate(-50%, -50%) scale(0.82); }
body.qos-cursor-on, body.qos-cursor-on * { cursor: none !important; }
body.qos-cursor-on input, body.qos-cursor-on textarea, body.qos-cursor-on [contenteditable] { cursor: auto !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.qos-about__grid, .qos-integ__grid, .qos-contact__grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.qos-integ__media { order: -1; }
	.qos-expertise__grid { grid-template-columns: repeat(2, 1fr); }
	.qos-process__row { grid-template-columns: 1fr; }
	.qos-process__row:nth-child(even) .qos-process__media { order: -1; }
	.qos-process__media { order: -1; }
	.qos-keyacts__grid { grid-template-columns: 1fr; }
	.qos-compliance__grid { grid-template-columns: 1fr; }
	.qos-method__grid { grid-template-columns: repeat(2, 1fr); }
	.qos-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
	.qos-articles-grid { grid-template-columns: repeat(2, 1fr); }
	.qos-hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: calc(var(--nav-h) + 44px); padding-bottom: 80px; }
	.qos-hero__text { max-width: none; }
	.qos-hero__visual { max-width: 460px; justify-self: start; }
	.qos-hero { position: relative; }
}
@media (max-width: 860px) {
	.site-nav, .site-header__cta { display: none; }
	.site-nav-toggle { display: block; }
	.site-header.nav-open .site-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px clamp(18px, 4vw, 34px) 18px; box-shadow: 0 20px 40px -18px rgba(38, 35, 34, 0.3); }
	.site-header.nav-open .site-nav__list { flex-direction: column; gap: 2px; }
	.site-header.nav-open .site-nav__list a { display: block; padding: 13px 16px; }
	.qos-service-row { grid-template-columns: 50px 1fr; }
	.qos-service-row__arrow { display: none; }
}
@media (max-width: 700px) {
	.qos-boogit__cards { grid-template-columns: 1fr; }
	.qos-stats { grid-template-columns: 1fr 1fr; }
	/* Two columns leave the number little room: scale it so long values stay on one line. */
	.qos-stat { padding: 26px 14px; }
	.qos-stat__num { font-size: clamp(24px, 8vw, 34px); }
	.site-footer__grid { grid-template-columns: 1fr; }
	body { font-size: 16px; }
	.qos-boogit__head { grid-template-columns: 1fr; }
	.qos-expertise__grid { grid-template-columns: 1fr; }
	.qos-method__grid { grid-template-columns: 1fr; }
	.qos-compliance__badges { grid-template-columns: repeat(3, 1fr); }
	.qos-method__chart { flex-direction: column; text-align: center; align-items: center; }
	.qos-portfolio__grid { grid-template-columns: 1fr; }
	.qos-articles-grid { grid-template-columns: 1fr; }
}
