/* Gardn landing — the mechanics every option shares. Each page skins these;
 * nothing here decides a colour or a typeface except as a fallback. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.g-skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0F2A1E;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.g-skip:focus { top: 12px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---- language switch ---- */
[data-lang-switch] { position: relative; }
.g-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font: inherit;
  font-size: .92em;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  padding: .55em 1em;
  transition: background .2s, border-color .2s;
}
.g-lang-btn:hover { border-color: currentColor; }
.g-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 12.5rem;
  border-radius: 16px;
  background: var(--menu-bg, #fff);
  color: var(--menu-ink, #10271C);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
[data-lang-switch].is-open .g-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .18s ease;
}
.g-lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  font: inherit;
  font-size: 1rem;
  padding: .7em .9em;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.g-lang-menu button:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.g-lang-menu button[aria-pressed="true"] { font-weight: 700; background: color-mix(in srgb, currentColor 10%, transparent); }

/* ---- trades marquee ---- */
.g-trades {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.g-trades-track { display: flex; width: max-content; animation: g-marquee 46s linear infinite; }
.g-trades-track > div { display: flex; align-items: center; gap: 1.4em; padding-inline-end: 1.4em; white-space: nowrap; }
.g-trades-track i { font-style: normal; opacity: .45; font-size: .7em; }
@keyframes g-marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .g-trades-track { animation-name: g-marquee-rtl; }
@keyframes g-marquee-rtl { to { transform: translateX(50%); } }

/* ---- features list ---- */
[data-block="features"] { list-style: none; margin: 0; padding: 0; }
.g-feature-i { display: block; font-size: 1.6rem; line-height: 1; }

/* ---- footer ---- */
.g-foot-brand { display: flex; align-items: center; gap: 14px; }
.g-foot-brand img { border-radius: 10px; }
.g-foot-brand b { display: block; font-size: 1.2rem; }
.g-foot-brand span { opacity: .7; font-size: .95rem; }
.g-foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-block: 26px; }
.g-foot-links a { text-decoration: none; opacity: .85; }
.g-foot-links a:hover { opacity: 1; text-decoration: underline; }
.g-foot-legal { font-size: .82rem; opacity: .62; line-height: 1.7; }

/* ---- the language switch itself: a short dissolve, not a jump ---- */
@media (prefers-reduced-motion: no-preference) {
  html.is-switching main { animation: g-swap .42s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes g-swap { from { opacity: .25; filter: blur(3px); } to { opacity: 1; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-trades-track { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Hebrew and Arabic are never tracked: letter-spacing breaks Arabic's joins
 * and makes Hebrew look like a ransom note. Every page's tracking is for Latin. */
html[lang="he"] *, html[lang="ar"] * { letter-spacing: normal !important; }
