.page-home {
  --section-pad: clamp(64px, 8vw, 120px);
  --home-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ===== Hero ===== */
.page-home .hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(840px, 92vh);
  padding: clamp(72px, 10vh, 120px) 0 clamp(64px, 8vh, 96px);
  background: var(--bg-deep);
  overflow: hidden;
}

.page-home .hero-photo,
.page-home .hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.96) 0%, rgba(10, 22, 40, 0.78) 46%, rgba(10, 22, 40, 0.56) 100%);
}

.page-home .hero-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
  width: 100%;
}

.page-home .hero-copy {
  max-width: 720px;
}

.page-home .breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.page-home .breadcrumbs a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(68, 255, 176, 0.4);
}

.page-home .breadcrumbs a:hover {
  border-bottom-color: var(--accent-green);
}

.page-home .breadcrumbs-sep {
  color: var(--divider);
}

.page-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
}

.page-home .hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.page-home .hero-title {
  margin: 0;
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.page-home .hero-bigline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.18em;
}

.page-home .hero-slogan {
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: clamp(46px, 8.5vw, 104px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.page-home .hero-year {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: clamp(42px, 7.5vw, 88px);
  font-weight: 600;
  line-height: 1;
}

.page-home .hero-desc {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ===== Hero dashboard ===== */
.page-home .hero-dashboard {
  position: relative;
}

.page-home .home-panel {
  background: rgba(16, 31, 54, 0.9);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}

.page-home .hero-panel {
  padding: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.page-home .panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .panel-label {
  color: var(--text-high);
  font-size: 15px;
  font-weight: 600;
}

.page-home .refresh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(68, 255, 176, 0.6);
  animation: homeLive 1.6s var(--home-ease) infinite;
}

.page-home .refresh-ring {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg-deep) 55%, transparent 56%),
    conic-gradient(var(--accent-green) calc(var(--count, 30) * 3.333%), var(--divider) 0);
}

.page-home .ring-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-green);
  line-height: 1;
}

.page-home .hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-home .metric {
  padding: 14px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: rgba(10, 22, 40, 0.72);
}

.page-home .metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.page-home .metric-value {
  display: block;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.page-home .metric-text {
  display: block;
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-home .hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 2px solid var(--divider);
  border-radius: 12px;
  transform: translateX(-50%);
}

.page-home .hero-scroll-indicator::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent-green);
  transform: translateX(-50%);
  animation: homeScroll 1.8s var(--home-ease) infinite;
}

/* ===== Section common ===== */
.page-home .overview,
.page-home .dual,
.page-home .archive,
.page-home .guide,
.page-home .updates {
  position: relative;
  padding-block: var(--section-pad);
}

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

.page-home .section-desc {
  max-width: 640px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* ===== 001 Overview ===== */
.page-home .overview {
  background: var(--bg-deep);
}

.page-home .overview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-green) 30%, var(--divider) 70%, transparent 100%);
  opacity: 0.6;
}

.page-home .overview-grid {
  display: grid;
  gap: 28px;
}

.page-home .overview-left {
  order: 2;
}

.page-home .image-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .overview-right {
  display: grid;
  gap: 20px;
}

.page-home .split-panel {
  padding: 18px;
}

.page-home .split-panel .data-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.page-home .stat-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-high);
  font-size: 14px;
  text-align: left;
}

.page-home .stat-table th {
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.page-home .stat-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(38, 69, 102, 0.5);
}

.page-home .stat-table tbody tr:last-child td {
  border-bottom: none;
}

.page-home .stat-table .num {
  color: var(--text-high);
  font-family: var(--font-mono);
  font-weight: 600;
}

.page-home .highlight-num {
  color: var(--accent-green) !important;
}

/* ===== 002 Dual ===== */
.page-home .dual {
  background: var(--bg-panel);
  overflow: hidden;
}

.page-home .dual-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .dual-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-home .dual-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.page-home .dual-content {
  max-width: 680px;
}

.page-home .dual-num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
}

.page-home .dual-timing {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 600;
  line-height: 1;
}

.page-home .dual-features {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.page-home .feature-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-muted);
}

.page-home .feature-item .num {
  width: 120px;
  color: var(--text-high);
  font-family: var(--font-mono);
  font-weight: 600;
}

.page-home .dual-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* ===== 003 Archive ===== */
.page-home .archive {
  background: var(--bg-deep);
}

.page-home .archive-body {
  display: grid;
  gap: 32px;
}

.page-home .archive-img {
  margin: 0;
}

.page-home .archive-timeline-wrap {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-home .archive-search-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.page-home .archive-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.page-home .archive-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-orange), var(--divider));
}

.page-home .archive-node {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  color: var(--text-high);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s var(--home-ease), border-color 0.2s var(--home-ease), background 0.2s var(--home-ease);
}

.page-home .archive-node::before {
  content: "";
  position: absolute;
  left: -19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  background: var(--bg-deep);
}

.page-home .archive-node:hover {
  transform: translateX(6px);
  border-color: var(--accent-orange);
  background: rgba(255, 166, 48, 0.08);
}

.page-home .archive-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ===== 004 Guide ===== */
.page-home .guide {
  background: var(--bg-panel);
}

.page-home .guide-wrap {
  display: grid;
  gap: 36px;
}

.page-home .guide-steps {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guideStep;
}

.page-home .guide-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
  counter-increment: guideStep;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.page-home .guide-steps li::before {
  content: counter(guideStep, decimal-leading-zero);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 28px;
}

.page-home .guide-steps a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(68, 255, 176, 0.4);
}

.page-home .guide-steps a:hover {
  border-bottom-color: var(--accent-green);
}

.page-home .guide-panel .home-panel {
  padding: 22px;
}

.page-home .guide-panel h3 {
  margin: 0 0 18px;
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 20px;
}

.page-home .guide-panel ul {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.page-home .guide-panel ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.page-home .guide-panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 2px;
  background: var(--accent-green);
}

/* ===== 005 Updates ===== */
.page-home .updates {
  background: var(--bg-deep);
}

.page-home .updates-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.page-home .updates-list {
  display: grid;
  gap: 16px;
}

.page-home .update-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: rgba(16, 31, 54, 0.55);
  text-decoration: none;
  transition: background 0.2s var(--home-ease), border-color 0.2s var(--home-ease), box-shadow 0.2s var(--home-ease);
}

.page-home .update-item:hover {
  background: var(--white-layer);
  border-color: rgba(68, 255, 176, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.page-home .update-tag {
  grid-column: 1;
  grid-row: 1;
}

.page-home .update-item h3 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
}

.page-home .update-item p {
  grid-column: 1 / span 2;
  grid-row: 3;
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .update-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent-green);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s var(--home-ease);
}

.page-home .update-item:hover .update-arrow {
  transform: translateX(6px);
}

/* ===== Footnote strip ===== */
.page-home .footnote-strip {
  padding-block: 28px;
  border-top: 1px solid var(--divider);
  background: #08111F;
}

.page-home .footnote-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.page-home .footnote-item .footnote-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.page-home .footnote-item span {
  color: var(--text-high);
  font-size: 14px;
  word-break: break-word;
}

/* ===== Keyframes ===== */
@keyframes homeScroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.8;
  }

  70% {
    transform: translate(-50%, 14px);
    opacity: 0.1;
  }

  100% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
}

@keyframes homeLive {
  0% {
    box-shadow: 0 0 0 0 rgba(68, 255, 176, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(68, 255, 176, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(68, 255, 176, 0);
  }
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .page-home .hero-body {
    gap: 40px;
  }

  .page-home .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .dual-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-home .feature-item {
    padding-bottom: 0;
    border-bottom: none;
  }

  .page-home .guide-wrap {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .page-home .update-item {
    grid-template-columns: auto 1fr auto;
    column-gap: 20px;
  }

  .page-home .update-tag {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .page-home .update-item h3 {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .update-item p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .page-home .update-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

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

@media (min-width: 1024px) {
  .page-home .hero-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    align-items: center;
  }

  .page-home .overview-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .page-home .overview-left {
    order: 1;
  }

  .page-home .overview-right {
    order: 2;
  }

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

  .page-home .archive-body {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.page-home {
  --count: transparent;
}
