.page-home {
  --home-veil-a: rgba(212, 175, 55, 0.16);
  --home-veil-b: rgba(79, 195, 247, 0.1);
  position: relative;
  color: var(--c-text);
  line-height: 1.7;
}

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

.page-home a {
  color: var(--c-gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-home a:hover {
  color: var(--c-gold);
}

.page-home a:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

.page-home .breadcrumb-wrap {
  padding-top: 24px;
}

.page-home .breadcrumb {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.page-home .home-section {
  margin-top: 56px;
  scroll-margin-top: 88px;
}

.page-home .home-hero {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.page-home .hero-copy {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--c-gold);
}

.page-home .page-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-home .home-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--c-gold-light);
  margin: 0 0 14px;
}

.page-home .page-desc {
  font-size: 0.98rem;
  color: rgba(245, 247, 250, 0.88);
  margin: 0 0 22px;
  max-width: 46em;
}

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

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.page-home .stat-item {
  border-left: 2px solid var(--c-gold);
  padding-left: 12px;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--c-gold);
}

.page-home .stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 4px;
}

.page-home .hero-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .card {
  background: linear-gradient(150deg, rgba(30, 58, 95, 0.92), rgba(18, 42, 74, 0.96));
  border: 1px solid rgba(61, 90, 128, 0.75);
  box-shadow: var(--shadow);
  padding: 22px;
}

.page-home .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.page-home .update-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-data);
}

.page-home .status-main {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--c-gold-light);
}

.page-home .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-emerald);
  box-shadow: 0 0 14px rgba(46, 139, 87, 0.75);
  margin-right: 8px;
}

.page-home .card-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-home .install-title {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 6px;
}

.page-home .install-count {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--c-data);
  margin: 0 0 14px;
}

.page-home .btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.72rem 1.2rem;
  font-size: 0.94rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.page-home .btn:active {
  transform: translateY(1px);
}

.page-home .btn-primary {
  background: linear-gradient(135deg, var(--c-gold), #b3872a);
  border: 1px solid rgba(212, 175, 55, 0.85);
  color: #0b1f3a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.22);
}

.page-home .btn-primary:hover {
  background: linear-gradient(135deg, #e2c76d, var(--c-gold));
  color: #0b1f3a;
}

.page-home .btn-outline {
  border: 1px solid var(--c-gold);
  color: var(--c-gold-light);
  background: transparent;
}

.page-home .btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--c-gold);
}

.page-home .btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
}

.page-home .section-index {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(61, 90, 128, 0.8);
  padding-bottom: 12px;
  margin-bottom: 22px;
}

.page-home .index-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--c-gold);
  line-height: 1;
}

.page-home .index-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
  color: var(--c-gold-light);
}

.page-home .index-note {
  margin-left: auto;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.page-home .distribution-wrap {
  display: grid;
  gap: 24px;
}

.page-home .scatter-card {
  padding: 18px;
}

.page-home .scatter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-home .period-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .period-switch a {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--c-muted);
  text-decoration: none;
  border: 1px solid var(--c-line);
  padding: 6px 12px;
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.page-home .period-switch a:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-light);
}

.page-home .scatter-img {
  width: 100%;
  object-fit: cover;
  background: var(--c-panel-deep);
  border: 1px solid rgba(61, 90, 128, 0.6);
}

.page-home .scatter-caption {
  font-size: 0.84rem;
  color: var(--c-muted);
  margin: 10px 0 18px;
}

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

.page-home .period-pane {
  background: rgba(4, 30, 65, 0.38);
  border: 1px solid rgba(61, 90, 128, 0.6);
  padding: 16px;
}

.page-home .period-pane h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--c-gold-light);
}

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

.page-home .hot-list li {
  display: grid;
  grid-template-columns: 54px 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(61, 90, 128, 0.4);
}

.page-home .hot-list li:last-child {
  border-bottom: 0;
}

.page-home .zone-name {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--c-muted);
}

.page-home .zone-track {
  display: block;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.page-home .zone-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-data));
}

.page-home .zone-value {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--c-gold);
  text-align: right;
}

.page-home .distribution-note {
  align-self: start;
}

.page-home .dimension-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.page-home .dimension-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px dashed rgba(61, 90, 128, 0.45);
  color: rgba(245, 247, 250, 0.9);
}

.page-home .dimension-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-emerald));
  transform: translateY(-50%) rotate(45deg);
}

.page-home .dimension-list li:last-child {
  border-bottom: 0;
}

.page-home .text-link {
  color: var(--c-data);
  text-decoration: none;
  font-weight: 500;
}

.page-home .text-link:hover {
  color: var(--c-gold);
}

.page-home .history-grid {
  display: grid;
  gap: 24px;
}

.page-home .card-title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  margin: 0 0 14px;
  color: var(--c-gold-light);
}

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

.page-home .filter-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(61, 90, 128, 0.45);
}

.page-home .filter-list li:last-child {
  border-bottom: 0;
}

.page-home .filter-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-gold);
}

.page-home .filter-desc {
  color: var(--c-muted);
  font-size: 0.9rem;
}

.page-home .range-visual {
  margin-top: 18px;
}

.page-home .range-track {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.page-home .range-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--c-emerald), var(--c-gold));
}

.page-home .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 6px;
}

.page-home .history-detail {
  align-self: start;
}

.page-home .history-detail p {
  margin: 10px 0;
  font-size: 0.96rem;
}

.page-home .trends-section {
  background:
    radial-gradient(720px 260px at 88% 8%, var(--home-veil-a), transparent 65%),
    linear-gradient(145deg, rgba(30, 58, 95, 0.72), rgba(4, 30, 65, 0.92));
  border: 1px solid rgba(61, 90, 128, 0.7);
  padding: 28px 24px;
}

.page-home .trend-panel {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 8px 0 4px;
}

.page-home .trend-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.page-home .trend-copy,
.page-home .trend-panel img {
  position: relative;
  z-index: 1;
}

.page-home .trend-status {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--c-gold);
}

.page-home .trend-copy p:last-child {
  margin-bottom: 0;
}

.page-home .trend-img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.page-home .hail-grid {
  display: grid;
  gap: 24px;
}

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

.page-home .hail-img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(61, 90, 128, 0.6);
}

.page-home .hail-text {
  margin: 0;
  font-size: 0.96rem;
}

.page-home .compatibility-card {
  align-self: start;
}

.page-home .compatibility-card h3 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  margin: 0 0 12px;
  color: var(--c-gold-light);
}

.page-home .compatibility-card details {
  border: 1px solid var(--c-line);
  background: rgba(4, 30, 65, 0.35);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.page-home .compatibility-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-gold-light);
  padding: 2px 0;
}

.page-home .compat-list {
  list-style: none;
  margin: 12px 0 2px;
  padding: 0;
}

.page-home .compat-list li {
  padding: 6px 0 6px 16px;
  border-bottom: 1px dashed rgba(61, 90, 128, 0.45);
  color: var(--c-muted);
}

.page-home .compat-list li:last-child {
  border-bottom: 0;
}

.page-home .compatibility-card .muted,
.page-home .compatibility-card .text-link {
  margin-top: 6px;
}

.page-home .update-layout {
  display: grid;
  gap: 24px;
}

.page-home .log-card h3 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  color: var(--c-gold-light);
  margin: 0 0 16px;
}

.page-home .log-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: log-step;
}

.page-home .log-steps li {
  display: flex;
  align-items: center;
  counter-increment: log-step;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(61, 90, 128, 0.45);
  color: rgba(245, 247, 250, 0.92);
}

.page-home .log-steps li::before {
  content: counter(log-step, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--c-gold);
  margin-right: 12px;
  font-size: 0.86rem;
}

.page-home .log-time {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--c-data);
  min-width: 56px;
}

.page-home .log-card details {
  border: 1px solid var(--c-line);
  background: rgba(4, 30, 65, 0.32);
  padding: 12px 16px;
}

.page-home .log-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-gold-light);
}

.page-home .detail-text {
  margin: 10px 0 2px;
  font-size: 0.92rem;
  color: var(--c-muted);
}

.page-home .log-aside {
  align-self: start;
}

.page-home .log-aside p {
  margin: 10px 0;
  font-size: 0.94rem;
}

.page-home .culture-banner {
  margin-top: 28px;
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.82), rgba(18, 42, 74, 0.96));
  border: 1px solid rgba(61, 90, 128, 0.7);
  overflow: hidden;
}

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

.page-home .culture-caption {
  padding: 20px 22px;
}

.page-home .culture-title {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  color: var(--c-gold-light);
  margin: 0 0 6px;
}

.page-home .culture-caption .muted {
  margin: 6px 0;
}

.page-home .home-trust {
  margin-top: 48px;
  margin-bottom: 28px;
  border-top: 1px solid rgba(61, 90, 128, 0.5);
  padding-top: 20px;
}

.page-home .trust-statement {
  font-size: 0.88rem;
  color: var(--c-muted);
  text-align: center;
  margin: 0;
}

.page-home .muted {
  color: var(--c-muted);
  font-size: 0.88rem;
}

.page-home .fill-33 { width: 33%; }
.page-home .fill-38 { width: 38%; }
.page-home .fill-42 { width: 42%; }
.page-home .fill-51 { width: 51%; }
.page-home .fill-55 { width: 55%; }
.page-home .fill-58 { width: 58%; }
.page-home .fill-62 { width: 62%; }
.page-home .fill-63 { width: 63%; }
.page-home .fill-66 { width: 66%; }
.page-home .fill-69 { width: 69%; }
.page-home .fill-74 { width: 74%; }
.page-home .fill-79 { width: 79%; }
.page-home .fill-84 { width: 84%; }
.page-home .fill-86 { width: 86%; }
.page-home .fill-91 { width: 91%; }

@media (min-width: 640px) {
  .page-home .home-title {
    font-size: 2.3rem;
  }

  .page-home .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .page-home .culture-banner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }

  .page-home .culture-caption {
    align-self: center;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    align-items: start;
  }

  .page-home .home-title {
    font-size: 2.85rem;
    max-width: 15em;
  }

  .page-home .distribution-wrap {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

  .page-home .period-panes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .history-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .trend-panel {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .page-home .hail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .update-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .trends-section {
    padding: 32px 32px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-section {
    margin-top: 72px;
  }

  .page-home .home-title {
    font-size: 3.2rem;
  }

  .page-home .hero-rail {
    grid-template-columns: minmax(0, 1fr);
  }
}
