.page-home {
  --home-card-pad: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--deep-space);
  color: var(--text-on-dark);
}

.page-home .hero-inner,
.page-home .section-inner,
.page-home .update-inner,
.page-home .sync-inner,
.page-home .guide-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.page-home .section-overline {
  margin: 0 0 0.45rem;
}

.page-home .hero-brand-block .section-overline,
.page-home .hero-update .section-overline,
.page-home .update-section .section-overline,
.page-home .guide-section .section-overline {
  color: var(--gold);
}

.page-home .hero-main-card .section-overline,
.page-home .hero-side-card .section-overline,
.page-home .hero-strip .section-overline,
.page-home .catalog-section .section-overline {
  color: var(--nebula-purple);
}

.page-home .sync-section .section-overline {
  color: var(--red-orange);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(108, 74, 140, 0.2), transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 75%, rgba(201, 162, 39, 0.08), transparent 60%),
    var(--deep-space);
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

.page-home .hero-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.page-home .hero-brand-block {
  position: relative;
  padding: 0.25rem 0;
}

.page-home .hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.page-home .hero-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.12;
  color: var(--text-on-dark);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.page-home .hero-title span {
  display: block;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.16em;
  margin-top: 0.3rem;
}

.page-home .hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: rgba(232, 232, 232, 0.7);
  margin: 0 0 1.25rem;
}

.page-home .hero-rotated {
  display: none;
}

.page-home .hero-gate {
  margin: 1.5rem 0 0;
}

.page-home .hero-gate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(224, 224, 224, 0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.page-home .hero-gate figcaption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: rgba(232, 232, 232, 0.55);
  letter-spacing: 0.14em;
}

.page-home .hero-main-card,
.page-home .hero-side-card,
.page-home .hero-strip {
  background: var(--cream);
  color: var(--dark-brown);
  border: 1px solid rgba(224, 224, 224, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  position: relative;
  border-radius: 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.page-home .hero-main-card:hover,
.page-home .hero-side-card:hover,
.page-home .hero-strip:hover {
  border-color: var(--red-orange);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

.page-home .hero-main-card {
  padding: var(--home-card-pad);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .hero-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--red-orange));
}

.page-home .hero-main-card::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-home .hero-main-card h2,
.page-home .hero-side-card h2 {
  font-family: var(--font-headline);
  margin: 0 0 1rem;
  color: var(--dark-brown);
}

.page-home .hero-main-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
}

.page-home .hero-main-text {
  margin: 0;
  line-height: 1.7;
  color: rgba(31, 23, 16, 0.75);
  max-width: 30rem;
}

.page-home .hero-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-home .vertical-note {
  position: absolute;
  top: 1.2rem;
  right: -1.15rem;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  padding: 0.35rem 0.45rem;
  background: rgba(31, 23, 16, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 0 0 6px 6px;
}

.page-home .hero-side-card {
  padding: var(--home-card-pad);
  border-top: 3px solid var(--nebula-purple);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-home .hero-side-card h2 {
  font-size: 1.35rem;
  line-height: 1.4;
}

.page-home .hero-side-card p {
  margin: 0;
  line-height: 1.7;
  color: rgba(31, 23, 16, 0.72);
  font-size: 0.95rem;
}

.page-home .hero-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--red-orange);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.page-home .hero-inline-link:hover,
.page-home .hero-inline-link:focus-visible {
  border-bottom-color: var(--red-orange);
}

.page-home .hero-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 3px solid var(--red-orange);
}

.page-home .hero-strip-num {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red-orange);
}

.page-home .hero-strip-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-home .hero-strip-line {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark-brown);
}

.page-home .hero-update {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: rgba(30, 39, 73, 0.85);
  border: 1px solid rgba(224, 224, 224, 0.22);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}

.page-home .update-days {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0.2rem 0;
  letter-spacing: 0.05em;
}

.page-home .update-desc {
  margin: 0;
  color: rgba(232, 232, 232, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .catalog-section {
  background: var(--cream);
  color: var(--dark-brown);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-home .catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(31, 23, 16, 0.12);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
}

.page-home .catalog-head h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.25rem 0 0;
  color: var(--dark-brown);
}

.page-home .catalog-lead {
  max-width: 34rem;
  margin: 0;
  color: rgba(31, 23, 16, 0.7);
  line-height: 1.7;
}

.page-home .catalog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.page-home .catalog-grid li {
  display: flex;
}

.page-home .catalog-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.55rem 0.85rem;
  box-sizing: border-box;
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid rgba(31, 23, 16, 0.16);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-brown);
  font-size: 0.9rem;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.page-home .catalog-item .catalog-no {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nebula-purple);
  flex-shrink: 0;
}

.page-home .catalog-item .catalog-name {
  flex: 1;
}

.page-home .catalog-item::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--ease), transform var(--ease);
}

.page-home .catalog-item:hover,
.page-home .catalog-item:focus-visible {
  border-color: var(--red-orange);
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 23, 16, 0.1);
}

.page-home .catalog-item:hover .catalog-no,
.page-home .catalog-item:focus-visible .catalog-no {
  color: var(--red-orange);
}

.page-home .catalog-item:hover::after,
.page-home .catalog-item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.page-home .update-section {
  position: relative;
  overflow: hidden;
  background: var(--deep-space);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-home .update-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 20% 50%, rgba(108, 74, 140, 0.2), transparent 70%);
}

.page-home .update-inner {
  position: relative;
  display: grid;
  gap: 2rem;
}

.page-home .update-media,
.page-home .sync-media {
  margin: 0;
}

.page-home .update-media img,
.page-home .sync-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.page-home .update-media img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(224, 224, 224, 0.2);
}

.page-home .update-content h2,
.page-home .sync-content h2 {
  font-family: var(--font-headline);
  margin: 0.25rem 0 1.1rem;
  line-height: 1.25;
}

.page-home .update-content h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--text-on-dark);
}

.page-home .update-body {
  color: rgba(232, 232, 232, 0.8);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 44rem;
}

.page-home .update-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 1.75rem 0;
}

.page-home .update-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-home .update-stat-num {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1.1;
}

.page-home .update-stat-num small {
  font-size: 1rem;
  color: var(--silver);
}

.page-home .update-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(232, 232, 232, 0.65);
}

.page-home .sync-section {
  background: var(--cream);
  color: var(--dark-brown);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-home .sync-inner {
  display: grid;
  gap: 2rem;
}

.page-home .sync-content h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--dark-brown);
}

.page-home .sync-content > p {
  color: rgba(31, 23, 16, 0.75);
  line-height: 1.7;
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

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

.page-home .sync-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--dark-brown);
  font-weight: 500;
  line-height: 1.6;
}

.page-home .sync-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-orange);
}

.page-home .sync-media img {
  box-shadow: 0 18px 50px rgba(31, 23, 16, 0.16);
  border: 1px solid rgba(31, 23, 16, 0.14);
}

.page-home .guide-section {
  background:
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(108, 74, 140, 0.15), transparent 65%),
    var(--deep-space);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-home .guide-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.page-home .guide-head h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-on-dark);
  margin: 0.25rem 0 1rem;
}

.page-home .guide-head p {
  color: rgba(232, 232, 232, 0.75);
  line-height: 1.7;
  margin: 0;
}

.page-home .guide-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .guide-grid li {
  display: flex;
}

.page-home .guide-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 1.4rem 1.5rem;
  box-sizing: border-box;
  background: rgba(30, 39, 73, 0.7);
  border: 1px solid rgba(224, 224, 224, 0.16);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-on-dark);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.page-home .guide-link:hover,
.page-home .guide-link:focus-visible {
  border-color: var(--red-orange);
  background: rgba(30, 39, 73, 1);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.page-home .guide-index {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.page-home .guide-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.page-home .guide-desc {
  font-size: 0.82rem;
  color: rgba(232, 232, 232, 0.58);
}

@media (min-width: 600px) {
  .page-home .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  }
}

@media (min-width: 720px) {
  .page-home .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand side"
      "main main"
      "strip update";
    gap: 1.25rem;
  }

  .page-home .hero-brand-block { grid-area: brand; }
  .page-home .hero-main-card { grid-area: main; }
  .page-home .hero-side-card { grid-area: side; }
  .page-home .hero-strip { grid-area: strip; }
  .page-home .hero-update { grid-area: update; }

  .page-home .hero-strip {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.6rem;
  }

  .page-home .hero-rotated {
    display: block;
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: rgba(232, 232, 232, 0.5);
    position: absolute;
    right: 0.25rem;
    top: 1rem;
  }

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

@media (min-width: 900px) {
  .page-home .update-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

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

@media (min-width: 1000px) {
  .page-home .hero-collage {
    grid-template-columns: 0.85fr 1.5fr 0.85fr;
    grid-template-areas:
      "brand main side"
      "strip main update";
    gap: 1.5rem;
  }

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