@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
  }
  body {
    overscroll-behavior: none;
  }
  main > :first-child {
    margin-top: 0 !important;
  }
  main > :last-child {
    margin-bottom: 0 !important;
  }
}
::-webkit-scrollbar {
  display: none;
}

html {
  --demo-banner-height: 36px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(96px + var(--demo-banner-height));
}

body {
  font-family: "Inter", Arial, sans-serif;
}

.valoris-footer-map {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 12px;
  background: #e2e8f0;
}

.valoris-footer-map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}

.valoris-footer-map-link {
  align-self: flex-start;
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.valoris-footer-map-link:hover {
  color: #a7f3d0;
  text-decoration: underline;
}

.valoris-footer-map-link:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 4px;
  border-radius: 2px;
}

body.demo-notice-open {
  overflow: hidden;
}

.valoris-demo-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--demo-banner-height);
  padding: 4px 16px;
  border-bottom: 1px solid rgb(180 83 9 / 18%);
  background: #fde68a;
  color: #78350f;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.valoris-demo-banner strong {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fbbf24;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.valoris-demo-banner > button {
  flex-shrink: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.valoris-demo-dialog {
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #f8fafc;
  color: #334155;
  box-shadow: 0 24px 80px rgb(11 37 69 / 25%);
}

.valoris-demo-dialog::backdrop {
  background: rgb(11 37 69 / 50%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.valoris-demo-dialog > form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 28px 28px;
}

.valoris-demo-tag {
  align-self: flex-start;
  margin-right: 20px;
  padding: 6px 10px;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.valoris-demo-dialog h2 {
  margin: 0;
  color: #0b2545;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(23px, 5vw, 29px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.valoris-demo-dialog p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.valoris-demo-dialog .valoris-demo-detail {
  padding: 14px 16px;
  border-left: 3px solid #fbbf24;
  border-radius: 0 8px 8px 0;
  background: #fef3c7;
  color: #78350f;
  font-size: 12px;
}

.valoris-demo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
}

.valoris-demo-close:hover {
  background: #e2e8f0;
}

.valoris-demo-accept {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.valoris-demo-accept:hover {
  background: #059669;
}

.valoris-demo-banner button:focus-visible,
.valoris-demo-dialog button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
}

main :is(h1, h2, h3) {
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: -0.02em;
}

main h3 {
  line-height: 1.45;
}

.font-mono,
.valoris-hero-metrics dd,
#calculated-fee {
  font-variant-numeric: lining-nums tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.valoris-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(120px + var(--demo-banner-height)) 24px 72px;
  overflow: hidden;
  background: #f1f5f9;
  text-align: center;
}

.valoris-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.valoris-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(241 245 249 / 85%) 0%,
      rgb(241 245 249 / 40%) 80px, transparent 22%, transparent 86%, #fff 100%),
    linear-gradient(90deg, rgb(241 245 249 / 55%) 0%,
      rgb(241 245 249 / 18%) 22%, rgb(241 245 249 / 12%) 50%,
      rgb(241 245 249 / 18%) 78%, rgb(241 245 249 / 55%) 100%);
  pointer-events: none;
}

.valoris-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.valoris-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgb(16 185 129 / 25%);
  border-radius: 999px;
  background: rgb(236 253 245 / 82%);
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.valoris-hero-badge svg {
  flex-shrink: 0;
}

.valoris-hero-title {
  margin: 0;
  color: #0b2545;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2.1rem, 4.3vw, 4.05rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.028em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgb(241 245 249 / 45%);
}

.valoris-hero-title span {
  display: block;
  color: #047857;
}

.valoris-hero-description {
  max-width: 680px;
  margin: 0;
  color: #334155;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 500;
  line-height: 1.75;
  text-wrap: pretty;
}

.valoris-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.valoris-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.valoris-hero-primary {
  background: #10b981;
  color: #fff;
  box-shadow: 0 6px 20px rgb(5 150 105 / 18%);
}

.valoris-hero-primary:hover {
  background: #059669;
  box-shadow: 0 8px 24px rgb(5 150 105 / 24%);
}

.valoris-hero-actions .valoris-hero-secondary {
  border-color: rgb(11 37 69 / 15%);
  background: rgb(241 245 249 / 55%);
  color: #0b2545;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.valoris-hero-actions .valoris-hero-secondary:hover {
  background: rgb(241 245 249 / 85%);
}

.valoris-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin: 16px 0 0;
}

.valoris-hero-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 96px;
  padding: 16px 12px;
  border: 1px solid rgb(226 232 240 / 45%);
  border-radius: 14px;
  background: rgb(241 245 249 / 38%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 4px 18px rgb(11 37 69 / 8%);
}

.valoris-hero-metrics dt {
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.valoris-hero-metrics dd {
  margin: 0;
  color: #0b2545;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.valoris-hero-video-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(11 37 69 / 12%);
  border-radius: 50%;
  background: rgb(241 245 249 / 55%);
  color: #0b2545;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.valoris-hero-video-toggle[hidden],
.valoris-video-play,
.valoris-hero-video-toggle[aria-pressed="true"] .valoris-video-pause {
  display: none;
}

.valoris-hero-video-toggle[aria-pressed="true"] .valoris-video-play {
  display: block;
}

.valoris-hero-actions a:focus-visible,
.valoris-hero-video-toggle:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 4px;
}

@media (max-width: 639px) {
  html {
    --demo-banner-height: 48px;
  }

  .valoris-demo-banner {
    gap: 8px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .valoris-hero {
    padding: calc(112px + var(--demo-banner-height)) 20px 88px;
  }

  .valoris-hero-content {
    gap: 22px;
  }

  .valoris-hero-badge {
    padding: 8px 12px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .valoris-hero-actions {
    width: 100%;
  }

  .valoris-hero-actions a {
    width: 100%;
    padding-inline: 12px;
    font-size: 12px;
  }

  .valoris-hero-metrics {
    gap: 8px;
  }

  .valoris-hero-metrics > div {
    padding-inline: 6px;
  }

  .valoris-hero-metrics dt {
    font-size: 10px;
  }

  .valoris-hero-metrics dd {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .valoris-hero-actions a {
    transition: none;
  }
}

.valoris-header {
  top: var(--demo-banner-height);
  isolation: isolate;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.valoris-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.valoris-nav > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  white-space: nowrap;
  color: #0b2545;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
}

.valoris-header.is-scrolled .valoris-brand::before,
.valoris-header.is-scrolled .valoris-nav > a {
  background-color: rgb(241 245 249 / 30%);
  border-color: rgb(226 232 240 / 25%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  text-shadow: 0 1px 2px rgb(241 245 249 / 60%);
  box-shadow: 0 2px 10px rgb(11 37 69 / 6%);
}

.valoris-nav > a:is(:hover, :focus-visible),
.valoris-header.is-scrolled .valoris-nav > a:is(:hover, :focus-visible) {
  background-color: #d1fae5;
  color: #047857;
  border-color: rgb(16 185 129 / 24%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%),
    0 2px 8px rgb(16 185 129 / 8%);
}

.valoris-nav > a:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 3px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .valoris-header.is-scrolled .valoris-brand::before,
  .valoris-header.is-scrolled .valoris-nav > a:not(:hover):not(:focus-visible) {
    background-color: rgb(241 245 249 / 60%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .valoris-nav > a {
    transition: none;
  }
}

.valoris-brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  width: 180px;
  border-radius: 4px;
}

.valoris-brand::before {
  content: "";
  position: absolute;
  inset: -6px -8px;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: 10px;
  pointer-events: none;
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.valoris-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.valoris-brand:focus-visible {
  outline: 2px solid #1e6fd9;
  outline-offset: 5px;
}

.valoris-menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(11 37 69 / 12%);
  border-radius: 12px;
  color: #0b2545;
  background: rgb(241 245 249 / 40%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.valoris-menu-toggle:is(:hover, [aria-expanded="true"]) {
  background: #d1fae5;
  border-color: rgb(16 185 129 / 30%);
  color: #047857;
}

.valoris-menu-toggle:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 3px;
}

.valoris-menu-close-icon,
.valoris-menu-toggle[aria-expanded="true"] .valoris-menu-open-icon {
  display: none;
}

.valoris-menu-toggle[aria-expanded="true"] .valoris-menu-close-icon {
  display: block;
}

@media (max-width: 1279px) {
  .valoris-menu-toggle {
    display: inline-flex;
  }

  .valoris-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    max-width: 440px;
    max-height: calc(100vh - 88px - var(--demo-banner-height));
    max-height: calc(100dvh - 88px - var(--demo-banner-height));
    margin-left: auto;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    border: 1px solid rgb(11 37 69 / 10%);
    border-radius: 16px;
    background: rgb(241 245 249 / 78%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    backdrop-filter: blur(20px) saturate(120%);
    box-shadow: 0 12px 32px rgb(11 37 69 / 12%);
  }

  .valoris-header.is-menu-open .valoris-nav {
    display: flex;
    animation: valoris-menu-reveal 160ms ease-out;
  }

  .valoris-nav > a {
    min-height: 48px;
    white-space: normal;
  }

  .valoris-header.is-scrolled .valoris-nav > a {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
}

@keyframes valoris-menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .valoris-header.is-menu-open .valoris-nav {
    animation: none;
  }

  .valoris-brand::before,
  .valoris-menu-toggle {
    transition: none;
  }
}

@media (max-width: 639px) {
  .valoris-brand {
    width: 112px;
  }

  header .valoris-header-cta {
    max-width: 160px;
    padding: 10px 12px;
    font-size: 11px;
    text-align: center;
  }
}
