.page-home {
  --home-gap: 1.25rem;
  overflow-x: hidden;
}

.page-home .home-head-grid {
  display: grid;
  gap: 2rem;
}

.page-home .breadcrumb {
  margin-bottom: 1.5rem;
}

.page-home .home-head-copy {
  position: relative;
}

.page-home .home-head-copy::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: .75rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-purple));
}

.page-home .home-route-index {
  display: grid;
  padding: .25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.page-home .route-index-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem .9rem;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 52, 86, .5);
  transition: background-color .25s var(--ease-out), padding-left .25s var(--ease-out);
}

.page-home .route-index-item:last-child {
  border-bottom: 0;
}

.page-home .route-index-num {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
}

.page-home .route-index-arrow {
  margin-left: auto;
  color: var(--accent-purple);
  opacity: .7;
  transition: transform .25s var(--ease-out), opacity .2s;
}

.page-home .route-index-item:hover {
  padding-left: 1.2rem;
  background: var(--bg-sub);
}

.page-home .route-index-item:hover .route-index-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.page-home .bento-grid {
  gap: var(--home-gap);
}

.page-home .home-news-panel {
  position: relative;
  background:
    linear-gradient(125deg, rgba(255, 108, 10, .13), transparent 42%),
    linear-gradient(315deg, rgba(169, 80, 255, .1), transparent 40%),
    var(--bg-surface);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  outline: 1px solid rgba(255, 108, 10, .35);
  outline-offset: -1px;
}

.page-home .home-news-wrap {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.page-home .home-news-content .tag {
  margin-bottom: .75rem;
}

.page-home .home-news-title {
  margin: .5rem 0 .6rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
}

.page-home .home-news-desc {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.page-home .home-news-list {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.page-home .home-news-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-main);
}

.page-home .home-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.page-home .home-news-trust {
  margin: .75rem 0 0;
}

.page-home .home-news-trust a {
  color: var(--accent-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 80, 255, .45);
}

.page-home .home-news-figure {
  aspect-ratio: 4 / 3;
  background: var(--bg-sub);
}

.page-home .home-news-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-login-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(169, 80, 255, .16), transparent 45%),
    var(--bg-surface);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 20px);
  outline: 1px solid rgba(169, 80, 255, .4);
  outline-offset: -1px;
}

.page-home .home-login-inner {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  height: 100%;
  padding: 1.6rem 1.4rem;
}

.page-home .home-login-figure {
  aspect-ratio: 4 / 3;
  background: var(--bg-sub);
}

.page-home .home-login-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-login-cta {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.page-home .home-login-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-25deg);
  transition: left .4s ease;
}

.page-home .home-login-cta:hover::after {
  left: 125%;
}

.page-home .home-login-note {
  margin: -.25rem 0 0;
}

.page-home .home-login-note a {
  color: var(--accent-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 80, 255, .45);
}

.page-home .home-meteor-line {
  position: relative;
  height: 2px;
  margin: .5rem 0 2.5rem;
  overflow: visible;
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-purple) 55%, transparent 95%);
}

.page-home .home-meteor-line::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -4px;
  width: 70px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: rotate(-8deg);
}

.page-home .home-section-head {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.page-home .home-section-head .section-label {
  margin-bottom: .25rem;
}

.page-home .home-section-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
}

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

.page-home .home-fix-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.35rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid rgba(169, 80, 255, .3);
  color: var(--text-main);
  text-decoration: none;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
}

.page-home .home-fix-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), transparent 70%);
  opacity: .65;
}

.page-home .home-fix-card-accent {
  border-color: rgba(255, 108, 10, .4);
}

.page-home .home-fix-card-accent::before {
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: .9;
}

.page-home .home-fix-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 12px 30px -12px rgba(169, 80, 255, .3);
}

.page-home .home-fix-card-accent:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px -12px rgba(255, 108, 10, .4);
}

.page-home .home-fix-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--accent-purple);
  font-weight: 800;
}

.page-home .home-fix-card-accent .home-fix-icon {
  color: var(--accent);
}

.page-home .home-fix-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
}

.page-home .home-fix-main h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.page-home .home-fix-main p {
  margin: 0;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.7;
}

.page-home .home-fix-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
}

.page-home .home-calendar-layout {
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-calendar-list {
  display: grid;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.page-home .home-calendar-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(42, 52, 86, .7);
  transition: background-color .25s var(--ease-out);
}

.page-home .home-calendar-item:last-child {
  border-bottom: 0;
}

.page-home .home-calendar-item:hover {
  background: var(--bg-sub);
}

.page-home .home-calendar-time {
  min-width: 4.2rem;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .78rem;
  line-height: 1.3;
}

.page-home .home-calendar-time strong {
  display: block;
  margin-top: .15rem;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.page-home .home-calendar-info {
  display: grid;
  gap: .35rem;
}

.page-home .home-calendar-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.page-home .home-calendar-info p {
  margin: 0;
  line-height: 1.5;
}

.page-home .home-calendar-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(160deg, rgba(169, 80, 255, .12), transparent 50%), var(--bg-surface);
  border: 1px solid rgba(169, 80, 255, .3);
}

.page-home .home-calendar-side-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.page-home .home-calendar-stats {
  display: grid;
  gap: .9rem;
}

.page-home .home-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed rgba(42, 52, 86, .8);
}

.page-home .home-stat-num {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.page-home .home-stat-label {
  color: var(--text-dim);
  font-size: .9rem;
}

.page-home .legend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.page-home .legend-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-dim);
  font-size: .78rem;
}

.page-home .home-mobile {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 26, 48, .6), rgba(11, 14, 31, .4)), var(--bg-main);
}

.page-home .home-mobile-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .home-mobile-copy {
  display: grid;
  gap: .9rem;
  align-content: start;
}

.page-home .home-mobile-lead {
  margin: 0;
  line-height: 1.75;
}

.page-home .home-mobile-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-mobile-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--text-main);
  line-height: 1.6;
}

.page-home .home-mobile-figure {
  aspect-ratio: 3 / 2;
  background: var(--bg-sub);
}

.page-home .home-mobile-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-chart {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.4rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.page-home .home-chart-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.page-home .home-chart-body {
  display: grid;
  gap: .9rem;
}

.page-home .home-chart-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: .6rem;
  align-items: center;
}

.page-home .home-chart-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  color: var(--text-dim);
  font-size: .85rem;
}

.page-home .home-chart-label strong {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.page-home .home-chart-track {
  position: relative;
  height: 1.7rem;
  background: var(--bg-sub);
  border: 1px solid var(--border);
}

.page-home .home-chart-bar {
  display: block;
  height: 100%;
}

.page-home .home-chart-before {
  width: 70%;
  background: linear-gradient(90deg, #2A3456, #B0B6CE);
}

.page-home .home-chart-after {
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-purple));
}

.page-home .home-chart-img {
  margin-top: .5rem;
}

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

@media (min-width: 768px) {
  .page-home .home-head-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
  }

  .page-home .home-news-wrap {
    grid-template-columns: 1fr .9fr;
    align-items: center;
  }

  .page-home .home-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .home-section-head p {
    max-width: 24rem;
    margin: 0;
  }
}

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

  .page-home .home-fix-card-wide {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
  }

  .page-home .home-fix-card-wide:first-child,
  .page-home .home-fix-card-wide:last-child {
    grid-column: span 2;
  }

  .page-home .home-fix-card-wide .home-fix-main {
    display: block;
  }

  .page-home .home-fix-card-wide .home-fix-link {
    margin-top: 0;
    white-space: nowrap;
  }

  .page-home .home-calendar-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: stretch;
  }

  .page-home .home-mobile-grid {
    grid-template-columns: .85fr 1fr .95fr;
    align-items: start;
  }
}
