/* =========================================================
   Daxarix website — shared styles, motion and transitions
   Colours: Midnight #0B1B3F · Emerald #0F9D6B · Emerald Deep #0B7A55
            Pearl #F5F7FA · Silver #E8EDF2 · Indigo #1E2A78 · Gold #E8B931
   ========================================================= */

:root { interpolate-size: allow-keywords; }
body { margin: 0; background: #F5F7FA; }
a { color: #0B7A55; }
a:hover { color: #0B1B3F; }

/* ---------- page-to-page transitions (real site: cross-document view transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: dx-vt-out .32s ease both; }
::view-transition-new(root) { animation: dx-vt-in .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dx-vt-out {
  to { opacity: 0; translate: 0 -24px; }
}
@keyframes dx-vt-in {
  from { opacity: 0; translate: 0 32px; }
}

/* ---------- base ---------- */
.dx-root, .dx-root * { box-sizing: border-box; }
.dx-root ::selection { background: #0F9D6B; color: #FFFFFF; }
.dx-root a:focus-visible, .dx-root button:focus-visible, .dx-root summary:focus-visible,
.dx-root select:focus-visible, .dx-root textarea:focus-visible { outline: 2px solid #E8B931; outline-offset: 3px; }
.dx-skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #E8B931; color: #0B1B3F; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.dx-skip:focus { left: 16px; }

/* sticky header (the header component's host element) */
dc-import[name="Header"] { display: block; position: sticky; top: 0; z-index: 80; }

/* ---------- page-enter curtain ---------- */
.dx-curtain { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; background: #0B1B3F; pointer-events: none; visibility: hidden; animation: dx-curtain 1.05s cubic-bezier(.75,0,.2,1) both; }
@keyframes dx-curtain {
  0% { visibility: visible; clip-path: inset(0 0 0 0); }
  48% { visibility: visible; clip-path: inset(0 0 0 0); }
  100% { visibility: hidden; clip-path: inset(0 0 100% 0); }
}
.dx-curtain-mark { display: flex; flex-direction: column; align-items: center; gap: 18px; animation: dx-mark 1.05s ease both; }
@keyframes dx-mark {
  0% { opacity: 0; scale: .75; }
  28% { opacity: 1; scale: 1; }
  50% { opacity: 1; translate: 0 0; }
  100% { opacity: 0; translate: 0 -60px; }
}
.dx-curtain-bar { display: block; width: 120px; height: 3px; border-radius: 3px; background: #E8B931; transform-origin: left; animation: dx-bar-fill .5s .1s cubic-bezier(.6,0,.3,1) both; }
@keyframes dx-bar-fill {
  from { scale: 0 1; }
  to { scale: 1 1; }
}

/* scroll progress bar */
.dx-progress { position: fixed; left: 0; top: 0; z-index: 240; width: 100%; height: 3px; background: linear-gradient(90deg, #0F9D6B, #22C38A 70%, #E8B931); transform-origin: left; scale: 0 1; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .dx-progress { animation: dx-progress linear both; animation-timeline: scroll(root); }
  .dx-hdr { animation: dx-hdr linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
}
@keyframes dx-progress {
  from { scale: 0 1; }
  to { scale: 1 1; }
}
@keyframes dx-hdr {
  to { box-shadow: 0 18px 40px -22px rgba(0,0,0,0.75); border-bottom-color: rgba(232,237,242,0.14); }
}

/* ---------- navigation ---------- */
.dx-navlink { transition: background .2s, color .2s; }
.dx-navlink:hover, .dx-dd:hover > .dx-navlink, .dx-dd:focus-within > .dx-navlink { background: rgba(232,237,242,0.10) !important; color: #FFFFFF !important; }
.dx-chev { transition: transform .25s; }
.dx-dd:hover .dx-chev, .dx-dd:focus-within .dx-chev { transform: rotate(180deg); }
.dx-mega { transition: opacity .24s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility .24s; }
.dx-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.dx-dd:hover .dx-mega, .dx-dd:focus-within .dx-mega { opacity: 1 !important; visibility: visible !important; transform: translate(-50%, 0) !important; }
.dx-dd:hover .dx-megalink, .dx-dd:focus-within .dx-megalink { animation: dx-mi .42s cubic-bezier(.2,.7,.2,1) both; }
.dx-megalink:nth-child(2) { animation-delay: .03s !important; }
.dx-megalink:nth-child(3) { animation-delay: .06s !important; }
.dx-megalink:nth-child(4) { animation-delay: .09s !important; }
.dx-megalink:nth-child(5) { animation-delay: .12s !important; }
.dx-megalink:nth-child(6) { animation-delay: .15s !important; }
.dx-megalink:nth-child(7) { animation-delay: .18s !important; }
.dx-megalink:nth-child(8) { animation-delay: .21s !important; }
.dx-megalink:nth-child(9) { animation-delay: .24s !important; }
.dx-megalink:nth-child(10) { animation-delay: .27s !important; }
.dx-megalink:nth-child(11) { animation-delay: .3s !important; }
.dx-megalink:nth-child(12) { animation-delay: .33s !important; }
@keyframes dx-mi {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
.dx-megalink { transition: background .18s; }
.dx-megalink:hover { background: #F5F7FA !important; }
.dx-megalink:hover .dx-ico { background: #0B7A55 !important; color: #FFFFFF !important; }
.dx-burger summary, .dx-mgroup summary, .dx-faq summary { list-style: none; cursor: pointer; }
.dx-burger summary::-webkit-details-marker, .dx-mgroup summary::-webkit-details-marker, .dx-faq summary::-webkit-details-marker { display: none; }
.dx-burger[open] > div { animation: dx-drop .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dx-drop {
  from { opacity: 0; translate: 0 -10px; scale: .98; }
}
.dx-mgroup[open] .dx-chev { transform: rotate(180deg); }

/* ---------- buttons, links, cards ---------- */
.dx-btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease; }
.dx-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%); translate: -130% 0; transition: translate .75s ease; pointer-events: none; }
.dx-btn:hover::after { translate: 130% 0; }
.dx-btn:hover { transform: translateY(-2px); }
.dx-btn:active { transform: translateY(0) scale(.98); }
.dx-btn-em:hover { background: #2FC68C !important; box-shadow: 0 16px 34px -14px rgba(15,157,107,0.75) !important; }
.dx-btn-deep:hover { background: #0B1B3F !important; color: #FFFFFF !important; }
.dx-btn-ghost:hover { background: rgba(232,237,242,0.10) !important; border-color: rgba(232,237,242,0.55) !important; }
.dx-btn-line:hover { background: #0B1B3F !important; color: #FFFFFF !important; border-color: #0B1B3F !important; }
.dx-btn-gold:hover { background: #E8B931 !important; color: #0B1B3F !important; }
.dx-arrow { transition: transform .25s; }
.dx-btn:hover .dx-arrow, .dx-more:hover .dx-arrow, .dx-card:hover .dx-arrow, .dx-row:hover .dx-arrow { transform: translateX(4px); }
.dx-ul { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s ease, color .2s; padding-bottom: 2px; }
.dx-ul:hover { background-size: 100% 1.5px; color: #FFFFFF !important; }
.dx-card { transition: transform .38s cubic-bezier(.2,.7,.2,1), box-shadow .38s ease, border-color .38s ease, background .38s ease; }
.dx-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(11,27,63,0.45) !important; border-color: #0F9D6B !important; }
.dx-card:hover .dx-ico { background: #0B7A55 !important; color: #FFFFFF !important; }
.dx-ico { transition: background .3s, color .3s, transform .4s cubic-bezier(.2,.7,.2,1); }
.dx-card:hover .dx-ico { transform: rotate(-6deg) scale(1.06); }
.dx-zoom { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.dx-card:hover .dx-zoom { transform: scale(1.045); }
.dx-row { transition: transform .25s, box-shadow .25s, border-color .25s, background .25s; }
.dx-row:hover { transform: translateX(6px); border-color: #0F9D6B !important; background: #FFFFFF !important; box-shadow: 0 18px 40px -28px rgba(11,27,63,0.5) !important; }
.dx-row:hover .dx-rowbtn { background: #0B7A55 !important; color: #FFFFFF !important; }
.dx-rowbtn { transition: background .2s, color .2s; }
.dx-tab { transition: background .25s, color .25s, border-color .25s, transform .2s; }
.dx-tab:hover { border-color: #0B7A55 !important; transform: translateY(-1px); }
.dx-chip { transition: border-color .2s, transform .2s, background .2s; }
.dx-chip:hover { border-color: #0F9D6B !important; transform: translateY(-2px); background: #FFFFFF !important; }

/* FAQ accordion with animated height (progressive) */
.dx-plus { transition: transform .3s ease, background .3s ease, color .3s ease; }
.dx-faq details[open] .dx-plus { transform: rotate(45deg); background: #0B7A55 !important; color: #FFFFFF !important; }
.dx-faq details { transition: border-color .3s, box-shadow .3s; }
.dx-faq details[open] { border-color: #0F9D6B !important; box-shadow: 0 22px 50px -36px rgba(11,27,63,0.5); }
.dx-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s cubic-bezier(.2,.7,.2,1), content-visibility .4s allow-discrete; }
.dx-faq details[open]::details-content { block-size: auto; }

/* forms */
.dx-input { transition: border-color .2s, box-shadow .2s; }
.dx-input:focus { outline: none; border-color: #0B7A55 !important; box-shadow: 0 0 0 4px rgba(15,157,107,0.16); }
.dx-pick { position: relative; cursor: pointer; }
.dx-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dx-pick span { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.dx-pick:hover span { transform: translateY(-1px); border-color: #0B7A55 !important; }
.dx-pick input:checked + span { background: #0B1B3F !important; color: #FFFFFF !important; border-color: #0B1B3F !important; }
.dx-pick input:focus-visible + span { outline: 2px solid #E8B931; outline-offset: 2px; }

/* ---------- scroll-triggered reveals (CSS scroll-driven, progressive) ---------- */
@keyframes dx-rv-up {
  from { opacity: 0; translate: 0 64px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dx-rv-left {
  from { opacity: 0; translate: -80px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dx-rv-right {
  from { opacity: 0; translate: 80px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes dx-rv-zoom {
  from { opacity: 0; scale: .88; }
  to { opacity: 1; scale: 1; }
}
@keyframes dx-stamp-in {
  0% { opacity: 0; scale: 1.7; rotate: -14deg; }
  60% { opacity: 1; scale: .94; rotate: 2deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}
@keyframes dx-line-in {
  from { scale: 0 1; }
  to { scale: 1 1; }
}
@supports (animation-timeline: view()) {
  .dx-rv { animation: dx-rv-up linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .dx-rv-l { animation: dx-rv-left linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .dx-rv-r { animation: dx-rv-right linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .dx-rv-z { animation: dx-rv-zoom linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .dx-stamp { animation: dx-stamp-in linear both; animation-timeline: view(); animation-range: entry 40% cover 30%; }
  .dx-line { transform-origin: left; animation: dx-line-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .dx-stg > * { animation: dx-rv-up linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .dx-stg > *:nth-child(3n+2) { animation-range: entry 10% cover 24%; }
  .dx-stg > *:nth-child(3n+3) { animation-range: entry 20% cover 30%; }
  .dx-stg-z > * { animation: dx-rv-zoom linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .dx-stg-z > *:nth-child(2n) { animation-range: entry 12% cover 26%; }
  .dx-parallax { animation: dx-par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
}
@keyframes dx-par {
  from { translate: 0 60px; }
  to { translate: 0 -60px; }
}

/* ---------- load-in (hero) ---------- */
@keyframes dx-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.dx-rise { animation: dx-rise .95s cubic-bezier(.2,.7,.2,1) .7s both; }
.dx-d1 { animation-delay: .8s; }
.dx-d2 { animation-delay: .95s; }
.dx-d3 { animation-delay: 1.1s; }
.dx-d4 { animation-delay: 1.25s; }
@keyframes dx-word {
  from { opacity: 0; translate: 0 .55em; filter: blur(10px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
.dx-word { display: inline-block; animation: dx-word .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dx-type {
  from { max-width: 0; }
  to { max-width: 30ch; }
}
.dx-type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: dx-type 1.6s steps(22) 1.6s both; }
@keyframes dx-draw1 {
  from { stroke-dashoffset: 1200; }
  to { stroke-dashoffset: 0; }
}
.dx-draw-once { stroke-dasharray: 1200; animation: dx-draw1 1.4s 1.5s ease-out both; }

/* tab-switch content transition (one keyframe per tab so the animation restarts) */
@keyframes dx-sw0 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw1 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw2 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw3 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw4 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw5 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw6 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw7 { from { opacity: 0; translate: 0 16px; } }
@keyframes dx-sw8 { from { opacity: 0; translate: 0 16px; } }

/* ---------- ambient motion ---------- */
@keyframes dx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes dx-float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.dx-float { animation: dx-float 6.5s ease-in-out infinite; }
.dx-float2 { animation: dx-float2 7.5s ease-in-out infinite; }
.dx-float3 { animation: dx-float 8s ease-in-out -2s infinite; }
@keyframes dx-flow {
  to { stroke-dashoffset: -240; }
}
.dx-flow { animation: dx-flow 6s linear infinite; }
.dx-flow-slow { animation: dx-flow 12s linear infinite; }
@keyframes dx-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.2); opacity: 0; }
}
.dx-pulse { transform-box: fill-box; transform-origin: center; animation: dx-pulse 2.6s ease-out infinite; }
.dx-pulse2 { transform-box: fill-box; transform-origin: center; animation: dx-pulse 2.6s ease-out 1.3s infinite; }
@keyframes dx-ring {
  0% { scale: 1; opacity: .55; }
  100% { scale: 1.75; opacity: 0; }
}
.dx-ring { animation: dx-ring 3.2s ease-out infinite; }
.dx-ring2 { animation: dx-ring 3.2s ease-out 1.6s infinite; }
@keyframes dx-twinkle {
  0%, 100% { opacity: .15; }
  50% { opacity: .9; }
}
.dx-tw1 { animation: dx-twinkle 3.2s ease-in-out infinite; }
.dx-tw2 { animation: dx-twinkle 4.6s ease-in-out 1s infinite; }
.dx-tw3 { animation: dx-twinkle 5.4s ease-in-out 2.2s infinite; }
@keyframes dx-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(70px); }
}
.dx-drift { animation: dx-drift 18s ease-in-out infinite; }
.dx-drift2 { animation: dx-drift 24s ease-in-out -8s infinite reverse; }
@keyframes dx-train {
  from { transform: translateX(700px); }
  to { transform: translateX(1220px); }
}
.dx-train { animation: dx-train 13s linear infinite; }
@keyframes dx-grow {
  0% { transform: scaleY(.12); }
  60%, 100% { transform: scaleY(1); }
}
.dx-bar { transform-box: fill-box; transform-origin: bottom; animation: dx-grow 3.6s cubic-bezier(.2,.8,.2,1) infinite alternate; }
@keyframes dx-draw {
  0% { stroke-dashoffset: 420; }
  55%, 100% { stroke-dashoffset: 0; }
}
.dx-draw { stroke-dasharray: 420; animation: dx-draw 5s ease-out infinite; }
@keyframes dx-fill {
  0% { transform: scaleX(.05); }
  70%, 100% { transform: scaleX(1); }
}
.dx-fill { transform-origin: left; animation: dx-fill 3.4s ease-in-out infinite; }
@keyframes dx-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.dx-blink { animation: dx-blink 1.1s steps(1) infinite; }
@keyframes dx-spin {
  to { transform: rotate(360deg); }
}
.dx-spin { transform-box: fill-box; transform-origin: center; animation: dx-spin 9s linear infinite; }
.dx-spin-fast { transform-box: fill-box; transform-origin: center; animation: dx-spin 1.6s linear infinite; }
@keyframes dx-rot {
  to { rotate: 360deg; }
}
@keyframes dx-rot-rev {
  to { rotate: -360deg; }
}
.dx-orbit { animation: dx-rot 48s linear infinite; }
.dx-orbit-rev { animation: dx-rot-rev 48s linear infinite; }
.dx-orbit-slow { animation: dx-rot 90s linear infinite reverse; }
@keyframes dx-travel {
  0% { left: 0%; }
  100% { left: 100%; }
}
.dx-travel { animation: dx-travel 4.5s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes dx-travel-y {
  0% { top: 0%; }
  100% { top: 100%; }
}
.dx-travel-y { animation: dx-travel-y 3.2s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes dx-flowbg {
  to { background-position: 32px 0; }
}
.dx-flowline { background-image: repeating-linear-gradient(90deg, #22C38A 0 8px, transparent 8px 16px); background-size: 32px 2px; animation: dx-flowbg 1.1s linear infinite; }
@keyframes dx-flowbg-y {
  to { background-position: 0 32px; }
}
.dx-flowline-y { background-image: repeating-linear-gradient(180deg, #22C38A 0 8px, transparent 8px 16px); background-size: 2px 32px; animation: dx-flowbg-y 1.1s linear infinite; }
@keyframes dx-flick {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.62); }
}
.dx-flick { transform-box: fill-box; transform-origin: top; animation: dx-flick .35s ease-in-out infinite; }
@keyframes dx-wave {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}
.dx-wave { transform-box: fill-box; transform-origin: center; animation: dx-wave 1.2s ease-in-out infinite; }
@keyframes dx-cursor {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-56px, -30px); }
  70% { transform: translate(-20px, 12px); }
}
.dx-cursor { animation: dx-cursor 5s ease-in-out infinite; }
@keyframes dx-ping {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.dx-ping { animation: dx-ping 2.4s ease-in-out infinite; }
@keyframes dx-bob {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6px, -10px) rotate(-3deg); }
}
.dx-bob { transform-box: fill-box; transform-origin: center; animation: dx-bob 5s ease-in-out infinite; }
@keyframes dx-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.dx-lift { animation: dx-lift 3s ease-in-out infinite; }
@keyframes dx-marquee {
  to { translate: -50% 0; }
}
.dx-marquee-track { animation: dx-marquee 46s linear infinite; }
.dx-marquee:hover .dx-marquee-track { animation-play-state: paused; }
@keyframes dx-glow {
  0%, 100% { opacity: .55; scale: 1; }
  50% { opacity: 1; scale: 1.08; }
}
.dx-glow { animation: dx-glow 7s ease-in-out infinite; }
@keyframes dx-derail {
  0% { transform: translate(-200px, 0) rotate(0deg); }
  55% { transform: translate(360px, 0) rotate(0deg); }
  70% { transform: translate(430px, 26px) rotate(18deg); }
  85%, 100% { transform: translate(470px, 120px) rotate(40deg); opacity: 0; }
}
.dx-derail { animation: dx-derail 7s cubic-bezier(.5,0,.7,1) infinite; }

/* ---------- responsive helpers ---------- */
@media (max-width: 1100px) {
  .dx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dx-span2r { grid-row: auto !important; }
  .dx-hero-card { display: none !important; }
  .dx-hide-md { display: none !important; }
}
@media (max-width: 980px) {
  .dx-navlinks { display: none !important; }
  .dx-burger { display: block !important; }
  .dx-util { display: none !important; }
}
@media (max-width: 680px) {
  .dx-bento { grid-template-columns: minmax(0, 1fr) !important; }
  .dx-span2 { grid-column: auto !important; }
  .dx-wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .dx-sec { padding-top: 72px !important; padding-bottom: 72px !important; }
  .dx-hide-sm { display: none !important; }
  .dx-pad-sm { padding: 28px 20px !important; }
  .dx-stack-sm { flex-direction: column !important; align-items: stretch !important; }
}

/* ---------- motion off (Tweaks toggle) and reduced motion ---------- */
.dx-nomotion *, .dx-nomotion *::before, .dx-nomotion *::after { animation: none !important; }
.dx-nomotion .dx-curtain { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .dx-root *, .dx-root *::before, .dx-root *::after { animation: none !important; transition: none !important; }
  .dx-curtain { display: none !important; }
}
