.hero {
  position: relative;
  margin-top: -52px;
  padding-top: 52px;
  height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: #031225 url("../images/pycodev/banner.png") center center / cover no-repeat;
}

.hero::before {
  content: none;
}

.globe {
  position: absolute;
  right: 52px;
  top: 18px;
  width: 705px;
  height: 350px;
  opacity: 0.96;
  display: none;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 104px;
}

.kicker {
  margin: 0 0 12px;
  color: #2f93ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.hero p {
  width: 740px;
  margin: 0 0 26px;
  color: rgba(225, 236, 252, 0.78);
  font-size: 15px;
  line-height: 1.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.btn {
  height: 39px;
  min-width: 154px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
}

.btn.primary {
  color: #ffffff;
  background: #1677ff;
  box-shadow: 0 12px 26px rgba(22, 119, 255, 0.26);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(10, 22, 44, 0.44);
  border: 1px solid rgba(213, 229, 255, 0.56);
}

.hero-tags {
  display: flex;
  gap: 14px;
}

.hero-tag {
  width: 190px;
  height: 55px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(100, 154, 225, 0.27);
  background: rgba(7, 21, 43, 0.62);
  backdrop-filter: blur(6px);
}

.hero-tag:last-child {
  width: 238px;
}

.tag-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  background: #1677ff;
}

.tag-icon.vue {
  color: #56d890;
  background: rgba(0, 148, 98, 0.18);
  font-size: 24px;
}

.tag-icon.grid {
  position: relative;
  background: linear-gradient(135deg, #1f7fff, #4b70ff);
  font-size: 0;
}

.tag-icon.grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  display: block;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#ffffff, #ffffff) left top / 7px 7px no-repeat,
    linear-gradient(#ffffff, #ffffff) right top / 7px 7px no-repeat,
    linear-gradient(#ffffff, #ffffff) left bottom / 7px 7px no-repeat,
    linear-gradient(#ffffff, #ffffff) right bottom / 7px 7px no-repeat;
  border-radius: 2px;
}

.hero-tag strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.1;
}

.hero-tag > span:not(.tag-icon) {
  display: block;
}

.hero-tag > span:not(.tag-icon) > span {
  display: block;
  margin-top: 4px;
  color: rgba(218, 231, 249, 0.68);
  font-size: 11px;
  white-space: nowrap;
}

.advantages {
  padding-bottom: 34px;
  padding-top: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 128, 255, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-bottom: 1px solid #eef3fa;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.adv-card {
  min-height: 150px;
  padding: 22px 26px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 35, 62, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18, 35, 62, 0.12);
}

.adv-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #1677ff;
  background: #eaf4ff;
  font-size: 22px;
  font-weight: 900;
}

.adv-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.adv-card p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.65;
}

.products {
  padding-bottom: 30px;
  padding-top: 18px;
  background:
    radial-gradient(circle at 50% 4%, rgba(32, 128, 255, 0.08), transparent 28%),
    #ffffff;
  border-bottom: 1px solid #eef3fa;
}

.section-title {
  margin: 0;
  text-align: center;
  color: #111827;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 900;
}

.section-desc {
  margin: 6px auto 14px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-group + .product-group {
  margin-top: 22px;
}

.product-group-head {
  margin-bottom: 12px;
}

.product-group-title {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.product-group-desc {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-content: start;
  min-height: 196px;
  padding: 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 35, 62, 0.06);
}

.product-icon {
  min-width: 36px;
  width: auto;
  height: 36px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  border-radius: 18px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  background: #1677ff;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.22);
}

.product-icon.cms { background: #20b989; }
.product-icon.ocr { background: #6f52ed; }
.product-icon.uni { background: #ff7a1a; }
.product-icon.wemp { background: #19b7a7; }
.product-icon.rag { background: #1677ff; }

.product-card h3 {
  align-self: center;
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  text-align: right;
}

.product-card p {
  grid-column: 1 / -1;
  min-height: 56px;
  margin: 8px 0 7px;
  color: #5f6b7a;
  font-size: 11px;
  line-height: 1.72;
}

.chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  min-height: 22px;
  margin-bottom: 9px;
}

.chip {
  padding: 3px 7px;
  border-radius: 4px;
  color: #1677ff;
  background: #eaf4ff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.chip.green { color: #0d8b68; background: #e6f8f1; }
.chip.purple { color: #7256e8; background: #f0edff; }
.chip.orange { color: #e86f00; background: #fff1e5; }
.chip.teal { color: #119889; background: #e5f8f6; }

.card-link {
  width: 58px;
  height: 24px;
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #1677ff;
  background: #ffffff;
  border: 1px solid rgba(22, 119, 255, 0.42);
  font-size: 11px;
  font-weight: 900;
  box-shadow: none;
}

.scenes-section,
.entry-section,
.cta-section {
  padding: 24px 0 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 128, 255, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-bottom: 1px solid #eef3fa;
}

.entry-section {
  display: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 128, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #fafdff 0%, #f4f9ff 100%);
}

.cta-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 128, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.scene-grid,
.entry-grid,
.cta-grid {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

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

.entry-grid,
.cta-grid {
  grid-template-columns: repeat(3, 1fr);
}

.scene-card,
.entry-card,
.cta-card {
  min-height: 176px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 35, 62, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scene-card:hover,
.entry-card:hover,
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18, 35, 62, 0.12);
}

.scene-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1677ff;
  background: #eaf4ff;
  font-size: 11px;
  font-weight: 800;
}

.scene-card h3,
.entry-card h3,
.cta-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.scene-card p,
.entry-card p,
.cta-card p {
  margin: 0 0 8px;
  color: #5f6b7a;
  font-size: 12px;
  line-height: 1.72;
}

.scene-note {
  margin-bottom: 0;
  color: #6b7280;
}

.capabilities {
  padding-bottom: 34px;
  padding-top: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 128, 255, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-bottom: 1px solid #eef3fa;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 22px;
}

.cap-card {
  min-height: 120px;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 35, 62, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18, 35, 62, 0.12);
}

.cap-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(135deg, #0b78ff, #1c6bff);
  box-shadow: 0 10px 18px rgba(22, 119, 255, 0.18);
}

.cap-icon.green { background: linear-gradient(135deg, #18b984, #16a06e); }
.cap-icon.orange { background: linear-gradient(135deg, #ff8120, #f46a00); }
.cap-icon.purple { background: linear-gradient(135deg, #7948ea, #5b33d7); }

.cap-card h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.cap-card p {
  margin: 0 0 5px;
  color: #5f6b7a;
  font-size: 11px;
  line-height: 1.52;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 28px;
  margin-top: 10px;
  border-radius: 4px;
  color: #1677ff;
  border: 1px solid rgba(22, 119, 255, 0.42);
  font-size: 12px;
  font-weight: 900;
  background: #ffffff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 1120px) {
  .hero,
  .products,
  .advantages,
  .capabilities {
    height: auto;
  }

  .hero {
    padding-bottom: 36px;
  }

  .product-grid,
  .adv-grid,
  .cap-grid,
  .entry-grid,
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .products,
  .advantages,
  .capabilities {
    padding-bottom: 28px;
  }
}

@media (max-width: 820px) {
  .hero {
    margin-top: -64px;
    padding-top: 64px;
    height: auto;
    padding-bottom: 34px;
  }

  .hero-copy,
  .hero p {
    width: 100%;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions,
  .hero-tags {
    flex-wrap: wrap;
  }

  .hero-tag,
  .hero-tag:last-child {
    width: calc(50% - 7px);
  }

  .product-grid,
  .adv-grid,
  .cap-grid,
  .scene-grid,
  .entry-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-copy,
  .hero p {
    width: 100%;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-tags {
    gap: 10px;
  }

  .hero-tag,
  .hero-tag:last-child {
    width: 100%;
  }
}
