:root {
  color-scheme: dark;
  font-family: system-ui, "Leelawadee UI", sans-serif;
  color: #f3f7ff;
  background: #081327;
  --muted: #a9c0df;
  --line: #29456c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 0, #143568, transparent 63%), linear-gradient(145deg, #0c1d3b, #081327 72%);
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #ffe098; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.header { background: #08162e; border-bottom: 1px solid var(--line); }
.top {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { justify-self: start; }
.brand img { width: 178px; }
.top nav { display: flex; gap: clamp(14px, 2vw, 28px); color: var(--muted); white-space: nowrap; }
.top nav a:hover { color: #fff; }
.header-login { justify-self: end; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s, filter .18s;
}
.outline { background: #142e53; border-color: #3a5f8a; }
.outline:hover { background: #1c3c68; border-color: #79b8ff; }
.primary {
  background: linear-gradient(110deg, #ffe18a, #e9ad3e);
  color: #211609;
  box-shadow: 0 8px 22px #0a132c55;
}
.primary:hover { filter: brightness(1.1); }
main { flex: 1; padding-block: 42px 50px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(244px, 26%); gap: 18px; }
.hero, .account, .card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 382px;
  padding: clamp(22px, 4vw, 52px);
  background: #0a2347;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, #09182ef5, #09182ea8 38%, transparent 76%);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; color: #ffe096; font-size: .9rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(2rem, 4.45vw, 4.4rem); line-height: 1.14; letter-spacing: -.035em; }
h1 span { color: #ffd473; }
.hero .button { margin-top: 24px; }
.hero-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 36%; }
.account {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 380px;
  padding: 190px 20px 20px;
  background: linear-gradient(160deg, #102c56, #08162d 80%);
  border-color: #3c5e86;
}
.account-art {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 68%;
  object-fit: cover;
  object-position: center 38%;
  mask-image: linear-gradient(#000 72%, transparent);
}
.account-actions {
  position: relative;
  display: grid;
  gap: 10px;
  text-align: center;
}
.account h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
  text-shadow: 0 2px 12px #061126;
}
.categories { margin-top: 36px; }
.categories h2 { margin-bottom: 16px; font-size: 1.55rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  aspect-ratio: 16 / 9;
  min-height: 126px;
  padding: 16px 18px;
  background: #112746;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #050f22f5, transparent 65%);
}
.card h3 { font-size: clamp(1.05rem, 2vw, 1.45rem); }
.card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.footer { border-top: 1px solid var(--line); background: #081427; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 21px; color: var(--muted); }
.foot img { width: 130px; }
@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .feature { grid-template-columns: 1fr; }
  .hero { min-height: 300px; }
  .account { min-height: 320px; }
  .account-art { object-position: center 43%; }
  .account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account h2 { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .top { min-height: 70px; grid-template-columns: 1fr auto; gap: 12px; }
  .brand img { width: 133px; }
  .header-login { min-height: 42px; padding-inline: 14px; }
  main { padding-block: 20px 32px; }
  .hero { min-height: 238px; padding: 18px; }
  .hero-art { object-position: right center; }
  .hero::before { background: linear-gradient(90deg, #09182ef5, #0b214d30 78%); }
  .hero .button { margin-top: 17px; }
  .button { padding-inline: 14px; }
  .account { min-height: 280px; padding: 165px 16px 16px; }
  .categories { margin-top: 26px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { aspect-ratio: 2 / 1; }
}

.providers {
  border-top: 1px solid var(--line);
  background: #0a172b;
}
.provider-window {
  overflow-x: auto;
  padding-block: 16px;
  scrollbar-width: none;
}
.provider-window::-webkit-scrollbar { display: none; }
.provider-window:focus-visible { outline: 2px solid #ffe098; outline-offset: -2px; }
.provider-track {
  display: flex;
  width: max-content;
}
.provider-track.is-animated {
  animation: provider-scroll 160s linear infinite;
}
.provider-window:hover .provider-track,
.provider-window:focus-within .provider-track { animation-play-state: paused; }
.provider-logos {
  display: flex;
  flex: none;
  gap: 16px;
  margin: 0;
  padding: 0 16px 0 0;
  list-style: none;
}
.provider-logos li {
  display: grid;
  place-items: center;
  width: 100px;
  min-height: 56px;
}
.provider-logos img {
  width: 92px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .82;
}
@keyframes provider-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .provider-track.is-animated { animation: none; }
  .provider-logos[aria-hidden="true"] { display: none; }
}

@media (max-width: 860px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; padding-top: 12px; }
  .header-login { grid-column: 2; grid-row: 1; }
  .top nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding: 12px 4px;
  }
}
