.page-home {
  --home-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --home-glow: 0 0 18px rgba(0, 255, 136, 0.35);
  background: var(--bg-ink);
}

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

.page-home .section__header--split {
  align-items: flex-end;
}

.page-home .section__index {
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.page-home .hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-ink);
  isolation: isolate;
}

.page-home .hero__media,
.page-home .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .hero__bg {
  object-fit: cover;
  opacity: 0.5;
}

.page-home .hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.86) 0%, rgba(10, 17, 32, 0.55) 48%, rgba(10, 17, 32, 0.92) 100%);
  z-index: 1;
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
}

.page-home .hero__layout {
  display: grid;
  gap: 20px;
  align-items: center;
}

.page-home .hero__copy {
  padding: 18px 0;
}

.page-home .hero__eyebrow {
  color: var(--primary);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.18;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.page-home .hero__lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

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

.page-home .hero__figure {
  margin: 6px 0 0;
  border: 1px solid var(--border-line);
  background: var(--surface);
  box-shadow: var(--home-shadow);
  position: relative;
}

.page-home .hero__dashboard-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.page-home .hero__figcap {
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 10px 14px;
  border-top: 1px solid var(--border-line);
}

.page-home .hero__speedlines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}

.page-home .hero__speedlines path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  opacity: 0.45;
  stroke-dasharray: 4 8;
  animation: page-home-dash 3s linear infinite;
}

.page-home .hero__corner {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px solid var(--primary);
  z-index: 3;
  opacity: 0.9;
}

.page-home .hero__corner--tl {
  top: 18px;
  left: 18px;
  border-right: none;
  border-bottom: none;
}

.page-home .hero__corner--br {
  bottom: 18px;
  right: 18px;
  border-left: none;
  border-top: none;
}

.page-home .board {
  position: relative;
  background: var(--bg-ink);
  padding-bottom: 48px;
}

.page-home .board .container {
  padding-top: 44px;
}

.page-home .board__ticker {
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(10, 17, 32, 0.92);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.page-home .board__ticker-item {
  font-family: var(--font-data);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.page-home .board__ticker-item:first-child {
  color: var(--primary);
  font-weight: 700;
}

.page-home .board__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.page-home .data-card__unit {
  font-size: 0.55em;
  color: var(--primary);
  margin-left: 4px;
  vertical-align: 0.2em;
}

.page-home .board__rounds {
  display: grid;
  gap: 24px;
  border: 1px solid var(--border-line);
  background: var(--bg-deep);
  padding: 20px;
  box-shadow: var(--home-shadow);
}

.page-home .round-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-home .round-switch__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.page-home .round-switch__label {
  padding: 8px 16px;
  border: 1px solid var(--border-line);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-home .round-switch__label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-home .round-switch__input:checked + .round-switch__label {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-ink);
  box-shadow: var(--home-glow);
}

.page-home .round-switch__input:focus-visible + .round-switch__label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-home .round-panel {
  display: none;
  border-top: 1px solid var(--border-line);
  padding-top: 18px;
  width: 100%;
}

.page-home .round-switch__input#round-26:checked ~ .round-panel--26,
.page-home .round-switch__input#round-27:checked ~ .round-panel--27,
.page-home .round-switch__input#round-28:checked ~ .round-panel--28 {
  display: block;
  animation: page-home-panel-in 0.3s ease;
}

.page-home .round-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .round-panel__tag {
  background: var(--primary);
  color: var(--bg-ink);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 8px;
  letter-spacing: 0.06em;
}

.page-home .round-panel__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
}

.page-home .round-panel__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .round-panel__list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .round-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  transform: rotate(45deg);
}

.page-home .board__chart {
  border-top: 1px solid var(--border-line);
  padding-top: 18px;
}

.page-home .bar-chart {
  width: 100%;
  height: 160px;
  overflow: visible;
}

.page-home .bar-chart__axis {
  stroke: var(--border-line);
  stroke-width: 1;
}

.page-home .bar-chart__grid-line {
  stroke: rgba(45, 74, 107, 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.page-home .bar-chart__bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: page-home-bar-in 0.6s ease both;
}

.page-home .bar-chart__bar--1 {
  fill: var(--primary);
}

.page-home .bar-chart__bar--2 {
  fill: var(--accent-violet);
}

.page-home .bar-chart__bar--3 {
  fill: var(--accent-orange);
}

.page-home .bar-chart__label {
  fill: var(--text-muted);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 11px;
  text-anchor: middle;
}

.page-home .h2h {
  position: relative;
  padding-bottom: 48px;
}

.page-home .h2h__intro {
  max-width: 720px;
  margin-bottom: 32px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .h2h__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-left: 20px;
  margin-bottom: 28px;
}

.page-home .h2h__line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent-violet));
  opacity: 0.6;
}

.page-home .h2h__node {
  position: relative;
  padding: 0 0 0 26px;
  border-left: 3px solid var(--border-line);
  margin-left: 8px;
}

.page-home .h2h__node::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--primary);
  background: var(--bg-ink);
  transform: rotate(45deg);
}

.page-home .h2h__node--active::before {
  background: var(--primary);
  box-shadow: var(--home-glow);
}

.page-home .h2h__year {
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-light);
}

.page-home .h2h__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: var(--primary);
  margin: 4px 0 6px;
}

.page-home .h2h__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

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

.page-home .hub {
  background: var(--bg-ink);
  padding-bottom: 48px;
}

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

.page-home .hub__media {
  margin: 0;
  border: 1px solid var(--border-line);
  background: var(--surface);
  box-shadow: var(--home-shadow);
}

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

.page-home .hub__media figcaption {
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 10px 14px;
  border-top: 1px solid var(--border-line);
}

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

.page-home .hub__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-home .hub__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--primary);
  transform: rotate(45deg);
  margin-top: 8px;
}

.page-home .hub__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.page-home .hub__metric {
  border: 1px solid var(--border-line);
  background: var(--surface);
  padding: 14px 12px;
}

.page-home .hub__metric-value {
  display: block;
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: var(--primary);
}

.page-home .hub__metric-value span {
  color: var(--accent-orange);
}

.page-home .hub__metric-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-home .hub__link {
  margin-top: 4px;
}

.page-home .round-update {
  position: relative;
  padding-bottom: 48px;
}

.page-home .round-update__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .update-card {
  border: 1px solid var(--border-line);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--home-shadow);
}

.page-home .update-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.page-home .update-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-light);
}

.page-home .update-card__bar {
  height: 6px;
  background: var(--bg-ink);
  border: 1px solid var(--border-line);
  overflow: hidden;
  margin-bottom: 12px;
}

.page-home .update-card__bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
}

.page-home .update-card__meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.page-home .round-update__note {
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  background: rgba(0, 255, 136, 0.06);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
}

.page-home .round-update__links {
  margin-top: 14px;
}

.page-home .round-update__link {
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 136, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.page-home .round-update__link:hover {
  border-color: var(--primary);
}

.page-home .quick-login {
  background: var(--bg-ink);
  padding-bottom: 64px;
}

.page-home .quick-login__layout {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.page-home .login-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 18px;
}

.page-home .login-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border-line);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--home-shadow);
}

.page-home .login-step__num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  color: var(--primary);
}

.page-home .login-step__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0 0 6px;
}

.page-home .login-step__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

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

.page-home .quick-login__media {
  margin: 0;
  border: 1px solid var(--border-line);
  box-shadow: var(--home-shadow);
}

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

.page-home .quick-login__caption {
  font-family: var(--font-data);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 10px 14px;
  border-top: 1px solid var(--border-line);
}

@keyframes page-home-dash {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes page-home-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-home-bar-in {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    min-height: 88vh;
  }

  .page-home .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .page-home .hero__title {
    font-size: 54px;
  }

  .page-home .hero__lead {
    font-size: 16px;
  }

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

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

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

  .page-home .bar-chart {
    height: 180px;
  }

  .page-home .h2h__track {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-left: 0;
  }

  .page-home .h2h__line {
    top: 5px;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  }

  .page-home .h2h__node {
    padding: 20px 16px 0 0;
    border-left: none;
    border-top: 3px solid var(--border-line);
    margin-left: 0;
  }

  .page-home .h2h__node::before {
    left: 0;
    top: -7px;
  }

  .page-home .hub__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
  }

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

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

  .page-home .quick-login__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
  }

  .page-home .login-step {
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .page-home .hero__copy {
    padding-left: 12px;
  }

  .page-home .board__rounds {
    gap: 48px;
    padding: 28px;
  }

  .page-home .hub__layout {
    gap: 64px;
  }

  .page-home .quick-login__layout {
    padding-right: 24px;
  }
}
