/* QPD Technology, from the "QPD Technology · Desktop" / "· Phone" boards.
   Loads after home.css (shared resets, .ivh-wrap, .ivh-pad). */

/* ---------- Hero ---------- */

body .ivq-hero { position: relative; border-radius: 32px; }
body .ivq-hero, body .ivq-hero * { box-sizing: border-box; }
body .ivq-hero :is(h1, p) { margin: 0; font-family: var(--iv-font); letter-spacing: normal; }
body .iv-frame:has(.ivq-hero) { border-radius: 32px; }
body .ivq-hero-bg { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; pointer-events: none; }
body .ivq-hero-bg img { position: absolute; left: -200px; bottom: -220px; width: 760px; max-width: none; opacity: .45; transform: rotate(180deg); border-radius: 0; }
body .ivq-qh { position: relative; max-width: 1240px; margin: 0 auto; padding: 184px 40px 64px; }
body .ivq-qh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
body .ivq-hero .ivq-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--iv-navy); }
body .ivq-hero h1 { margin-top: 16px; font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; color: var(--iv-navy); }
body .ivq-hero .ivq-lead { margin-top: 22px; font-size: 18px; line-height: 1.65; color: var(--iv-slate); }
body .ivq-qh-img { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 2 / 1; box-shadow: 0 40px 80px -44px rgba(0, 64, 110, .55); }
body .ivq-qh-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 40%; border-radius: 0; }
/* The numbers lead; the photo supports them. */
body .ivq-proof { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body .ivq-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body .ivq-stat { position: relative; overflow: hidden; padding: 26px 28px 24px; border-radius: 26px; background: linear-gradient(160deg, #FFFFFF 0%, #F4FAFE 100%); border: 1px solid var(--iv-line); box-shadow: 0 24px 48px -36px rgba(0, 64, 110, .4); transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .45s ease; }
body .ivq-stat::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 173, 227, .22), rgba(37, 173, 227, 0) 70%); opacity: 0; transform: scale(.7); transition: opacity .45s ease, transform .6s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
body .ivq-stat::after { content: ""; position: absolute; left: 28px; bottom: 0; width: 36px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--iv-accent), #7CCBEF); transition: width .55s cubic-bezier(.22, 1, .36, 1); }
body .ivq-stat:hover { transform: translateY(-5px); border-color: var(--iv-line-2); box-shadow: 0 32px 56px -34px rgba(0, 64, 110, .5); }
body .ivq-stat:hover::before { opacity: 1; transform: scale(1); }
body .ivq-stat:hover::after { width: calc(100% - 56px); }
body .ivq-stat b { display: inline-block; position: relative; font-size: 96px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #25ADE3 0%, #0A5A96 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
body .ivq-stat:hover b { transform: translateY(-3px) scale(1.03); }
body .ivq-stat span { display: block; position: relative; margin-top: 6px; font-size: 16px; line-height: 1.4; font-weight: 400; color: var(--iv-slate); }

/* ---------- How QPD Works ---------- */

/* Lighter navy band that grows out of the page white under the hero: white -> tint -> blue
   over the extra top padding, so the heading still sits on full blue. */
body .ivq-how { --ivq-fade: 220px; position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--iv-white) 0, var(--iv-tint) calc(var(--ivq-fade) * .18), #A9D3F1 calc(var(--ivq-fade) * .45), #4A93CF calc(var(--ivq-fade) * .75), #2279BA var(--ivq-fade), #1C70B0 50%, #2279BA calc(100% - var(--ivq-fade)), #4A93CF calc(100% - var(--ivq-fade) * .75), #A9D3F1 calc(100% - var(--ivq-fade) * .45), var(--iv-tint) 100%); }
body .ivq-how > .ivh-wrap { padding-top: calc(112px + var(--ivq-fade) - 40px); padding-bottom: calc(112px + var(--ivq-fade) - 40px); }
body .ivq-how > .ivh-wrap { position: relative; z-index: 1; }
body .ivq .ivq-how h2 { color: var(--iv-white); }
/* Scanner background (assets/js/scanner-bg.js): fades in once the first frame is drawn. */
body .iv-scanner { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--ivq-fade, 0px) * .4), #000 calc(var(--ivq-fade, 0px) + 40px), #000 calc(100% - var(--ivq-fade, 0px) - 40px), transparent calc(100% - var(--ivq-fade, 0px) * .4)); mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--ivq-fade, 0px) * .4), #000 calc(var(--ivq-fade, 0px) + 40px), #000 calc(100% - var(--ivq-fade, 0px) - 40px), transparent calc(100% - var(--ivq-fade, 0px) * .4)); }
body .iv-scanner.is-on { opacity: 1; }
body .iv-scanner-canvas { display: block; width: 100%; height: 100%; }
body .ivq-how .ivq-pipe-card { border-color: rgba(255, 255, 255, .14); animation-name: ivq-glow-dark; }
@keyframes ivq-glow-dark { 0%, 2% { border-color: rgba(255, 255, 255, .14); box-shadow: 0 24px 48px -34px rgba(0, 0, 0, .6); } 5%, 22% { border-color: #4FD1FF; box-shadow: 0 0 0 1px rgba(79, 209, 255, .45), 0 28px 60px -28px rgba(79, 209, 255, .55); } 25%, 100% { border-color: rgba(255, 255, 255, .14); box-shadow: 0 24px 48px -34px rgba(0, 0, 0, .6); } }
body .ivq-how .ivq-pipe-arrow { background: #2279BA; border-color: rgba(255, 255, 255, .2); color: var(--iv-white); }
body .ivq h2 { color: var(--iv-navy); }
body .ivq h2.ivq-center { text-align: center; }
body .ivq-pipe { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
body .ivq-pipe-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--iv-white); border: 1px solid var(--iv-line); animation: ivq-glow 12s infinite; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
body .ivq-pipe-card:hover { transform: translateY(-6px); }
body .ivq-pipe:hover .ivq-pipe-card { animation-play-state: paused; }
@keyframes ivq-glow { 0%, 2% { border-color: #CEE6F8; box-shadow: none; } 5%, 22% { border-color: #00406E; box-shadow: 0 28px 56px -32px rgba(0, 64, 110, .6); } 25%, 100% { border-color: #CEE6F8; box-shadow: none; } }
body .ivq-pipe-media { position: relative; aspect-ratio: 4 / 3; background: #0E2A47; overflow: hidden; border-radius: 23px 23px 0 0; }
body .ivq .ivq-pipe-media > :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body .ivq .ivq-pipe-media > img.ivq-screen { object-fit: contain; background: #1958A2; }
body .ivq-pipe-num { position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; border-radius: 999px; background: var(--iv-white); color: var(--iv-navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); }
body .ivq-pipe-body { padding: 22px 22px 26px; }
body .ivq-pipe-body h3 { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--iv-navy); }
body .ivq-pipe-body p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--iv-text); }
body .ivq-pipe-arrow { position: absolute; top: calc(50% - 60px); right: -17px; z-index: 2; width: 34px; height: 34px; border-radius: 999px; background: var(--iv-tint); border: 1px solid var(--iv-line); color: var(--iv-navy); display: flex; align-items: center; justify-content: center; }

/* ---------- What Makes QPD Unique ---------- */

body .ivq-unique { background: var(--iv-tint); }
body .ivq-qb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; margin-top: 48px; }
body .ivq-qb-big { grid-row: 1 / span 2; position: relative; min-height: 560px; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; background: #0E2A47; }
body .ivq .ivq-qb-big > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
body .ivq-qb-big:hover > img { transform: scale(1.05); }
body .ivq-qb-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 40, 70, 0) 35%, rgba(0, 40, 70, .85) 100%); }
body .ivq-qb-big-in { position: relative; z-index: 1; padding: 36px; }
body .ivq-qu-ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .18); color: var(--iv-white); display: inline-flex; align-items: center; justify-content: center; }
body .ivq-qb-big h3 { margin-top: 20px; font-size: 30px; line-height: 1.15; font-weight: 600; color: var(--iv-white); }
body .ivq-qb-big p { margin-top: 12px; max-width: 480px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .88); }
body .ivq-qb-card { position: relative; overflow: hidden; border-radius: 28px; background: var(--iv-white); border: 1px solid var(--iv-line); padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; align-items: center; transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease; }
body .ivq-qb-card:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -34px rgba(0, 64, 110, .5); }
body .ivq-qb-card h3 { font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--iv-navy); }
body .ivq-qb-card p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--iv-text); }
body .ivq-qb-viz { height: 130px; border-radius: 18px; background: var(--iv-tint); position: relative; overflow: hidden; }
body .ivq-qb-bars { position: absolute; inset: 16px; display: flex; align-items: flex-end; gap: 10px; }
body .ivq-qb-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--iv-line-2); animation: ivq-bar 3.2s ease-in-out infinite; }
body .ivq-qb-bars i:nth-child(2) { animation-delay: .2s; }
body .ivq-qb-bars i:nth-child(3) { animation-delay: .4s; }
body .ivq-qb-bars i:nth-child(4) { animation-delay: .6s; }
body .ivq-qb-bars i:nth-child(5) { animation-delay: .8s; }
@keyframes ivq-bar { 0%, 100% { height: 25%; background: #BDDEF5; } 50% { height: var(--h); background: #00406E; } }
body .ivq-qb-spark { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
body .ivq-qb-spark path { fill: none; stroke: var(--iv-navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: ivq-spark 4s ease-in-out infinite; }
body .ivq-qb-spark circle { fill: var(--iv-accent); opacity: 0; animation: ivq-dot 4s ease-in-out infinite; }
@keyframes ivq-spark { 0% { stroke-dashoffset: 300; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes ivq-dot { 0%, 55% { opacity: 0; } 65%, 100% { opacity: 1; } }

/* ---------- Breakpoints ---------- */

@media (max-width: 1100px) {
	body .ivq-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body .ivq-pipe-arrow { display: none; }
}
@media (max-width: 1000px) {
	body .ivq-qh-grid { grid-template-columns: 1fr; gap: 32px; }
	body .ivq-qb { grid-template-columns: 1fr; }
	body .ivq-qb-big { grid-row: auto; min-height: 420px; }
}
@media (max-width: 760px) {
	body .ivq-qh { padding: 116px 16px 40px; }
	body .ivq-stat { padding: 18px 18px 20px; border-radius: 22px; }
	body .ivq-stat::after { left: 18px; }
	body .ivq-stat:hover::after { width: calc(100% - 36px); }
	body .ivq-stat b { font-size: 64px; }
	body .ivq-stat span { font-size: 15px; }
}
@media (max-width: 640px) {
	body .ivq-hero, body .ivq-hero-bg, body .iv-frame:has(.ivq-hero) { border-radius: 26px; }
	body .ivq-hero h1 { font-size: 38px; line-height: 1.08; }
	body .ivq-hero .ivq-lead { font-size: 16px; }
	body .ivq-qb-big-in { padding: 24px; }
	body .ivq-qb-big h3 { font-size: 24px; }
	body .ivq-qb-card { padding: 22px; }
}
@media (max-width: 600px) {
	body .ivq-pipe { grid-template-columns: 1fr; margin-top: 32px; }
	body .ivq-how { --ivq-fade: 150px; }
	body .ivq-how > .ivh-wrap { padding-top: calc(64px + var(--ivq-fade) - 30px); padding-bottom: calc(64px + var(--ivq-fade) - 30px); }
}
@media (max-width: 560px) {
	body .ivq-qb-card { grid-template-columns: 1fr; }
	body .ivq-qb-viz { height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
	body .ivq-hero *, body .ivq * { animation: none !important; transition: none !important; }
	body .ivq-qb-spark path { stroke-dashoffset: 0; }
	body .ivq-qb-spark circle { opacity: 1; }
}
