.page-home {
  --home-glow: rgba(0, 255, 156, 0.1);
  --home-gold-glow: rgba(255, 215, 0, 0.16);
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 85% 8%, rgba(26, 43, 94, 0.5), transparent 36%),
    var(--color-navy-deep);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

.page-home #home-categories,
.page-home #home-archive,
.page-home #home-news,
.page-home #home-help {
  scroll-margin-top: 112px;
}

.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  padding: 132px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  display: block;
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 16, 38, 0.92) 0%, rgba(16, 27, 61, 0.72) 55%, rgba(11, 16, 38, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 16, 38, 0.82) 0%, transparent 45%, var(--color-navy-deep) 100%);
}

.page-home .home-hero__pg {
  position: absolute;
  top: 8%;
  right: -5%;
  font-family: var(--font-heading);
  font-size: clamp(12rem, 44vw, 30rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 255, 156, 0.22);
  text-stroke: 2px rgba(0, 255, 156, 0.22);
  user-select: none;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-home .home-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 28px;
}

.page-home .home-hero__badges .pill {
  font-weight: 700;
  box-shadow: 0 0 24px rgba(0, 255, 156, 0.08);
}

.page-home .home-hero__title {
  display: block;
  max-width: 920px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  text-wrap: balance;
}

.page-home .home-hero__title span {
  display: block;
  font-style: normal;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-gold) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: var(--color-text-sub);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.page-home .home-cats {
  position: relative;
  background:
    radial-gradient(ellipse at 76% 28%, var(--home-glow), transparent 56%),
    linear-gradient(180deg, transparent 0%, rgba(16, 27, 61, 0.4) 100%);
}

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

.page-home .home-cats__head,
.page-home .home-news__head,
.page-home .home-archive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.page-home .home-cats__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.page-home .home-cats__feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 43, 94, 0.7), rgba(16, 27, 61, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-float);
  transition: transform var(--ts-base) ease, border-color var(--ts-base) ease, box-shadow var(--ts-base) ease;
}

.page-home .home-cats__feature:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 156, 0.4);
  box-shadow: var(--shadow-hover);
}

.page-home .home-cats__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px) calc(var(--radius-lg) - 4px) 0 0;
}

.page-home .home-cats__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ts-slow) ease;
}

.page-home .home-cats__feature:hover .home-cats__media img {
  transform: scale(1.03);
}

.page-home .home-cats__feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  flex: 1;
}

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

.page-home .home-cats__feature-title {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text-main);
}

.page-home .home-cats__feature-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-sub);
  flex: 1;
}

.page-home .home-cats__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-content: start;
}

.page-home .home-cats__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--ts-fast) ease, background var(--ts-fast) ease, transform var(--ts-fast) ease;
}

.page-home .home-cats__item:hover {
  border-color: rgba(0, 255, 156, 0.42);
  background: rgba(0, 255, 156, 0.06);
  transform: translateY(-2px);
}

.page-home .home-cats__index {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
}

.page-home .home-cats__name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  white-space: nowrap;
}

.page-home .home-cats__item .pill {
  font-size: 0.75rem;
  white-space: nowrap;
}

.page-home .home-archive {
  position: relative;
  overflow: hidden;
}

.page-home .home-archive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 12% 18%, var(--home-gold-glow), transparent 46%);
  pointer-events: none;
}

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

.page-home .home-archive__total {
  margin: 0;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--color-gold);
  background: rgba(255, 215, 0, 0.08);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-home .home-archive__total strong {
  color: var(--color-gold-soft);
  font-size: 1.4rem;
}

.page-home .home-archive__fx {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  margin: 28px 0 16px;
  opacity: 0.9;
}

.page-home .home-archive__hint {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.page-home .home-archive__track {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-archive__year {
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  background: var(--color-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: border-color var(--ts-base) ease, box-shadow var(--ts-base) ease, background var(--ts-base) ease;
}

.page-home .home-archive__year[open] {
  background: rgba(0, 255, 156, 0.07);
  border-color: rgba(0, 255, 156, 0.45);
  box-shadow: var(--glow-green);
}

.page-home .home-archive__year-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  cursor: pointer;
  list-style: none;
}

.page-home .home-archive__year-summary::-webkit-details-marker {
  display: none;
}

.page-home .home-archive__year-summary::marker {
  content: "";
}

.page-home .home-archive__year-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-text-main);
  transition: color var(--ts-fast) ease;
}

.page-home .home-archive__year[open] .home-archive__year-num {
  color: var(--color-accent);
}

.page-home .home-archive__year-topic {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-sub);
}

.page-home .home-archive__panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

.page-home .home-archive__panel p {
  margin: 0 0 10px;
}

.page-home .home-archive__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.page-home .home-archive__link:hover {
  text-decoration: underline;
}

.page-home .home-stats {
  padding-top: 0;
}

.page-home .home-stats__band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-stats__item {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(16, 27, 61, 0.95), rgba(26, 43, 94, 0.82));
}

.page-home .home-stats__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--color-accent);
}

.page-home .home-stats__label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

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

.page-home .home-news__feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 43, 94, 0.75), rgba(16, 27, 61, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-float);
  transition: transform var(--ts-base) ease, border-color var(--ts-base) ease;
}

.page-home .home-news__feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.38);
}

.page-home .home-news__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px) calc(var(--radius-lg) - 4px) 0 0;
}

.page-home .home-news__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-news__feature-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  flex: 1;
}

.page-home .home-news__feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-news__feature-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-main);
}

.page-home .home-news__feature-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-sub);
  flex: 1;
}

.page-home .home-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-news__item {
  background: var(--color-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: border-color var(--ts-fast) ease, transform var(--ts-fast) ease, background var(--ts-fast) ease;
}

.page-home .home-news__item:hover {
  border-color: rgba(0, 255, 156, 0.4);
  background: rgba(0, 255, 156, 0.05);
  transform: translateX(4px);
}

.page-home .home-news__item-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

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

.page-home .home-help__split {
  align-items: center;
}

.page-home .home-help__intro {
  padding-right: 0;
}

.page-home .home-help__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-home .home-help__card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.25);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 232, 102, 0.1), transparent 40%),
    var(--color-glass);
  box-shadow: var(--shadow-float);
}

.page-home .home-help__card-title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gold);
}

.page-home .home-help__data {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-help__data .data-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .home-help__data .data-row:last-child {
  border-bottom: 0;
}

.page-home .home-help__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-sub);
}

.page-home .home-trust__bar {
  padding: 28px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(0, 255, 156, 0.08), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-sub);
}

.page-home .home-trust__bar p {
  margin: 0;
}

.page-home .home-trust__bar a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
}

.page-home .home-trust__bar a:hover {
  text-decoration: underline;
}

.page-home .home-trust__icp {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  background: rgba(255, 215, 0, 0.1);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
}

@media (min-width: 600px) {
  .page-home .home-cats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .page-home .home-stats__band {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (min-width: 900px) {
  .page-home .home-archive__track {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 20px;
    scroll-snap-type: x proximity;
  }

  .page-home .home-archive__year {
    flex: 0 0 188px;
    min-height: 108px;
    scroll-snap-align: start;
  }

  .page-home .home-archive__year[open] {
    flex-basis: 240px;
  }

  .page-home .home-archive__year-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-home .home-news__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

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

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

  .page-home .home-help__split {
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
  }

  .page-home .home-help__intro {
    padding-right: clamp(0px, 3vw, 40px);
  }
}
