.page-home {
  --home-gold-soft: rgba(245, 184, 66, 0.16);
  --home-purple-soft: rgba(156, 77, 255, 0.14);
  --home-panel: rgba(16, 27, 46, 0.72);
  --home-line: rgba(139, 155, 180, 0.22);
  background: var(--deep);
  color: var(--moon);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 72px;
  background:
    radial-gradient(720px 360px at 85% -10%, rgba(156, 77, 255, 0.22), transparent 62%),
    radial-gradient(520px 300px at 8% 110%, rgba(245, 184, 66, 0.16), transparent 55%),
    linear-gradient(180deg, var(--deep) 0%, var(--blue) 100%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(245, 184, 66, 0.18) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(156, 77, 255, 0.14) 1px, transparent 1.5px);
  background-size: 44px 44px, 64px 64px;
  background-position: 0 0, 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    padding: 0 48px;
  }
}

.page-home .home-hero__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.06em;
}

.page-home .home-hero h1 {
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.06;
  color: var(--moon);
  text-transform: uppercase;
}

.page-home .home-hero__lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  max-width: 34em;
}

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

.page-home .home-hero__btn {
  min-width: 148px;
  position: relative;
  overflow: hidden;
}

.page-home .home-hero__btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: homeShine 3.6s ease-in-out infinite;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.page-home .home-hero__note {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

.page-home .home-hero__visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-hero__orbits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-home .home-hero__version {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--deep);
  background: linear-gradient(135deg, var(--gold), #ffd27d);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 12% 100%);
  box-shadow: 0 0 32px rgba(245, 184, 66, 0.4);
  animation: homeVersionPulse 3s ease-in-out infinite;
}

.page-home .home-hero__version-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(11, 14, 20, 0.7);
}

.page-home .home-hero__version-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.page-home .home-stats {
  position: relative;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: rgba(16, 27, 46, 0.5);
}

.page-home .home-stats__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 1024px) {
  .page-home .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 32px 48px;
  }
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
}

.page-home .home-stat__label {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.page-home .home-cats {
  position: relative;
  padding: 88px 0;
  background:
    radial-gradient(600px 300px at 12% 20%, rgba(245, 184, 66, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue) 0%, var(--deep) 100%);
}

.page-home .home-cats__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-home .home-cats__grid {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    padding: 0 48px;
  }
}

.page-home .home-cats__media {
  position: relative;
  background: var(--blue);
  overflow: hidden;
}

.page-home .home-cats__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 9;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-cats__badge {
  position: absolute;
  left: 16px;
  bottom: 32px;
  padding: 8px 14px;
  color: var(--deep);
  background: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 10% 100%);
}

.page-home .home-cats__content h2,
.page-home .home-relogin h2,
.page-home .home-update h2,
.page-home .home-help h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  margin: 8px 0 16px;
  color: var(--moon);
}

.page-home .home-cats__lead,
.page-home .home-relogin__lead,
.page-home .home-update__lead,
.page-home .home-help__lead {
  color: var(--gray);
  line-height: 1.7;
  margin: 0 0 24px;
}

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

.page-home .home-cats__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-cats__item-name {
  font-weight: 700;
  color: var(--moon);
  white-space: nowrap;
}

.page-home .home-cats__item-desc {
  color: var(--gray);
  font-size: 0.92rem;
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .page-home .home-cats__item {
    flex-direction: column;
    gap: 4px;
  }

  .page-home .home-cats__item-desc {
    text-align: left;
  }
}

.page-home .home-relogin {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(700px 360px at 80% 15%, rgba(156, 77, 255, 0.18), transparent 60%),
    var(--deep);
}

.page-home .home-relogin__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .page-home .home-relogin__inner {
    padding: 0 48px;
  }
}

.page-home .home-relogin__head {
  max-width: 720px;
  margin-bottom: 48px;
}

.page-home .home-relogin__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .page-home .home-relogin__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.page-home .home-relogin__step {
  position: relative;
  padding: 32px 24px 28px;
  background: var(--home-panel);
  border-left: 3px solid var(--gold);
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.page-home .home-relogin__step-num {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--purple);
  line-height: 1;
}

.page-home .home-relogin__step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--moon);
}

.page-home .home-relogin__step p {
  margin: 0;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-home .home-relogin__cta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.page-home .home-update {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(600px 300px at 10% 50%, rgba(245, 184, 66, 0.14), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--ink) 100%);
}

.page-home .home-update__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-home .home-update__inner {
    grid-template-columns: 7fr 5fr;
    padding: 0 48px;
  }
}

.page-home .home-update__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.page-home .home-update__list li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: var(--moon);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-update__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 12px;
  height: 12px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, var(--gold), var(--purple));
}

.page-home .home-update__media {
  overflow: hidden;
}

.page-home .home-update__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 4% 94%);
}

.page-home .home-help {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep) 0%, var(--blue) 100%);
}

.page-home .home-help__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .home-help__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 20px;
}

@media (min-width: 1024px) {
  .page-home .home-help__inner {
    padding: 100px 48px;
  }
}

.page-home .home-help__content {
  max-width: 720px;
}

.page-home .home-help__nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}

@media (max-width: 480px) {
  .page-home .home-help__nums {
    grid-template-columns: 1fr;
  }
}

.page-home .home-help__num-item {
  padding: 18px;
  background: rgba(11, 14, 20, 0.6);
  border-left: 3px solid var(--purple);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-help__num-item strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.page-home .home-help__num-item span {
  font-size: 0.85rem;
  color: var(--gray);
}

.page-home .home-help__expand {
  margin: 0 0 24px;
  border: 1px solid rgba(245, 184, 66, 0.28);
  background: rgba(11, 14, 20, 0.66);
}

.page-home .home-help__expand summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--gold);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page-home .home-help__expand summary::-webkit-details-marker {
  display: none;
}

.page-home .home-help__expand summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--purple);
  line-height: 1;
}

.page-home .home-help__expand[open] summary {
  border-bottom: 1px solid rgba(245, 184, 66, 0.2);
}

.page-home .home-help__expand[open] summary::after {
  content: "–";
}

.page-home .home-help__expand p {
  margin: 0;
  padding: 20px;
  color: var(--gray);
  line-height: 1.75;
  font-size: 0.95rem;
}

.page-home .home-help__tip {
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--gray);
  background: rgba(156, 77, 255, 0.1);
  border-left: 3px solid var(--purple);
  line-height: 1.7;
  margin: 0 0 28px;
}

.page-home .home-help__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@keyframes homeShine {
  0% {
    left: -80%;
  }
  55% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

@keyframes homeVersionPulse {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(245, 184, 66, 0.32);
  }
  50% {
    box-shadow: 0 0 36px rgba(245, 184, 66, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__btn::after,
  .page-home .home-hero__version {
    animation: none;
  }
}
