.page-home {
  --angle-tilt: 12deg;
  --edge-cut: 16px;
  background: var(--bg-main);
  overflow-x: hidden;
}

.page-home .section-block {
  padding: 72px 0;
  position: relative;
}

.page-home .section-label {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 10px;
}

.page-home .section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--text);
}

.page-home .btn {
  font-family: var(--font-data);
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* Hero */
.page-home .hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
  overflow: hidden;
  background: var(--bg-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(11, 16, 38, 0.96) 0%, rgba(11, 16, 38, 0.78) 42%, rgba(5, 7, 13, 0.3) 100%),
    repeating-linear-gradient(118deg, rgba(0, 255, 102, 0.08) 0 1px, transparent 1px 46px);
}

.page-home .hero__container {
  position: relative;
  z-index: 2;
}

.page-home .hero__frame {
  position: relative;
  border: 1px solid rgba(0, 255, 102, 0.45);
  background: rgba(5, 7, 13, 0.55);
  padding: 28px 20px 36px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}

.page-home .hero__frame::before,
.page-home .hero__frame::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 2px;
}

.page-home .hero__frame::before {
  top: 10px;
  right: 10px;
  background: var(--orange);
}

.page-home .hero__frame::after {
  bottom: 10px;
  left: 10px;
  background: var(--green);
}

.page-home .hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(40, 52, 91, 0.8);
  padding-bottom: 14px;
  margin-bottom: 24px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.page-home .hero__brand {
  color: var(--text);
  font-weight: 700;
}

.page-home .hero__version {
  color: var(--green);
}

.page-home .hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.3rem, 8vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
}

.page-home .hero__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 28px;
}

.page-home .hero__lead em {
  color: var(--green);
  font-style: normal;
}

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

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(40, 52, 91, 0.8);
  padding-top: 20px;
}

.page-home .hero-stat {
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.page-home .hero-stat__num {
  display: block;
  font-family: var(--font-data);
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.2;
}

.page-home .hero-stat__label {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Updates */
.page-home .updates {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
}

.page-home .updates__intro {
  color: var(--text-dim);
  max-width: 640px;
  margin: -6px 0 32px;
}

.page-home .updates__grid {
  display: grid;
  gap: 18px;
  position: relative;
}

.page-home .update-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 26px 20px 24px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: border-color var(--transition), background var(--transition);
}

.page-home .update-card:hover {
  border-color: var(--green);
  background: rgba(20, 27, 51, 0.8);
}

.page-home .update-card--accent {
  border-color: rgba(255, 110, 0, 0.45);
}

.page-home .update-card__index {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.page-home .update-card--accent .update-card__index {
  color: var(--green);
}

.page-home .update-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--text);
}

.page-home .update-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.page-home .update-card__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.35);
  transition: color var(--transition);
}

.page-home .update-card__link:hover {
  color: var(--green);
  border-bottom-color: currentColor;
}

/* Panel */
.page-home .panel-section {
  background: var(--bg-deep);
  overflow: hidden;
}

.page-home .panel-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  transform: rotate(24deg);
  border-radius: 24px;
}

.page-home .panel-section__grid {
  display: grid;
  gap: 36px;
  position: relative;
  z-index: 1;
}

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

.page-home .feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.page-home .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 2px;
  background: var(--green);
  transform: skewX(-24deg);
}

.page-home .panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .panel-visual__frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--bg-card);
  transform: none;
  transition: transform var(--transition), border-color var(--transition);
}

.page-home .panel-visual__frame:hover {
  border-color: var(--green);
}

.page-home .panel-visual__frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.page-home .panel-linechart {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 30px;
  width: calc(100% - 52px);
  height: 100px;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid var(--line);
  padding: 12px;
}

.page-home .panel-linechart__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: square;
}

.page-home .panel-linechart__line--green {
  stroke: var(--green);
}

.page-home .panel-linechart__line--cyan {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.page-home .panel-linechart__dot {
  stroke: var(--bg-deep);
  stroke-width: 2;
}

.page-home .panel-linechart__dot--orange {
  fill: var(--orange);
}

.page-home .panel-linechart__dot--green {
  fill: var(--green);
}

.page-home .panel-visual__badge {
  position: absolute;
  top: 26px;
  right: 26px;
  background: var(--orange);
  color: var(--bg-deep);
  padding: 8px 12px;
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.page-home .panel-visual__badge span {
  display: block;
  font-size: 0.6rem;
  opacity: 0.85;
}

.page-home .panel-visual__badge strong {
  display: block;
  font-size: 0.85rem;
}

.page-home .panel-note {
  margin-top: 12px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Filter */
.page-home .filter-section {
  background: linear-gradient(138deg, var(--bg-main) 0%, var(--bg-card) 60%, var(--bg-deep) 100%);
  overflow: hidden;
}

.page-home .filter-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(0, 255, 102, 0.04) 12px 13px);
  pointer-events: none;
}

.page-home .filter-section__head {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.page-home .filter-section__lead {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0;
}

.page-home .filter-section__body {
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.page-home .filter-tool__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .filter-tool__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-home .filter-tool__input + .filter-tool__tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: all var(--transition);
  user-select: none;
}

.page-home .filter-tool__input:hover + .filter-tool__tab {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .filter-tool__input:checked + .filter-tool__tab {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg-deep);
  font-weight: 700;
}

.page-home .filter-tool__grid {
  display: grid;
  gap: 12px;
}

.page-home #filter-football:checked ~ .filter-tool__grid .match-card:not(.match-card--football) {
  display: none;
}

.page-home #filter-basketball:checked ~ .filter-tool__grid .match-card:not(.match-card--basketball) {
  display: none;
}

.page-home #filter-tennis:checked ~ .filter-tool__grid .match-card:not(.match-card--tennis) {
  display: none;
}

.page-home .match-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 20px 18px 18px;
  position: relative;
  transform: skewX(-1.2deg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.page-home .match-card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.page-home .match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--line);
}

.page-home .match-card--football::before {
  background: var(--green);
}

.page-home .match-card--basketball::before {
  background: var(--orange);
}

.page-home .match-card--tennis::before {
  background: var(--cyan);
}

.page-home .match-card__sport {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .match-card--basketball .match-card__sport {
  color: var(--orange);
}

.page-home .match-card--tennis .match-card__sport {
  color: var(--cyan);
}

.page-home .match-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 6px 0 8px;
  color: var(--text);
}

.page-home .match-card__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.55;
}

.page-home .match-card__link {
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: color var(--transition);
}

.page-home .match-card__link:hover {
  color: var(--green);
}

.page-home .filter-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .filter-figure img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  display: block;
  object-fit: cover;
  object-position: top;
  filter: grayscale(0.2) contrast(1.2);
}

.page-home .filter-figure__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(5, 7, 13, 0.72);
  padding: 6px 10px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* Speed */
.page-home .speed-section {
  background: var(--bg-main);
  overflow: hidden;
}

.page-home .speed-section::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: var(--bg-deep);
  opacity: 0.6;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

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

.page-home .speed-pipeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.page-home .speed-pipeline::before {
  content: '';
  position: absolute;
  left: 92px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--cyan), var(--orange));
  opacity: 0.55;
}

.page-home .speed-pipeline li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(40, 52, 91, 0.8);
}

.page-home .speed-pipeline li:last-child {
  border-bottom: 0;
}

.page-home .speed-pipeline__time {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--green);
  text-align: right;
}

.page-home .speed-pipeline h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 4px;
  color: var(--text);
}

.page-home .speed-pipeline p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.page-home .speed-section__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  transform: rotate(-2deg);
}

/* Ecosystem */
.page-home .ecosystem-section {
  background: linear-gradient(125deg, var(--bg-deep) 0%, transparent 44%), var(--bg-card);
  border-top: 4px solid var(--green);
  overflow: hidden;
}

.page-home .ecosystem-section__intro {
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.page-home .ecosystem-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.page-home .eco-stat {
  border: 1px solid var(--line);
  padding: 22px 16px;
  background: rgba(11, 16, 38, 0.7);
  position: relative;
  overflow: hidden;
}

.page-home .eco-stat::after {
  content: '';
  position: absolute;
  right: -12px;
  top: -12px;
  width: 32px;
  height: 32px;
  background: var(--green);
  opacity: 0.22;
  transform: rotate(45deg);
}

.page-home .eco-stat__num {
  font-family: var(--font-data);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  display: block;
  color: var(--green);
  line-height: 1.1;
}

.page-home .eco-stat:nth-child(2) .eco-stat__num {
  color: var(--orange);
}

.page-home .eco-stat:nth-child(3) .eco-stat__num {
  color: var(--cyan);
}

.page-home .eco-stat:nth-child(4) .eco-stat__num {
  color: var(--amber);
}

.page-home .eco-stat__label {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.page-home .ecosystem-section__extra {
  display: grid;
  gap: 18px;
}

.page-home .ecosystem-section__extra p {
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.7;
  margin: 0;
}

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

/* Tablet */
@media (min-width: 720px) {
  .page-home .hero__frame {
    padding: 36px 32px 44px;
  }

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

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

  .page-home .update-card:last-child {
    grid-column: span 2;
  }

  .page-home .filter-tool__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Desktop */
@media (min-width: 920px) {
  .page-home .section-block {
    padding: 96px 0;
  }

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

  .page-home .update-card:last-child {
    grid-column: auto;
  }

  .page-home .update-card--accent {
    transform: translateY(-22px);
  }

  .page-home .panel-section__grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }

  .page-home .panel-visual__frame {
    transform: rotate(-1.2deg);
  }

  .page-home .panel-visual__frame:hover {
    transform: rotate(0deg);
  }

  .page-home .speed-section__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-home .filter-section__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .page-home .filter-section__body {
    grid-template-columns: 1.8fr 1fr;
    align-items: start;
  }

  .page-home .filter-figure img {
    max-height: 620px;
  }
}
