:root {
  --dock-lime: #b9ff37;
  --dock-bg: #080c0a;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong,
.brand small {
  white-space: nowrap;
}

.footer-wordmark {
  font-size: clamp(58px, 12.5vw, 190px);
  letter-spacing: -.065em;
}

.footer-v2-bottom .footer-creator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(185, 255, 55, .18);
  border-radius: 999px;
  background: rgba(185, 255, 55, .055);
  color: #aeb7b0;
}

.footer-v2-bottom .footer-creator i {
  color: var(--dock-lime);
  font-style: normal;
  filter: drop-shadow(0 0 7px rgba(185, 255, 55, .55));
}

.footer-v2-bottom .footer-creator b {
  color: #eef2ed;
  font-weight: 850;
}

@media (max-width: 720px) {
  .footer-v2-bottom .footer-creator {
    align-self: flex-start;
  }
}

.auth-switch {
  margin-top: 26px !important;
  font-size: clamp(14px, 1.05vw, 15px) !important;
  line-height: 1.9;
  color: #68736c;
}

.auth-switch a {
  color: #111813;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(185, 255, 55, .9);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.header-actions .support-link {
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(185, 255, 55, .2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(185, 255, 55, .09), rgba(185, 255, 55, .025));
  color: #d6ddd8;
  font-size: 10px;
  transition: border-color .25s ease, background-color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.header-actions .support-link i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--dock-lime);
  color: #10150e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(185, 255, 55, .16);
}

.header-actions .support-link:hover,
.header-actions .support-link.active {
  border-color: rgba(185, 255, 55, .55);
  background: rgba(185, 255, 55, .12);
  color: #fff;
  transform: translateY(-2px);
}

.main-nav .support-menu-link {
  display: none;
}

.mobile-header-support {
  display: none;
}

/* The final call-to-action is the last block before the dark footer. Keeping a
   large bottom margin here exposed the page canvas as a white band in some
   WebView/Chrome combinations. Let the two dark sections meet directly. */
.page-home .final-cta {
  margin-bottom: 0 !important;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .header-actions .support-link {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .header-actions .support-link span {
    display: none;
  }
}

@media (max-width: 820px) {
  .main-nav .support-menu-link {
    display: block;
  }

  html,
  body {
    background-color: var(--dock-bg) !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  main {
    background-color: #f2f3ef;
  }

  .site-footer.footer-v2 {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 6px;
    letter-spacing: .19em;
  }

  .footer-wordmark {
    font-size: 13.4vw;
    letter-spacing: -.07em;
    margin-inline: -1vw;
  }

  body::after {
    content: "";
    position: fixed;
    z-index: 840;
    pointer-events: none;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(96px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, transparent 0, rgba(8, 12, 10, .92) 18px, var(--dock-bg) 34px);
  }

  .mobile-dock {
    position: fixed;
    z-index: 850;
    right: 0;
    bottom: 0;
    left: 0;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .11);
    background:
      radial-gradient(circle at 50% -20%, rgba(185, 255, 55, .14), transparent 34%),
      linear-gradient(180deg, rgba(13, 18, 15, .98), rgba(6, 9, 7, .995));
    color: #818c85;
    box-shadow: 0 -18px 45px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .025);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    animation: dock-enter .62s cubic-bezier(.16, 1, .3, 1) both;
  }

  .mobile-dock::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -1px;
    right: 7%;
    left: 7%;
    height: 1px;
    opacity: .7;
    background: linear-gradient(90deg, transparent, rgba(185, 255, 55, .55), transparent);
    animation: dock-line 5s ease-in-out infinite;
  }

  .mobile-dock a {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 60px;
    padding: 7px 3px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 17px;
    color: #7e8982;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color .28s ease, transform .42s cubic-bezier(.16, 1, .3, 1), background-color .28s ease;
  }

  .mobile-dock a::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 6px 7px 4px;
    border: 1px solid transparent;
    border-radius: 15px;
    opacity: 0;
    transform: scale(.72) translateY(8px);
    background: linear-gradient(145deg, rgba(185, 255, 55, .14), rgba(185, 255, 55, .035));
    box-shadow: 0 10px 28px rgba(185, 255, 55, .08), inset 0 1px rgba(255, 255, 255, .06);
    transition: opacity .3s ease, transform .44s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
  }

  .mobile-dock a::after {
    content: "";
    position: absolute;
    bottom: 1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(8px) scale(0);
    background: var(--dock-lime);
    box-shadow: 0 0 12px var(--dock-lime);
    transition: opacity .28s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
  }

  .mobile-dock .dock-icon {
    width: 24px;
    height: 24px;
    margin: 0;
    display: grid;
    place-items: center;
    color: currentColor;
    font-size: 0;
    transform-origin: 50% 70%;
    transition: transform .42s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
  }

  .mobile-dock .dock-icon svg {
    width: 23px;
    height: 23px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-dock a.active {
    color: var(--dock-lime);
    transform: translateY(-4px);
  }

  .mobile-dock a.active::before {
    opacity: 1;
    transform: scale(1) translateY(0);
    border-color: rgba(185, 255, 55, .12);
  }

  .mobile-dock a.active::after {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .mobile-dock a.active .dock-icon {
    filter: drop-shadow(0 0 9px rgba(185, 255, 55, .5));
    animation: dock-icon-pop .58s cubic-bezier(.16, 1, .3, 1) both;
  }

  .mobile-dock a.dock-press {
    transform: translateY(-2px) scale(.92);
  }

  .mobile-dock a:not(.active):active {
    color: #d8dfda;
  }

  .mobile-dock .engineering-dock {
    color: #10150e;
    transform: translateY(-13px);
  }

  .mobile-dock .engineering-dock::before {
    inset: 1px 8px -1px;
    opacity: 1;
    transform: none;
    border-color: rgba(255, 255, 255, .25);
    background: linear-gradient(145deg, #c9ff58, #98f91d);
    box-shadow: 0 13px 32px rgba(185, 255, 55, .32), inset 0 1px rgba(255, 255, 255, .6);
  }

  .mobile-dock .engineering-dock::after {
    display: none;
  }

  .mobile-dock .engineering-dock .dock-icon {
    width: 29px;
    height: 29px;
    margin: 0;
    color: #10150e;
    background: transparent;
    box-shadow: none;
  }

  .mobile-dock .engineering-dock .dock-icon svg {
    width: 27px;
    height: 27px;
    stroke-width: 2;
  }

  .mobile-dock .engineering-dock span {
    margin: 0;
    color: #151b12;
    font-weight: 850;
  }

  .mobile-dock .engineering-dock.active {
    color: #10150e;
    transform: translateY(-16px) scale(1.04);
  }

  .mobile-dock .engineering-dock .dock-icon {
    animation: design-breathe 3.2s ease-in-out infinite;
  }

  .mobile-dock a > b {
    position: absolute;
    z-index: 3;
    top: 3px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #0a0e0b;
    border-radius: 999px;
    background: var(--dock-lime);
    color: #0c110d;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    animation: cart-badge-in .5s cubic-bezier(.16, 1, .3, 1) both;
  }
}

@media (max-width: 540px) {
  .mobile-header-support {
    height: 36px;
    margin-inline-start: auto;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(185, 255, 55, .28);
    border-radius: 10px;
    background: rgba(185, 255, 55, .08);
    color: #e2e9e4;
    font-size: 9px;
    font-weight: 750;
  }

  .mobile-header-support i {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--dock-lime);
    color: #10150e;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-header-support.active {
    border-color: rgba(185, 255, 55, .62);
    background: rgba(185, 255, 55, .15);
  }

  .page-home .final-cta {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 360px) {
  .mobile-header-support {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .mobile-header-support span {
    display: none;
  }
}

@keyframes dock-enter {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dock-line {
  0%, 100% { opacity: .35; transform: scaleX(.55); }
  50% { opacity: .9; transform: scaleX(1); }
}

@keyframes dock-icon-pop {
  0% { transform: scale(.68) rotate(-9deg); }
  58% { transform: scale(1.18) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes design-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

@keyframes cart-badge-in {
  from { opacity: 0; transform: scale(.35) rotate(-15deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 390px) {
  .mobile-dock a {
    font-size: 8px;
  }

  .mobile-dock .dock-icon,
  .mobile-dock .dock-icon svg {
    width: 21px;
    height: 21px;
  }

  .brand strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-dock,
  .mobile-dock::before,
  .mobile-dock a,
  .mobile-dock a::before,
  .mobile-dock a::after,
  .mobile-dock .dock-icon,
  .mobile-dock a > b {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
