.page-home {
  --hp-border: rgba(58, 58, 58, 0.28);
  --hp-line-light: rgba(245, 241, 232, 0.18);
  --hp-muted-dark: rgba(29, 29, 29, 0.62);
  --hp-muted-light: rgba(245, 241, 232, 0.72);
  scroll-behavior: smooth;
}

.page-home .hp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(230, 57, 70, 0.2), transparent 26%),
    linear-gradient(105deg, var(--ink) 0%, var(--deep-bg) 55%, var(--dark-surface) 100%);
  color: var(--text-on-dark);
  padding: 48px 0 88px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 32px));
}

.page-home .hp-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.page-home .hp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--silver), transparent);
  transform: skewX(-18deg);
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}

.page-home .hp-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}

.page-home .hp-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .hp-hero .breadcrumb {
  margin-bottom: 20px;
}

.page-home .hp-hero .breadcrumb a {
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.35);
}

.page-home .hp-hero .breadcrumb [aria-current="page"] {
  color: var(--text-on-dark);
  opacity: 0.7;
}

.page-home .hero-kicker {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--red-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-home .hp-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin: 0 0 18px;
  transform: skewX(-3deg);
  transform-origin: left bottom;
  max-width: 9em;
}

.page-home .hero-lead {
  font-family: var(--font-body);
  font-size: 0.938rem;
  line-height: 1.8;
  color: var(--muted-light, rgba(245, 241, 232, 0.82));
  max-width: 32em;
  margin: 0 0 24px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-on-dark);
}

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

.page-home .hero-points .data-highlight {
  font-family: var(--font-data);
  font-size: 1.1rem;
}

.page-home .hero-trust {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.6);
  border-left: 2px solid var(--silver);
  padding-left: 12px;
  margin: 0;
  max-width: 34em;
}

.page-home .hp-hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
}

.page-home .hero-media {
  position: relative;
  flex: 1;
  min-height: 360px;
  overflow: hidden;
  background: var(--dark-surface);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 2% 96%);
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.12) contrast(1.04);
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(13, 13, 13, 0.28), transparent 42%);
  pointer-events: none;
}

.page-home .hero-chapter-index {
  position: absolute;
  top: 24px;
  right: 16px;
  z-index: 4;
  background: rgba(13, 13, 13, 0.78);
  border-right: 4px solid var(--red);
  padding: 16px 18px 12px;
  min-width: 170px;
  backdrop-filter: blur(7px);
}

.page-home .chapter-index-title {
  display: block;
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--silver);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-home .hero-chapter-index a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-on-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.page-home .hero-chapter-index a:hover,
.page-home .hero-chapter-index a:focus {
  color: var(--red-soft);
}

.page-home .chapter-no {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--red-soft);
}

.page-home .hero-zone-strip {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(13, 13, 13, 0.72);
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(7px);
}

.page-home .zone-strip-label {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--silver);
  margin-right: 4px;
  white-space: nowrap;
}

.page-home .zone-strip-item {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  color: var(--text-on-dark);
  background: transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-home .zone-strip-item:hover,
.page-home .zone-strip-item:focus {
  background-color: var(--red);
  border-color: var(--red);
  color: #fff;
}

.page-home .hp-zones {
  position: relative;
  background: var(--base-bg);
  color: var(--text-primary);
  padding: 88px 0;
  overflow: hidden;
}

.page-home .hp-zones::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(29, 29, 29, 0.025) 14px 16px);
  pointer-events: none;
}

.page-home .zone-intro,
.page-home .zones-map-figure,
.page-home .zone-card-grid {
  position: relative;
  z-index: 1;
}

.page-home .section-kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.page-home .section-kicker-dark {
  color: var(--red-soft);
}

.page-home .hp-zones h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  transform: skewX(-2deg);
  transform-origin: left bottom;
}

.page-home .hp-data h2,
.page-home .hp-user h2,
.page-home .hp-news h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 16px;
  transform: skewX(-2deg);
  transform-origin: left bottom;
}

.page-home .zone-intro p {
  font-size: 0.938rem;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 42em;
  margin: 0;
}

.page-home .zones-map-figure {
  margin: 40px 0 56px;
  border: 1px solid var(--border);
  background: var(--paper-highlight);
  box-shadow: 16px 16px 0 rgba(230, 57, 70, 0.1);
}

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

.page-home .zones-map-figure figcaption {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.page-home .zone-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .zone-card {
  --hp-card-bg: var(--paper-highlight);
  position: relative;
  background: var(--hp-card-bg);
  padding: 20px 20px 18px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: box-shadow 0.2s ease;
}

.page-home .zone-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.page-home .zone-card:nth-child(even)::before {
  background: linear-gradient(90deg, var(--red), var(--red-soft));
}

.page-home .zone-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--red) transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.page-home .zone-card:hover::after,
.page-home .zone-card:focus-within::after {
  opacity: 1;
}

.page-home .zone-card:hover {
  box-shadow: 8px 8px 0 rgba(29, 29, 29, 0.1);
}

.page-home .zone-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hp-border);
}

.page-home .zone-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  flex-shrink: 0;
}

.page-home .zone-name {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.page-home .zone-round {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1px solid rgba(230, 57, 70, 0.5);
  padding: 3px 8px;
  white-space: nowrap;
}

.page-home .zone-standings {
  margin-top: 12px;
}

.page-home .zone-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--hp-border);
  font-size: 0.82rem;
  align-items: baseline;
}

.page-home .zone-row-head {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--hp-muted-dark);
  border-bottom: 1px solid var(--border);
}

.page-home .zs-rank {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--red);
}

.page-home .zs-team {
  font-weight: 500;
}

.page-home .zs-pts {
  font-weight: 700;
}

.page-home .zone-transfer {
  border-top: 1px solid var(--hp-border);
  margin-top: 12px;
  padding-top: 10px;
}

.page-home .zt-label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--red);
}

.page-home .zt-text {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.page-home .hp-data {
  position: relative;
  background: var(--deep-bg);
  color: var(--text-on-dark);
  padding: 96px 0;
  overflow: hidden;
}

.page-home .hp-data::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -32%;
  width: 62%;
  height: 86%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.18), transparent 70%);
  pointer-events: none;
}

.page-home .hp-data .container {
  position: relative;
  z-index: 1;
}

.page-home .data-heading-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 46em;
  padding-bottom: 20px;
}

.page-home .data-heading-row p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--hp-muted-light);
  margin: 0;
}

.page-home .data-stream-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark-surface);
  overflow: hidden;
  margin: 32px 0 0;
}

.page-home .data-stream-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -200px;
  width: 200px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.08), transparent);
  transform: skewX(-20deg);
  animation: hp-glide 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hp-glide {
  from { left: -15%; }
  to { left: 100%; }
}

.page-home .data-stream-item {
  flex: 1 1 240px;
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-home .ds-label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--silver);
  text-transform: uppercase;
}

.page-home .ds-meta {
  font-size: 0.9rem;
  color: var(--text-on-dark);
  white-space: nowrap;
}

.page-home .ds-value {
  font-family: var(--font-data);
  font-size: 1.4rem;
  font-weight: 700;
}

.page-home .data-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0 0;
  position: relative;
  z-index: 1;
}

.page-home .data-visual-figure {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--dark-surface);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

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

.page-home .data-visual-figure figcaption {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 14px 18px;
  color: var(--silver);
  border-top: 1px solid var(--border);
}

.page-home .data-tools h3 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 20px;
}

.page-home .data-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--red);
  padding-left: 20px;
}

.page-home .data-tool-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .data-tool-list li strong {
  font-family: var(--font-headline);
  font-size: 1.05rem;
}

.page-home .data-tool-list li span {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--hp-muted-light);
}

.page-home .hp-user {
  background: var(--paper-highlight);
  color: var(--text-primary);
  padding: 96px 0;
}

.page-home .user-path-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-home .user-steps-block h2 {
  margin-bottom: 32px;
}

.page-home .user-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .user-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hp-border);
}

.page-home .user-step:first-child {
  border-top: 1px solid var(--hp-border);
}

.page-home .step-index {
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  opacity: 0.45;
}

.page-home .step-content h3 {
  font-family: var(--font-headline);
  font-size: 1.18rem;
  font-weight: 900;
  margin: 0 0 8px;
}

.page-home .step-content p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.page-home .user-image-block {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--base-bg);
  box-shadow: 12px 12px 0 rgba(230, 57, 70, 0.1);
}

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

.page-home .user-image-block figcaption {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 14px 18px;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
}

.page-home .hp-news {
  background: linear-gradient(180deg, var(--ink), var(--deep-bg) 140%);
  color: var(--text-on-dark);
  padding: 96px 0;
}

.page-home .news-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.page-home .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .news-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 24px;
  text-decoration: none;
  color: var(--text-on-dark);
  min-height: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-home .news-card:hover,
.page-home .news-card:focus {
  background: var(--ink);
  border-top-color: var(--red-soft);
}

.page-home .news-tag {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--red-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-home .news-card h3 {
  font-family: var(--font-headline);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--text-on-dark);
}

.page-home .news-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--hp-muted-light);
  margin: 0;
}

@media (min-width: 640px) {
  .page-home .zone-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 768px) {
  .page-home .news-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .data-stream-item {
    flex: 1 1 220px;
  }
}

@media (min-width: 880px) {
  .page-home .user-steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .page-home .hp-hero-inner {
    grid-template-columns: minmax(0, 44%) 1fr;
    gap: 64px;
  }

  .page-home .hp-hero-right {
    min-height: 560px;
  }

  .page-home .hero-media {
    min-height: 560px;
  }

  .page-home .hero-media img {
    min-height: 560px;
  }

  .page-home .data-feature-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    align-items: center;
  }

  .page-home .user-path-wrap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    align-items: center;
  }

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

@media (min-width: 1120px) {
  .page-home .zone-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home {
    scroll-behavior: auto;
  }

  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .page-home .data-stream-bar::after {
    animation: none;
    opacity: 0;
  }
}

.page-home {
  --muted-light: currentColor;
}
