@import url("/assets/css/design-system.css");

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.24)),
    rgba(255,255,255,.18);
  border-bottom: 1px solid var(--laerry-public-glass-border, rgba(255,255,255,.58));
  box-shadow: 0 14px 44px rgba(31,27,46,.055);
  backdrop-filter: blur(24px) saturate(1.08);
}

.home-topbar-inner {
  width: min(1180px, calc(100% - 40px));
  --home-header-gutter: max(20px, calc((100vw - 1180px) / 2));
  --home-nav-offset: 132px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.home-logo {
  color: var(--laerry-brand, #5a4ff3);
  font-size: 1.62rem;
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: 1;
  text-decoration: none;
}

.home-logo:hover {
  color: #4037c9;
}

.home-nav,
.home-actions-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.home-nav {
  justify-content: flex-start;
  min-width: 0;
}

.home-actions-nav {
  justify-self: end;
}

.home-nav a,
.home-nav-dropdown > button,
.home-nav-link,
.home-nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  color: rgba(23, 23, 29, .82);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-nav-dropdown {
  position: relative;
}

.home-nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.home-nav-dropdown > button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.home-nav-dropdown > button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
  transition: transform .18s ease;
}

.home-nav a:hover,
.home-nav-dropdown:hover > button,
.home-nav-dropdown.is-open > button,
.home-nav-dropdown > button:focus-visible,
.home-nav-link:hover {
  color: #17171d;
  background: rgba(23, 23, 29, .045);
}

.home-nav a.is-active,
.home-nav-dropdown.is-active > button,
.home-nav-dropdown.is-open > button,
.home-nav-link.is-active {
  color: #17171d;
  background: rgba(23, 23, 29, .06);
  box-shadow: none;
}

.home-nav-dropdown.is-open > button::after,
.home-nav-dropdown:hover > button::after,
.home-nav-dropdown:focus-within > button::after {
  transform: translateY(1px) rotate(225deg);
}

.home-nav-menu {
  position: fixed;
  top: 68px;
  left: var(--mega-left, calc(var(--home-header-gutter) + var(--home-nav-offset)));
  z-index: 75;
  box-sizing: border-box;
  width: min(var(--mega-width, 980px), calc(100vw - var(--mega-left, calc(var(--home-header-gutter) + var(--home-nav-offset))) - 20px));
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.965)),
    #fff;
  border: 1px solid rgba(23, 32, 51, .08);
  box-shadow: 0 24px 64px rgba(23, 32, 51, .14);
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    width .28s cubic-bezier(.22,1,.36,1),
    opacity .18s ease,
    transform .22s cubic-bezier(.22,1,.36,1),
    visibility .18s ease;
  visibility: hidden;
}

.home-mega-menu--create {
  --mega-width: 1040px;
}

.home-mega-menu--discover {
  --mega-width: 980px;
}

.home-mega-menu--solutions {
  --mega-width: 930px;
}

.home-mega-menu--why {
  --mega-width: 960px;
}

.home-nav-dropdown.is-open .home-nav-menu,
.home-nav-dropdown:focus-within .home-nav-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.home-nav-menu.is-mega-entering .home-mega-grid,
.home-nav-menu.is-mega-entering .home-mega-promo {
  animation: homeMegaContentIn .18s ease both;
  animation-delay: .04s;
}

.home-nav-menu a {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  justify-content: flex-start;
  min-height: 0;
  padding: 9px 0;
  border-radius: 10px;
  color: #17171d;
  text-align: left;
  font-weight: 600;
}

.home-nav-menu a:hover,
.home-nav-menu a:focus-visible {
  background: transparent;
  color: #4037c9;
}

.home-mega-grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-columns, 3), minmax(0, 1fr));
  gap: 0;
}

.home-mega-grid--cols-1 {
  --mega-columns: 1;
}

.home-mega-grid--cols-2 {
  --mega-columns: 2;
}

.home-mega-grid--cols-3 {
  --mega-columns: 3;
}

.home-mega-column {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 30px 30px 28px;
  text-align: left;
}

.home-mega-column + .home-mega-column {
  border-left: 1px solid rgba(23, 32, 51, .075);
}

.home-mega-column > strong {
  color: rgba(23, 23, 29, .52);
  font-size: .9rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.2;
}

.home-mega-items {
  display: grid;
  gap: 13px;
}

.home-mega-items a span {
  color: inherit;
  font-size: 1.02rem;
  font-weight: 620;
  line-height: 1.18;
}

.home-mega-items a small {
  margin-top: 5px;
  color: rgba(23, 23, 29, .55);
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.25;
}

.home-mega-items a:hover small,
.home-mega-items a:focus-visible small {
  color: rgba(23, 23, 29, .58);
}

.home-mega-items.is-compact a {
  min-height: 0;
  justify-content: flex-start;
  padding-block: 9px;
  background: transparent;
  border: 0;
}

.home-nav-menu .home-mega-promo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 18px 30px 20px;
  border-top: 1px solid rgba(23, 32, 51, .075);
  border-radius: 0;
  background: #fff;
  color: #17171d;
  text-align: left;
  width: 100%;
  min-height: 84px;
  justify-content: flex-start;
  font-weight: 400;
}

.home-nav-menu .home-mega-promo:hover,
.home-nav-menu .home-mega-promo:focus-visible {
  background: #fff;
  color: #17171d;
}

.home-mega-promo-badge {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 28% 25%, rgba(255,255,255,.72), transparent 1.5rem),
    linear-gradient(135deg, #5a4ff3, #31bdb3 54%, #f08b54);
  color: #fff;
  font-size: .9rem;
  font-weight: 720;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.home-mega-promo-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-mega-promo-copy strong {
  color: #17171d;
  font-size: .98rem;
  font-weight: 620;
  line-height: 1.2;
}

.home-mega-promo-copy small {
  color: rgba(23, 23, 29, .55);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.25;
}

.home-nav-cta {
  background: #17171d;
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 23, 29, .11);
  font-weight: 850;
}

.home-nav-cta:hover {
  color: #fff;
}

.home-user-dropdown {
  position: relative;
}

.home-user-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 12px 30px rgba(23, 32, 51, .08);
  border-radius: 999px;
  padding: 7px 10px 7px 7px;
  color: #17171d;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.home-user-button:hover,
.home-user-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(23, 32, 51, .12);
  border-color: rgba(90, 79, 243, .25);
}

.home-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5a4ff3, #8b7cff);
  color: #fff;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: -.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.home-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  max-width: 190px;
}

.home-user-meta strong {
  max-width: 100%;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-user-meta span {
  margin-top: 3px;
  color: rgba(23, 23, 29, .48);
  font-size: .72rem;
  font-weight: 750;
}

.home-user-caret {
  color: rgba(23, 23, 29, .42);
  font-size: .9rem;
}

.home-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  min-width: 260px;
  padding: 8px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, .08);
  box-shadow: 0 24px 60px rgba(23, 32, 51, .18);
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.home-user-dropdown.is-open .home-user-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-user-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #17171d;
  font-weight: 800;
  text-decoration: none;
}

.home-user-menu a:hover {
  background: #f3f1ff;
  color: #4037c9;
}

.home-user-menu a.danger {
  color: #dc2626;
}

.home-mobile-toggle,
.home-mobile-backdrop,
.home-mobile-menu {
  display: none;
}

html.has-public-mobile-menu {
  overflow: hidden;
}

@media (max-width: 860px) {
  .home-topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  .home-logo {
    font-size: 1.5rem;
  }

  .home-nav,
  .home-actions-nav {
    display: none;
  }

  html.has-public-mobile-menu .home-topbar {
    z-index: 90;
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
  }

  html.has-public-mobile-menu .home-logo {
    opacity: 0;
  }

  .home-mobile-toggle {
    width: 48px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-self: end;
    padding: 8px;
    pointer-events: auto;
    position: relative;
    z-index: 91;
  }

  .home-mobile-toggle span {
    width: 27px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: #17171d;
    transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s ease, width .28s cubic-bezier(.22,1,.36,1);
    transform-origin: center;
  }

  .home-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .home-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.35);
  }

  .home-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .home-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(255,255,255,.66);
    backdrop-filter: blur(22px) saturate(1.08);
    animation: homeMobileBackdropIn .28s ease both;
    pointer-events: auto;
  }

  .home-mobile-backdrop[hidden] {
    display: none;
  }

  .home-mobile-backdrop.is-closing {
    animation: homeMobileBackdropOut .2s ease both;
  }

  .home-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: stretch;
    gap: 24px;
    overflow-y: auto;
    padding: max(22px, env(safe-area-inset-top)) clamp(20px, 6vw, 34px) max(24px, env(safe-area-inset-bottom));
    border-radius: 0;
    background:
      radial-gradient(circle at 86% 12%, rgba(91,63,242,.12), transparent 18rem),
      radial-gradient(circle at 10% 92%, rgba(215,198,174,.42), transparent 20rem),
      linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.64));
    border: 0;
    box-shadow: none;
    backdrop-filter: blur(28px) saturate(1.06);
    animation: homeMobileMenuIn .36s cubic-bezier(.22,1,.36,1) both;
    pointer-events: auto;
  }

  .home-mobile-menu[hidden] {
    display: none;
  }

  .home-mobile-menu.is-closing {
    animation: homeMobileMenuOut .22s ease both;
  }

  .home-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .home-mobile-logo {
    color: var(--home-violet, #5b3ff2);
    font-size: 1.78rem;
    font-weight: 950;
    letter-spacing: -.07em;
    line-height: 1;
    text-decoration: none;
  }

  .home-mobile-close {
    display: none;
  }

  .home-mobile-close span {
    position: absolute;
    left: 10px;
    top: 23px;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
  }

  .home-mobile-close span:first-child {
    transform: rotate(45deg);
  }

  .home-mobile-close span:last-child {
    transform: rotate(-45deg);
  }

  .home-mobile-links {
    display: grid;
    align-content: start;
    gap: 10px;
    padding-top: clamp(10px, 3.5vh, 28px);
  }

  .home-mobile-links section {
    display: block;
    padding: 0 0 8px;
    color: #17171d;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: 0;
    opacity: 0;
    transform: translateX(-24px);
    animation: homeMobileItemIn .46s cubic-bezier(.22,1,.36,1) forwards;
  }

  .home-mobile-links section:nth-child(1) { animation-delay: .09s; }
  .home-mobile-links section:nth-child(2) { animation-delay: .145s; }
  .home-mobile-links section:nth-child(3) { animation-delay: .2s; }
  .home-mobile-links section:nth-child(4) { animation-delay: .255s; }
  .home-mobile-links section:nth-child(5) { animation-delay: .31s; }

  .home-mobile-links section > button,
  .home-mobile-direct-link {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(23,23,29,.12);
    border-radius: 0;
    background: transparent;
    color: #17171d;
    font-family: inherit;
    font-size: clamp(1.24rem, 5vw, 1.52rem);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .home-mobile-links section > button::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
    opacity: .55;
  }

  .home-mobile-links section > button[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
  }

  .home-mobile-section-panel {
    display: grid;
    gap: 16px;
    padding: 16px 0 12px;
  }

  .home-mobile-section-panel[hidden] {
    display: none;
  }

  .home-mobile-column {
    display: grid;
    gap: 6px;
  }

  .home-mobile-column strong {
    display: block;
    color: rgba(23,23,29,.46);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .home-mobile-links section a {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 11px 12px;
    border: 0;
    border-radius: 16px;
    background: rgba(255,255,255,.54);
    color: #17171d;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .home-mobile-links section a span,
  .home-mobile-links section a small {
    width: 100%;
  }

  .home-mobile-links section a small {
    margin-top: 3px;
    color: rgba(23,23,29,.55);
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.28;
  }

  .home-mobile-links section .home-mobile-direct-link {
    flex-direction: row;
    align-items: center;
    min-height: 54px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: clamp(1.24rem, 5vw, 1.52rem);
    font-weight: 950;
  }

  .home-mobile-links section > a + a {
    margin-top: 8px;
  }

  .home-mobile-links > a {
    display: none;
  }

  .home-mobile-links a::after {
    display: none;
  }

  .home-mobile-links a.is-active,
  .home-mobile-links section.is-active > button,
  .home-mobile-links section.is-active .home-mobile-direct-link {
    color: var(--home-violet, #5b3ff2);
  }

  .home-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid rgba(23,23,29,.1);
    padding-top: 16px;
    align-self: end;
  }

  .home-mobile-cta,
  .home-mobile-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: .98rem;
    font-weight: 900;
    opacity: 0;
    transform: translateX(-18px);
    animation: homeMobileItemIn .46s cubic-bezier(.22,1,.36,1) forwards;
  }

  .home-mobile-actions a:nth-child(1) { animation-delay: .365s; }
  .home-mobile-actions a:nth-child(2) { animation-delay: .42s; }

  .home-mobile-cta {
    background: #17171d;
    color: #fff;
    box-shadow: 0 14px 34px rgba(23,23,29,.12);
  }

  .home-mobile-secondary {
    color: #17171d;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(23,23,29,.1);
    opacity: 0;
  }
}

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

@keyframes homeMegaContentIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeMobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes homeMobileMenuOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes homeMobileItemIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-nav-menu,
  .home-nav-menu.is-mega-entering .home-mega-grid,
  .home-nav-menu.is-mega-entering .home-mega-promo {
    animation: none;
    transition: none;
  }
}

@media (max-width: 660px) {
  .home-topbar {
    padding: 12px 0;
  }

  .home-topbar-inner {
    width: min(100% - 28px, 1180px);
    gap: 10px;
  }

  .home-nav a {
    min-height: 38px;
    padding-inline: .72rem;
  }

  .home-nav-link {
    display: none;
  }

  .home-nav-cta {
    min-height: 40px;
    padding-inline: .78rem;
    font-size: .88rem;
  }

  .home-user-button {
    padding-right: 8px;
  }

  .home-user-caret {
    display: none;
  }
}
