.page-home {
  position: relative;
  overflow-x: hidden;
  background: var(--navy-900);
  color: var(--paper);
}

.page-home h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin: 10px 0 14px;
  color: var(--paper);
}

.page-home h3 {
  font-family: var(--font-serif);
  color: var(--paper);
}

.page-home .page-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ===== Hero ===== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  background:
    linear-gradient(160deg, rgba(27, 58, 111, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 84% 22%, rgba(201, 160, 99, 0.14) 0%, transparent 22%),
    var(--navy-900);
}

.page-home .home-hero::before {
  content: "12";
  position: absolute;
  top: -6%;
  right: -4%;
  font-family: var(--font-mono);
  font-size: clamp(160px, 30vw, 460px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 160, 99, 0.22);
  pointer-events: none;
  user-select: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.page-home .home-hero__panel--text {
  position: relative;
  padding-left: 20px;
}

.page-home .home-hero__panel--text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500), transparent);
}

.page-home .home-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  padding: 6px 14px;
  background: rgba(255, 107, 53, 0.14);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 999px;
  color: var(--orange-100);
}

.page-home .home-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 12px 0 8px;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(10, 31, 68, 0.55);
}

.page-home .home-hero__sub {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.page-home .home-hero__lead {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
}

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

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line);
}

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

.page-home .home-hero__stat dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.page-home .home-hero__stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-300);
}

.page-home .home-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 12px 14px;
  background: rgba(16, 42, 92, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-home .home-toc__label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-right: 4px;
}

.page-home .home-toc a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-toc a:hover {
  color: var(--paper);
  background: rgba(201, 160, 99, 0.16);
}

.page-home .home-hero__panel--visual {
  position: relative;
}

.page-home .home-hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 68%, rgba(201, 160, 99, 0.85) 68%, rgba(201, 160, 99, 0.85) 76%, rgba(255, 107, 53, 0.82) 76%, rgba(255, 107, 53, 0.82) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

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

.page-home .home-hero__edition {
  position: absolute;
  top: 8%;
  right: 6%;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: clamp(90px, 14vw, 170px);
  font-weight: 800;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold-500);
  pointer-events: none;
  user-select: none;
}

.page-home .home-hero__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  background: var(--orange-500);
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.page-home .home-hero__mini {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  background: rgba(10, 31, 68, 0.92);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}

.page-home .home-hero__mini-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-300);
}

.page-home .home-hero__mini-step {
  margin: 0;
  font-size: 14px;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.page-home .home-hero__mini-step span {
  font-family: var(--font-mono);
  color: var(--orange-500);
  font-weight: 700;
  font-size: 13px;
}

.page-home .home-hero__mini-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--teal-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.4);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-hero__mini-link:hover {
  color: var(--gold-300);
  border-color: var(--gold-300);
}

/* ===== Guide ===== */
.page-home .home-guide__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.page-home .home-guide__media::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -10px;
  width: 56px;
  height: 56px;
  background: var(--gold-500);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0.8;
  pointer-events: none;
}

.page-home .home-guide__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.page-home .home-guide__intro {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.65;
}

.page-home .home-guide__steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .home-guide__steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(16, 42, 92, 0.48);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-guide__steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.page-home .home-guide__step-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1.4;
  flex: 0 0 auto;
}

.page-home .home-guide__step-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.page-home .home-guide__step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

/* ===== Direct ===== */
.page-home .home-direct {
  position: relative;
}

.page-home .home-direct::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(200deg, rgba(201, 160, 99, 0.10), transparent 62%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-direct__head {
  max-width: 680px;
  position: relative;
}

.page-home .home-direct__head-text {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.page-home .home-direct__flow {
  margin-top: 44px;
  display: grid;
  gap: 20px;
  position: relative;
}

.page-home .home-direct__node {
  position: relative;
  background: linear-gradient(145deg, var(--navy-800), rgba(16, 42, 92, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-direct__node:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 160, 99, 0.4);
}

.page-home .home-direct__node-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--orange-500);
}

.page-home .home-direct__node h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.page-home .home-direct__node p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.page-home .home-direct__node-mark {
  position: absolute;
  right: 10px;
  bottom: -8px;
  font-family: var(--font-mono);
  font-size: 62px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 160, 99, 0.28);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.page-home .home-direct__arrow {
  font-size: 34px;
  color: var(--gold-500);
  text-align: center;
  line-height: 1;
  transform: rotate(90deg);
}

.page-home .home-direct__note {
  border-top: 1px dashed var(--gold-500);
  padding: 18px 8px 0;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.6;
}

/* ===== Updates ===== */
.page-home .home-updates__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-home .home-updates__heading {
  max-width: 400px;
  flex: 0 0 340px;
}

.page-home .home-updates__desc {
  color: var(--muted);
  margin: 16px 0 20px;
  line-height: 1.65;
}

.page-home .home-updates__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0 24px;
  border-left: 1px solid var(--line);
}

.page-home .home-updates__item {
  position: relative;
  padding: 18px 0 22px 24px;
}

.page-home .home-updates__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.2);
}

.page-home .home-updates__ver {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-400);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.page-home .home-updates__item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.page-home .home-updates__item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Categories ===== */
.page-home .home-categories {
  position: relative;
  overflow: hidden;
}

.page-home .home-categories__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
}

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

.page-home .home-categories__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-categories__head {
  max-width: 620px;
}

.page-home .home-categories__head p {
  color: var(--muted);
  line-height: 1.65;
}

.page-home .home-categories__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  max-width: 820px;
}

.page-home .home-categories__tags .tag-pill {
  font-size: 14px;
  padding: 9px 16px;
}

/* ===== Sync ===== */
.page-home .home-sync__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.page-home .home-sync__content > p {
  color: var(--muted);
  line-height: 1.65;
}

.page-home .home-sync__points {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-sync__points li {
  position: relative;
  padding-left: 22px;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}

.page-home .home-sync__points li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--teal-400);
  font-size: 11px;
}

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

.page-home .home-sync__stat {
  padding: 22px 14px;
  background: rgba(16, 42, 92, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

/* ===== Next ===== */
.page-home .home-next {
  padding-top: 0;
}

.page-home .home-next__image {
  position: relative;
  max-height: 260px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--navy-800);
}

.page-home .home-next__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.3), rgba(10, 31, 68, 0.8));
}

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

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

.page-home .home-next__head {
  max-width: 600px;
  margin-bottom: 28px;
}

.page-home .home-next__head p {
  color: var(--muted);
}

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

.page-home .home-next__card {
  display: block;
  position: relative;
  padding: 24px 22px 24px 56px;
  background: rgba(16, 42, 92, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-next__card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 160, 99, 0.5);
  background: rgba(27, 58, 111, 0.6);
}

.page-home .home-next__card-index {
  position: absolute;
  left: 18px;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-500);
  opacity: 0.9;
}

.page-home .home-next__card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.page-home .home-next__card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .page-home .home-guide__inner {
    flex-direction: row;
    align-items: center;
  }

  .page-home .home-guide__media {
    flex: 1.15;
  }

  .page-home .home-guide__content {
    flex: 1;
  }

  .page-home .home-updates__inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-home .home-updates__heading {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .page-home .home-updates__list {
    flex: 1;
  }

  .page-home .home-sync__inner {
    flex-direction: row;
    align-items: center;
  }

  .page-home .home-sync__content {
    flex: 1.2;
  }

  .page-home .home-sync__stats {
    flex: 0 0 360px;
  }

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

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px 48px;
    align-items: center;
  }

  .page-home .home-hero__panel--text {
    grid-column: 1 / span 7;
  }

  .page-home .home-hero__panel--visual {
    grid-column: 9 / span 4;
  }

  .page-home .home-hero__visual {
    aspect-ratio: 1;
  }

  .page-home .home-direct__flow {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 24px;
  }

  .page-home .home-direct__arrow {
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-home .home-direct__note {
    grid-column: 1 / -1;
  }

  .page-home .home-categories__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .home-categories__tags {
    margin-top: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
