.page-home {
  --home-gap: clamp(4.5rem, 9vw, 8.5rem);
  --home-card-bg: rgba(19, 41, 75, 0.72);
  background-color: var(--color-night);
  color: var(--color-text-light);
  font-family: var(--font-body);
  overflow: hidden;
  background-image:
    linear-gradient(rgba(46, 74, 122, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 74, 122, 0.16) 1px, transparent 1px),
    radial-gradient(1100px 520px at 82% 8%, rgba(29, 94, 152, 0.3), transparent 60%),
    radial-gradient(900px 520px at 8% 72%, rgba(20, 84, 66, 0.24), transparent 60%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home a {
  color: var(--color-green);
  transition: color 0.25s var(--ease);
}

.page-home .home-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-decor-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 3400px;
}

.page-home .home-decor-path path {
  fill: none;
  stroke: var(--color-green);
  stroke-width: 2;
  stroke-linecap: round;
}

.page-home .home-path-a {
  stroke-opacity: 0.28;
  stroke-dasharray: 8 16;
  animation: homeFlowDash 26s linear infinite;
}

.page-home .home-path-b {
  stroke-opacity: 0.18;
  stroke-dasharray: 4 20;
  animation: homeFlowDash 34s linear infinite;
}

.page-home .home-path-c {
  stroke-opacity: 0.22;
  stroke-dasharray: 10 18;
  animation: homeFlowDash 42s linear infinite;
}

.page-home .home-path-d {
  stroke-opacity: 0.16;
  stroke-dasharray: 6 14;
  animation: homeFlowDash 38s linear infinite;
}

.page-home .home-cover {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-home .home-cover-inner {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.page-home .home-cover-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.06;
  margin: 0.6rem 0 0;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.page-home .home-cover-lede {
  margin: 1.5rem 0 0;
  max-width: 58rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(230, 241, 255, 0.82);
}

.page-home .home-cover-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

.page-home .home-stat-item {
  border-left: 2px solid var(--color-green);
  padding-left: 0.85rem;
  min-width: 116px;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--color-text-light);
}

.page-home .stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(230, 241, 255, 0.64);
}

.page-home .home-cover-cta {
  margin-top: 2rem;
}

.page-home .home-toc-panel {
  border: 1px solid var(--color-line);
  background: var(--home-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
}

.page-home .home-toc-kicker {
  margin: 0;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-orange-light);
}

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

.page-home .home-toc-item {
  border-top: 1px solid var(--color-line);
}

.page-home .home-toc-item:first-child {
  border-top: 0;
}

.page-home .home-toc-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 1.35rem;
  text-decoration: none;
  color: var(--color-text-light);
  transition: background-color 0.25s var(--ease);
}

.page-home .home-toc-link:hover,
.page-home .home-toc-link:focus-visible {
  background: rgba(57, 255, 136, 0.06);
}

.page-home .toc-num {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-green);
  font-size: 1.4rem;
  line-height: 1;
  min-width: 2.4rem;
}

.page-home .toc-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-home .toc-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.page-home .toc-desc {
  font-size: 0.85rem;
  color: rgba(230, 241, 255, 0.62);
}

.page-home .home-chapter {
  position: relative;
  padding: var(--home-gap) 0;
}

.page-home .home-chapter + .home-chapter::before {
  content: "";
  position: absolute;
  top: -2.2rem;
  left: -4%;
  width: 108%;
  height: 4.4rem;
  background: linear-gradient(100deg, rgba(19, 41, 75, 0) 0%, rgba(19, 41, 75, 0.9) 22%, rgba(11, 29, 58, 0.42) 70%, rgba(19, 41, 75, 0) 100%);
  transform: rotate(-0.65deg);
  pointer-events: none;
  z-index: 1;
}

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

.page-home .home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line);
}

.page-home .home-section-head--bare {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-section-head .section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-home .home-chapter-index {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-green);
  font-size: 1rem;
  white-space: nowrap;
}

.page-home .home-chapter-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  margin-right: 0.6rem;
  vertical-align: middle;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-green);
  opacity: 0.88;
}

.page-home .home-guide-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.page-home .home-guide-copy {
  margin: 0 0 1.5rem;
  line-height: 1.8;
  color: rgba(230, 241, 255, 0.82);
  max-width: 62ch;
}

.page-home .home-guide-tabs .tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 1.5rem;
}

.page-home .home-guide-tabs .tab-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: rgba(230, 241, 255, 0.66);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .home-guide-tabs .tab-btn:hover {
  color: var(--color-text-light);
}

.page-home .home-guide-tabs .tab-btn.is-active {
  color: var(--color-green);
  background: rgba(57, 255, 136, 0.07);
  border-color: var(--color-line);
  position: relative;
}

.page-home .home-guide-tabs .tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--color-green);
}

.page-home .home-guide-panels .tab-panel p {
  margin: 0;
  line-height: 1.8;
  color: rgba(230, 241, 255, 0.86);
}

.page-home .home-guide-side {
  display: grid;
  gap: 1.25rem;
}

.page-home .home-refresh-card {
  border: 1px solid var(--color-line);
  border-top: 2px solid var(--color-green);
  background: rgba(11, 29, 58, 0.8);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.page-home .home-refresh-card .data-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(230, 241, 255, 0.6);
}

.page-home .home-refresh-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-green);
  line-height: 1;
  margin: 0.6rem 0 0.7rem;
  letter-spacing: 0.04em;
}

.page-home .home-refresh-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(230, 241, 255, 0.72);
}

.page-home .img-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-line);
  background: var(--color-night-2);
  box-shadow: var(--shadow-card);
}

.page-home .img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-guide-img {
  aspect-ratio: 4 / 3;
}

.page-home .home-guide-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(19, 41, 75, 0.5) 0%, rgba(11, 29, 58, 0) 58%);
  pointer-events: none;
}

.page-home .home-data-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-home .home-data-img {
  aspect-ratio: 3 / 4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .home-data-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(210deg, rgba(57, 255, 136, 0.14) 0%, rgba(11, 29, 58, 0.42) 48%, rgba(11, 29, 58, 0.08) 100%);
  pointer-events: none;
}

.page-home .home-data-content p {
  line-height: 1.85;
  color: rgba(230, 241, 255, 0.82);
  max-width: 62ch;
}

.page-home .home-data-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.page-home .home-data-list li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(230, 241, 255, 0.88);
  line-height: 1.65;
  font-size: 0.95rem;
}

.page-home .home-data-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.62rem;
  height: 2px;
  background: var(--color-green);
}

.page-home .home-data-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  margin-top: 2rem;
}

.page-home .home-milestone {
  border-left: 2px solid var(--color-orange);
  padding-left: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.3;
}

.page-home .home-milestone span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(230, 241, 255, 0.62);
  font-weight: 400;
  margin-top: 0.3rem;
}

.page-home .home-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .home-channel-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-home .home-channel-copy p {
  line-height: 1.85;
  color: rgba(230, 241, 255, 0.82);
  max-width: 58ch;
}

.page-home .home-channel-features {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-home .home-channel-features li {
  border: 1px solid var(--color-line);
  background: rgba(19, 41, 75, 0.55);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(230, 241, 255, 0.86);
}

.page-home .home-channel-actions {
  margin-top: 1.75rem;
}

.page-home .home-channel-img {
  aspect-ratio: 7 / 5;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.page-home .home-channel-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(11, 29, 58, 0.56) 0%, rgba(19, 41, 75, 0) 52%);
  pointer-events: none;
}

.page-home .home-transfer {
  position: relative;
  padding: var(--home-gap) 0;
  overflow: hidden;
}

.page-home .home-transfer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-transfer-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.page-home .home-transfer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 29, 58, 0.96) 0%, rgba(11, 29, 58, 0.86) 48%, rgba(19, 41, 75, 0.74) 100%);
}

.page-home .home-transfer-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.page-home .home-transfer-copy p {
  line-height: 1.85;
  color: rgba(230, 241, 255, 0.84);
  max-width: 56ch;
}

.page-home .home-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.page-home .home-updates-heading {
  margin: 0 0 1rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-orange-light);
}

.page-home .home-update-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .home-update-link:hover,
.page-home .home-update-link:focus-visible {
  border-color: var(--color-green);
  transform: translateY(-3px);
}

.page-home .home-update-link + .home-update-link {
  margin-top: 1rem;
}

.page-home .home-update-card {
  border: 1px solid var(--color-line);
  background: rgba(11, 29, 58, 0.82);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
}

.page-home .home-update-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0.75rem 0 0.5rem;
}

.page-home .home-update-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(230, 241, 255, 0.7);
}

@keyframes homeFlowDash {
  to {
    stroke-dashoffset: -360;
  }
}

@media (min-width: 700px) {
  .page-home .home-cover-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem 3rem;
  }

  .page-home .home-cover-main {
    padding-bottom: 0;
  }
}

@media (min-width: 820px) {
  .page-home .home-channel-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 3rem;
  }
}

@media (min-width: 900px) {
  .page-home .home-guide-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 2.75rem;
  }

  .page-home .home-transfer-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .page-home .home-data-inner {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 3.5rem;
  }

  .page-home .home-cover {
    padding-top: clamp(4rem, 8vw, 6.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-decor-path path {
    animation: none;
  }

  .page-home .home-update-link {
    transition: none;
  }

  .page-home .home-toc-link,
  .page-home .home-guide-tabs .tab-btn {
    transition: none;
  }
}
