.page-home {
  --ph-gap: 24px;
  --ph-gap-lg: 56px;
  color: var(--text-main);
  background: var(--bg-deep);
}

.page-home .ph-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.page-home .ph-block-head,
.page-home .ph-status__note {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.page-home .ph-block-head .section-label,
.page-home .ph-status__note .section-label {
  margin: 0;
  font-family: var(--mono-font);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-green);
}

.page-home .ph-block-head .section-title,
.page-home .ph-status__note .section-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}

.page-home .ph-block-head .section-desc,
.page-home .ph-status__note .section-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.page-home .ph-block-head {
  margin-bottom: 30px;
}

.page-home .media-frame {
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--grid-deep);
}

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

.page-home .caption {
  display: block;
  padding: 10px 14px 12px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.6;
}

.page-home .ph-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding-block: 24px;
  overflow: hidden;
}

.page-home .ph-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.4;
  animation: ph-bg-drift 16s ease-in-out infinite alternate;
}

@keyframes ph-bg-drift {
  from {
    transform: scale(1) translateX(0);
  }
  to {
    transform: scale(1.08) translateX(-1.5%);
  }
}

.page-home .ph-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  pointer-events: none;
}

.page-home .ph-hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0.5;
  pointer-events: none;
  animation: ph-scan 7s linear infinite;
}

@keyframes ph-scan {
  0% {
    top: 8%;
    opacity: 0;
  }
  12% {
    opacity: 0.6;
  }
  88% {
    opacity: 0.6;
  }
  100% {
    top: 88%;
    opacity: 0;
  }
}

.page-home .ph-hero__frame {
  position: relative;
  width: min(calc(100% - 24px), calc(var(--content-max) - 48px));
  margin-inline: auto;
  padding: 28px 20px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 25, 47, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.page-home .ph-hero__frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(61, 255, 158, 0.22);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.page-home .ph-hero__meta,
.page-home .ph-hero__body {
  position: relative;
  z-index: 1;
}

.page-home .ph-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--text-sub);
}

.page-home .ph-hero__meta-item::before {
  content: "// ";
  color: var(--accent-green);
}

.page-home .ph-hero__body {
  display: grid;
  gap: var(--ph-gap);
}

.page-home .ph-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-green);
}

.page-home .ph-hero__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.page-home .ph-hero__desc {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

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

.page-home .ph-hero__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 3;
}

.page-home .ph-hero__corner--tl {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--accent-green);
  border-left: 3px solid var(--accent-green);
  border-top-left-radius: var(--radius-lg);
}

.page-home .ph-hero__corner--tr {
  top: -1px;
  right: -1px;
  border-top: 3px solid var(--accent-green);
  border-right: 3px solid var(--accent-green);
  border-top-right-radius: var(--radius-lg);
}

.page-home .ph-hero__corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 3px solid var(--accent-green);
  border-left: 3px solid var(--accent-green);
  border-bottom-left-radius: var(--radius-lg);
}

.page-home .ph-hero__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid var(--accent-green);
  border-right: 3px solid var(--accent-green);
  border-bottom-right-radius: var(--radius-lg);
}

.page-home .ph-hero__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(17, 34, 64, 0.64);
}

.page-home .ph-hero__rail-label {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-sub);
}

.page-home .ph-hero__rail-link {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  flex: 1 1 150px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  transition: background var(--ease-fast), color var(--ease-fast);
}

.page-home .ph-hero__rail-index {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--accent-orange);
}

.page-home .ph-hero__rail-name {
  font-size: 14px;
  font-weight: 700;
}

.page-home .ph-hero__rail-round {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--text-sub);
}

.page-home .ph-hero__rail-link:hover {
  background: var(--bg-hover);
  color: var(--accent-green);
}

.page-home .ph-status {
  padding-block: var(--ph-gap-lg);
  background: linear-gradient(180deg, var(--bg-deep), rgba(11, 30, 59, 0.75));
}

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

.page-home .ph-status__note-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.page-home .ph-status__panel {
  display: grid;
  gap: 14px;
}

.page-home .ph-status__pulse {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-sub);
}

.page-home .ph-status__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .ph-status__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "league match round"
    "version version time";
  gap: 6px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-green);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color var(--ease-fast), transform var(--ease-fast);
}

.page-home .ph-status__item:hover {
  border-color: rgba(61, 255, 158, 0.55);
  transform: translateX(-3px);
}

.page-home .ph-status__league {
  grid-area: league;
}

.page-home .ph-status__match {
  grid-area: match;
  font-size: 14px;
  font-weight: 600;
}

.page-home .ph-status__round {
  grid-area: round;
  font-size: 12px;
  color: var(--text-sub);
  text-align: right;
}

.page-home .ph-status__version {
  grid-area: version;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--accent-orange);
}

.page-home .ph-status__time {
  grid-area: time;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--accent-green);
  text-align: right;
}

.page-home .ph-status__media {
  margin-top: 2px;
}

.page-home .ph-leagues {
  position: relative;
  padding-block: clamp(48px, 7vw, 76px);
  background: linear-gradient(180deg, var(--grid-deep), var(--bg-deep));
}

.page-home .ph-leagues::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange) 8%, var(--accent-green) 60%, transparent);
  opacity: 0.8;
}

.page-home .ph-leagues__grid {
  display: grid;
  gap: 16px;
}

.page-home .ph-league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: transform var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.page-home .ph-league-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 255, 158, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.page-home .ph-league-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-orange));
  border-radius: 0 var(--radius-lg) 0 0;
}

.page-home .ph-league-card--pl::after {
  background: linear-gradient(90deg, transparent, var(--accent-green));
}

.page-home .ph-league-card__hd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .ph-league-card__name {
  font-size: 22px;
  font-weight: 800;
}

.page-home .ph-league-card__en {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.page-home .ph-league-card__pill {
  margin-left: auto;
}

.page-home .ph-league-card__round {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

.page-home .ph-league-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.page-home .ph-league-card__stat {
  display: grid;
  gap: 2px;
}

.page-home .ph-league-card__stat .mono {
  font-family: var(--mono-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-green);
}

.page-home .ph-league-card__stat em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-sub);
}

.page-home .ph-league-card__version {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--accent-orange);
}

.page-home .ph-league-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.page-home .ph-league-card__link:hover {
  color: var(--accent-green);
}

.page-home .ph-leagues__media {
  margin-top: 20px;
}

.page-home .ph-ios {
  padding-block: clamp(48px, 7vw, 76px);
}

.page-home .ph-ios__layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .ph-ios__copy .ph-block-head {
  margin-bottom: 16px;
}

.page-home .ph-ios__features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .ph-ios__features li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-sub);
}

.page-home .ph-ios__features li::before {
  content: "//";
  position: absolute;
  left: 0;
  font-family: var(--mono-font);
  color: var(--accent-green);
}

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

.page-home .ph-ios__media img {
  border-radius: var(--radius-lg);
}

.page-home .ph-metrics {
  position: relative;
  padding-block: clamp(48px, 7vw, 76px);
  background: linear-gradient(150deg, rgba(17, 34, 64, 0.55), rgba(10, 25, 47, 0) 55%), var(--grid-deep);
}

.page-home .ph-metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .ph-metric-card {
  position: relative;
  padding: 20px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.page-home .ph-metric-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.12);
}

.page-home .ph-metric-card--green::after {
  background: rgba(61, 255, 158, 0.14);
}

.page-home .ph-metric-card__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 8px;
  font-family: var(--mono-font);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-orange);
}

.page-home .ph-metric-card--green .ph-metric-card__value {
  color: var(--accent-green);
}

.page-home .ph-metric-card__value span {
  font-size: 0.5em;
  color: var(--text-sub);
}

.page-home .ph-metric-card__label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
}

.page-home .ph-metrics__promise {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--bg-card), var(--bg-hover));
}

.page-home .ph-metrics__promise-lead {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.page-home .ph-metrics__promise-sub {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-sub);
}

.page-home .ph-metrics__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.page-home .ph-metrics__links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.page-home .ph-metrics__links a:hover {
  color: var(--accent-orange);
}

@media (min-width: 720px) {
  .page-home .ph-status__item {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: none;
  }

  .page-home .ph-status__league,
  .page-home .ph-status__match,
  .page-home .ph-status__round,
  .page-home .ph-status__version,
  .page-home .ph-status__time {
    grid-area: auto;
  }

  .page-home .ph-status__time {
    text-align: right;
  }
}

@media (min-width: 760px) {
  .page-home .ph-leagues__grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .ph-league-card--pl {
    grid-column: span 7;
  }

  .page-home .ph-league-card--laliga {
    grid-column: span 5;
  }

  .page-home .ph-league-card--bl,
  .page-home .ph-league-card--sa,
  .page-home .ph-league-card--lg1 {
    grid-column: span 4;
  }

  .page-home .ph-metrics__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 820px) {
  .page-home .ph-status__layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

@media (min-width: 880px) {
  .page-home .ph-ios__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 60px;
  }
}

@media (min-width: 1080px) {
  .page-home .ph-hero__frame {
    padding: 52px 56px 48px;
  }

  .page-home .ph-hero__body {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
  }

  .page-home .ph-hero__rail {
    display: grid;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .page-home .ph-hero__rail-link {
    flex: initial;
  }

  .page-home .ph-hero__rail-label {
    grid-column: 1 / -1;
  }
}
