:root {
  color-scheme: light;
  --ink: #0e1933;
  --muted: #3a4861;
  --blue: #2252f5;
  --blue-dark: #1643d4;
  --edge: #cfddf0;
  --gutter: clamp(20px, 3.45vw, 62px);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #edf3fc; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; }

.shell { width: min(calc(100% - var(--gutter) * 2), 1600px); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bag { width: 42px; height: 42px; flex: none; color: var(--blue); }

.site-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}
.brand, .account { display: inline-flex; align-items: center; gap: 10px; width: fit-content; white-space: nowrap; }
.brand { font-size: clamp(24px, 2.2vw, 36px); font-weight: 790; }
.account { justify-self: end; min-height: 44px; color: var(--blue-dark); font-size: clamp(17px, 1.45vw, 23px); font-weight: 570; }
.account .icon { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 4.1vw, 68px); font-size: clamp(16px, 1.45vw, 23px); font-weight: 550; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a:hover, .account:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(34px, 3.3vw, 61px) clamp(46px, 3.9vw, 74px);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse 48% 46% at 88% 38%, #3385fb 22%, #3e98ff9c 58%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 66% 72%, #4387fc 5%, #68abff6b 61%, transparent 100%),
    linear-gradient(120deg, #edf3fc 25%, #e5f0fd 76%, #d5eaff);
  mask-image: linear-gradient(transparent, #000 19%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.25vw, 39px);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(43px, 5.18vw, 87px); font-weight: 830; line-height: .99; letter-spacing: normal; }
.hero h1 span { display: block; }
.hero-copy p { margin: 20px 0 37px; color: var(--muted); font-size: clamp(18px, 1.62vw, 27px); line-height: 1.45; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 64px;
  padding: .59em 1.29em;
  border-radius: 15px;
  background: var(--blue);
  box-shadow: 0 4px 8px #1d4ce722;
  color: #fff;
  font-size: clamp(20px, 1.82vw, 31px);
  font-weight: 720;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.primary:hover { background: var(--blue-dark); box-shadow: 0 6px 14px #1d4ce73a; }
.primary .icon { width: 1em; height: 1em; }
.markets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin: clamp(30px, 3.7vw, 62px) 0 0;
  padding: 0;
  list-style: none;
}
.markets li {
  display: flex;
  align-items: center;
  gap: clamp(6px, .72vw, 12px);
  padding-inline: clamp(8px, 1.05vw, 22px);
  font-size: clamp(13px, 1.29vw, 22px);
  font-weight: 650;
  white-space: nowrap;
}
.markets li:first-child { padding-left: 0; }
.markets li:last-child { padding-right: 0; }
.markets li + li { border-left: 1px solid #c0d2e9; }
.markets img { width: clamp(25px, 2.75vw, 45px); height: auto; border-radius: 23%; }
.markets li:last-child img { border-radius: 50%; }

.demo {
  min-width: 0;
  align-self: start;
  container-type: inline-size;
  border: 1px solid #fff;
  border-radius: clamp(17px, 1.7vw, 30px);
  padding: clamp(6px, .64vw, 12px);
  background: linear-gradient(127deg, #ffffff94, #dbeaff72);
  box-shadow: 0 22px 58px #154b9c35, inset 0 0 0 1px #ffffff54;
}
.demo-surface {
  display: grid;
  grid-template-columns: 17% minmax(0, 1fr);
  gap: 1.1cqw 1.35cqw;
  padding: 1.75cqw 1.4cqw 2.1cqw;
  border: 1px solid #fff9;
  border-radius: clamp(11px, 1.12vw, 19px);
  background: linear-gradient(130deg, #ffffffc0, #e7f1fdd9);
  font-size: clamp(8px, 1.52cqw, 14px);
}
.demo-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 4cqw; padding: 0 .8cqw .85cqw; min-height: 3.4cqw; }
.demo-brand { display: inline-flex; align-items: center; gap: .7cqw; font-size: 1.9cqw; font-weight: 810; white-space: nowrap; }
.demo-brand .bag { width: 3.1cqw; height: 3.1cqw; }
.demo-badge { padding: .25em .95em; border-radius: 10px; color: #1644c7; background: #d8e7ff; font-weight: 630; }
.demo-menu { display: grid; align-content: start; gap: .38cqw; padding-right: .85cqw; border-right: 1px solid #dce6f4; }
.demo-menu span { display: flex; align-items: center; gap: .75cqw; min-width: 0; padding: 1.05cqw .9cqw; white-space: nowrap; }
.demo-menu .icon, .demo-stat .icon { width: 2cqw; height: 2cqw; }
.demo-menu .current { border-radius: .8cqw; background: #d9e8ff; color: #1549db; font-weight: 620; }
.demo-panel { min-width: 0; }
.demo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, .78fr)) minmax(0, 1.65fr); gap: 1.05cqw; margin-bottom: 1.5cqw; }
.demo-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .6cqw;
  min-height: 10cqw;
  padding: 1.25cqw 1cqw;
  border: 1px solid #d9e5f7;
  border-radius: 1.15cqw;
  background: #ffffff8c;
}
.demo-stat span { display: flex; align-items: center; gap: .57cqw; }
.demo-stat strong { font-size: 3.04cqw; font-weight: 790; line-height: 1; }
.trend { font-weight: 660; }
.trend svg { width: 100%; height: 6.1cqw; overflow: visible; }
.demo-stock { border: 1px solid #d9e5f7; border-radius: 1.3cqw; background: #ffffff75; padding: .2cqw 1.15cqw .65cqw; }
.demo-stock table { width: 100%; border-collapse: separate; border-spacing: 0 .26cqw; text-align: left; }
.demo-stock caption { padding: 1cqw 0; text-align: left; font-size: 2.25cqw; font-weight: 790; }
.demo-stock th { font-weight: 590; }
.demo-stock thead th { padding: .85cqw .65cqw; border-bottom: 1px solid #dce6f2; font-size: 1.32cqw; white-space: nowrap; }
.demo-stock thead th:not(:first-child), .demo-stock td { text-align: center; }
.demo-stock thead img { display: inline-block; vertical-align: middle; margin-right: .42cqw; width: 2.25cqw; height: auto; border-radius: 28%; }
.demo-stock abbr { display: none; text-decoration: none; }
.demo-stock tbody th, .demo-stock td { height: 7.24cqw; padding: .55cqw .65cqw; border-bottom: 1px solid #e0e8f4; }
.demo-stock tbody tr:last-child > * { border-bottom-color: transparent; }
.demo-stock td { font-size: 1.75cqw; font-weight: 710; font-variant-numeric: tabular-nums; }
.demo-product { display: flex; align-items: center; gap: .9cqw; }
.demo-product img { width: 5.4cqw; height: 5.25cqw; object-fit: cover; border-radius: .65cqw; mix-blend-mode: multiply; }
.demo-stock .demo-selected > * { background: #dceaff; border-block: 1px solid #fff; font-weight: 810; font-size: 2cqw; }
.demo-stock .demo-selected th { border-left: 1px solid #fff; border-radius: 1.2cqw 0 0 1.2cqw; }
.demo-stock .demo-selected td { font-size: 2.3cqw; }
.demo-stock .demo-selected td:last-child { border-right: 1px solid #fff; border-radius: 0 1.2cqw 1.2cqw 0; }

.features { background: linear-gradient(#f7faff, #eaf2fd); padding: clamp(22px, 2.4vw, 41px) 0 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.feature {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-width: 0;
  padding: 10px clamp(7px, 1.1vw, 17px) 0;
  transition: background-color .15s ease, color .15s ease;
}
.feature:first-child { padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature:not(:first-child) { border-left: 1px solid var(--edge); }
.feature:hover { color: var(--blue-dark); background: #ffffff8f; }
.feature h2 { display: flex; align-items: flex-start; gap: 11px; margin: 0; font-size: clamp(16px, 1.64vw, 29px); line-height: 1.09; font-weight: 780; }
.feature .icon { width: clamp(25px, 2.5vw, 40px); height: clamp(25px, 2.5vw, 40px); }
.feature > img {
  width: 100%;
  height: auto;
  margin: 14px auto 0;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, transparent, #000 8% 90%, transparent), linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  mask-composite: intersect;
}

@media (max-width: 1120px) {
  .markets li { padding-inline: 9px; }
  .hero-copy p { margin-bottom: 25px; }
  .primary { min-height: 55px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 13px; }
  .feature:first-child, .feature:last-child { padding-inline: 11px; }
  .feature:nth-child(3n + 1) { border-left: 0; }
  .feature h2 { gap: 7px; font-size: clamp(15px, 2.4vw, 23px); }
  .feature > img { max-width: 230px; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 13px 6px; }
  .site-header .bag { width: 30px; height: 30px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 10px; max-width: 390px; }
  .account { grid-row: 1; grid-column: 2; }
  .account .icon { width: 21px; height: 21px; }
  .hero { padding-block: 25px 38px; }
  .hero::before { background: radial-gradient(ellipse 74% 42% at 72% 77%, #76adffb3, transparent), linear-gradient(155deg, #edf3fc, #e4effd); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 27px; max-width: 680px; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 65px); }
  .hero-copy p { max-width: 32em; margin-block: 15px 19px; }
  .markets { margin-top: 22px; }
}

@media (max-width: 510px) {
  .brand { font-size: 21px; gap: 7px; }
  .account { font-size: 15px; gap: 6px; }
  .site-nav { font-size: 15px; }
  .demo-surface { grid-template-columns: minmax(0, 1fr); padding: 9px; font-size: 11px; }
  .demo-top { gap: 12px; padding: 0 1px 4px; }
  .demo-brand { font-size: 12px; gap: 4px; }
  .demo-brand .bag { width: 16px; height: 16px; }
  .demo-badge { font-size: 9px; }
  .demo-menu, .trend { display: none; }
  .demo-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .demo-stat { border-radius: 6px; padding: 6px; min-height: 41px; }
  .demo-stat span { gap: 3px; }
  .demo-stat .icon { width: 11px; height: 11px; }
  .demo-stat strong { font-size: 14px; }
  .demo-stock { border-radius: 6px; }
  .demo-stock caption { font-size: 13px; padding: 6px 0 3px; }
  .demo-stock thead th { font-size: 9px; }
  .demo-stock thead th span, .demo-stock thead img { display: none; }
  .demo-stock thead th abbr { display: inline; }
  .demo-stock tbody th { font-size: 9px; width: 58%; }
  .demo-stock td, .demo-stock .demo-selected td { font-size: 10px; }
  .demo-stock .demo-selected th { font-size: 10px; }
  .demo-product img { width: 23px; height: 22px; flex: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(3n + 1) { border-left: 1px solid var(--edge); }
  .feature:nth-child(odd) { border-left: 0; }
  .feature h2 { font-size: 17px; }
}

@media (max-width: 355px) {
  .markets li { padding-inline: 5px; font-size: 12px; gap: 4px; }
  .markets img { width: 22px; }
  .feature { padding-inline: 7px; }
  .feature h2 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .primary, .feature { transition: none; }
}
