.page-home {
  --home-hover-lift: 0 14px 30px rgba(0, 0, 0, .45);
  --home-glow-teal: rgba(0, 224, 160, .32);
  --home-glow-orange: rgba(255, 109, 63, .28);
  --home-glow-yellow: rgba(255, 209, 102, .26);
  --home-glow-purple: rgba(185, 103, 255, .30);
  --home-section-radius: 20px;
  --home-card-media-h: 132px;
  background: var(--bg-deep-space);
  color: var(--text-primary);
}

.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.page-home .breadcrumb a:hover {
  color: var(--card-teal);
}

.page-home .section {
  padding: 40px 0 52px;
}

.page-home .section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--accent-purple);
}

.page-home .section-head {
  margin-bottom: 28px;
}

.page-home .section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.02em;
  color: var(--text-primary);
}

.page-home .section-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 760px;
}

.page-home .hero-tile-section {
  position: relative;
  padding-top: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(28, 42, 74, .72) 0%, rgba(23, 26, 35, .92) 46%, rgba(23, 26, 35, 1) 100%);
}

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

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

.page-home .page-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--status-updating);
}

.page-home h1 {
  margin: 0;
  max-width: 980px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--text-primary);
}

.page-home .hero-sub {
  margin: 14px 0 26px;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-home .hero-sub strong {
  font-family: var(--font-data);
  color: var(--status-green);
}

.page-home .tile-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 112px;
  padding: 18px;
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.page-home .tile:hover,
.page-home .tile:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--home-hover-lift);
}

.page-home .tile--orange {
  background: var(--card-orange);
  color: #171a23;
}

.page-home .tile--teal {
  background: var(--card-teal);
  color: #142e25;
}

.page-home .tile--yellow {
  background: var(--card-yellow);
  color: #332700;
}

.page-home .tile--blue {
  background: var(--bg-blue-tech);
  color: var(--text-primary);
}

.page-home .tile--graphite {
  background: var(--bg-graphite);
  color: var(--text-primary);
}

.page-home .tile-count {
  display: block;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

.page-home .tile-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.25;
}

.page-home .tile-notes {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  opacity: .78;
  max-width: 92%;
}

.page-home .tile .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.page-home .latest-section {
  background:
    linear-gradient(180deg, var(--bg-blue-tech) 0%, var(--bg-deep-space) 100%);
}

.page-home .latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .latest-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.page-home .latest-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: var(--home-hover-lift);
}

.page-home .card-media {
  position: relative;
  height: var(--home-card-media-h);
  overflow: hidden;
  background: var(--bg-graphite);
}

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

.page-home .card-media--pattern {
  background:
    linear-gradient(160deg, rgba(185, 103, 255, .18) 0%, rgba(0, 224, 160, .10) 60%);
}

.page-home .p-card-line {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent-purple);
  opacity: .36;
}

.page-home .p-card-line.l1 {
  top: 30px;
  width: 58%;
}

.page-home .p-card-line.l2 {
  top: 52px;
  right: 40px;
  background: var(--card-teal);
}

.page-home .p-card-line.l3 {
  top: 74px;
  width: 78%;
  background: var(--card-orange);
  opacity: .42;
}

.page-home .card-batch {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.page-home .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}

.page-home .card-cat {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--status-updating);
  letter-spacing: .04em;
}

.page-home .card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-primary);
}

.page-home .hot-section {
  background: var(--bg-graphite);
}

.page-home .hot-wrap {
  position: relative;
  display: grid;
  gap: 18px;
}

.page-home .hot-bg-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: .5;
  display: block;
}

.page-home .hot-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 6px;
}

.page-home .metric-item {
  display: grid;
  grid-template-columns: 34px 1fr 40px 22px;
  align-items: center;
  gap: 8px;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  transition: background var(--ease);
}

.page-home .metric-item:hover {
  background: rgba(185, 103, 255, .12);
}

.page-home .metric-item .seq-num {
  font-family: var(--font-data);
  color: var(--accent-purple);
  font-weight: 600;
}

.page-home .metric-name {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
}

.page-home .metric-bar {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.page-home .metric-bar-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
}

.page-home .metric-bar-fill--teal {
  background: var(--card-teal);
}

.page-home .metric-bar-fill--orange {
  background: var(--card-orange);
}

.page-home .metric-bar-fill--yellow {
  background: var(--card-yellow);
}

.page-home .metric-value {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}

.page-home .rank-change {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.page-home .rank-up {
  color: var(--status-green);
}

.page-home .rank-down {
  color: var(--status-red);
}

.page-home .tag-section {
  background: var(--bg-deep-space);
}

.page-home .tag-cloud-wrap {
  position: relative;
  padding: 24px;
  border-radius: var(--home-section-radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(28, 42, 74, .78) 0%, rgba(31, 36, 46, .84) 54%, rgba(23, 26, 35, .92) 100%);
  overflow: hidden;
}

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

.page-home .tag-cloud-wrap .section-head {
  position: relative;
  z-index: 1;
}

.page-home .tag-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.page-home .tag:hover,
.page-home .tag:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
  box-shadow: 0 0 22px var(--home-glow-purple);
}

.page-home .tag--hot {
  font-size: 18px;
  background: var(--bg-blue-tech);
  color: var(--text-primary);
}

.page-home .tag--warm {
  font-size: 15px;
  border-color: rgba(255, 209, 102, .4);
}

.page-home .tag--cool {
  font-size: 12px;
  color: var(--text-secondary);
}

.page-home .tag-branch {
  font-family: var(--font-data);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  color: var(--card-teal);
}

.page-home .batch-section {
  background:
    linear-gradient(165deg, var(--bg-graphite) 0%, var(--bg-deep-space) 64%, var(--bg-blue-tech) 100%);
}

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--card-teal), var(--card-orange));
  opacity: .55;
}

.page-home .timeline-item {
  position: relative;
  padding-left: 40px;
}

.page-home .timeline-batch {
  position: absolute;
  left: 0;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--card-teal);
  font-size: 12px;
  color: var(--card-teal);
  z-index: 2;
}

.page-home .timeline-item--current .timeline-batch {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 18px var(--home-glow-purple);
}

.page-home .timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.page-home .timeline-item--current .timeline-card {
  border-color: rgba(185, 103, 255, .55);
  box-shadow: 0 0 26px rgba(185, 103, 255, .18);
}

.page-home .timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-home .timeline-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--text-primary);
}

.page-home .timeline-desc {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-home .timeline-count {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 224, 160, .12);
  color: var(--card-teal);
  font-size: 12px;
}

.page-home .quick-index {
  padding: 18px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.page-home .quick-index-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .quick-index-title {
  margin: 0;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-muted);
}

.page-home .index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .index-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-graphite);
  border: 1px solid var(--border);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.page-home .index-link:hover,
.page-home .index-link:focus-visible {
  color: #171a23;
  background: var(--card-teal);
  border-color: var(--card-teal);
}

.page-home .index-link--year {
  min-width: 54px;
}

.page-home .index-link--active {
  color: #171a23;
  background: var(--card-yellow);
  border-color: var(--card-yellow);
}

.page-home .index-year {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.page-home .to-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 13px;
  color: var(--accent-purple);
  text-decoration: none;
}

.page-home .to-top-link:hover {
  color: var(--status-updating);
}

@media (min-width: 640px) {
  .page-home .tile-matrix {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 100px;
    gap: 16px;
  }

  .page-home .tile {
    min-height: 0;
  }

  .page-home .tile--brand-diff {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
  }

  .page-home .tile--part-compat {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
  }

  .page-home .tile--tier {
    grid-column: 5;
    grid-row: 1;
  }

  .page-home .tile--power-low {
    grid-column: 6;
    grid-row: 1;
  }

  .page-home .tile--power-mid {
    grid-column: 5;
    grid-row: 2;
  }

  .page-home .tile--power-high {
    grid-column: 6;
    grid-row: 2;
  }

  .page-home .tile--adapt-download {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
  }

  .page-home .tile--years {
    grid-column: 5;
    grid-row: 3;
  }

  .page-home .tile--io {
    grid-column: 6;
    grid-row: 3;
  }

  .page-home .tile--help {
    grid-column: 1;
    grid-row: 4;
  }

  .page-home .tile--coverage {
    grid-column: 2;
    grid-row: 4;
  }

  .page-home .tile--tierlist {
    grid-column: 5 / 7;
    grid-row: 4;
  }

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

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

  .page-home .hot-bg-img {
    max-height: 220px;
  }

  .page-home .metric-item {
    grid-template-columns: 36px 2fr 1.4fr 32px 34px;
  }
}

@media (min-width: 960px) {
  .page-home .tile-matrix {
    grid-auto-rows: 116px;
    gap: 18px;
  }

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

  .page-home .hot-wrap {
    grid-template-columns: 300px 1fr;
    align-items: center;
  }

  .page-home .hot-bg-img {
    height: 100%;
    max-height: 320px;
    align-self: stretch;
  }

  .page-home .quick-index {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    width: 54px;
    padding: 10px 6px;
    border-radius: 14px;
    border: 1px solid rgba(185, 103, 255, .42);
    background: rgba(23, 26, 35, .78);
    backdrop-filter: blur(8px);
  }

  .page-home .quick-index-inner {
    align-items: center;
    gap: 10px;
  }

  .page-home .quick-index-title {
    font-size: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 2px;
  }

  .page-home .index-bar {
    flex-direction: column;
    max-height: 52vh;
    overflow-y: auto;
    gap: 4px;
  }

  .page-home .index-link {
    min-width: 28px;
    height: 24px;
    padding: 0 4px;
    font-size: 11px;
  }

  .page-home .index-link--year {
    min-width: 36px;
    height: 24px;
    font-size: 10px;
  }

  .page-home .index-year {
    flex-direction: column;
    gap: 4px;
  }

  .page-home .to-top-link {
    font-size: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-self: center;
    margin-top: 2px;
  }

  .page-home .to-top-link::-moz-selection {
    background: transparent;
  }
}

@media (min-width: 1280px) {
  .page-home .section {
    padding: 56px 0 68px;
  }

  .page-home .latest-grid {
    gap: 20px;
  }

  .page-home .tag-group {
    gap: 16px;
  }

  .page-home .timeline {
    width: 100%;
    max-width: 860px;
  }
}

.page-home .tag:focus-visible,
.page-home .tile:focus-visible,
.page-home .index-link:focus-visible,
.page-home .to-top-link:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

.page-home .badge {
  font-family: var(--font-data);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
  text-transform: none;
}

.page-home .badge--new {
  background: rgba(255, 209, 102, .16);
  color: var(--card-yellow);
  border: 1px solid rgba(255, 209, 102, .4);
}

.page-home .badge--updating {
  background: rgba(0, 229, 255, .14);
  color: var(--status-updating);
  border: 1px solid rgba(0, 229, 255, .4);
}

.page-home .badge--ok {
  background: rgba(0, 255, 136, .14);
  color: var(--status-green);
  border: 1px solid rgba(0, 255, 136, .35);
}

.page-home .badge--archived {
  background: rgba(138, 143, 154, .16);
  color: var(--status-archived);
  border: 1px solid rgba(138, 143, 154, .34);
}
