html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(176, 141, 87, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(212, 175, 122, 0.18), transparent 22%),
    linear-gradient(180deg, #f5f2ed 0%, #faf8f4 42%, #f7f3ec 100%);
}

.mesh {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 85%);
}

.sapienta-wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18rem;
  color: #111111;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.6rem);
  letter-spacing: 0.08em;
  line-height: 0.82;
  text-transform: uppercase;
}

.sapienta-wordmark .logo-i {
  position: relative;
  top: 0.08em;
  display: inline-block;
  min-width: 0.34em;
  color: transparent;
  background: linear-gradient(180deg, #6e5426 0%, #d4af7a 48%, #87652c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 20px rgba(176, 141, 87, 0.16);
}

.sapienta-insights {
  margin-left: 0.35rem;
  color: #b08d57;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.26em;
  font-weight: 700;
  letter-spacing: 0.42em;
  line-height: 1.1;
  text-transform: uppercase;
  transform: translateY(-0.05em);
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.12);
  border-color: rgba(176, 141, 87, 0.35);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-kicker::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, #b08d57, transparent);
}

.soft-ring {
  box-shadow:
    0 0 0 1px rgba(176, 141, 87, 0.12),
    0 20px 50px rgba(17, 17, 17, 0.08);
}

.metric-pill {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.mobile-menu[data-open="true"] {
  display: block;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(17, 17, 17, 0.78);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item.active > .nav-link {
  color: #b08d57;
}

.nav-arrow {
  font-size: 0.72rem;
  transition: transform 180ms ease;
}

.nav-item[data-open="true"] .nav-arrow {
  transform: rotate(180deg);
}

.dropdown-panel {
  display: none;
}

.nav-item[data-open="true"] > .dropdown-panel {
  display: block;
}

@media (min-width: 768px) {
  .nav-item:hover > .dropdown-panel {
    display: block;
  }

  .dropdown-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.75rem);
    min-width: 18rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.85rem;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 767px) {
  .dropdown-panel {
    margin-top: 0.5rem;
    margin-left: 0.75rem;
    border-left: 1px solid rgba(17, 17, 17, 0.08);
    padding-left: 0.9rem;
  }
}

.dropdown-link {
  display: block;
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  color: rgba(17, 17, 17, 0.76);
  transition: background 180ms ease, color 180ms ease;
}

.dropdown-link:hover,
.dropdown-link.active {
  background: rgba(245, 242, 237, 0.9);
  color: #b08d57;
}

.table-wrap {
  overflow-x: auto;
}

.table-layout {
  min-width: 760px;
}

@media (max-width: 640px) {
  .sapienta-wordmark {
    font-size: 1.92rem;
    letter-spacing: 0.06em;
  }

  .sapienta-insights {
    letter-spacing: 0.28em;
  }
}
