﻿:root {
  --site-nav-height: 64px;
}

html {
  scroll-padding-top: calc(var(--site-nav-height) + 18px);
}

body.folosa-has-global-nav {
  padding-top: var(--site-nav-height) !important;
}

#folosa-global-nav,
#folosa-global-nav * {
  box-sizing: border-box;
}

#folosa-global-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--site-nav-height);
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) minmax(540px, auto) minmax(320px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 clamp(36px, 3.2vw, 56px);
  background: rgba(6, 11, 22, 0.9);
  border-bottom: 1px solid rgba(137, 206, 255, 0.12);
  box-shadow: 0 22px 60px rgba(2, 8, 23, 0.34);
  backdrop-filter: blur(18px);
  color: #e6eefc;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}

#folosa-global-nav .folosa-global-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: #f3f0ff;
  text-decoration: none;
  filter: drop-shadow(0 0 10px rgba(208, 188, 255, 0.16));
  white-space: nowrap;
}

#folosa-global-nav .folosa-global-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: url("/assets/folosa-nav-mark.svg?v=20260608") center / contain no-repeat;
}

#folosa-global-nav .folosa-global-word {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: #f7f1df;
  transform: translateY(1px);
}

#folosa-global-nav .folosa-global-links {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: clamp(18px, 1.75vw, 30px);
  transform: translateX(6px);
}

#folosa-global-nav .folosa-global-links a {
  color: #d6d3e7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 180ms ease;
}

#folosa-global-nav .folosa-global-links a:hover,
#folosa-global-nav .folosa-global-links a.is-active {
  color: #89ceff;
}

#folosa-global-nav .folosa-global-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
}

#folosa-global-nav .folosa-global-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  min-width: 154px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.42);
  color: #e6eefc;
  box-shadow: none;
  overflow: visible;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  cursor: pointer;
}

#folosa-global-nav .folosa-global-lang:hover,
#folosa-global-nav .folosa-global-lang:focus-within {
  background: rgba(18, 29, 52, 0.74);
  color: #ffffff;
  transform: translateY(-1px);
}

#folosa-global-nav .folosa-global-lang::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #b8c7e7;
  border-bottom: 2px solid #b8c7e7;
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
  opacity: 0.85;
  z-index: 3;
}

#folosa-global-nav .folosa-global-lang-trigger {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 31px 0 10px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

#folosa-global-nav .folosa-global-lang select {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: transparent;
  padding: 0;
  font: 700 13px/1 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  opacity: 0.01;
}

#folosa-global-nav .folosa-global-lang option {
  background: #111827;
  color: #dae2fd;
}

#folosa-global-nav .folosa-global-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 100%;
  display: none;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(137, 206, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(17, 28, 50, 0.98), rgba(8, 14, 28, 0.98));
  box-shadow: 0 22px 54px rgba(2, 8, 23, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#folosa-global-nav .folosa-global-lang.is-open .folosa-global-lang-menu {
  display: grid;
}

#folosa-global-nav .folosa-global-lang-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #dbe6fb;
  font: 700 13px/1 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

#folosa-global-nav .folosa-global-lang-menu button:hover,
#folosa-global-nav .folosa-global-lang-menu button.is-active {
  background: rgba(137, 206, 255, 0.14);
  color: #ffffff;
}

#folosa-global-nav .folosa-global-icon--language {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #89ceff;
  opacity: 0.92;
}

#folosa-global-nav .folosa-global-lang-label {
  position: relative;
  z-index: 1;
  color: #f3f0ff;
  font: 700 13px/1 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
  pointer-events: none;
  white-space: nowrap;
}

#folosa-global-nav .folosa-global-icon--language::before,
#folosa-global-nav .folosa-global-icon--language::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 2px;
  bottom: 2px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

#folosa-global-nav .folosa-global-icon--language::after {
  left: 2px;
  right: 2px;
  top: 7px;
  bottom: auto;
  height: 1px;
  border: 0;
  background: currentColor;
}

#folosa-global-nav .folosa-global-button,
#folosa-mobile-menu .folosa-global-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 4px;
  padding: 0 18px;
  border: 1px solid rgba(144, 165, 199, 0.28);
  background: rgba(8, 14, 28, 0.68);
  color: #dce6fb;
  text-decoration: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#folosa-global-nav .folosa-global-button:hover,
#folosa-mobile-menu .folosa-global-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

#folosa-global-nav .folosa-global-button--primary,
#folosa-mobile-menu .folosa-global-button--primary {
  min-width: 136px;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%);
  color: #07101f;
  box-shadow: 0 0 18px rgba(137, 206, 255, 0.18);
}

#folosa-global-nav .folosa-global-menu-button {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #20bdfb;
  cursor: pointer;
}

#folosa-global-nav .folosa-global-menu-lines,
#folosa-global-nav .folosa-global-menu-lines::before,
#folosa-global-nav .folosa-global-menu-lines::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

#folosa-global-nav .folosa-global-menu-lines {
  position: relative;
}

#folosa-global-nav .folosa-global-menu-lines::before {
  position: absolute;
  top: -7px;
}

#folosa-global-nav .folosa-global-menu-lines::after {
  position: absolute;
  top: 7px;
}

#folosa-mobile-menu {
  position: fixed;
  top: var(--site-nav-height);
  left: 0;
  right: 0;
  z-index: 89;
  display: none;
  padding: 18px 24px 24px;
  background: rgba(6, 11, 22, 0.97);
  border-bottom: 1px solid rgba(137, 206, 255, 0.12);
  box-shadow: 0 24px 64px rgba(2, 8, 23, 0.45);
  backdrop-filter: blur(18px);
}

#folosa-mobile-menu.is-open {
  display: block;
}

#folosa-mobile-menu .folosa-mobile-panel {
  display: grid;
  gap: 14px;
}

#folosa-mobile-menu a {
  color: #d6d3e7;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#folosa-mobile-menu a.is-active {
  color: #89ceff;
}

#folosa-mobile-menu .folosa-global-lang {
  position: relative;
  width: 100%;
  display: block;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(23, 31, 51, 0.6);
  color: #dae2fd;
  overflow: visible;
}

#folosa-mobile-menu .folosa-global-lang::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #b8c7e7;
  border-bottom: 2px solid #b8c7e7;
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
  opacity: 0.85;
  z-index: 3;
}

#folosa-mobile-menu .folosa-global-lang-trigger {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 42px 12px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

#folosa-mobile-menu .folosa-global-lang select {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: transparent;
  padding-right: 24px;
  font: 700 14px/1 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.01;
}

#folosa-mobile-menu .folosa-global-lang-label {
  position: relative;
  z-index: 1;
  color: #dae2fd;
  font: 700 14px/1 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
}

#folosa-mobile-menu .folosa-global-lang-menu {
  position: static;
  display: none;
  gap: 3px;
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(137, 206, 255, 0.16);
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.96);
}

#folosa-mobile-menu .folosa-global-lang.is-open .folosa-global-lang-menu {
  display: grid;
}

#folosa-mobile-menu .folosa-global-lang-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #dbe6fb;
  font: 700 14px/1 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  text-align: left;
  padding: 0 12px;
}

#folosa-mobile-menu .folosa-global-lang-menu button:hover,
#folosa-mobile-menu .folosa-global-lang-menu button.is-active {
  background: rgba(137, 206, 255, 0.14);
  color: #ffffff;
}

#folosa-mobile-menu .folosa-global-icon--language {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #89ceff;
  pointer-events: none;
}

#folosa-mobile-menu .folosa-global-icon--language::before,
#folosa-mobile-menu .folosa-global-icon--language::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 2px;
  bottom: 2px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

#folosa-mobile-menu .folosa-global-icon--language::after {
  left: 2px;
  right: 2px;
  top: 7px;
  bottom: auto;
  height: 1px;
  border: 0;
  background: currentColor;
}

#folosa-mobile-menu .folosa-global-button {
  width: 100%;
  min-height: 42px;
}

#folosa-global-footer,
#folosa-global-footer * {
  box-sizing: border-box;
}

#folosa-global-footer {
  width: 100%;
  margin-top: auto;
  padding: 48px clamp(36px, 3.2vw, 56px);
  border-top: 1px solid rgba(51, 65, 85, 0.2);
  background: #020617;
  color: #dae2fd;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  z-index: 10;
}

#folosa-global-footer .folosa-footer-grid {
  display: grid;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(150px, 0.55fr));
  gap: 32px;
}

#folosa-global-footer .folosa-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dae2fd;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

#folosa-global-footer .folosa-footer-mark {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-block;
  background: url("/assets/folosa-nav-mark.svg?v=20260608") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(216, 188, 255, 0.22));
  transform: translateY(1px);
}

#folosa-global-footer p {
  max-width: 360px;
  margin: 16px 0 0;
  color: #958ea0;
  font-size: 14px;
}

#folosa-global-footer .folosa-footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#folosa-global-footer .folosa-footer-column > span {
  margin-bottom: 8px;
  color: #89ceff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#folosa-global-footer a {
  width: fit-content;
  color: #958ea0;
  text-decoration: none;
  transition: color 180ms ease;
}

#folosa-global-footer a:hover {
  color: #d0bcff;
}

#folosa-global-footer .folosa-footer-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#folosa-global-footer .folosa-footer-support span {
  font-family: "Material Symbols Outlined";
  font-size: 14px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

#folosa-global-footer .folosa-footer-copy {
  margin-top: 10px;
  color: #958ea0;
  font-size: 13px;
  line-height: 1.5;
}

#folosa-release-notice,
#folosa-release-notice * {
  box-sizing: border-box;
}

#folosa-release-notice {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 44% 36%, rgba(137, 206, 255, 0.14), transparent 32%),
    rgba(2, 6, 15, 0.62);
  backdrop-filter: blur(14px);
  color: #e6eefc;
  animation: folosaNoticeFade 180ms ease-out;
}

#folosa-release-notice.is-closing {
  opacity: 0;
  transition: opacity 180ms ease;
}

#folosa-release-notice .folosa-release-notice-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px 18px;
  align-items: start;
  padding: 26px;
  border: 1px solid rgba(137, 206, 255, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(24, 33, 54, 0.96) 0%, rgba(9, 15, 28, 0.96) 100%),
    radial-gradient(circle at top left, rgba(208, 188, 255, 0.16), transparent 40%);
  box-shadow: 0 28px 86px rgba(2, 8, 23, 0.55);
}

#folosa-release-notice .folosa-release-notice-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(208, 188, 255, 0.24);
  border-radius: 10px;
  background:
    rgba(208, 188, 255, 0.08)
    url("/favicon.svg?v=20260613logo1") center / 27px 27px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 28px rgba(208, 188, 255, 0.12);
}

#folosa-release-notice h2 {
  margin: 0;
  color: #f7f1df;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

#folosa-release-notice p {
  margin: 12px 0 0;
  color: #b9c4d8;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

#folosa-release-notice button {
  grid-column: 2;
  justify-self: start;
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: linear-gradient(135deg, #d0bcff 0%, #89ceff 100%);
  color: #06111f;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

#folosa-release-notice button:focus-visible {
  outline: 2px solid #89ceff;
  outline-offset: 3px;
}

@keyframes folosaNoticeFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) {
  #folosa-global-nav {
    grid-template-columns: minmax(190px, 0.75fr) minmax(460px, auto) minmax(250px, 0.9fr);
    padding-left: 28px;
    padding-right: 28px;
  }

  #folosa-global-nav .folosa-global-links {
    gap: 16px;
    transform: translateX(0);
  }

  #folosa-global-nav .folosa-global-links a {
    font-size: 14px;
  }

  #folosa-global-nav .folosa-global-button--primary {
    padding-inline: 14px;
  }

  #folosa-global-footer .folosa-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #folosa-global-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  #folosa-global-nav .folosa-global-word {
    font-size: 24px;
  }

  #folosa-global-nav .folosa-global-mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  #folosa-global-footer .folosa-footer-mark {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  #folosa-global-nav .folosa-global-links,
  #folosa-global-nav .folosa-global-lang,
  #folosa-global-nav .folosa-global-button {
    display: none;
  }

  #folosa-global-nav .folosa-global-actions {
    margin-left: auto;
    gap: 8px;
  }

  #folosa-global-nav .folosa-global-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #folosa-global-footer {
    padding: 40px 20px;
  }

  #folosa-global-footer .folosa-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #folosa-global-footer .folosa-footer-copy {
    text-align: left;
  }

  #folosa-release-notice .folosa-release-notice-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  #folosa-release-notice button {
    grid-column: 1;
    width: 100%;
  }
}
