html { scroll-behavior: auto; scroll-padding-top: 70px; }
.ev-portal-home { background: #0d131a; }
.ev-home-main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.ev-home-main > section { margin-bottom: 0; }
.ev-home-main section[id]:focus { outline: none; }
.ev-portal-home .ev-portal-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  line-height: normal;
  background:
    linear-gradient(180deg, transparent 58%, #000 100%),
    radial-gradient(ellipse at 18% 48%, rgba(14, 165, 233, .08), transparent 40%),
    #0d131a;
}
.ev-portal-home .ev-portal-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  opacity: var(--portal-login-dim, 0);
  pointer-events: none;
  will-change: opacity;
}
.ev-portal-home .ev-portal-main { padding-top: 38px; padding-bottom: 24px; }
.ev-portal-home .ev-portal-auth { min-height: 520px; }
.portal-skip-link { position: fixed; z-index: 1000; top: 10px; left: 16px; padding: 12px 18px; border-radius: 9px; color: #071b29; background: #6bd4fc; transform: translateY(-180%); text-decoration: none; font-size: 12px; }
.portal-skip-link:focus { transform: translateY(0); }

/* The fixed navigation enters after the first 100 pixels of page scrolling. */
.portal-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  max-height: 70px;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, max-height .3s ease, background-color .3s ease, visibility 0s linear .3s;
}
.portal-sticky-header.sticky {
  background: rgba(16, 25, 34, var(--portal-nav-opacity, .96));
  border-bottom-color: rgba(111, 158, 191, .24);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
  backdrop-filter: blur(12px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: transform .3s ease, opacity .3s ease, max-height .3s ease, background-color .3s ease, visibility 0s;
}
.portal-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1160px, calc(100% - 48px)); min-height: 70px; margin: 0 auto; }
.portal-sticky-header .brand { font-size: 13px; }
.portal-sticky-header .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.portal-sticky-header .brand b { font-size: 9px; }
.portal-navigation { display: flex; align-items: center; gap: clamp(15px, 2.1vw, 30px); }
.portal-navigation a { color: #a0b3c7; font-size: 11px; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.portal-navigation a:hover { color: #54ccfa; }
.portal-navigation .portal-nav-login { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 15px; border: 1px solid rgba(43, 188, 244, .28); border-radius: 8px; background: rgba(14, 165, 233, .09); color: #77d6fa; }
.portal-mobile-toggle { display: none; flex: 0 0 42px; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #78ccef; cursor: pointer; }
.portal-mobile-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; border-radius: 4px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.open-nav .portal-mobile-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.open-nav .portal-mobile-toggle span:nth-child(2) { opacity: 0; }
.open-nav .portal-mobile-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The looping mouse wheel is the scrolling hint from the supplied example. */
.portal-scroll-cue { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 20px 20px; color: #b8c9d9; text-decoration: none; text-align: center; font-size: 11px; }
.portal-scroll-cue small { color: #6e869e; font-size: 9px; letter-spacing: .02em; }
.portal-scroll-symbol { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #35c1f4; }
.portal-scroll-mouse { display: block; width: 26px; height: 42px; border: 1.5px solid rgba(62, 190, 240, .75); border-radius: 15px; background: rgba(14, 165, 233, .035); transition: border-color .2s ease; }
.portal-scroll-mouse > span { display: block; width: 3px; height: 6px; margin: 7px auto 0; border-radius: 4px; background: #55cdf9; animation: portal-scroll-wheel 1.25s ease-in-out infinite; }
.portal-scroll-cue:hover .portal-scroll-mouse { border-color: #a2e7ff; }
@keyframes portal-scroll-wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(17px); } }

.merchant-content { border-top: 0; background: #0d151e; }
.merchant-content > .hero {
  margin-bottom: 0;
  background:
    linear-gradient(0deg, #0d151e, transparent 32%),
    linear-gradient(180deg, #000, transparent 90%),
    radial-gradient(ellipse at 80% 35%, rgba(14, 165, 233, var(--portal-service-glow, .02)), transparent 65%),
    #0d151e;
}
.portal-return-login { position: fixed; z-index: 40; right: 26px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 17px; border: 1px solid rgba(43, 188, 244, .36); border-radius: 999px; background: #172938; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); color: #b6e8fb; text-decoration: none; font-size: 11px; }
.portal-return-login:hover { background: #203b4e; }
.ev-portal-home .site-footer { padding-bottom: 90px; }

@media (min-width: 701px) and (max-height: 800px) {
  .ev-portal-home .ev-portal-header { min-height: 64px; }
  .ev-portal-home .ev-portal-main { padding-top: 27px; padding-bottom: 15px; }
  .ev-portal-home .ev-portal-auth { min-height: 470px; padding: 25px 28px; }
  .ev-portal-home .ev-portal-features { margin-top: 22px; }
  .ev-portal-home .ev-portal-visual { margin-top: 18px; height: 174px; }
  .portal-scroll-cue { padding-bottom: 14px; gap: 4px; }
}
@media (max-width: 766px) {
  .portal-sticky-inner { width: calc(100% - 36px); flex-wrap: wrap; gap: 0; }
  .portal-sticky-header .brand { min-height: 70px; }
  .portal-mobile-toggle { display: block; }
  .portal-navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 16px; visibility: hidden; }
  .portal-navigation a { display: flex; justify-content: center; align-items: center; min-height: 43px; }
  .portal-navigation .portal-nav-login { margin-top: 7px; }
  .portal-sticky-header.open-nav { max-height: 400px; }
  .portal-sticky-header.open-nav .portal-navigation { visibility: visible; }
}
@media (max-width: 700px) {
  .ev-portal-home .ev-portal-main { padding: 12px 0 8px; gap: 16px; }
  .ev-portal-home .ev-portal-auth { min-height: 450px; padding: 20px; }
  .ev-portal-home .ev-portal-intro h1 { font-size: 32px; margin: 12px 0 9px; }
  .ev-portal-home .ev-portal-description { font-size: 11px; line-height: 1.8; }
  .ev-portal-home .ev-portal-auth-icon { width: 33px; height: 33px; margin-bottom: 10px; }
  .ev-portal-home .ev-portal-auth-heading h2 { font-size: 21px; }
  .ev-portal-home .ev-portal-auth-tabs { margin: 14px 0; }
  .ev-portal-home .ev-portal-auth-footer { margin-top: 16px; padding-top: 14px; }
  .portal-scroll-cue { display: grid; grid-template-columns: 1fr 28px; gap: 3px 15px; padding: 5px 20px 8px; text-align: left; }
  .portal-scroll-cue > span:first-child { grid-column: 1; }
  .portal-scroll-cue small { grid-column: 1; grid-row: 2; line-height: 1.5; }
  .portal-scroll-symbol { grid-column: 2; grid-row: 1 / 3; }
  .portal-return-login { right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); padding: 10px 14px; }
}
@media (max-width: 700px) and (max-height: 800px) {
  .ev-portal-home .ev-portal-description { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-sticky-header, .portal-sticky-header.sticky,
  .portal-mobile-toggle span, .portal-navigation a { transition: none; }
  .portal-scroll-mouse > span { animation: none; }
}
