.page-home {
  --home-line: rgba(0, 229, 255, 0.18);
  --home-glow: rgba(157, 0, 255, 0.16);
  --home-grid: rgba(170, 187, 205, 0.09);
  --home-card-bg: linear-gradient(145deg, rgba(26, 29, 42, 0.94), rgba(11, 14, 20, 0.98));
  --home-font-head: var(--font-heading);
  background:
    radial-gradient(42% 30% at 88% 0%, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(50% 34% at 4% 52%, rgba(157, 0, 255, 0.08), transparent 62%),
    var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
}

.page-home .home-shell {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.page-home .home-news,
.page-home .home-cats,
.page-home .home-support,
.page-home .home-download,
.page-home .home-help {
  padding: 64px 0;
  position: relative;
}

.page-home .home-news {
  background:
    linear-gradient(180deg, rgba(26, 29, 42, 0.65) 0%, rgba(11, 14, 20, 0.2) 100%),
    var(--c-bg);
}

.page-home .home-cats {
  background:
    linear-gradient(160deg, rgba(157, 0, 255, 0.08) 0%, rgba(11, 14, 20, 0) 36%),
    linear-gradient(0deg, rgba(0, 229, 255, 0.04), rgba(11, 14, 20, 0) 80%);
}

.page-home .home-support {
  background:
    radial-gradient(60% 90% at 88% 12%, rgba(157, 0, 255, 0.18), transparent 70%),
    radial-gradient(40% 70% at 8% 88%, rgba(0, 229, 255, 0.10), transparent 60%),
    var(--c-base);
  border-block: 1px solid rgba(0, 229, 255, 0.14);
}

.page-home .home-download {
  background:
    linear-gradient(115deg, rgba(0, 229, 255, 0.06) 0%, transparent 38%, rgba(255, 42, 109, 0.07) 100%);
}

.page-home .home-help {
  background:
    repeating-linear-gradient(115deg, transparent 0 28px, rgba(170, 187, 205, 0.05) 28px 29px, transparent 29px 60px),
    var(--c-bg);
}

.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-height) + 30px) 20px 52px;
  isolation: isolate;
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 42px,
    rgba(0, 229, 255, 0.06) 42px 43px,
    transparent 43px 88px
  );
  background-size: 120% 120%;
  animation: home-hero-lines 24s linear infinite;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: var(--container);
  margin-inline: auto;
}

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

.page-home .home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
  border: 1px solid var(--home-line);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.05);
  font-family: var(--home-font-head);
}

.page-home .home-hero__title {
  font-family: var(--home-font-head);
  font-size: clamp(1.55rem, 7.2vw, 3.1rem);
  line-height: 1.2;
  font-weight: 900;
  margin: 18px 0 14px;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 24px rgba(0, 229, 255, 0.34),
    0 0 64px rgba(157, 0, 255, 0.16);
}

.page-home .home-hero__lead {
  max-width: 70ch;
  color: var(--c-silver);
  font-size: clamp(0.94rem, 2.6vw, 1.06rem);
  line-height: 1.8;
  border-left: 3px solid var(--c-blue);
  padding-left: 16px;
  margin-bottom: 24px;
}

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

.page-home .home-hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(170, 187, 205, 0.16);
  color: var(--c-muted);
  font-size: 0.84rem;
}

.page-home .home-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .home-hero__meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

.page-home .home-hero__visual {
  position: relative;
  z-index: 1;
  height: 260px;
  overflow: hidden;
  border-radius: 4px 18px 18px 18px;
  transform: skewX(-3deg) rotate(1deg);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 229, 255, 0.12);
  background: var(--c-base);
}

.page-home .home-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.92;
}

.page-home .home-hero__beam {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 48%, rgba(0, 229, 255, 0.16) 48% 52%, transparent 52% 100%);
  animation: home-pulse 5s ease-in-out infinite;
}

.page-home .section-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.page-home .section-heading__index {
  align-self: flex-start;
  font-family: var(--home-font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-blue);
  border: 1px solid var(--home-line);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.04);
  white-space: nowrap;
}

.page-home .section-heading__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.3;
  font-family: var(--home-font-head);
  letter-spacing: 0.015em;
}

.page-home .section-heading__sub {
  margin: 0;
  color: var(--c-muted);
  max-width: 68ch;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .page-home .section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    row-gap: 8px;
    align-items: end;
  }

  .page-home .section-heading__index {
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 10px;
  }

  .page-home .section-heading__title {
    grid-column: 2;
  }

  .page-home .section-heading__sub {
    grid-column: 2;
    margin-top: -4px;
  }
}

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

.page-home .home-news__card {
  position: relative;
  background: var(--home-card-bg);
  border: 1px solid rgba(170, 187, 205, 0.14);
  border-radius: 14px;
  padding: 22px 24px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .home-news__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple), var(--c-pink));
  opacity: 0.5;
}

.page-home .home-news__card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 229, 255, 0.08);
}

.page-home .home-news__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.page-home .home-news__time {
  color: var(--c-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.page-home .home-news__card h3 {
  font-family: var(--home-font-head);
  font-size: 1.18rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.page-home .home-news__card p {
  color: var(--c-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0 0 18px;
}

.page-home .home-news__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.page-home .home-news__link:hover {
  border-bottom-color: var(--c-blue);
}

.page-home .home-news__card--highlight {
  border-color: rgba(157, 0, 255, 0.32);
  background: linear-gradient(145deg, rgba(30, 24, 48, 0.96), rgba(11, 14, 20, 0.98));
}

.page-home .home-news__card--highlight::before {
  background: linear-gradient(90deg, var(--c-purple), var(--c-pink), var(--c-blue));
}

.page-home .home-news__fold {
  margin-top: 24px;
  border: 1px solid rgba(170, 187, 205, 0.16);
  border-radius: 12px;
  background: rgba(11, 14, 20, 0.6);
  overflow: hidden;
}

.page-home .home-news__fold summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--c-silver);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color var(--transition);
}

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

.page-home .home-news__fold summary::after {
  content: "+";
  font-family: var(--home-font-head);
  font-size: 1.3rem;
  color: var(--c-blue);
  line-height: 1;
  transition: transform var(--transition);
}

.page-home .home-news__fold[open] summary {
  color: var(--c-text);
}

.page-home .home-news__fold[open] summary::after {
  content: "–";
}

.page-home .home-news__fold-body {
  padding: 0 20px 18px 44px;
}

.page-home .home-news__fold-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-news__fold-body li {
  position: relative;
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding-left: 16px;
}

.page-home .home-news__fold-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--c-purple);
  transform: rotate(45deg);
}

@media (min-width: 860px) {
  .page-home .home-news__grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .home-news__card--wide {
    grid-column: span 7;
  }

  .page-home .home-news__card--highlight {
    grid-column: span 5;
  }

  .page-home .home-news__card--strip {
    grid-column: span 12;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
  }

  .page-home .home-news__card--strip .home-news__card-top {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-home .home-news__card--strip h3 {
    margin-bottom: 0;
  }

  .page-home .home-news__card--strip p {
    margin-bottom: 0;
    max-width: 72ch;
  }

  .page-home .home-news__card--strip .home-news__link {
    white-space: nowrap;
  }
}

.page-home .home-cats__banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
}

.page-home .home-cats__board {
  display: grid;
  gap: 16px;
}

.page-home .home-cats__card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--home-card-bg);
  border: 1px solid rgba(170, 187, 205, 0.14);
  border-radius: 16px;
  padding: 26px 22px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
}

.page-home .home-cats__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 45%, rgba(157, 0, 255, 0.10));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.page-home .home-cats__card:hover {
  transform: perspective(760px) translateY(-6px) rotateX(3deg) rotateY(-3deg);
  border-color: rgba(0, 229, 255, 0.38);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 229, 255, 0.06);
}

.page-home .home-cats__card:hover::before {
  opacity: 1;
}

.page-home .home-cats__num {
  display: inline-block;
  font-family: var(--home-font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-blue);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  background: rgba(0, 229, 255, 0.05);
}

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

.page-home .home-cats__card p {
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.page-home .home-cats__note {
  margin: 26px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--c-purple);
  color: var(--c-silver);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 60ch;
}

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

@media (min-width: 1024px) {
  .page-home .home-cats__board {
    grid-template-columns: repeat(5, 1fr);
  }
}

.page-home .home-support__layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .home-support__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .home-support__list li {
  position: relative;
  padding: 20px 20px 20px 24px;
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid rgba(170, 187, 205, 0.12);
  border-radius: 12px;
  transition: border-color var(--transition), background var(--transition);
}

.page-home .home-support__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c-blue);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.page-home .home-support__list li:nth-child(2)::before {
  background: var(--c-purple);
  box-shadow: 0 0 12px rgba(157, 0, 255, 0.5);
}

.page-home .home-support__list li:nth-child(3)::before {
  background: var(--c-pink);
  box-shadow: 0 0 12px rgba(255, 42, 109, 0.45);
}

.page-home .home-support__list li:hover {
  border-color: rgba(0, 229, 255, 0.18);
  background: rgba(11, 14, 20, 0.85);
}

.page-home .home-support__list h3 {
  font-family: var(--home-font-head);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.page-home .home-support__list p {
  color: var(--c-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0;
}

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

.page-home .home-support__visual {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(157, 0, 255, 0.22);
  transform: skewX(-2deg) rotate(-1deg);
}

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

.page-home .home-support__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: screen;
  animation: home-grid-drift 12s linear infinite;
}

@media (min-width: 1024px) {
  .page-home .home-support {
    padding-block: 92px;
  }

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

  .page-home .home-support__content {
    grid-column: 1 / span 7;
  }

  .page-home .home-support__visual {
    grid-column: 8 / span 5;
    height: 520px;
  }
}

.page-home .home-download__grid {
  display: grid;
  gap: 16px;
}

.page-home .home-download__item {
  background: var(--home-card-bg);
  border: 1px solid rgba(170, 187, 205, 0.14);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .home-download__item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.page-home .home-download__icon {
  display: inline-flex;
  color: var(--c-blue);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}

.page-home .home-download__item:nth-child(2) .home-download__icon {
  color: var(--c-purple);
  filter: drop-shadow(0 0 10px rgba(157, 0, 255, 0.35));
}

.page-home .home-download__item:nth-child(4) .home-download__icon {
  color: var(--c-pink);
  filter: drop-shadow(0 0 10px rgba(255, 42, 109, 0.3));
}

.page-home .home-download__item h3 {
  font-family: var(--home-font-head);
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.page-home .home-download__item p {
  color: var(--c-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.page-home .home-download__foot {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  background: rgba(26, 29, 42, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 16px;
  padding: 28px;
}

.page-home .home-download__qr {
  color: var(--c-blue);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.04);
  padding: 10px;
  flex-shrink: 0;
}

.page-home .home-download__qr rect {
  stroke-dasharray: 10 4;
  animation: home-qr-stroke 20s linear infinite;
}

.page-home .home-download__note {
  flex: 1;
  min-width: 220px;
}

.page-home .home-download__note h3 {
  font-family: var(--home-font-head);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.page-home .home-download__note p {
  color: var(--c-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.page-home .home-download__banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 22px;
  border: 1px solid rgba(170, 187, 205, 0.14);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38);
}

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

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

  .page-home .home-download__foot {
    flex-wrap: nowrap;
  }
}

.page-home .home-help {
  text-align: center;
}

.page-home .home-help__inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.page-home .home-help .section-heading {
  align-items: center;
  text-align: center;
}

.page-home .home-help .section-heading__sub {
  margin-inline: auto;
}

.page-home .home-help__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.page-home .home-help__trust {
  margin-top: 34px;
  padding: 18px 24px;
  border: 1px solid rgba(170, 187, 205, 0.14);
  border-radius: 12px;
  background: rgba(26, 29, 42, 0.5);
}

.page-home .home-help__trust p {
  color: var(--c-silver);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 700px) {
  .page-home .home-help .section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-home .home-help .section-heading__index {
    align-self: center;
  }
}

@keyframes home-hero-lines {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 220px 320px;
  }
}

@keyframes home-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes home-grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 32px 32px;
  }
}

@keyframes home-qr-stroke {
  to {
    stroke-dashoffset: -56;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero::after,
  .page-home .home-hero__beam,
  .page-home .home-support__grid-bg,
  .page-home .home-download__qr rect {
    animation: none;
  }

  .page-home .home-news__card:hover,
  .page-home .home-cats__card:hover,
  .page-home .home-download__item:hover {
    transform: none;
  }
}
