.page-home {
  --home-ink: var(--chalk);
  --home-bg: var(--arena-base);
  --home-line: var(--rock);
  --home-accent: var(--lime);
  --home-soft: var(--ghost);
  background: var(--home-bg);
  color: var(--home-ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.page-home .eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.page-home .section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-home .lead {
  margin: 0;
  max-width: 62ch;
  color: var(--home-soft);
  line-height: 1.75;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid var(--home-line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.page-home .btn--primary {
  background: var(--home-accent);
  color: var(--arena-base);
  border-color: var(--home-accent);
  box-shadow: 4px 4px 0 var(--shadow-hard);
}

.page-home .btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow-hard);
}

.page-home .btn--ghost {
  background: transparent;
  color: var(--home-ink);
}

.page-home .btn--ghost:hover {
  background: var(--panel);
}

.page-home .btn--cyan {
  background: var(--cyan);
  color: var(--arena-base);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 var(--shadow-hard);
}

.page-home .hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 78% 18%, rgba(198, 255, 61, 0.12), transparent 46%),
    radial-gradient(circle at 12% 82%, rgba(0, 229, 255, 0.08), transparent 52%),
    var(--home-bg);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.page-home .hero__kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.page-home .hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-home .hero__lead {
  margin: 0 0 28px;
  max-width: 46ch;
  color: var(--home-soft);
  line-height: 1.8;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.page-home .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-soft);
}

.page-home .hero__meta-item {
  position: relative;
  padding-left: 14px;
}

.page-home .hero__meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  background: var(--home-accent);
}

.page-home .hero__stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 20%, rgba(198, 255, 61, 0.16), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px),
    var(--arena-base);
  border: 2px solid var(--home-line);
  overflow: hidden;
}

.page-home .hero__beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.page-home .status-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 3px solid var(--rock);
  box-shadow: 8px 8px 0 var(--shadow-hard);
}

.page-home .status-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .status-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--home-accent);
  box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.6);
  animation: home-pulse 2.2s ease-out infinite;
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(198, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); }
}

.page-home .status-card__state {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--home-accent);
}

.page-home .status-card__code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-soft);
}

.page-home .status-card__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .status-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.page-home .status-card__key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-soft);
  white-space: nowrap;
}

.page-home .status-card__val {
  font-size: 14px;
  text-align: right;
}

.page-home .status-card__details {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--home-soft);
  line-height: 1.7;
}

.page-home .status-card__details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .status-card__details p {
  margin: 10px 0 0;
}

.page-home .status-card__link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-accent);
  text-decoration: none;
}

.page-home .status-card__link:hover {
  text-decoration: underline;
}

.page-home .index-strip {
  position: relative;
  padding: 0 0 8px;
  background: var(--shell);
  border-block: 2px solid var(--home-line);
}

.page-home .index-strip__hint {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--home-soft);
}

.page-home .index-strip__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.page-home .index-strip__item {
  flex: 0 0 auto;
  min-width: 200px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid var(--home-line);
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--home-ink);
  transition: background 0.15s ease;
}

.page-home .index-strip__item:hover,
.page-home .index-strip__item[aria-current="page"] {
  background: var(--panel);
}

.page-home .index-strip__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--home-accent);
}

.page-home .index-strip__label {
  font-family: var(--font-display);
  font-size: 15px;
  white-space: nowrap;
}

.page-home .index-strip__desc {
  font-size: 11px;
  color: var(--home-soft);
  white-space: nowrap;
}

.page-home .pathmap {
  padding: 40px 0 8px;
}

.page-home .pathmap__figure {
  margin: 0;
  border: 2px solid var(--home-line);
  background: var(--panel);
}

.page-home .pathmap__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .pathmap__caption {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-soft);
  border-top: 1px solid var(--home-line);
}

.page-home .notice {
  padding: 56px 0;
}

.page-home .notice__inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: var(--panel);
  border: 2px solid var(--home-line);
  box-shadow: 6px 6px 0 var(--shadow-hard);
}

.page-home .notice__text {
  margin: 0 0 14px;
  color: var(--home-soft);
  line-height: 1.8;
}

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

.page-home .notice__figure {
  margin: 0;
  border: 2px solid var(--home-line);
}

.page-home .notice__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .section {
  padding: 56px 0;
}

.page-home .section-head {
  margin-bottom: 32px;
}

.page-home .scenes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.page-home .scene {
  position: relative;
  padding: 26px 24px 22px;
  background: var(--panel);
  border: 2px solid var(--home-line);
  box-shadow: 5px 5px 0 var(--shadow-hard);
}

.page-home .scene:nth-child(2) {
  transform: translateY(18px);
}

.page-home .scene:nth-child(3) {
  transform: translateY(-10px);
}

.page-home .scene:nth-child(4) {
  transform: translateY(8px);
}

.page-home .scene__no {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--home-accent);
}

.page-home .scene__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
}

.page-home .scene__text {
  margin: 0 0 14px;
  color: var(--home-soft);
  line-height: 1.75;
}

.page-home .scene__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-home .help-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.page-home .help-map__link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "no name"
    "no items";
  gap: 4px 14px;
  padding: 18px 20px;
  background: var(--panel);
  border: 2px solid var(--home-line);
  text-decoration: none;
  color: var(--home-ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.page-home .help-map__link:hover {
  border-color: var(--home-accent);
  transform: translateY(-2px);
}

.page-home .help-map__no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--home-accent);
  align-self: center;
}

.page-home .help-map__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 17px;
}

.page-home .help-map__items {
  grid-area: items;
  font-size: 12px;
  color: var(--home-soft);
  line-height: 1.6;
}

.page-home .metrics {
  position: relative;
  padding: 56px 0 40px;
  background: var(--arena-base);
  border-top: 2px solid var(--home-line);
  overflow: hidden;
}

.page-home .metrics__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

.page-home .metrics__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--home-line);
  background: rgba(10, 12, 14, 0.72);
}

.page-home .metric {
  padding: 26px 20px;
  border-right: 1px solid var(--home-line);
  text-align: center;
}

.page-home .metric:last-child {
  border-right: 0;
}

.page-home .metric__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--home-accent);
  text-stroke: 1px var(--home-accent);
}

.page-home .metric__num em {
  font-style: normal;
  font-size: 0.5em;
  -webkit-text-stroke: 0;
  color: var(--home-accent);
}

.page-home .metric__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--home-soft);
}

.page-home .metrics__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.page-home .metrics__foot p {
  margin: 0;
  max-width: 62ch;
  font-size: 13px;
  color: var(--home-soft);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .page-home .hero__grid,
  .page-home .notice__inner {
    grid-template-columns: 1fr;
  }

  .page-home .hero__stage {
    min-height: 360px;
    justify-content: center;
  }

  .page-home .scenes__grid,
  .page-home .help-map__list {
    grid-template-columns: 1fr;
  }

  .page-home .scene:nth-child(n) {
    transform: none;
  }

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

  .page-home .metric:nth-child(2) {
    border-right: 0;
  }

  .page-home .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--home-line);
  }
}

@media (max-width: 600px) {
  .page-home .container,
  .page-home .hero__grid,
  .page-home .index-strip__hint {
    width: calc(100% - 32px);
  }

  .page-home .hero {
    padding: 48px 0 40px;
  }

  .page-home .metrics__inner {
    grid-template-columns: 1fr;
  }

  .page-home .metric {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .page-home .metric:last-child {
    border-bottom: 0;
  }
}
