:root {
  color-scheme: dark;
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #eef2ff;
  background: #070810;
  text-rendering: optimizeSpeed;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 54px;
}

.hero {
  min-height: 318px;
  border: 1px solid rgba(143, 153, 255, .2);
  border-radius: 28px;
  padding: 28px;
  background: #101221;
  overflow: hidden;
  position: relative;
  contain: layout paint;
}

.hero-main,
.title-text {
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.title-logo {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.eyebrow {
  color: #80ffd7;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 7vw, 66px);
  line-height: .98;
}

.lead {
  color: #b9c2ea;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.65;
  max-width: 760px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding-bottom: 0;
  max-width: 100%;
  touch-action: pan-x;
}

.actions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.actions.scroll-nudge,
.scroll-nudge {
  animation: scrollPulse 2.8s ease-in-out 1;
}

@keyframes scrollPulse {
  0%,
  100% {
    box-shadow: none;
  }

  35% {
    box-shadow: inset -24px 0 26px -24px rgba(125, 140, 255, .78);
  }

  65% {
    box-shadow: inset 24px 0 26px -24px rgba(37, 208, 162, .72);
  }
}

.btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #394169;
  border-radius: 999px;
  padding: 13px 17px;
  text-decoration: none;
  color: white;
  background: #202744;
  font-weight: 900;
  white-space: nowrap;
}

.btn.primary {
  border-color: #2f8b73;
  color: #fff;
  background: #55d6bb;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.stat,
.feature {
  border: 1px solid rgba(143, 153, 255, .18);
  border-radius: 20px;
  background: #101221;
  padding: 18px;
}

.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
}

.stat-link:hover {
  transform: translateY(-2px);
  border-color: #6d7cff;
}

.feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-color: rgba(37, 208, 162, .45);
  box-shadow: 0 0 0 1px rgba(37, 208, 162, .08), 0 18px 52px rgba(0, 0, 0, .18);
}

.feature-link:hover {
  transform: translateY(-2px);
  border-color: #55d6bb;
  background: #121a2f;
}

.stat span {
  color: #8f98c8;
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.count-roll {
  display: inline-flex;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #19223a;
  color: #dbe6ff;
}

.feature .icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.15;
}

.feature h3 {
  margin: 13px 0 7px;
}

.feature p {
  margin: 0;
  color: #aeb8e6;
  line-height: 1.65;
}

.open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #80ffd7;
  font-weight: 900;
}

.open-link svg,
.btn svg {
  width: 17px;
  height: 17px;
}

.section-title {
  margin: 30px 0 12px;
  font-size: 28px;
}

.note {
  margin-top: 20px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 820px) {
  main {
    padding-top: 18px;
  }

  .hero {
    min-height: 0;
    padding: 20px;
  }

  .title-logo {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .lead {
    line-height: 1.58;
  }

  .actions {
    margin-top: 16px;
  }

  .grid,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .title-row {
    gap: 12px;
  }

  .title-logo {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .grid,
  .features {
    grid-template-columns: 1fr;
  }
}
