.page-home {
  --gate-frame: rgba(62, 224, 200, 0.24);
  --gate-panel: rgba(22, 41, 79, 0.78);
  --gate-panel-deep: rgba(11, 26, 58, 0.9);
  --gate-rule: rgba(179, 156, 232, 0.28);
}

.page-home .gate-section {
  position: relative;
  padding-block: clamp(54px, 8vw, 104px);
}

.page-home .gate-section__head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.page-home .gate-section__head .h2 {
  margin: 10px 0 14px;
}

.page-home .gate-section__head p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .gate-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(880px, 92vh);
  padding: calc(var(--header-h) + clamp(38px, 7vw, 72px)) 0 clamp(38px, 6vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-home .gate-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .gate-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.15) contrast(1.05);
}

.page-home .gate-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 26, 58, 0.96) 0%, rgba(11, 26, 58, 0.76) 48%, rgba(11, 26, 58, 0.32) 100%),
    linear-gradient(0deg, rgba(11, 26, 58, 0.96) 0%, rgba(11, 26, 58, 0) 58%);
}

.page-home .gate-hero__frame {
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  z-index: 2;
  pointer-events: none;
  border: 1px solid var(--gate-frame);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.page-home .gate-hero__frame::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--gate-frame) 0 1px, transparent 1px 26px);
  opacity: 0.8;
}

.page-home .gate-hero__frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: repeating-linear-gradient(0deg, var(--gate-frame) 0 1px, transparent 1px 26px);
  opacity: 0.48;
}

.page-home .gate-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.page-home .gate-hero__inner .crumbs {
  margin-bottom: clamp(24px, 4vw, 42px);
}

.page-home .gate-hero__meta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-home .gate-hero__title {
  max-width: 12em;
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-home .gate-hero__vlabel {
  flex: none;
  margin-top: 12px;
  color: var(--cyan-tint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.page-home .gate-hero__note {
  max-width: 630px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.85;
}

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

.page-home .gate-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  max-width: 920px;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.page-home .gate-fact dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .gate-fact dd {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.page-home .gate-fact__num {
  color: var(--ember);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.page-home .gate-map__grid {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

.page-home .gate-map__nodes {
  display: grid;
  gap: 14px;
}

.page-home .gate-node {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(22, 41, 79, 0.9), rgba(16, 31, 69, 0.58));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.page-home .gate-node:hover,
.page-home .gate-node:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan-line);
  background: linear-gradient(135deg, rgba(108, 74, 182, 0.28), rgba(22, 41, 79, 0.92));
}

.page-home .gate-node__index {
  padding-top: 4px;
  color: var(--violet-tint);
  font-family: var(--mono);
  font-size: 13px;
}

.page-home .gate-node__body {
  min-width: 0;
}

.page-home .gate-node__kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan-tint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.page-home .gate-node__title {
  margin: 0 0 6px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.35;
}

.page-home .gate-node__desc {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .gate-map__visual {
  margin: 0;
  padding: 2px;
  background: linear-gradient(145deg, var(--gate-frame), rgba(108, 74, 182, 0.2));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .gate-map__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.page-home .gate-map__visual figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .gate-data__grid {
  display: grid;
  gap: clamp(26px, 5vw, 54px);
}

.page-home .gate-data__visual {
  position: relative;
  margin: 0;
}

.page-home .gate-data__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .gate-data__badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 26, 58, 0.92);
}

.page-home .gate-data__badge-num {
  color: var(--ember);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.page-home .gate-data__body .h2 {
  margin: 10px 0 18px;
}

.page-home .gate-data__body > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .gate-stats {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.page-home .gate-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  background: var(--gate-panel);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-home .gate-stat__num {
  color: var(--ember);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.page-home .gate-stat__unit {
  color: var(--muted);
  font-size: 12px;
}

.page-home .gate-stat__label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-home .gate-data__foot {
  margin-top: 22px;
  padding-left: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  border-left: 2px solid var(--violet);
}

.page-home .gate-version__panels {
  display: grid;
  gap: 18px;
}

.page-home .gate-version__panel {
  position: relative;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(22, 41, 79, 0.92), rgba(11, 26, 58, 0.9));
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.page-home .gate-version__panel--new {
  border-color: var(--cyan-line);
  background:
    linear-gradient(150deg, rgba(108, 74, 182, 0.26), rgba(16, 31, 69, 0.94)),
    var(--gate-panel-deep);
  box-shadow: inset 0 0 0 1px rgba(62, 224, 200, 0.1);
}

.page-home .gate-version__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .gate-version__ver {
  margin: 0;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
}

.page-home .gate-version__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .gate-version__item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .gate-version__item-label {
  color: var(--violet-tint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .gate-version__item-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .gate-version__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .gate-cycle__grid {
  display: grid;
  gap: clamp(26px, 5vw, 52px);
}

.page-home .gate-cycle__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .gate-cycle__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .gate-cycle__index {
  color: var(--violet-tint);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.page-home .gate-cycle__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.page-home .gate-cycle__desc {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .gate-cycle__link {
  color: var(--cyan);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 224, 200, 0.42);
}

.page-home .gate-cycle__link:hover,
.page-home .gate-cycle__link:focus-visible {
  color: var(--cyan-tint);
  border-bottom-color: var(--cyan-tint);
}

.page-home .gate-cycle__visual {
  margin: 0;
  padding: 2px;
  background: linear-gradient(155deg, var(--gate-rule), rgba(62, 224, 200, 0.18));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.page-home .gate-cycle__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .gate-cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--cyan-line);
  background: linear-gradient(120deg, rgba(108, 74, 182, 0.24), rgba(22, 41, 79, 0.84));
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.page-home .gate-cta__text {
  max-width: 640px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .gate-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 860px) {
  .page-home .gate-hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .gate-map__grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }

  .page-home .gate-map__nodes .gate-node:nth-child(2) {
    margin-left: 7%;
  }

  .page-home .gate-map__nodes .gate-node:nth-child(3) {
    margin-left: 2%;
  }

  .page-home .gate-map__nodes .gate-node:nth-child(4) {
    margin-left: 10%;
  }

  .page-home .gate-map__nodes .gate-node:nth-child(5) {
    margin-left: 4%;
  }

  .page-home .gate-data__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }

  .page-home .gate-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .page-home .gate-cycle__grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }

  .page-home .gate-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .gate-cta__actions {
    flex: none;
  }
}

@media (min-width: 1180px) {
  .page-home .gate-hero__title {
    max-width: 9.6em;
  }

  .page-home .gate-hero__vlabel {
    margin-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gate-node {
    transition: none;
  }
}
</main>
