.page-home {
  --home-scan: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.12), transparent);
  --home-tilt: -2deg;
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 48px var(--container-pad) 64px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.10), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(255, 106, 0, 0.07), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-lighter) 100%);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black, transparent 78%);
  mask-image: radial-gradient(ellipse at 70% 50%, black, transparent 78%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

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

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

.page-home .home-hero__badge {
  display: inline-flex;
  margin-bottom: 20px;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.6vw, 62px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--color-text);
}

.page-home .home-hero__lead {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin: 0 0 20px;
}

.page-home .home-hero__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 0 32px;
}

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

.page-home .home-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.page-home .home-hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-hero__trust li::before {
  content: "◆";
  color: var(--color-accent);
  font-size: 10px;
}

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

.page-home .home-hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-panel);
  transform: rotate(1.2deg);
}

.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 40%;
  background: var(--home-scan);
  animation: home-scan-move 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-home .home-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-home .home-hero__corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-accent);
  opacity: 0.7;
  z-index: 2;
}

.page-home .home-hero__corner--tl {
  top: 16px;
  right: 16px;
  border-left: none;
  border-bottom: none;
}

.page-home .home-hero__corner--br {
  bottom: 16px;
  left: 16px;
  border-top: none;
  border-right: none;
}

.page-home .home-hero__svg {
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 68%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.25));
}

.page-home .home-hero__stat {
  position: absolute;
  left: -12px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.page-home .home-hero__stat strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-accent);
  font-weight: 900;
  line-height: 1;
}

.page-home .home-hero__stat span {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  max-width: 90px;
}

.page-home .home-hero__divider {
  position: absolute;
  right: -4%;
  bottom: -30px;
  width: 108%;
  height: 64px;
  background: var(--color-bg);
  transform: rotate(var(--home-tilt));
  z-index: 1;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.page-home .home-products {
  position: relative;
  padding: 84px var(--container-pad) 72px;
  background: var(--color-bg);
  z-index: 2;
}

.page-home .home-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.45;
}

.page-home .home-section-head {
  margin-bottom: 40px;
}

.page-home .home-section-head--split {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin: 12px 0 0;
  color: var(--color-text);
}

.page-home .home-section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 12px 0 0;
}

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

.page-home .home-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg-lighter);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base) var(--ease-power), box-shadow var(--transition-base) var(--ease-power), border-color var(--transition-base) var(--ease-power);
}

.page-home .home-product-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--color-accent-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px var(--glow-green);
}

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

.page-home .home-product-card__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 400ms var(--ease-power);
}

.page-home .home-product-card:hover .home-product-card__media img {
  transform: scale(1.04);
}

.page-home .home-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.page-home .home-product-card__body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--color-text);
}

.page-home .home-product-card__body > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

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

.page-home .home-product-card__meta li {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding-left: 18px;
  position: relative;
}

.page-home .home-product-card__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .home-product-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast) var(--ease-power);
}

.page-home .home-product-card__link::after {
  content: "→";
  transition: transform var(--transition-fast) var(--ease-power);
}

.page-home .home-product-card__link:hover {
  color: var(--color-accent-dark);
}

.page-home .home-product-card__link:hover::after {
  transform: translateX(4px);
}

.page-home .home-library {
  position: relative;
  padding: 72px var(--container-pad) 80px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 255, 136, 0.05), transparent 60%),
    var(--color-bg-deep);
}

.page-home .home-library::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.6), transparent);
  transform: rotate(-0.6deg);
}

.page-home .home-library__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-home .home-library__main {
  background:
    linear-gradient(180deg, rgba(18, 42, 60, 0.9), rgba(11, 27, 46, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.02) 22px 23px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-panel);
}

.page-home .home-library__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin: 16px 0 28px;
  max-width: 560px;
}

.page-home .home-library__list {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .home-library__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(11, 27, 46, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast) var(--ease-power), transform var(--transition-fast) var(--ease-power);
}

.page-home .home-library__item:hover {
  border-color: var(--color-accent-border);
  transform: translateX(4px);
}

.page-home .home-library__item-index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--color-accent);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  line-height: 1.2;
  flex-shrink: 0;
}

.page-home .home-library__item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-text);
}

.page-home .home-library__item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.page-home .home-library__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-library__side {
  position: relative;
}

.page-home .home-library__side-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.page-home .home-library__side-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.page-home .home-library__side-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 255, 136, 0.08), transparent 50%, rgba(255, 106, 0, 0.1));
  pointer-events: none;
}

.page-home .home-library__side-card {
  position: absolute;
  right: -8px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 240px;
  z-index: 2;
}

.page-home .home-library__side-dot {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--glow-green);
  flex-shrink: 0;
}

.page-home .home-library__side-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
}

.page-home .home-audiences {
  position: relative;
  padding: 84px var(--container-pad) 72px;
  background: var(--color-bg);
}

.page-home .home-audiences::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-orange));
}

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

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

.page-home .home-audience-card {
  position: relative;
  background: var(--color-bg-lighter);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px 28px;
  overflow: hidden;
  transition: border-color var(--transition-fast) var(--ease-power), box-shadow var(--transition-fast) var(--ease-power);
}

.page-home .home-audience-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  opacity: 0.75;
}

.page-home .home-audience-card:nth-child(even)::before {
  background: var(--color-orange);
}

.page-home .home-audience-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.12);
}

.page-home .home-audience-card__num {
  position: absolute;
  right: 14px;
  top: 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: rgba(230, 241, 255, 0.08);
  line-height: 1;
  pointer-events: none;
}

.page-home .home-audience-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--color-text);
}

.page-home .home-audience-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 14px;
}

.page-home .home-audience-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-orange);
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.page-home .home-audiences__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-panel);
  display: flex;
  align-items: flex-end;
}

.page-home .home-audiences__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-audiences__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 27, 46, 0.75));
  pointer-events: none;
}

.page-home .home-audiences__link {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  text-decoration: none;
  transition: background var(--transition-fast) var(--ease-power), border-color var(--transition-fast) var(--ease-power);
}

.page-home .home-audiences__link::after {
  content: "→";
  color: var(--color-accent);
}

.page-home .home-audiences__link:hover {
  background: var(--color-bg-lighter);
  border-color: var(--color-accent);
}

.page-home .home-trust {
  position: relative;
  padding: 84px var(--container-pad) 88px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.06), transparent 55%),
    var(--color-bg-deep);
}

.page-home .home-trust__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  margin: 12px 0 36px;
  color: var(--color-text);
}

.page-home .home-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 28px;
}

.page-home .home-trust__item {
  background: var(--color-bg-lighter);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.page-home .home-trust__item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  opacity: 0.5;
}

.page-home .home-trust__item:nth-child(even)::before {
  background: var(--color-orange);
}

.page-home .home-trust__item dt {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .home-trust__item dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  word-break: break-all;
}

.page-home .home-trust__notice {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

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

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

@keyframes home-scan-move {
  0% {
    top: -20%;
  }
  100% {
    top: 110%;
  }
}

@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 56px var(--container-pad) 72px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .page-home .home-hero__visual {
    justify-self: end;
    width: 100%;
  }

  .page-home .home-products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

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

  .page-home .home-section-head--split .home-section-desc {
    margin: 0 0 4px;
    text-align: right;
    max-width: 380px;
  }

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

  .page-home .home-library__main {
    padding: 40px 36px;
  }

  .page-home .home-audiences__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .home-audiences__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .page-home .home-audiences__media {
    align-self: stretch;
  }

  .page-home .home-audiences__media img {
    height: 100%;
    object-fit: cover;
  }

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

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 48px var(--container-pad) 88px;
  }

  .page-home .home-hero__visual {
    max-width: 620px;
  }

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