/* Group Takey - GTX premium scroll-driven motion (product pages).
   Everything is scoped under html.gtx, which only the script adds: without JavaScript the page stays fully visible. */

/* sticky needs a non-scrolling ancestor */
.gtx .gtp { overflow: visible; overflow-x: clip; }

/* ---------- top scroll progress ---------- */
.gtx-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 100000; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gtx-a, #6917d0), var(--gtx-b, #07beb8)); box-shadow: 0 0 14px var(--gtx-b, #07beb8); }

/* ---------- hero ---------- */
.gtx .gtp-hero { overflow: hidden; }
.gtx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.gtx-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gtx-aurora i { position: absolute; width: 52vw; height: 52vw; border-radius: 50%; opacity: .3; will-change: transform;
  background: radial-gradient(closest-side, var(--gtp-a), transparent); animation: gtxDrift 19s ease-in-out infinite alternate; }
.gtx-aurora i:nth-child(1) { left: -18vw; top: -22vw; }
.gtx-aurora i:nth-child(2) { right: -20vw; top: -6vw; background: radial-gradient(closest-side, var(--gtp-b), transparent); animation-duration: 24s; animation-delay: -8s; }
.gtx-aurora i:nth-child(3) { left: 24vw; bottom: -34vw; opacity: .34; animation-duration: 29s; animation-delay: -15s; }
@keyframes gtxDrift { to { transform: translate3d(9vw, 5vw, 0) scale(1.18); } }

.gtx .gtp-hero-inner { will-change: transform, opacity; }
.gtx-in-item { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(10px);
  animation: gtxIn 1.1s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes gtxIn { to { opacity: 1; transform: none; filter: blur(0); } }

.gtx .gtp-h1 .gtx-w { display: inline-block; opacity: 0; transform: translate3d(0, .4em, 0); filter: blur(6px);
  animation: gtxIn 1.15s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: var(--d, 0s); }
/* headline: white words, then the colours of the product's own logo flowing through - no white in the gradient */
.gtx .gtp-h1 em.gtx-w { opacity: 0; animation: gtxIn 1.15s cubic-bezier(.16, 1, .3, 1) forwards, gtxFlow 9s linear infinite; animation-delay: var(--d, 0s), 0s; }
@keyframes gtxFlow { to { background-position: -300% 0; } }

/* screen fan: starts folded and tilted in 3D, opens as you scroll */
.gtx .gtp-hero-strip { perspective: 1400px; }
.gtx .gtx-stage { transform-origin: 50% 0; will-change: transform; transform-style: preserve-3d; }
.gtx .gtx-stage .gt-strip-s { will-change: transform; box-shadow: 0 30px 80px rgba(3, 6, 20, .55), 0 0 0 1px rgba(255, 255, 255, .12); }

/* ---------- reveal ---------- */
.gtx .gtp-reveal { opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1), filter 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--gtx-delay, 0s); }
.gtx .gtp-reveal.gtp-in { opacity: 1; transform: none; filter: none; }

/* ---------- scroll-lit paragraph ---------- */
.gtx .gtx-lit .gtx-w { opacity: .14; transition: opacity .25s linear; }
.gtx .gtp-intro .gtp-p.gtx-lit { font-size: clamp(21px, 2.5vw, 31px); line-height: 1.5; font-weight: 700; letter-spacing: -.015em; color: var(--gtp-ink); }

/* ---------- headings: gradient wipe ---------- */
.gtx .gtp-head .gtp-h2 { background: linear-gradient(100deg, var(--gtp-ink) 40%, var(--gtp-a) 50%, var(--gtp-ink) 60%); background-size: 280% 100%;
  background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position 1.8s cubic-bezier(.16, 1, .3, 1) .25s; }
.gtx .gtp-head.gtp-in .gtp-h2 { background-position: 0 0; }
.gtx .gtp-dark .gtp-head .gtp-h2 { background-image: linear-gradient(100deg, #fff 40%, var(--gtp-b) 50%, #fff 60%); }

/* ---------- scrubbed feature media ---------- */
.gtx .gtx-scrub { transform-style: preserve-3d; will-change: transform, opacity; }
.gtx .gtp-row-media { perspective: 1300px; }
.gtx .gtp-row-media.gtp-reveal { opacity: 1; transform: none; filter: none; }

/* ---------- pinned story (desktop): text scrolls, the screen stays and changes ---------- */
.gtx .gtx-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 70px; }
.gtx .gtx-story-text { min-width: 0; }
.gtx .gtx-story-text .gtp-row-text { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.gtx .gtx-story-text .gtp-row-text.gtp-reveal { opacity: .16; transform: none; filter: none; transition: opacity .6s ease; }
.gtx .gtx-story-text .gtp-row-text.gtx-on { opacity: 1; }
.gtx .gtx-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.gtx .gtx-deck { position: relative; width: 100%; height: min(540px, 72vh); perspective: 1600px; }
.gtx .gtx-deck .gtp-row-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transform: translate3d(0, 70px, -160px) rotateX(-12deg) scale(.92); filter: blur(14px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform 1.05s cubic-bezier(.16, 1, .3, 1), filter .75s cubic-bezier(.16, 1, .3, 1); }
.gtx .gtx-deck .gtp-row-media.gtx-past { transform: translate3d(0, -70px, -160px) rotateX(12deg) scale(.92); }
.gtx .gtx-deck .gtp-row-media.gtx-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.gtx .gtx-deck .gtp-row-media::before { inset: 4% -3% 4% -3%; filter: blur(46px); opacity: .85; }
.gtx .gtx-deck .gtx-scrub { width: 100%; }
.gtx .gtx-deck .gtp-browser img { max-height: calc(min(540px, 72vh) - 36px); object-fit: contain; object-position: top center; background: #f1f3f8; }
.gtx .gtx-deck .gtp-plain { max-height: min(540px, 72vh); }
.gtx .gtx-deck .gtp-paper img { max-height: calc(min(540px, 72vh) - 40px); object-fit: contain; }
.gtx-dots { position: absolute; right: -26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 9px; }
.gtx-dots i { width: 7px; height: 7px; border-radius: 8px; background: #cfd4e2; transition: height .5s cubic-bezier(.16, 1, .3, 1), background .3s; }
.gtx-dots i.on { height: 28px; background: linear-gradient(var(--gtp-a), var(--gtp-b)); }

/* ---------- cards: cursor spotlight + glowing edge ---------- */
.gtx .gtp-card, .gtx .gtp-step { position: relative; overflow: hidden; }
.gtx .gtp-card::before, .gtx .gtp-step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--gtp-a) 17%, transparent), transparent 62%); }
.gtx .gtp-card:hover::before, .gtx .gtp-step:hover::before { opacity: 1; }
.gtx .gtp-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gtp-a), var(--gtp-b)); transition: transform 1s cubic-bezier(.16, 1, .3, 1) .35s; }
.gtx .gtp-card.gtp-in::after { transform: scaleX(1); }
.gtx .gtp-card.gtp-in:hover { transform: translate3d(0, -6px, 0); transition-delay: 0s; }

/* ---------- steps: line that draws with scroll ---------- */
.gtx .gtp-steps { position: relative; padding-top: 30px; }
.gtx .gtp-steps::before, .gtx-line { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: #e7e9f0; }
.gtx-line { background: linear-gradient(90deg, var(--gtp-a), var(--gtp-b)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 16px color-mix(in srgb, var(--gtp-b) 70%, transparent); }

/* ---------- CTA: grows into place, rotating light ---------- */
.gtx .gtp-cta-box.gtp-reveal { opacity: 1; filter: none; transition: none; will-change: transform; }

/* ---------- older product pages (supervision, auctison, cyber desk) ---------- */
.gtx [data-gtx-scrub] { will-change: transform, opacity; }

@media (max-width: 991px) {
  .gtx-aurora i { width: 90vw; height: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  .gtx-aurora i, .gtx .gtp-cta-box::after { animation: none; }
}

/* phone frame for mobile-app screens */
.gtp-phone { position: relative; z-index: 1; width: min(290px, 78vw); margin: 0 auto; padding: 10px; border-radius: 42px; background: linear-gradient(160deg, #2b3144, #0b0e17 60%, #262c3d);
  box-shadow: 0 40px 90px -20px rgba(9, 14, 35, .55), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.gtp .gtp-phone img { display: block; width: 100%; height: auto; border-radius: 33px; background: #fff; }
.gtx .gtx-deck .gtp-phone { width: -moz-fit-content; width: fit-content; }
.gtx .gtp .gtx-deck .gtp-phone img { height: calc(min(540px, 72vh) - 20px) !important; width: auto !important; max-width: none; }
/* wide screens picture in the hero, and a card for illustrations */
.gtp .gtp-hero-wide { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 50px rgba(3, 6, 20, .55)); }
.gtp-art { position: relative; z-index: 1; overflow: hidden; border-radius: 18px; background: #fff; padding: 12px; box-shadow: 0 30px 70px rgba(15, 23, 42, .18); }
.gtp .gtp-art img { display: block; width: 100%; height: auto; }
.gtx .gtx-deck .gtp-art img { max-height: calc(min(540px, 72vh) - 24px); object-fit: contain; }

/* the flowing logo colours (also without the entrance animation) */
.gtp .gtp-h1 em { display: inline-block; font-style: normal; background-image: linear-gradient(100deg, var(--gtp-grad, var(--gtp-a), var(--gtp-b), var(--gtp-a))); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; animation: gtxFlow 9s linear infinite; }
.gtx .gtp .gtp-h1 em, .gtx .gtp-h1 em { background-color: transparent; }
.gtp .gtp-hero-logo { filter: none; }
@media (prefers-reduced-motion: reduce) { .gtp .gtp-h1 em { animation: none; } }

/* ===== gtx-wide-story: the feature slider uses the whole page, screens are large and slide in from the right ===== */
.gtx .gtp-features .gtp-wrap { max-width: none; padding-left: clamp(18px, 4vw, 76px); padding-right: clamp(18px, 2.2vw, 40px); }
.gtx .gtx-story { grid-template-columns: minmax(330px, 4fr) minmax(0, 8.4fr); gap: clamp(30px, 3.4vw, 64px); }
.gtx .gtx-story-text .gtp-row-text { min-height: 92vh; }
.gtx .gtx-story-text .gtp-h3 { font-size: clamp(28px, 2.7vw, 46px); line-height: 1.14; margin: 18px 0 18px; }
.gtx .gtx-story-text .gtp-p { font-size: clamp(16.5px, 1.14vw, 19px); line-height: 1.75; color: #475066; margin-bottom: 8px; }
.gtx .gtx-story-text .gtp-checks { margin-top: 20px !important; }
.gtx .gtx-story-text .gtp-checks li { font-size: clamp(15px, 1.02vw, 17px); margin-bottom: 14px; }
.gtx .gtx-deck { height: min(880px, 88vh); perspective: 2200px; }
.gtx .gtx-deck .gtp-row-media { justify-content: center; transform: translate3d(16%, 0, 0) scale(.95); filter: none; transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.gtx .gtx-deck .gtp-row-media.gtx-past { transform: translate3d(-9%, 0, 0) scale(.95); }
.gtx .gtx-deck .gtp-row-media.gtx-on { transform: none; }
.gtx .gtx-deck .gtp-row-media::before { inset: 10% 0 10% 4%; }
.gtx .gtx-deck .gtp-browser, .gtx .gtx-deck .gtp-visual { width: 100%; }
.gtx .gtx-deck .gtp-browser img { width: 100%; height: auto; max-height: calc(min(880px, 88vh) - 36px); object-fit: contain; }
.gtx .gtx-deck .gtp-art img { width: 100%; max-height: calc(min(880px, 88vh) - 28px); }
.gtx .gtx-deck .gtp-plain { max-height: min(880px, 88vh); }
.gtx .gtx-deck .gtp-paper { max-width: 440px; }
.gtx .gtx-deck .gtp-paper img { max-height: calc(min(880px, 88vh) - 40px); }
.gtx .gtx-deck .gtp-phone { max-height: min(800px, 84vh); }
.gtx .gtx-deck .gtp-phone img, .gtx .gtp .gtx-deck .gtp-phone img { height: calc(min(800px, 84vh) - 20px) !important; }
.gtx .gtx-dots { right: auto; left: -22px; }

/* ===== phones and tablets: the same pinned slider, screen on top, explanation scrolling below ===== */
@media (max-width: 991px) {
  .gtx .gtp-features .gtp-wrap { padding-left: 0; padding-right: 0; }
  .gtx .gtp-features .gtp-head { padding: 0 18px; }
  .gtx .gtx-story { display: block; }
  .gtx .gtx-story { display: flex; flex-direction: column; gap: 0; }
  .gtx .gtx-pin { order: -1; position: sticky; top: 0; height: 52vh; height: 52svh; z-index: 3; padding: 10px 14px 18px; background: linear-gradient(180deg, #f9faff 86%, rgba(249, 250, 255, 0)); }
  .gtx .gtx-deck { height: 100%; }
  .gtx .gtx-story-text { padding: 0 20px; }
  .gtx .gtx-story-text .gtp-row-text { min-height: 74vh; min-height: 74svh; justify-content: flex-start; padding-top: 14px; }
  .gtx .gtx-story-text .gtp-h3 { font-size: 24px; margin: 12px 0; }
  .gtx .gtx-story-text .gtp-p { font-size: 15.5px; line-height: 1.65; }
  .gtx .gtx-story-text .gtp-checks li { font-size: 14.5px; margin-bottom: 9px; }
  .gtx .gtx-deck .gtp-browser img, .gtx .gtx-deck .gtp-art img { max-height: calc(52svh - 74px); }
  .gtx .gtx-deck .gtp-paper img { max-height: calc(52svh - 70px); }
  .gtx .gtx-deck .gtp-plain { max-height: calc(52svh - 32px); }
  .gtx .gtx-deck .gtp-phone { max-height: calc(52svh - 28px); padding: 6px; border-radius: 28px; }
  .gtx .gtx-deck .gtp-phone img, .gtx .gtp .gtx-deck .gtp-phone img { height: calc(52svh - 40px) !important; border-radius: 22px; }
  .gtx-dots, .gtx .gtx-dots { left: 50%; right: auto; top: auto; bottom: -10px; flex-direction: row; transform: translateX(-50%); }
  .gtx-dots i.on { height: 7px; width: 22px; }
}
/* the theme clips the main area on phones, which would stop the pinned screen from sticking */
.gtx main.shock-main.gtp-main { overflow: visible !important; overflow-x: clip !important; }

/* plan comparison */
.gtp-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.gtp-plan { display: flex; flex-direction: column; padding: 36px 34px; border-radius: 26px; background: #fff; border: 1px solid #e7e9f2; box-shadow: 0 30px 60px -38px rgba(15, 23, 42, .35); }
.gtp .gtp-plan h3 { margin: 0 0 4px; font-size: 30px; font-weight: 800; color: #0f172a; }
.gtp-plan > p { margin: 0; color: #5b6476; }
.gtp-plan .gtp-checks { flex: 1; margin-bottom: 26px !important; }
.gtp-plan .gtp-btn { justify-content: center; }
.gtp-plan-hi { background: linear-gradient(165deg, #1a1030, #0f0b1e); border-color: transparent; box-shadow: 0 40px 80px -34px color-mix(in srgb, var(--gtp-a) 75%, transparent); }
.gtp .gtp-plan-hi h3 { color: #fff; }
.gtp-plan-hi > p, .gtp-plan-hi .gtp-checks li { color: rgba(255, 255, 255, .82); }
.gtp-btn-line { border: 1.5px solid #d9dce8; color: #0f172a !important; }
@media (max-width: 767px) { .gtp-plan-grid { grid-template-columns: 1fr; } .gtp-plan { padding: 28px 22px; } }
