:root {
  --brand-blue: #2596be;
  --brand-green: #7fc353;
}

.vensure-nav {
  display: flex;
  align-items: center;
}

.main-nav > .nav-menu {
  align-items: center;
}

.nav-menu .vensure-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, var(--brand-blue), var(--brand-green)) border-box;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}

.vensure-nav-mark {
  display: block;
  width: 28px;
  height: 28px;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-menu .vensure-link:hover,
.nav-menu .vensure-link:focus-visible {
  color: #14789a;
}

.nav-menu .vensure-link:focus-visible,
.vensure-welcome-close:focus-visible,
.vensure-welcome-primary:focus-visible,
.vensure-welcome-continue:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

@media (min-width: 769px) {
  .site-header .header-container {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .site-header .main-nav > ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }
}

.vensure-welcome {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(2, 6, 23, 0.62);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.vensure-welcome[hidden] {
  display: none !important;
}

.vensure-welcome.is-visible {
  opacity: 1;
}

body.vensure-welcome-open {
  overflow: hidden;
}

.vensure-welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  width: min(860px, 100%);
  max-height: min(620px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
  transform: translateY(18px);
  transition: transform 0.32s ease;
}

.vensure-welcome.is-visible .vensure-welcome-card {
  transform: translateY(0);
}

.vensure-welcome.is-visible .vensure-welcome-hero {
  animation: vensureKenBurns 18s ease-in-out infinite alternate;
}

.vensure-welcome-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #0f172a;
}

.vensure-welcome-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 58%;
  transform-origin: center 58%;
  will-change: transform;
}

.vensure-welcome-body {
  padding: 40px 32px 28px;
  overflow: auto;
}

.vensure-welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.16);
  cursor: pointer;
}

.vensure-welcome-close:hover {
  background: #ffffff;
  color: var(--brand-blue);
}

.vensure-welcome-logo {
  display: block;
  width: min(260px, calc(100% - 28px));
  height: auto;
  max-width: 100%;
  margin: 0 0 14px;
}

.vensure-welcome-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.12;
}

.vensure-welcome-card p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.vensure-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.vensure-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7e3ea;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 12px 8px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.vensure-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f6f8;
  color: var(--brand-blue);
  font-size: 12px;
}

.vensure-step:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  color: #14789a;
}

.vensure-step.is-active,
.vensure-step.is-active:hover {
  border-color: transparent;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-green));
  color: #ffffff;
  transform: none;
}

.vensure-step.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  animation: vensurePop 0.45s ease;
}

.vensure-step.is-active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(37, 150, 190, 0.45);
  border-radius: inherit;
  pointer-events: none;
  animation: vensureRing 1.6s ease-out infinite;
}

.vensure-step-track {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7eef3;
}

.vensure-step-track span {
  display: block;
  width: 33.33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  transition: width 0.35s ease;
}

.vensure-step-track.is-auto span {
  transition: width 2.6s linear;
}

.vensure-welcome-card .vensure-step-copy {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3fbf8, #f7fbfd);
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.vensure-step-copy.is-fresh {
  animation: vensureFade 0.45s ease;
}

.vensure-welcome.is-visible .vensure-welcome-logo,
.vensure-welcome.is-visible .vensure-welcome-card h2,
.vensure-welcome.is-visible #vensure-welcome-text,
.vensure-welcome.is-visible .vensure-steps,
.vensure-welcome.is-visible .vensure-step-track,
.vensure-welcome.is-visible .vensure-step-copy,
.vensure-welcome.is-visible .vensure-welcome-actions {
  animation: vensureRise 0.55s ease both;
}

.vensure-welcome.is-visible .vensure-welcome-card h2 { animation-delay: 0.08s; }
.vensure-welcome.is-visible #vensure-welcome-text { animation-delay: 0.14s; }
.vensure-welcome.is-visible .vensure-steps { animation-delay: 0.2s; }
.vensure-welcome.is-visible .vensure-step-track { animation-delay: 0.26s; }
.vensure-welcome.is-visible .vensure-step-copy { animation-delay: 0.3s; }
.vensure-welcome.is-visible .vensure-welcome-actions { animation-delay: 0.36s; }

.vensure-welcome.is-visible .vensure-step-copy.is-fresh {
  animation: vensureFade 0.45s ease;
}

.vensure-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.vensure-welcome-primary,
.vensure-welcome-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.vensure-welcome-primary {
  border: 0;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-green));
  color: #ffffff;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.vensure-welcome-primary::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  animation: vensureNudge 1.2s ease-in-out infinite;
}

.vensure-welcome-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.vensure-welcome-continue {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
}

.vensure-welcome-continue:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

@media (max-width: 760px) {
  .vensure-welcome {
    align-items: flex-end;
    padding: 12px;
  }

  .vensure-welcome-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 22px 22px 16px 16px;
  }

  .vensure-welcome-visual {
    height: 188px;
    min-height: 188px;
  }

  .vensure-welcome-body {
    padding: 24px 20px 20px;
  }

  .vensure-welcome-card h2 {
    font-size: 26px;
    padding-right: 28px;
  }

  .vensure-welcome-actions {
    flex-direction: column;
  }

  .vensure-welcome-primary,
  .vensure-welcome-continue {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-menu .vensure-link {
    gap: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
  }

  .vensure-nav-mark {
    width: 22px;
    height: 22px;
  }
}

@keyframes vensureKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes vensureRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

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

@keyframes vensurePop {
  from { transform: scale(0.6); }
  to { transform: scale(1); }
}

@keyframes vensureRing {
  from { opacity: 0.7; transform: scale(0.96); }
  to { opacity: 0; transform: scale(1.12); }
}

@keyframes vensureNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .vensure-welcome,
  .vensure-welcome-card,
  .vensure-step,
  .vensure-step-track span,
  .vensure-step-track.is-auto span,
  .vensure-welcome-primary {
    transition: none;
  }

  .vensure-welcome.is-visible .vensure-welcome-hero,
  .vensure-welcome.is-visible .vensure-welcome-logo,
  .vensure-welcome.is-visible .vensure-welcome-card h2,
  .vensure-welcome.is-visible #vensure-welcome-text,
  .vensure-welcome.is-visible .vensure-steps,
  .vensure-welcome.is-visible .vensure-step-track,
  .vensure-welcome.is-visible .vensure-step-copy,
  .vensure-welcome.is-visible .vensure-welcome-actions,
  .vensure-step.is-active::after,
  .vensure-step.is-active span,
  .vensure-step-copy.is-fresh,
  .vensure-welcome-primary::after {
    animation: none;
  }
}
