.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home {
  background: var(--c-bg);
  color: var(--c-light);
  overflow-x: hidden;
}

.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding-top: 18px;
  color: var(--c-muted);
}

.page-home .breadcrumb a {
  color: var(--c-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .breadcrumb a:hover,
.page-home .breadcrumb a:focus-visible {
  color: var(--c-light);
}

.page-home .breadcrumb [aria-current="page"] {
  color: var(--c-muted);
}

.page-home .hero {
  position: relative;
  padding: 36px 0 56px;
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-gold) 0 12px,
    var(--c-blue) 12px 14px,
    transparent 14px 30px
  );
  opacity: 0.85;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: 18%;
  width: 320px;
  height: 320px;
  background: linear-gradient(
    135deg,
    transparent 49%,
    var(--c-border) 50%,
    transparent 51%
  );
  opacity: 0.3;
  pointer-events: none;
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

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

.page-home .hero__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  border-left: 3px solid var(--c-gold);
  padding-left: 12px;
  margin-bottom: 18px;
}

.page-home .hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.page-home .hero__desc {
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
  max-width: 46em;
  margin: 0 0 26px;
}

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

.page-home .hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 0;
  margin: 0;
}

.page-home .hero__stats li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .hero__stats strong {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  color: var(--c-light);
  white-space: nowrap;
}

.page-home .hero__stats span {
  font-size: 0.75rem;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-home .hero__media {
  margin: 0;
  position: relative;
  z-index: 1;
}

.page-home .hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

.page-home .hero__caption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

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

.page-home .section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  margin-bottom: 12px;
}

.page-home .section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 10px;
}

.page-home .section-sub {
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0;
}

.page-home .calendar-showcase {
  background: var(--c-dark);
  padding: 48px 0;
}

.page-home .calendar-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 -24px 26px;
  padding: 0 24px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .filter-btn {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--c-light);
  background: var(--c-bg);
  text-decoration: none;
  border: 1px solid var(--c-border);
  padding: 8px 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-home .filter-btn:hover,
.page-home .filter-btn:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

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

.page-home .date-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--c-gold);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.page-home .date-group__head h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
}

.page-home .date-group__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  white-space: nowrap;
}

.page-home .date-group:target .date-group__head h3 {
  color: var(--c-gold);
}

.page-home .calendar-showcase:has(.date-group:target) .date-group:not(:target) {
  display: none;
}

.page-home .match-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-left: 4px solid transparent;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: var(--c-light);
  text-decoration: none;
  transition: border-left-color 0.2s ease, background 0.2s ease;
}

.page-home .match-card:last-child {
  margin-bottom: 0;
}

.page-home .match-card:hover,
.page-home .match-card:focus-visible {
  border-left-color: var(--c-blue);
  background: #121212;
}

.page-home .match-card__time {
  flex: 0 0 52px;
  font-family: var(--font-mono);
  color: var(--c-gold);
}

.page-home .match-card__main {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .match-card__league {
  font-size: 0.75rem;
  color: var(--c-muted);
  letter-spacing: 0.08em;
}

.page-home .match-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .match-card .tag {
  flex: 0 0 auto;
}

.page-home .match-card__arrow {
  margin-left: auto;
  color: var(--c-gold);
}

.page-home .calendar-more {
  margin-top: 26px;
}

.page-home .compare {
  padding: 56px 0;
}

.page-home .compare__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.page-home .compare__lead {
  color: var(--c-muted);
  font-size: 0.9375rem;
  margin: 0 0 18px;
  max-width: 48em;
}

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

.page-home .compare__list li {
  position: relative;
  padding-left: 22px;
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.page-home .compare__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--c-gold);
}

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

.page-home .compare__visual {
  border: 1px solid var(--c-border);
  background: var(--c-dark);
}

.page-home .compare__visual > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .compare-stage {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
}

.page-home .compare-stage__side {
  position: absolute;
  inset: 0;
  padding: 22px;
}

.page-home .compare-stage__side--lite {
  background: #131313;
}

.page-home .compare-stage__side--pro {
  background: #1e1e1e;
  clip-path: inset(0 0 0 55%);
  animation: pageHomeCompareSweep 9s ease-in-out infinite;
}

.page-home .compare-stage__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 4px 8px;
}

.page-home .compare-stage__rows {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.page-home .compare-stage__rows span {
  display: block;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #2b2b2b 0 12px,
    var(--c-border) 12px 16px
  );
}

.page-home .compare-stage__rows span:nth-child(2) {
  width: 82%;
}

.page-home .compare-stage__rows span:nth-child(3) {
  width: 64%;
}

.page-home .compare-stage__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 2px;
  background: var(--c-gold);
  z-index: 3;
  animation: pageHomeHandleMove 9s ease-in-out infinite;
}

.page-home .compare-stage__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: var(--c-gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-home .pricing {
  background: var(--c-dark);
  padding: 56px 0;
}

.page-home .pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .price-card {
  position: relative;
  display: block;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-light);
  text-decoration: none;
  padding: 24px;
  transition: border-color 0.2s ease;
}

.page-home .price-card:hover,
.page-home .price-card:focus-visible {
  border-color: var(--c-gold);
}

.page-home .price-card--featured {
  border-color: rgba(201, 162, 39, 0.7);
}

.page-home .price-card__name {
  display: block;
  font-size: 0.875rem;
  color: var(--c-gold);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.page-home .price-card__price {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--c-light);
}

.page-home .price-card__unit {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-left: 4px;
}

.page-home .price-card__desc {
  display: block;
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 14px;
}

.page-home .price-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--c-gold);
  color: var(--c-bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
}

.page-home .pricing__device {
  margin: 28px 0 0;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
}

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

.page-home .pricing__device figcaption {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-home .journal {
  padding: 56px 0;
}

.page-home .journal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .journal-card {
  position: relative;
  display: block;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 24px;
  color: var(--c-light);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.page-home .journal-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-home .journal-card:hover,
.page-home .journal-card:focus-visible {
  border-color: rgba(201, 162, 39, 0.6);
}

.page-home .journal-card:hover::after,
.page-home .journal-card:focus-visible::after {
  opacity: 1;
}

.page-home .journal-card__meta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  border: 1px solid var(--c-border);
  padding: 3px 8px;
  margin-bottom: 14px;
}

.page-home .journal-card__title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  line-height: 1.45;
  margin: 0 0 10px;
}

.page-home .journal-card__desc {
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.page-home .journal__more {
  margin-top: 26px;
}

.page-home .speed-strip {
  margin: 0;
  line-height: 0;
}

.page-home .speed-strip img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .replay-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-gold);
  color: var(--c-bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 13px 20px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%
  );
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.45);
}

.page-home .replay-fab__dot {
  width: 8px;
  height: 8px;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
}

@keyframes pageHomeCompareSweep {
  0%,
  100% {
    clip-path: inset(0 0 0 55%);
  }
  25% {
    clip-path: inset(0 0 0 35%);
  }
  70% {
    clip-path: inset(0 0 0 70%);
  }
}

@keyframes pageHomeHandleMove {
  0%,
  100% {
    left: 55%;
  }
  25% {
    left: 35%;
  }
  70% {
    left: 70%;
  }
}

@media (min-width: 768px) {
  .page-home .hero {
    padding: 76px 0 72px;
  }

  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 48px;
  }

  .page-home .hero__desc {
    font-size: 1rem;
  }

  .page-home .calendar-showcase,
  .page-home .pricing {
    padding: 64px 0;
  }

  .page-home .compare,
  .page-home .journal {
    padding: 72px 0;
  }

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

  .page-home .pricing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .journal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .replay-fab {
    right: 32px;
    bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .page-home .calendar-filter {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    overflow-x: visible;
    flex-wrap: wrap;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .compare-stage__side--pro,
  .page-home .compare-stage__handle {
    animation: none;
    left: 55%;
  }

  .page-home .compare-stage__side--pro {
    clip-path: inset(0 0 0 55%);
  }
}
