.page-home {
  background: var(--ink-base);
  color: var(--text-primary);
  overflow: hidden;
}

.page-home .hero-zone,
.page-home .matrix-zone,
.page-home .directory-zone,
.page-home .matchlog-zone,
.page-home .compat-zone,
.page-home .trust-zone {
  padding-block: clamp(48px, 7vw, 88px);
}

.page-home .hero-zone {
  padding-block-start: clamp(24px, 5vw, 64px);
}

.page-home .zone-head {
  margin-block-end: clamp(24px, 4vw, 40px);
}

.page-home .hero-inner {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.page-home .hero-copy {
  align-self: center;
}

.page-home .hero-lead {
  margin: 18px 0 24px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  max-width: 56ch;
}

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

.page-home .hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line-border);
  background: var(--ink-panel);
}

.page-home .hero-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(11, 26, 44, 0.9) 0%, rgba(16, 35, 58, 0.46) 50%, rgba(11, 26, 44, 0.8) 100%);
}

.page-home .hero-collage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px;
  min-height: 360px;
}

.page-home .hero-card {
  border: 1px solid rgba(183, 255, 0, 0.35);
  background: rgba(16, 35, 58, 0.86);
  padding: 18px;
  border-radius: 16px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: transform var(--transition-base), border-color var(--transition-fast);
}

.page-home .hero-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: var(--gold-accent);
}

.page-home .hero-card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .hero-card-num {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  color: var(--neon-strike);
}

.page-home .hero-card-core {
  background: rgba(23, 48, 77, 0.92);
}

.page-home .hero-card-core .hero-card-num {
  color: var(--gold-accent);
}

.page-home .hero-card p {
  margin: 10px 0 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-home .hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-left: 3px solid var(--line-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-home .hero-badge .data-figure {
  color: var(--text-primary);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.page-home .matrix-switch {
  margin-block-start: 32px;
}

.page-home .matrix-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .matrix-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line-border);
  background: var(--ink-panel);
  color: var(--text-primary);
  font-size: 0.96rem;
  cursor: pointer;
  border-radius: 12px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.page-home .matrix-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home #matrix-tab-subscribe:checked ~ .matrix-tabs label[for="matrix-tab-subscribe"],
.page-home #matrix-tab-live:checked ~ .matrix-tabs label[for="matrix-tab-live"],
.page-home #matrix-tab-directory:checked ~ .matrix-tabs label[for="matrix-tab-directory"] {
  background: var(--neon-strike);
  border-color: var(--neon-strike);
  color: var(--ink-base);
  font-weight: 600;
}

.page-home .matrix-switch:has(#matrix-tab-subscribe:focus-visible) .matrix-tab[for="matrix-tab-subscribe"],
.page-home .matrix-switch:has(#matrix-tab-live:focus-visible) .matrix-tab[for="matrix-tab-live"],
.page-home .matrix-switch:has(#matrix-tab-directory:focus-visible) .matrix-tab[for="matrix-tab-directory"] {
  outline: 2px solid var(--neon-strike);
  outline-offset: 2px;
}

.page-home .matrix-panel {
  display: none;
}

.page-home #matrix-tab-subscribe:checked ~ .matrix-panels #matrix-panel-subscribe,
.page-home #matrix-tab-live:checked ~ .matrix-panels #matrix-panel-live,
.page-home #matrix-tab-directory:checked ~ .matrix-panels #matrix-panel-directory {
  display: block;
  animation: pageHomePanelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageHomePanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-home .module-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.page-home .module-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  background: var(--ink-raised);
}

.page-home .module-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .module-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 44, 0) 40%, rgba(11, 26, 44, 0.55));
}

.page-home .module-media-plain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ink-raised), var(--ink-panel));
}

.page-home .module-media-plain::after {
  display: none;
}

.page-home .media-mark {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  color: var(--neon-strike);
  line-height: 1;
}

.page-home .module-media-plain p {
  margin: 0;
  color: var(--text-secondary);
}

.page-home .module-content h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.page-home .module-content p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.page-home .module-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .module-content li {
  position: relative;
  padding-left: 18px;
  color: var(--text-primary);
}

.page-home .module-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--neon-strike);
}

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

.page-home .filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-border);
  background: var(--ink-panel);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.page-home .filter-link:hover {
  background: var(--neon-strike);
  border-color: var(--neon-strike);
  color: var(--ink-base);
  font-weight: 600;
}

.page-home .filter-note {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.page-home .directory-card {
  background: var(--ink-panel);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-border);
}

.page-home .directory-card-head h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.page-home .directory-card-head p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.page-home .directory-banner {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 16px;
  aspect-ratio: 16 / 5;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-home .directory-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-home .matchlog-item {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-border);
  border-radius: 20px;
  background: var(--ink-panel);
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-fast);
}

.page-home .matchlog-item:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border-color: var(--neon-strike);
  background: var(--ink-raised);
}

.page-home .matchlog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .matchlog-round {
  font-family: var(--font-data);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neon-strike);
}

.page-home .matchlog-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(245, 185, 66, 0.55);
  border-radius: 999px;
  color: var(--gold-accent);
  font-size: 0.78rem;
}

.page-home .matchlog-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.page-home .matchlog-body p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-home .matchlog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-home .matchlog-link {
  position: relative;
  color: var(--neon-strike);
  font-weight: 600;
  text-decoration: none;
}

.page-home .matchlog-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--neon-strike);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.page-home .matchlog-link:hover::after {
  transform: scaleX(1);
}

.page-home .matchlog-stat {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-data);
}

.page-home .compat-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-border);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--ink-raised), var(--ink-panel));
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home .compat-copy p {
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.page-home .compat-features li {
  position: relative;
  padding-left: 20px;
  color: var(--text-primary);
}

.page-home .compat-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--neon-strike);
  transform: rotate(45deg);
}

.page-home .compat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .compat-diagram {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  min-height: 260px;
}

.page-home .compat-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border: 2px solid var(--line-border);
  border-radius: 14px;
  background: rgba(11, 26, 44, 0.6);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.page-home .compat-device::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--neon-strike);
}

.page-home .compat-device:hover {
  border-color: var(--neon-strike);
  transform: translateY(-4px);
}

.page-home .compat-device-name {
  font-weight: 600;
}

.page-home .compat-phone {
  width: 72px;
  height: 132px;
  border-radius: 18px 18px 22px 22px;
}

.page-home .compat-tablet {
  width: 110px;
  height: 150px;
  border-radius: 16px;
}

.page-home .compat-desktop {
  position: relative;
  width: 150px;
  height: 112px;
  border-radius: 12px;
}

.page-home .compat-desktop::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 8px;
  border-radius: 0 0 6px 6px;
  background: var(--ink-raised);
}

.page-home .trust-inner {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.page-home .trust-copy p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.page-home .trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.page-home .trust-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  border: 1px solid var(--line-border);
  border-radius: 18px;
  background: var(--ink-panel);
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.page-home .trust-stat:hover {
  border-color: var(--gold-accent);
  transform: translateY(-3px);
}

.page-home .trust-stat .stat-num {
  font-family: var(--font-data);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--gold-accent);
}

.page-home .trust-stat .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 540px) {
  .page-home .hero-collage {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .hero-card-core {
    grid-column: 1 / -1;
  }
}

@media (min-width: 860px) {
  .page-home .module-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .page-home .matchlog-item {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .page-home .matchlog-meta {
    flex-direction: column;
    gap: 8px;
  }
}

@media (min-width: 900px) {
  .page-home .directory-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .page-home .filter-list {
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 96px;
  }

  .page-home .compat-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
  }

  .page-home .trust-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-visual {
    min-height: 520px;
  }

  .page-home .hero-collage {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 32px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .page-home .hero-card-core {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .page-home .hero-card-node {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    align-self: end;
  }

  .page-home .hero-card-league {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-self: end;
    align-self: start;
  }
}
