.page-home {
  --home-accent-soft: rgba(0, 229, 160, 0.1);
  --home-accent-border: rgba(0, 229, 160, 0.24);
  --home-orange-soft: rgba(255, 107, 53, 0.16);
  --home-card-bg: rgba(27, 38, 59, 0.82);
  --home-cut-md: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  --home-side-top: calc(var(--header-h) + 20px);
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -40px, rgba(0, 229, 160, 0.09), transparent 68%),
    radial-gradient(600px 300px at -80px 26%, rgba(255, 107, 53, 0.07), transparent 70%),
    var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 104px 0 52px;
  overflow: hidden;
}
.page-home .hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-home .hero-bg-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
.page-home .hero-bg-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(13, 27, 42, 0.88) 0%, rgba(13, 27, 42, 0.68) 46%, rgba(13, 27, 42, 0.3) 100%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.42) 0%, rgba(13, 27, 42, 0.2) 48%, var(--bg-deep) 100%);
}
.page-home .hero-flow-line {
  position: absolute;
  right: -80px;
  top: 18%;
  z-index: 0;
  width: 480px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light));
  transform: rotate(-28deg);
  opacity: 0.5;
  pointer-events: none;
}
.page-home .hero-flow-line-2 {
  top: 28%;
  width: 360px;
  opacity: 0.22;
  transform: rotate(-21deg);
}
.page-home .hero-container {
  position: relative;
  z-index: 2;
}
.page-home .hero-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.page-home .hero-breadcrumb {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.page-home .home-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 6.4vw, 62px);
  line-height: 1.08;
  max-width: 860px;
  text-wrap: balance;
}
.page-home .hero-lead {
  max-width: 720px;
  margin: 0 0 30px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
}
.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 580px;
  margin-bottom: 30px;
}
.page-home .hero-stat {
  padding: 16px 14px;
  background: rgba(13, 27, 42, 0.78);
  border-left: 3px solid var(--accent);
  clip-path: var(--home-cut-md);
}
.page-home .hero-stat-value {
  display: block;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--accent-light);
}
.page-home .hero-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-body);
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.page-home .section-home {
  padding: 58px 0;
  scroll-margin-top: var(--home-side-top);
}

.page-home .home-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-home .home-side {
  display: none;
}
.page-home .home-side-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 12px;
}
.page-home .side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-body);
  border-left: 2px solid transparent;
  margin-left: -13px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-home .side-item:hover {
  color: var(--text-main);
}
.page-home .side-item.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 700;
}
.page-home .side-item-index {
  font-family: var(--font-data);
  font-size: 11px;
  opacity: 0.75;
}

.page-home .home-main {
  min-width: 0;
}
.page-home .download-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.page-home .download-media-col {
  position: relative;
}
.page-home .download-media-frame {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 3%, 96% 0, 100% 100%, 5% 96%);
  transform: rotate(-1deg);
}
.page-home .download-media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .download-chip {
  position: absolute;
  left: 12px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(13, 27, 42, 0.9);
  border: 1px solid var(--home-accent-border);
  font-size: 13px;
  color: var(--text-body);
  clip-path: var(--home-cut-md);
}
.page-home .chip-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.5);
  animation: homePulse 1.8s infinite;
}
.page-home .chip-value {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-light);
}
.page-home .download-body-col {
  min-width: 0;
}
.page-home .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-home .section-tag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.page-home .home-download h2,
.page-home .home-library h2,
.page-home .home-teams h2,
.page-home .home-explore h2,
.page-home .home-updates h2 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: clamp(26px, 4.2vw, 42px);
}
.page-home .section-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}
.page-home .download-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.page-home .download-features li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.page-home .download-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  clip-path: polygon(100% 100%, 100% 0, 0 0);
}
.page-home .download-features li b {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 4px;
}
.page-home .download-features li span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}
.page-home .download-panel summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
}
.page-home .download-panel summary::-webkit-details-marker {
  display: none;
}
.page-home .download-panel summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  transition: transform 0.25s var(--ease);
}
.page-home .download-panel[open] summary::after {
  transform: rotate(225deg);
}
.page-home .download-panel-body {
  margin-top: 18px;
  padding: 20px;
  background: var(--bg-dark);
  border: 1px solid var(--home-accent-border);
  clip-path: var(--home-cut-md);
  animation: homeReveal 0.28s var(--ease);
}
.page-home .dl-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.page-home .dl-option:last-of-type {
  border-bottom: 0;
}
.page-home .dl-option b {
  display: block;
  font-size: 15px;
  color: var(--text-main);
}
.page-home .dl-option span:last-child {
  font-size: 13px;
  color: var(--text-body);
}
.page-home .dl-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 15px;
  background: var(--home-accent-soft);
  color: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 20% 100%, 0 70%);
}
.page-home .dl-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .home-library {
  position: relative;
}
.page-home .home-library::before {
  content: "";
  position: absolute;
  right: -60px;
  top: 10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.08), transparent 68%);
  pointer-events: none;
}
.page-home .library-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.page-home .library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.page-home .library-meta-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-home .lib-card {
  padding: 24px 20px;
  background: var(--home-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent);
  clip-path: var(--home-cut-md);
}
.page-home .lib-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.page-home .lib-live {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}
.page-home .lib-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta);
  margin-right: 6px;
  animation: homePulse 1.4s infinite;
}
.page-home .lib-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
.page-home .lib-kpi {
  padding: 12px 8px;
  background: rgba(27, 38, 59, 0.7);
  text-align: center;
}
.page-home .lib-kpi-num {
  display: block;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--accent-light);
}
.page-home .lib-kpi-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-body);
}
.page-home .lib-note {
  margin: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-body);
  background: rgba(255, 107, 53, 0.08);
  border-left: 3px solid var(--cta);
  clip-path: var(--home-cut-md);
}
.page-home .library-img-mask {
  overflow: hidden;
  clip-path: polygon(0 0, 94% 0, 100% 8%, 100% 100%, 8% 100%, 0 94%);
}
.page-home .library-img-mask img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.page-home .library-img-mask:hover img {
  transform: scale(1.02);
}

.page-home .teams-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.page-home .teams-body-col {
  min-width: 0;
}
.page-home .teams-steps {
  list-style: none;
  counter-reset: homeStep;
  margin: 0 0 22px;
  padding: 0;
}
.page-home .teams-steps li {
  counter-increment: homeStep;
  position: relative;
  padding: 0 0 18px 48px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.page-home .teams-steps li::before {
  content: counter(homeStep);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  background: var(--home-accent-soft);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}
.page-home .teams-steps li strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 4px;
}
.page-home .teams-steps li span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}
.page-home .teams-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.page-home .teams-support {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0;
}
.page-home .teams-support a {
  color: var(--accent);
  text-decoration: none;
}
.page-home .teams-support a:hover {
  text-decoration: underline;
}
.page-home .teams-media-col {
  min-width: 0;
}
.page-home .teams-media-frame {
  overflow: hidden;
  clip-path: polygon(0 0, 90% 2%, 100% 96%, 6% 100%);
}
.page-home .teams-media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .teams-switcher {
  margin-top: 18px;
  background: var(--bg-dark);
  border: 1px solid var(--home-accent-border);
  clip-path: var(--home-cut-md);
}
.page-home .teams-switcher summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.page-home .teams-switcher summary::-webkit-details-marker {
  display: none;
}
.page-home .teams-switcher-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.page-home .teams-current-label {
  font-size: 12px;
  color: var(--text-dim);
}
.page-home .teams-current-name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  color: var(--accent-light);
}
.page-home .teams-switch-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.page-home .teams-switch-hint::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.page-home .teams-switcher[open] .teams-switch-hint::after {
  transform: rotate(225deg);
}
.page-home .teams-dropdown {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: homeReveal 0.25s var(--ease);
}
.page-home .team-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--text-body);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.page-home .team-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}
.page-home .team-option.is-active {
  background: var(--home-accent-soft);
  color: var(--accent-light);
}
.page-home .team-check {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--font-data);
  color: var(--accent);
}
.page-home .team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.page-home .team-dot-green {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 160, 0.6);
}
.page-home .team-dot-orange {
  background: var(--cta);
}

.page-home .home-explore {
  position: relative;
}
.page-home .home-explore::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: 8%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.07), transparent 66%);
  pointer-events: none;
}
.page-home .explore-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-home .explore-head .section-desc {
  max-width: 380px;
  margin-bottom: 0;
}
.page-home .explore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.page-home .explore-card {
  position: relative;
  display: block;
  padding: 26px 22px 22px;
  background: var(--home-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  clip-path: var(--home-cut-md);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.page-home .explore-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s var(--ease);
}
.page-home .explore-card:hover {
  transform: translateY(-4px);
  border-color: var(--home-accent-border);
  background: rgba(0, 229, 160, 0.07);
}
.page-home .explore-card:hover::before {
  transform: scaleY(1);
}
.page-home .explore-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.page-home .explore-name {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  color: var(--text-main);
}
.page-home .explore-desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 320px;
}
.page-home .explore-arrow {
  position: absolute;
  right: 18px;
  top: 22px;
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.page-home .explore-card:hover .explore-arrow {
  transform: translate(4px, -4px);
}

.page-home .home-updates {
  background: linear-gradient(180deg, transparent, rgba(0, 229, 160, 0.04) 58%, transparent);
}
.page-home .updates-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-home .updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-home .update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s var(--ease);
}
.page-home .update-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.page-home .update-tag {
  flex-shrink: 0;
  font-size: 12px;
}
.page-home .update-link {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.page-home .update-link:hover {
  color: var(--accent-light);
}

@keyframes homePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 229, 160, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0);
  }
}
@keyframes homeReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .page-home .hero-stats {
    gap: 16px;
  }
  .page-home .hero-stat {
    padding: 20px 18px;
  }
  .page-home .hero-stat-value {
    font-size: 34px;
  }
  .page-home .lib-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .page-home .lib-kpi-num {
    font-size: 32px;
  }
  .page-home .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .explore-card:nth-child(4) {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .page-home .section-home {
    padding: 86px 0;
  }
  .page-home .home-shell {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 0 32px;
  }
  .page-home .home-side {
    display: block;
    flex: 0 0 100px;
    position: sticky;
    top: var(--home-side-top);
  }
  .page-home .home-main {
    flex: 1 1 auto;
  }
  .page-home .download-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
  .page-home .download-media-frame img {
    height: 720px;
    object-fit: cover;
    object-position: center;
  }
  .page-home .teams-wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }
  .page-home .teams-media-frame img {
    height: 520px;
    object-fit: cover;
    object-position: center;
  }
  .page-home .library-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 28px;
    align-items: center;
  }
  .page-home .library-visual-col {
    order: 1;
  }
  .page-home .library-meta-col {
    order: 0;
  }
  .page-home .lib-note {
    max-width: 460px;
  }
  .page-home .explore-card {
    padding: 32px 26px 26px;
  }
  .page-home .explore-name {
    font-size: 28px;
  }
}

@media (min-width: 1400px) {
  .page-home .home-shell {
    padding: 0 48px;
  }
  .page-home .home-side {
    flex-basis: 120px;
  }
}
