.page-home {
  --home-section-space: clamp(56px, 9vw, 120px);
  background: var(--cream);
  color: var(--black-soft);
}

.page-home .coord-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-deep);
  margin-right: 8px;
  vertical-align: middle;
}

/* ========== 01 Hero ========== */
.page-home .home-hero {
  background: var(--black);
  color: var(--white);
  padding: var(--home-section-space) 0 calc(var(--home-section-space) * 0.8);
  position: relative;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 215, 0, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-home .home-hero__copy {
  position: relative;
  z-index: 2;
}

.page-home .home-hero__title {
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 18px 0 20px;
  color: var(--white);
}

.page-home .home-hero__title span {
  display: block;
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--gold);
  margin-top: 6px;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.page-home .home-hero__lead {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
  max-width: 580px;
}

.page-home .home-hero__chapters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}

.page-home .home-chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius-m);
  color: var(--white);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.page-home .home-chapter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.page-home .home-chapter:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.page-home .home-chapter:hover::before {
  transform: scaleY(1);
}

.page-home .home-chapter__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  width: 22px;
}

.page-home .home-chapter__name {
  font-weight: 700;
  font-size: 15px;
}

.page-home .home-chapter__note {
  font-size: 12px;
  color: var(--gray);
  margin-left: auto;
  white-space: nowrap;
}

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

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

.page-home .home-hero__figure {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: var(--shadow-gold);
  background: var(--black-mute);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .home-hero__badge {
  position: absolute;
  top: -16px;
  right: 16px;
  background: var(--gold);
  color: var(--black);
  border-radius: var(--radius-m);
  padding: 10px 20px;
  text-align: center;
  box-shadow: var(--shadow-m);
  transform: rotate(3deg);
  z-index: 2;
}

.page-home .home-hero__badge-num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.page-home .home-hero__badge-text {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.page-home .home-hero__coin {
  position: absolute;
  color: var(--gold);
  opacity: 0.9;
  z-index: 2;
  animation: home-coin-bob 4.5s var(--ease) infinite alternate;
}

.page-home .home-hero__coin--one {
  width: 56px;
  left: -18px;
  bottom: 14px;
}

.page-home .home-hero__coin--two {
  width: 40px;
  top: 18%;
  right: -14px;
  animation-delay: 1.4s;
}

.page-home .home-hero__coin-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(255, 215, 0, 0.35));
}

@keyframes home-coin-bob {
  from {
    transform: translateY(-5px) rotate(-12deg);
  }
  to {
    transform: translateY(7px) rotate(10deg);
  }
}

/* ========== Section header ========== */
.page-home .home-section-header {
  max-width: 720px;
  margin-bottom: 42px;
}

.page-home .home-section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.25;
  margin: 10px 0 12px;
  color: var(--black);
}

.page-home .home-section-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .home-section-header--on-dark .home-section-title {
  color: var(--white);
}

/* ========== 02 Updates ========== */
.page-home .home-updates {
  padding: var(--home-section-space) 0;
  background: var(--cream);
}

.page-home .home-updates__layout {
  display: grid;
  gap: 36px;
}

.page-home .home-updates__list {
  display: grid;
  gap: 16px;
}

.page-home .home-update-card {
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-m);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-s);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-update-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.page-home .home-update-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .home-update-card__title {
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--black);
}

.page-home .home-update-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 12px;
}

.page-home .home-update-card__link {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home .home-update-card__link:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

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

.page-home .home-updates__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow: var(--shadow-m);
}

.page-home .home-updates__media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ========== 03 Features ========== */
.page-home .home-features {
  background: var(--black-soft);
  color: var(--white);
  padding: var(--home-section-space) 0;
  position: relative;
  overflow: hidden;
}

.page-home .home-features::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 60px;
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 215, 0, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .home-features .coord-label {
  color: rgba(255, 255, 255, 0.7);
}

.page-home .home-features__grid {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.page-home .home-feature {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-l);
  padding: 26px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-feature:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateY(-4px);
}

.page-home .home-feature--large {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(255, 215, 0, 0.03));
  border-color: rgba(255, 215, 0, 0.32);
}

.page-home .home-feature__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-home .home-feature__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
}

.page-home .home-feature__desc {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.page-home .home-feature__list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.page-home .home-feature__list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--gold);
  font-size: 10px;
}

/* ========== 04 Rank ========== */
.page-home .home-rank {
  background: var(--cream);
  padding: var(--home-section-space) 0;
  position: relative;
}

.page-home .home-rank::before {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(220, 20, 60, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .home-rank__list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: home-rank;
}

.page-home .home-rank__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-rank__item:nth-child(2) {
  margin-left: 10px;
}

.page-home .home-rank__item:nth-child(3) {
  margin-left: 20px;
}

.page-home .home-rank__item:nth-child(4) {
  margin-left: 30px;
}

.page-home .home-rank__item:nth-child(5) {
  margin-left: 40px;
}

.page-home .home-rank__item:nth-child(6) {
  margin-left: 50px;
}

.page-home .home-rank__item:nth-child(7) {
  margin-left: 60px;
}

.page-home .home-rank__item:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: var(--shadow-m);
}

.page-home .home-rank__seq {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-deep);
  width: 28px;
}

.page-home .home-rank__name {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
}

.page-home .home-rank__desc {
  margin-left: auto;
  color: var(--gray);
  font-size: 14px;
}

/* ========== 05 Download ========== */
.page-home .home-download {
  background: var(--black);
  color: var(--white);
  padding: var(--home-section-space) 0;
  position: relative;
  overflow: hidden;
}

.page-home .home-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 50%, rgba(255, 215, 0, 0.13), transparent 60%);
  pointer-events: none;
}

.page-home .home-download__grid {
  display: grid;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.page-home .home-download .coord-label {
  color: rgba(255, 255, 255, 0.7);
}

.page-home .home-download__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  margin: 12px 0 16px;
  color: var(--white);
}

.page-home .home-download__desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
}

.page-home .home-download__desc strong {
  color: var(--gold);
  font-weight: 700;
}

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

.page-home .home-download__panel {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.26);
  box-shadow: var(--shadow-l);
}

.page-home .home-download__texture {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.62;
}

.page-home .home-download__panel-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.2), rgba(26, 26, 26, 0.86));
}

.page-home .home-download__panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 12px;
}

.page-home .home-download__spec {
  margin: 0;
}

.page-home .home-download__spec-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .home-download__spec-row dt {
  font-weight: 700;
  color: var(--white);
  font-size: 14px;
}

.page-home .home-download__spec-row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

/* ========== 06 Story ========== */
.page-home .home-story {
  background: var(--cream);
  padding: var(--home-section-space) 0;
}

.page-home .home-story__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .home-story__media {
  margin: 0;
}

.page-home .home-story__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: var(--shadow-m);
}

.page-home .home-story__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  margin: 12px 0 16px;
  color: var(--black);
}

.page-home .home-story__desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 18px;
}

.page-home .home-story__slogan {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 22px;
  letter-spacing: 0.06em;
}

/* ========== Responsive ========== */
@media (min-width: 768px) {
  .page-home .home-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }

  .page-home .home-updates__layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .page-home .home-updates__media {
    position: sticky;
    top: 120px;
  }

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

  .page-home .home-feature--large {
    grid-column: span 2;
  }

  .page-home .home-download__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .page-home .home-story__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
}

@media (min-width: 992px) {
  .page-home .home-hero__chapters {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-hero__chapter-note {
    display: none;
  }

  .page-home .home-features__grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    align-items: stretch;
  }

  .page-home .home-feature--large {
    grid-column: auto;
    grid-row: span 2;
  }

  .page-home .home-feature--large .home-feature__title {
    font-size: 26px;
  }

  .page-home .home-rank__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-home .home-rank__item {
    flex-direction: column;
    align-items: flex-start;
    min-height: 120px;
    padding: 18px 20px;
  }

  .page-home .home-rank__item:nth-child(2) {
    margin-left: 0;
    transform: translateY(14px);
  }

  .page-home .home-rank__item:nth-child(3) {
    margin-left: 0;
    transform: translateY(28px);
  }

  .page-home .home-rank__item:nth-child(4) {
    margin-left: 0;
    transform: translateY(42px);
  }

  .page-home .home-rank__item:nth-child(5) {
    margin-left: 0;
    transform: translateY(56px);
  }

  .page-home .home-rank__item:nth-child(6) {
    margin-left: 0;
    transform: translateY(70px);
  }

  .page-home .home-rank__item:nth-child(7) {
    margin-left: 0;
    transform: translateY(84px);
  }

  .page-home .home-rank__item:hover {
    transform: translateY(calc(var(--home-rank-offset, 0) * 1px)) translateY(-3px) scale(1.02);
  }
}

.page-home {
  --home-rank-offset: 1rem;
}
