:root {
  --public-chrome-ink: #111318;
  --public-chrome-dark: #0c0d0f;
  --public-chrome-dark-soft: #15171b;
  --public-chrome-line: rgba(17, 19, 24, 0.10);
}

html,
body {
  overscroll-behavior-y: none;
}

/* Keep the document scrollbar identical to the main landing page. */
html {
  scrollbar-width: thin;
  scrollbar-color: #888 #0d0f10;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0f10;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(17, 19, 24, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.public-header.is-scrolled {
  background: rgba(12, 13, 15, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.public-header__inner {
  width: min(100% - 32px, 1440px);
  min-height: 60px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.public-header__brand {
  position: relative;
  width: 121px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.public-header__brand img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 121px;
  height: auto;
  display: block;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.public-header__brand-white { opacity: 0; }
.public-header.is-scrolled .public-header__brand-ink { opacity: 0; }
.public-header.is-scrolled .public-header__brand-white { opacity: 1; }

.public-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 3.4vw, 54px);
}

.public-header__nav a {
  color: #5d6168;
  font-size: 15px;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.public-header__nav a:hover,
.public-header__nav a:focus-visible { color: #111318; }
.public-header.is-scrolled .public-header__nav a { color: rgba(255, 255, 255, 0.76); }
.public-header.is-scrolled .public-header__nav a:hover,
.public-header.is-scrolled .public-header__nav a:focus-visible { color: #fff; }

.public-header__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: #101012;
  color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 120ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.public-header__cta::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 5px;
  background: #17181d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.30);
  transition: background-color 150ms ease;
}

.public-header__cta:hover::before { background: #1d1e24; }
.public-header__cta:active { transform: translateY(1px); }
.public-header.is-scrolled .public-header__cta {
  border-color: rgba(255,255,255,.76);
  background: #fff;
  color: #111318;
  box-shadow: none;
}
.public-header.is-scrolled .public-header__cta::before {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17,19,24,.08);
}
.public-header.is-scrolled .public-header__cta:hover::before { background: #f1f2f4; }

.public-header a:focus-visible,
.public-footer a:focus-visible,
.public-language__toggle:focus-visible,
.public-language__option:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.public-footer {
  width: 100%;
  margin-top: 0;
  background: #0c0d0f;
  color: rgba(255,255,255,.72);
}

.public-footer__inner {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 72px 0 26px;
}

.public-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(560px, 2fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: start;
}

.public-footer__brand img {
  width: 130px;
  height: auto;
  display: block;
}

.public-footer__brand p {
  max-width: 390px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.55;
}

.public-footer__brand .public-footer__install { margin-top: 22px; }

.public-footer__install {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 10px;
  background: #fff;
  color: #111318;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 120ms ease;
}
.public-footer__install:hover { background: #f1f2f4; }
.public-footer__install:active { transform: translateY(1px); }

.public-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}
.public-footer__column h2 {
  margin: 0 0 18px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.public-footer__column a {
  display: block;
  width: fit-content;
  margin-top: 11px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.42;
  text-decoration: none;
  transition: color 140ms ease;
}
.public-footer__column a:hover { color: #fff; }

.public-footer__bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-footer__utility {
  display: flex;
  align-items: center;
  gap: 14px;
}
.public-footer__socials { display: flex; align-items: center; gap: 8px; }
.public-footer__social {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.public-footer__social:hover {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}
.public-footer__social svg { width: 17px; height: 17px; display: block; }
.public-footer__instagram { fill: none; stroke: currentColor; stroke-width: 1.9; }
.public-footer__instagram-dot { fill: currentColor; stroke: none; }
.public-footer__copyright {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 13px;
}

.public-language {
  position: relative;
  display: inline-block;
}
.public-language__toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: #14161a;
  color: rgba(255,255,255,.88);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 1px 2px rgba(0,0,0,.26), 0 4px 10px -8px rgba(0,0,0,.9);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}
.public-language__toggle:hover:not([aria-expanded="true"]) {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: #191b20;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.3), 0 8px 18px -12px rgba(0,0,0,.95);
}
.public-language__toggle:focus-visible:not([aria-expanded="true"]) {
  outline: none;
  border-color: #a8a29e;
  box-shadow: 0 1px 2px rgba(28,25,23,.06), 0 8px 18px -12px rgba(28,25,23,.5);
}
.public-language__toggle[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: #14161a;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.42);
}
.public-language__icon,
.public-language__chevron { display: inline-flex; color: rgba(255,255,255,.70); }
[data-public-language-label] { color: rgba(255,255,255,.85); white-space: nowrap; }
.public-language__icon { width: 18px; height: 18px; }
.public-language__icon svg { width: 18px; height: 18px; }
.public-language__chevron { width: 14px; height: 14px; transition: transform 180ms cubic-bezier(.23,1,.32,1); }
.public-language__chevron svg { width: 14px; height: 14px; }
.public-language.is-open .public-language__chevron { transform: rotate(180deg); }

@keyframes publicLanguageDropdownOpenUp {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.public-language__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 90;
  min-width: 180px;
  max-height: min(420px, calc(100vh - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
  margin: 0;
  padding: 5px;
  list-style: none;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  background: #14161a;
  box-shadow: 0 1px 2px rgba(0,0,0,.24), 0 16px 36px -18px rgba(0,0,0,.95);
  isolation: isolate;
  transform-origin: bottom left;
}
.public-language__menu::-webkit-scrollbar {
  width: 8px;
}
.public-language__menu::-webkit-scrollbar-track {
  background: transparent;
}
.public-language__menu::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  background-clip: padding-box;
}
.public-language__menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.30);
  background-clip: padding-box;
}
.public-language__menu[hidden] { display: none; }
.public-language.is-open .public-language__menu:not([hidden]) {
  animation: publicLanguageDropdownOpenUp 210ms cubic-bezier(.23,1,.32,1) both;
}
.public-language__option {
  position: relative;
  z-index: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: rgba(255,255,255,.70);
  cursor: pointer;
  user-select: none;
  outline: 0;
  transition: color 120ms ease;
}
.public-language__option:hover,
.public-language__option:focus-visible,
.public-language__option.is-focused,
.public-language__option[aria-selected="true"] {
  color: #fff;
  background: transparent;
}
.public-language__option[aria-selected="true"] { font-weight: 600; }
.public-language__highlight {
  position: absolute;
  z-index: 0;
  left: 5px;
  right: 5px;
  top: 0;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255,255,255,.075);
  opacity: 0;
  pointer-events: none;
  list-style: none;
  will-change: transform, opacity;
  transition: transform 160ms cubic-bezier(.23,1,.32,1), opacity 100ms ease-out, background-color 120ms ease;
}

@media (max-width: 980px) {
  .public-header__inner { width: min(100% - 32px, 1440px); }
  .public-header__nav { gap: 22px; }
  .public-header__nav a { font-size: 14px; }
  .public-footer__top { grid-template-columns: 1fr; gap: 48px; }
  .public-footer__columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .public-header__inner { min-height: 60px; width: min(100% - 28px, 1440px); grid-template-columns: auto 1fr auto; gap: 12px; }
  .public-header__brand, .public-header__brand img { width: 112px; }
  .public-header__nav { display: none; }
  .public-header__cta { grid-column: 3; min-height: 44px; padding-inline: 14px; font-size: 13px; }
  .public-footer__inner { width: min(100% - 28px, 1180px); padding-top: 54px; }
  .public-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
  .public-footer__bottom { align-items: flex-start; flex-direction: column; }
  .public-footer__copyright { order: -1; }
}

@media (max-width: 430px) {
  .public-header__brand, .public-header__brand img { width: 102px; }
  .public-header__cta { padding-inline: 12px; font-size: 12.5px; }
  .public-footer__columns { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .public-footer__utility { width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
  .public-language__menu { left: 0; max-width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  .public-header,
  .public-header__brand img,
  .public-header__cta,
  .public-language__chevron,
  .public-language__menu,
  .public-footer a { transition-duration: .01ms !important; }
  .public-language.is-open .public-language__menu:not([hidden]) { animation: none !important; }
  .public-language__highlight { transition: none !important; }
}
