.page-home {
  --page-space: clamp(40px, 5vw, 92px);
  --page-zone-a: var(--deep-navy);
  --page-zone-b: var(--charcoal);
  background-color: var(--deep-navy);
  color: var(--text-high);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .content-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.page-home__bridge {
  padding: var(--space-4) 0;
}

.page-home__zone-a {
  background-color: var(--page-zone-a);
}

.page-home__zone-b {
  background-color: var(--page-zone-b);
}

.page-home a {
  color: inherit;
  text-decoration-color: var(--volt-green);
  text-underline-offset: 4px;
}

.page-home .section {
  padding-top: var(--page-space);
  padding-bottom: var(--page-space);
}

.page-home .section__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: var(--space-2);
  color: var(--text-high);
  text-transform: none;
}

.page-home .section__desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-top: var(--space-3);
  max-width: 720px;
}

.page-home .section__header {
  margin-bottom: var(--space-5);
}

.page-home .section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--volt-green);
  text-transform: uppercase;
}

.page-home .section-label::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  background-color: var(--volt-green);
}

/* ===== Hero ===== */
.page-home__hero-section {
  background-image:
    repeating-linear-gradient(0deg, rgba(163, 230, 53, 0.04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(163, 230, 53, 0.04) 0 1px, transparent 1px 32px);
  background-color: var(--page-zone-a);
  padding-top: calc(var(--space-6) - 8px);
  padding-bottom: var(--page-space);
}

.page-home__hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.page-home__hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.page-home__main-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text-high);
  margin: 0;
  max-width: 560px;
}

.page-home__hero-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0;
  border-left: 2px solid var(--volt-green);
  padding-left: var(--space-3);
}

.page-home__hero-index {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 560px;
}

.page-home__hero-index-item {
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
}

.page-home__hero-index-item a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-high);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.page-home__hero-index-item a::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--volt-green);
  flex: 0 0 auto;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-home__hero-index-item a:hover,
.page-home__hero-index-item a:focus-visible {
  background-color: rgba(163, 230, 53, 0.06);
  color: var(--volt-green);
  padding-left: var(--space-2);
  outline: none;
}

/* Hero stage */
.page-home__hero-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(30, 41, 59, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background-color: var(--charcoal);
  display: flex;
  align-items: flex-end;
  transform: rotate(-0.5deg);
}

.page-home__hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  display: block;
}

.page-home__hero-stage::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 15, 31, 0.62) 0%, rgba(10, 15, 31, 0.2) 48%, rgba(10, 15, 31, 0.92) 100%);
  pointer-events: none;
}

.page-home__hero-stage-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.page-home__hero-h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text-high);
  margin: 0 0 var(--space-3);
}

.page-home__hero-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-mid);
  background: rgba(10, 15, 31, 0.72);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  margin-bottom: var(--space-4);
}

.page-home__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--electric-orange);
  flex: 0 0 auto;
  animation: page-home-pulse 1.8s ease-in-out infinite;
}

@keyframes page-home-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.45);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(251, 146, 60, 0);
  }
}

.page-home__hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.page-home__hero-stat {
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(163, 230, 53, 0.22);
  border-radius: 8px;
  padding: var(--space-3) var(--space-2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.page-home__hero-stat:hover {
  border-color: rgba(163, 230, 53, 0.55);
  background: rgba(30, 41, 59, 0.9);
}

.page-home__hero-num {
  display: block;
  font-family: var(--font-data);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--volt-green);
}

.page-home__hero-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-mid);
}

/* ===== Cards section ===== */
.page-home__cards,
.page-home__goals,
.page-home__weekend,
.page-home__ranking,
.page-home__steps {
  position: relative;
}

.page-home__cards-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.page-home__cards-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--surface-mist);
  background-color: var(--deep-navy);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.page-home__cards-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home__cards-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.page-home__cards-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
  color: var(--text-high);
}

.page-home__cards-copy {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  margin: 0;
  max-width: 520px;
}

/* Timeline */
.page-home__tl {
  background: var(--deep-navy);
  border: 1px solid var(--surface-mist);
  border-radius: 10px;
  padding: var(--space-4);
  width: 100%;
  max-width: 560px;
}

.page-home__tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-high);
  margin-bottom: var(--space-3);
}

.page-home__tl-club {
  font-weight: 500;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home__tl-club--away {
  text-align: right;
}

.page-home__tl-score {
  font-size: 20px;
  font-weight: 700;
  color: var(--volt-green);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.page-home__tl-groups {
  display: grid;
  gap: 6px;
}

.page-home__tl-lane {
  position: relative;
  height: 22px;
  background: rgba(30, 41, 59, 0.55);
  border-radius: 4px;
}

.page-home__tl-lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(163, 230, 53, 0.22);
}

.page-home__tl-event {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  cursor: default;
  z-index: 2;
}

.page-home__tl-event--yellow {
  background-color: var(--yellow-card);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.14);
}

.page-home__tl-event--red {
  background-color: var(--red-card);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16);
}

.page-home__tl-event::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface-mist);
  color: var(--text-high);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 9px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
  border: 1px solid rgba(163, 230, 53, 0.18);
}

.page-home__tl-event:hover::after,
.page-home__tl-event:focus-within::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-home__tl-scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--text-mid);
}

.page-home__tl-tip {
  margin: var(--space-2) 0 0;
  font-size: 12px;
  color: var(--text-mid);
  text-align: right;
}

/* ===== Goals section ===== */
.page-home__goals-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.page-home__goals-graphic {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--surface-mist);
  background: var(--charcoal);
  min-height: 280px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  aspect-ratio: 3 / 2;
}

.page-home__goals-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  display: block;
}

.page-home__goals-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.page-home__goals-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.page-home__goals-side-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
  color: var(--text-high);
}

.page-home__goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.page-home__goals-list li {
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  padding-left: var(--space-4);
}

.page-home__goals-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 14px;
  height: 2px;
  background-color: var(--volt-green);
}

.page-home__goals-note {
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mid);
  border: 1px solid var(--surface-mist);
  border-radius: 6px;
  padding: var(--space-2) var(--space-3);
  background: rgba(17, 24, 39, 0.7);
}

/* ===== Weekend section ===== */
.page-home__weekend-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.page-home__weekend-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.page-home__weekend-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
  color: var(--text-high);
}

.page-home__weekend-copy {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  margin: 0;
  max-width: 520px;
}

.page-home__feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.page-home__feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-high);
  background: var(--surface-mist);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
}

.page-home__feature-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--volt-green);
  border-radius: 50%;
}

.page-home__weekend-phone {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--surface-mist);
  background: var(--deep-navy);
  padding: 12px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
  transform: rotate(0.8deg);
}

.page-home__weekend-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

/* ===== Ranking section ===== */
.page-home__league-scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-mist) transparent;
  max-width: 100%;
}

.page-home__league-tag {
  flex: 0 0 auto;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--charcoal);
  border: 1px solid var(--surface-mist);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home__league-tag:hover {
  border-color: rgba(163, 230, 53, 0.4);
  color: var(--text-high);
}

.page-home__league-tag--active {
  background: var(--volt-green);
  border-color: var(--volt-green);
  color: var(--deep-navy);
  font-weight: 700;
}

.page-home__rankbox {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--surface-mist);
  border-radius: 12px;
  padding: var(--space-4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  transform: rotate(-0.4deg);
}

.page-home__rank-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--surface-mist);
  border-radius: 8px;
  background: var(--deep-navy);
  padding: var(--space-2);
  margin-bottom: var(--space-4);
}

.page-home__rank-search-pre {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-mid);
  border: 1px solid var(--surface-mist);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}

.page-home__rank-search-q {
  flex: 1 1 auto;
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--text-high);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
}

.page-home__rank-search-btn {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  background: var(--volt-green);
  color: var(--deep-navy);
  border-radius: 6px;
  padding: 8px 16px;
  white-space: nowrap;
}

.page-home__rank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.page-home__rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: rank;
}

.page-home__rank-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--charcoal);
  border-radius: 6px;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-high);
  transition: background-color 0.15s ease;
}

.page-home__rank-item:hover {
  background: var(--surface-mist);
}

.page-home__rank-pos {
  font-size: 12px;
  color: var(--volt-green);
  min-width: 24px;
}

.page-home__rank-pts {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--volt-green);
}

.page-home__rank-note {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.page-home__rank-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  margin: 0;
}

/* ===== Steps section ===== */
.page-home__steps-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.page-home__step-card {
  position: relative;
  background: var(--deep-navy);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 10px;
  padding: var(--space-5) var(--space-4) var(--space-4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home__step-card:hover {
  border-color: rgba(163, 230, 53, 0.3);
  transform: translateY(-2px);
}

.page-home__step-num {
  display: inline-flex;
  font-family: var(--font-data);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--volt-green);
  margin-bottom: var(--space-3);
  text-shadow: 0 0 18px rgba(163, 230, 53, 0.24);
}

.page-home__step-title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  color: var(--text-high);
}

.page-home__step-copy {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0;
}

.page-home__step-result {
  position: relative;
  border-radius: 10px;
  border: 1px dashed rgba(163, 230, 53, 0.35);
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.08), rgba(34, 211, 238, 0.04));
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

.page-home__step-result-time {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--volt-green);
}

.page-home__step-result-copy {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0;
}

/* ===== Tablet and desktop ===== */
@media (min-width: 720px) {
  .page-home .section__title {
    font-size: 36px;
  }

  .page-home__hero-stage {
    min-height: 520px;
  }

  .page-home__hero-num {
    font-size: 32px;
  }

  .page-home__cards-layout,
  .page-home__weekend-layout,
  .page-home__goals-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-6);
  }

  .page-home__weekend-phone {
    max-width: 340px;
  }

  .page-home__rank-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .page-home__hero-content {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-6);
    align-items: stretch;
  }

  .page-home__hero-stage {
    min-height: 620px;
    order: 2;
  }

  .page-home__hero-side {
    order: 1;
  }

  .page-home__hero-stage-inner {
    padding: var(--space-6);
  }

  .page-home__main-title {
    font-size: 56px;
    letter-spacing: 0.015em;
  }

  .page-home__hero-desc {
    font-size: 16px;
  }

  .page-home__hero-num {
    font-size: 38px;
  }

  .page-home__steps-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .page-home__goals-list li {
    font-size: 15px;
  }

  .page-home__step-result {
    padding: var(--space-5);
  }
}
