:root {
  color-scheme: dark;
}

body {
  font-family: 'Urbanist', sans-serif;
  background-color: #0F0F10;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0F0F10; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bf2b37; }

/* Global scroll reveal utility */
.reveal,
.fx-reveal,
.fx-reveal-up,
.fx-reveal-left,
.fx-reveal-right,
.fx-reveal-zoom {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.fx-reveal-left {
  transform: translate3d(-42px, 18px, 0) scale(0.985);
}

.fx-reveal-right {
  transform: translate3d(42px, 18px, 0) scale(0.985);
}

.fx-reveal-zoom {
  transform: translate3d(0, 20px, 0) scale(0.94);
}

.reveal.active,
.fx-reveal.active,
.fx-reveal-up.active,
.fx-reveal-left.active,
.fx-reveal-right.active,
.fx-reveal-zoom.active {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.fx-section-active {
  position: relative;
}

.fx-section-active::before {
  content: "";
  position: absolute;
  inset: auto 12% -24px 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 43, 55, 0.22), transparent);
  opacity: 0;
  transform: scaleX(0.88);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.fx-section-active.active::before {
  opacity: 1;
  transform: scaleX(1);
}

@media (min-width: 1024px) {
  #site-header-nav {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  #site-header-nav .menu-root-link {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }
}

/* Mobile refinements: hero spacing, button rows, and header menu polish */
@media (max-width: 1023px) {
  .pt-20 { padding-top: 3.5rem !important; }
  .pb-32 { padding-bottom: 4.5rem !important; }
  .py-32 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
  .py-24 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; }
  .mb-16 { margin-bottom: 2.5rem !important; }
  .mb-12 { margin-bottom: 2rem !important; }

  #site-header-nav .menu-root-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  #site-header-nav .menu-group {
    width: 100%;
  }

  #site-header-nav .menu-group > .flex {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
  }

  #site-header-nav .menu-dropdown-toggle {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  #site-header-nav .menu-dropdown-panel {
    position: static !important;
    padding-top: 0 !important;
    margin-top: 0.4rem;
  }

  #site-header-nav .menu-dropdown-panel > div {
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.02);
  }
}

@media (max-width: 767px) {
  [data-hero-actions="1"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0.625rem !important;
    width: 100% !important;
  }

  [data-hero-actions="1"] > a,
  [data-hero-actions="1"] > button {
    display: inline-flex !important;
    flex: 0 0 calc(50% - 0.3125rem) !important;
    width: calc(50% - 0.3125rem) !important;
    min-width: 0 !important;
    max-width: none !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.8rem 0.75rem !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
  }

  .hero-actions > a,
  .hero-actions > button {
    flex: 0 0 calc(50% - 0.3125rem) !important;
    width: calc(50% - 0.3125rem) !important;
    min-width: 0;
    max-width: none;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 0.75rem !important;
    font-size: 0.9rem !important;
    line-height: 1.2;
    white-space: normal;
  }
}
