/* Small additions for the React-free landing. Everything else comes from the original stylesheet. */

/* reveal on scroll (replaces framer-motion): only when JS is running */
html.wj-reveal [data-reveal]:not(.wj-in) { opacity: 0; transform: translateY(18px); }
html.wj-reveal [data-reveal] { transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  html.wj-reveal [data-reveal] { transition: none; opacity: 1 !important; transform: none !important; }
}

/* demo dialog host: the captured dialog markup is fixed-positioned on its own */
.wj-dialog-host { position: relative; z-index: 60; }

/* contact form status line */
.wj-form-status { margin: .75rem 0 0; font-size: .875rem; color: hsl(158 64% 52%); min-height: 1.25rem; }
.wj-form-status.wj-bad { color: #f87171; }

/* quick demos dropdown */
#wj-launcher[hidden] { display: none !important; }

/* ---------------------------------------------------------------- hero motion (was framer-motion)
   Floating cards: y 0 -> -12px -> 0, ease-in-out, endless; same durations / delays as the original.
   The button gets the card's radius so its hover glow is rounded instead of a sharp rectangle. */
#hero .absolute.inset-0.z-30 > button { border-radius: .75rem; }
@keyframes wj-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
#hero .absolute.inset-0.z-30 > button:nth-of-type(1) { animation: wj-float 7s ease-in-out .12s infinite; }
#hero .absolute.inset-0.z-30 > button:nth-of-type(2) { animation: wj-float 8s ease-in-out .62s infinite; }
#hero .absolute.inset-0.z-30 > button:nth-of-type(3) { animation: wj-float 6s ease-in-out 1.12s infinite; }
#hero .absolute.inset-0.z-30 > button:nth-of-type(4) { animation: wj-float 9s ease-in-out .42s infinite; }

/* background glows: pulse (5s), drift (7s), drift (8s, delay .4s) */
@keyframes wj-glow-pulse { 0%, 100% { transform: scale(1); opacity: .3; } 50% { transform: scale(1.15); opacity: .5; } }
@keyframes wj-glow-a { 0%, 100% { transform: translate(0, 0); opacity: .2; } 50% { transform: translate(40px, -30px); opacity: .35; } }
@keyframes wj-glow-b { 0%, 100% { transform: translate(0, 0); opacity: .15; } 50% { transform: translate(-30px, 40px); opacity: .3; } }
.bg-accent\/20.blur-\[120px\] { animation: wj-glow-pulse 5s ease-in-out infinite; will-change: transform, opacity; }
.bg-blue-600\/10.blur-\[100px\] { animation: wj-glow-a 7s ease-in-out infinite; will-change: transform, opacity; }
.bg-indigo-500\/10.blur-\[100px\] { animation: wj-glow-b 8s ease-in-out .4s infinite; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  #hero .absolute.inset-0.z-30 > button,
  .bg-accent\/20.blur-\[120px\], .bg-blue-600\/10.blur-\[100px\], .bg-indigo-500\/10.blur-\[100px\] { animation: none; }
}

/* ================================================================ site header + hero CTAs (2026-11-26)
   One block (replaces the v1..v2.3 overrides). Logo | nav (centered from 1320px) | EN/UA + Telegram | Log in | CTA. */
html { scroll-behavior: auto; }
html, body { overflow-x: clip; }   /* decorative glows must not widen the page on phones */

header[data-wj-header] { background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
header[data-wj-header].wj-solid { background: hsl(var(--background) / .8); border-bottom-color: hsl(var(--border));
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
header[data-wj-header].wj-notrans { transition: none; }

.wj-h { max-width: 80rem; height: 4rem; margin: 0 auto; padding: 0 1.5rem; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.wj-h__logo { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; color: hsl(var(--foreground));
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.wj-h__logo img { width: 28px; height: 28px; border-radius: 7px; }
.wj-h__nav { justify-self: start; margin-left: 1.25rem; display: flex; align-items: center; gap: .25rem; }
.wj-h__nav a { padding: .4rem .6rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; line-height: 1.25rem; white-space: nowrap;
  color: hsl(var(--muted-foreground)); text-decoration: none; transition: color .15s, background-color .15s; }
.wj-h__nav a:hover { color: hsl(var(--foreground)); background: hsl(var(--foreground) / .06); }
@media (min-width: 1320px) {
  .wj-h { grid-template-columns: 1fr auto 1fr; }
  .wj-h__nav { justify-self: center; margin-left: 0; }
}

.wj-h__actions { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.wj-h__util { display: flex; align-items: center; gap: .25rem; padding-right: .75rem; margin-right: .25rem;
  border-right: 1px solid hsl(var(--border)); }
.wj-h .lang-switch { display: inline-flex !important; width: auto !important; min-width: 0 !important; max-width: none !important;
  grid-template-columns: none !important; height: 2rem; padding: 2px; gap: 2px; border-radius: .5rem;
  background: transparent; border: 1px solid hsl(var(--border)); }
.wj-h .lang-switch__thumb { display: none; }
.wj-h .lang-switch__btn { padding: 0 .5rem; border-radius: .375rem; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  color: hsl(var(--muted-foreground)); }
.wj-h .lang-switch__btn--active { color: hsl(var(--foreground)); background: hsl(var(--foreground) / .1); }
.wj-h__icon { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: .5rem;
  color: hsl(var(--muted-foreground)); transition: color .15s, background-color .15s; }
.wj-h__icon:hover { color: hsl(var(--foreground)); background: hsl(var(--foreground) / .06); }
.wj-h__login { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 .75rem; border-radius: .5rem; white-space: nowrap;
  font-size: .875rem; font-weight: 500; color: hsl(var(--foreground)); text-decoration: none; transition: background-color .15s; }
.wj-h__login:hover { background: hsl(var(--foreground) / .06); }
.wj-h__menu { display: none; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: .5rem;
  border: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); cursor: pointer; }

.wj-cta { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 2.25rem; padding: 0 .9rem;
  border-radius: .5rem; font-size: .875rem; font-weight: 600; color: #fff; text-decoration: none; white-space: nowrap;
  background: hsl(var(--accent)); border: 1px solid hsl(160 84% 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .25); transition: background-color .15s, box-shadow .2s; }
.wj-cta:hover { background: hsl(160 84% 43%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 4px hsl(var(--accent) / .15); }
.wj-arrow { transition: transform .15s; }
.wj-cta:hover .wj-arrow, .wj-btn--primary:hover .wj-arrow { transform: translateX(2px); }
.wj-cta:focus-visible, .wj-h a:focus-visible, .wj-h button:focus-visible, .wj-btn:focus-visible { outline: 2px solid hsl(var(--accent-light)); outline-offset: 2px; }

@media (max-width: 1099px) {
  .wj-h { grid-template-columns: 1fr auto; }
  .wj-h__nav, .wj-h__util, .wj-h__login { display: none; }
  .wj-h__menu { display: inline-flex; }
  #mobile-menu > .md\:hidden { display: block; }   /* the overlay was md:hidden while its button showed */
}
@media (max-width: 479px) { .wj-h { padding: 0 1rem; } .wj-h__actions .wj-cta { display: none; } }
#mobile-menu .nav-link--recruiting::after { display: none; }

.wj-foot-theme { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; vertical-align: middle;
  border: 1px solid hsl(var(--border)); border-radius: .5rem; background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; }
.wj-foot-theme:hover { color: hsl(var(--foreground)); }
.wj-foot-theme svg { width: 15px; height: 15px; }

/* hero: one primary, one secondary, reassurance line */
.wj-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.75rem; padding: 0 1.25rem;
  border-radius: .625rem; font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, box-shadow .2s, border-color .15s; }
.wj-btn--primary { color: #fff; background: hsl(var(--accent)); border: 1px solid hsl(160 84% 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px -8px hsl(var(--accent) / .55); }
.wj-btn--primary:hover { background: hsl(160 84% 43%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 4px hsl(var(--accent) / .15), 0 8px 24px -8px hsl(var(--accent) / .6); }
.wj-btn--secondary { color: hsl(var(--foreground)); background: hsl(var(--foreground) / .04); border: 1px solid hsl(var(--border)); }
.wj-btn--secondary:hover { background: hsl(var(--foreground) / .08); border-color: hsl(var(--foreground) / .2); }
.wj-hero-note { margin-top: .9rem; font-size: .8125rem; color: hsl(var(--muted-foreground)); display: flex; gap: .4rem .9rem;
  flex-wrap: wrap; justify-content: center; }
.wj-hero-note span::before { content: "✓"; color: hsl(var(--accent-light)); margin-right: .35rem; font-weight: 700; }

/* mobile menu sheet (2026-11-26) */
.wj-mm { display: flex; flex-direction: column; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: hsl(var(--background)); border-left: 1px solid hsl(var(--border)); }
@media (max-width: 480px) { .wj-mm { max-width: none; border-left: 0; } }
.wj-mm__top { flex-shrink: 0; height: 4rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem;
  border-bottom: 1px solid hsl(var(--border)); }
.wj-mm__close { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: .5rem;
  border: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); cursor: pointer; }
.wj-mm__nav { display: flex; flex-direction: column; padding: .25rem 1rem; }
.wj-mm__nav a { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; font-size: 1.0625rem; font-weight: 500;
  color: hsl(var(--foreground)); text-decoration: none; border-bottom: 1px solid hsl(var(--border)); }
.wj-mm__nav a::after { content: "›"; font-size: 1.25rem; line-height: 1; color: hsl(var(--muted-foreground)); }
.wj-mm__foot { margin-top: auto; flex-shrink: 0; display: flex; flex-direction: column; gap: .625rem; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); position: sticky; bottom: 0; }
.wj-mm__row { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.wj-mm .lang-switch { display: inline-flex !important; width: auto !important; min-width: 0 !important; max-width: none !important;
  grid-template-columns: none !important; height: 2.25rem; padding: 2px; gap: 2px; border-radius: .5rem; background: transparent; border: 1px solid hsl(var(--border)); }
.wj-mm .lang-switch__thumb { display: none; }
.wj-mm .lang-switch__btn { padding: 0 .75rem; border-radius: .375rem; font-size: .8125rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.wj-mm .lang-switch__btn--active { color: hsl(var(--foreground)); background: hsl(var(--foreground) / .1); }
.wj-mm__icon { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: .5rem;
  border: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; }
.wj-mm__icon svg { width: 16px; height: 16px; }
.wj-mm__btn { display: flex; width: 100%; height: 2.875rem; align-items: center; justify-content: center; gap: .4rem; border-radius: .625rem;
  font-size: 1rem; font-weight: 600; text-decoration: none; }
.wj-mm__btn--ghost { border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
