.page-home {
  --home-grid: rgba(42, 59, 90, 0.38);
  position: relative;
  z-index: 1;
  background-color: var(--bs-bg);
  color: var(--bs-text);
  overflow-x: hidden;
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--home-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-home section[id] {
  scroll-margin-top: 84px;
}

.page-home figure {
  margin: 0;
}

.page-home .bs-container {
  padding-inline: clamp(20px, 4vw, 48px);
}

.page-home .home-intro {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
}

.page-home .home-intro__grid {
  display: grid;
  gap: 32px;
}

.page-home .home-intro__side {
  min-width: 0;
}

.page-home .home-intro__coords {
  font-family: var(--bs-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bs-text-2);
}

.page-home .home-dir {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--bs-border);
}

.page-home .home-dir__item {
  border-bottom: 1px solid var(--bs-border);
}

.page-home .home-dir__item a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 4px;
  color: var(--bs-text-2);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-home .home-dir__item a:hover,
.page-home .home-dir__item a:focus-visible {
  color: var(--bs-accent);
  padding-left: 10px;
}

.page-home .home-dir__num {
  font-family: var(--bs-mono);
  font-size: 12px;
  color: var(--bs-accent-2);
}

.page-home .home-intro__main {
  position: relative;
  min-width: 0;
}

.page-home .home-intro__main::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 6%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bs-accent);
  box-shadow:
    18px -28px 0 var(--bs-accent-2),
    -46px 42px 0 rgba(0, 212, 170, 0.6),
    44px 70px 0 rgba(200, 255, 0, 0.7);
  opacity: 0.7;
  animation: homePulse 5s ease-in-out infinite;
}

@keyframes homePulse {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-8px);
  }
}

.page-home .home-title {
  margin: 0;
  font-size: clamp(42px, 10vw, 96px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-home .home-title span {
  display: block;
  color: var(--bs-accent);
}

.page-home .home-lead {
  max-width: 34em;
  margin: 24px 0 0;
  color: var(--bs-text-2);
  font-size: 18px;
  line-height: 1.8;
}

.page-home .home-intro__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-home .home-intro__stamp {
  width: 148px;
  height: 148px;
  margin-left: auto;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--bs-paper);
  color: var(--bs-bg);
  border-radius: 50% 50% 50% 10px;
  transform: rotate(-5deg);
  font-family: var(--bs-mono);
}

.page-home .home-intro__stamp-index {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.page-home .home-intro__stamp-year {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.page-home .home-section {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vw, 104px);
}

.page-home .home-section__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 5.6vw, 56px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.page-home .home-section__desc {
  max-width: 54ch;
  margin-top: 18px;
  color: var(--bs-text-2);
  line-height: 1.7;
}

.page-home .home-report {
  background: linear-gradient(90deg, rgba(20, 42, 82, 0.95), rgba(11, 27, 58, 0.45));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}

.page-home .home-report__inner,
.page-home .home-login__inner,
.page-home .home-mobile__inner,
.page-home .home-beta__inner {
  display: grid;
  gap: 36px;
}

.page-home .home-report__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.page-home .home-report__item {
  border-top: 1px solid var(--bs-border);
}

.page-home .home-report__item:last-child {
  border-bottom: 1px solid var(--bs-border);
}

.page-home .home-report__link {
  display: block;
  padding: 16px 12px;
  color: var(--bs-text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.page-home .home-report__link:hover,
.page-home .home-report__link:focus-visible {
  background: rgba(200, 255, 0, 0.06);
}

.page-home .home-report__tag {
  display: inline-block;
  margin-bottom: 8px;
}

.page-home .home-report__name {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.page-home .home-report__extra {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  font-family: var(--bs-mono);
  font-size: 13px;
  color: var(--bs-accent);
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.page-home .home-report__item:hover .home-report__extra,
.page-home .home-report__item:focus-within .home-report__extra {
  max-height: 40px;
  opacity: 1;
  margin-top: 8px;
}

.page-home .home-report__media {
  position: relative;
}

.page-home .home-report__media img,
.page-home .home-login__media img,
.page-home .home-mobile__media img,
.page-home .home-beta__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-report__media img {
  border-radius: 24px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.page-home .home-report__media::after {
  content: "REPLAY 90MIN";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  background: var(--bs-accent-2);
  color: var(--bs-bg);
  padding: 6px 10px;
  font-family: var(--bs-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-home .home-login__media {
  padding: 14px;
  background: var(--bs-bg-2);
  border-radius: 28px;
}

.page-home .home-login__media img {
  border-radius: 18px;
}

.page-home .home-login__points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-login__points li {
  position: relative;
  padding-left: 20px;
  color: var(--bs-text-2);
  line-height: 1.6;
}

.page-home .home-login__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--bs-accent-2);
  transform: rotate(45deg);
}

.page-home .home-mobile {
  background: linear-gradient(150deg, rgba(20, 42, 82, 0.6), rgba(11, 27, 58, 0.1));
}

.page-home .home-mobile__media {
  max-width: 380px;
  margin-inline: auto;
}

.page-home .home-mobile__media img {
  border-radius: 32px;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
}

.page-home .home-mobile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-mobile__decor {
  display: none;
  font-family: var(--bs-mono);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--bs-text-2);
  writing-mode: vertical-rl;
}

.page-home .home-beta {
  background: linear-gradient(115deg, rgba(20, 42, 82, 0.9), rgba(11, 27, 58, 0.15));
}

.page-home .home-beta__demo {
  margin-top: 28px;
  padding: 20px;
  background: var(--bs-bg-2);
  border-left: 3px solid var(--bs-accent);
}

.page-home .home-beta__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bs-accent);
  color: var(--bs-bg);
  font: 600 14px/1 var(--bs-sans);
  cursor: pointer;
}

.page-home .home-beta__key[aria-pressed="true"] {
  background: var(--bs-success);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.25);
}

.page-home .home-beta__key-mark {
  color: var(--bs-accent-2);
}

.page-home .home-beta__hint {
  margin: 12px 0 0;
  color: var(--bs-text-2);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .home-beta__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-beta__list a {
  color: var(--bs-accent);
  text-decoration: none;
  font-family: var(--bs-mono);
  font-size: 14px;
}

.page-home .home-beta__list a::before {
  content: "◆ ";
  color: var(--bs-accent-2);
}

.page-home .home-beta__media img {
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.page-home .home-stats__head {
  max-width: 720px;
  margin-bottom: 36px;
}

.page-home .home-stats__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.page-home .home-stats__card {
  min-height: 160px;
  display: grid;
  align-content: space-between;
  padding: 24px 20px;
  background: var(--bs-bg-2);
  border: 1px solid var(--bs-border);
  border-radius: 20px;
}

.page-home .home-stats__num {
  font-family: var(--bs-mono);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: var(--bs-accent);
}

.page-home .home-stats__num sup {
  font-size: 0.5em;
  color: var(--bs-accent-2);
}

.page-home .home-stats__label {
  margin-top: 16px;
  color: var(--bs-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.page-home .home-stats__card--active {
  background: var(--bs-accent);
  color: var(--bs-bg);
}

.page-home .home-stats__card--active .home-stats__num {
  color: var(--bs-bg);
}

.page-home .home-stats__card--active .home-stats__num sup {
  color: var(--bs-accent-2);
}

.page-home .home-stats__card--active .home-stats__label {
  color: rgba(11, 27, 58, 0.78);
}

.page-home .home-stats__capabilities {
  margin-top: 24px;
  padding: 28px;
  display: grid;
  gap: 20px;
  background: var(--bs-paper);
  color: var(--bs-bg);
  border-radius: 28px;
}

.page-home .home-stats__shield {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--bs-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .home-stats__shield svg {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.page-home .home-stats__cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-stats__cap-list li {
  padding: 8px 14px;
  background: rgba(11, 27, 58, 0.08);
  border: 1px solid rgba(11, 27, 58, 0.15);
  border-radius: 999px;
  font-size: 14px;
}

.page-home .home-outro {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.page-home .home-outro__grid {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--bs-paper);
  color: var(--bs-bg);
  border-radius: 32px;
}

.page-home .home-outro__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 200;
  line-height: 1.18;
}

.page-home .home-outro__desc {
  margin: 12px 0 0;
  max-width: 44ch;
  color: rgba(11, 27, 58, 0.72);
  line-height: 1.7;
}

.page-home .home-outro__link {
  display: block;
  padding: 20px 0;
  border-top: 1px solid rgba(11, 27, 58, 0.25);
  color: var(--bs-bg);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-home .home-outro__link:hover,
.page-home .home-outro__link:focus-visible {
  color: var(--bs-accent-2);
  padding-left: 8px;
}

.page-home .home-outro__link small {
  display: block;
  margin-top: 6px;
  font-family: var(--bs-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(11, 27, 58, 0.56);
}

.page-home .home-report__body > .bs-btn,
.page-home .home-login__body > .bs-btn,
.page-home .home-beta__body > .bs-btn {
  margin-top: 26px;
}

@media (min-width: 640px) {
  .page-home .home-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .page-home .home-outro__grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    align-items: end;
  }
}

@media (min-width: 900px) {
  .page-home section[id] {
    scroll-margin-top: 28px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-intro__grid {
    grid-template-columns: 280px minmax(0, 1fr) 180px;
    gap: 48px;
    align-items: end;
  }

  .page-home .home-dir {
    margin-top: 48px;
  }

  .page-home .home-intro__stamp {
    margin-left: 0;
  }

  .page-home .home-report__inner,
  .page-home .home-login__inner,
  .page-home .home-beta__inner {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 64px;
    align-items: center;
  }

  .page-home .home-login__inner {
    grid-template-columns: 420px minmax(0, 1fr);
  }

  .page-home .home-mobile__inner {
    grid-template-columns: minmax(0, 1fr) 340px 140px;
    gap: 40px;
    align-items: center;
  }

  .page-home .home-mobile__decor {
    display: block;
  }

  .page-home .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .page-home .home-report__inner,
  .page-home .home-beta__inner {
    grid-template-columns: minmax(0, 1fr) 480px;
  }

  .page-home .home-login__inner {
    grid-template-columns: 460px minmax(0, 1fr);
  }

  .page-home .home-stats__capabilities {
    grid-template-columns: 240px 1fr;
    align-items: center;
  }
}
