/* Jizhi homepage visual upgrade — 2026-08-13 */
.jz-hero-upgraded {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #030810;
  isolation: isolate;
}

.jz-hero-upgraded::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(90deg, rgba(3,8,16,.98) 0%, rgba(3,8,16,.88) 32%, rgba(3,8,16,.38) 60%, rgba(3,8,16,.22) 100%),
              var(--jz-hero-image) center right / cover no-repeat;
  transform: scale(1.015);
  animation: jzHeroDrift 18s ease-in-out infinite alternate;
}

.jz-hero-upgraded::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 68% 52%, rgba(0,196,167,.12), transparent 30%),
              linear-gradient(180deg, rgba(3,8,16,.05), #030810 96%);
  pointer-events: none;
}

.jz-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 128px 0 72px;
}

.jz-hero-copy { width: min(610px, 54%); }

.jz-hero-copy h1 { text-wrap: balance; }
.jz-hero-upgraded .jz-hero-copy .hero-h1 {
  color: #fff !important;
  font-weight: 760 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 3px 28px rgba(0,0,0,.58);
}
.jz-hero-upgraded .jz-hero-copy .hero-h1 span {
  color: #31d8c3 !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  text-shadow: 0 2px 22px rgba(0,0,0,.5);
}
.jz-hero-copy .hero-p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  color: #d3dce8 !important;
  font-size: 17px !important;
  font-weight: 450 !important;
  line-height: 1.85 !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.75);
}
.jz-hero-copy .hero-btns { justify-content: flex-start !important; }

.jz-hero-eyebrow {
  color: #7ff7e4 !important;
  background: rgba(3,18,30,.76) !important;
  border-color: rgba(49,216,195,.48) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jz-hero-platforms span {
  color: #e5edf6 !important;
  background: rgba(3,15,27,.72) !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.jz-hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  width: min(660px, 100%);
  margin-top: 46px;
  padding: 18px 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(4,14,27,.52);
  box-shadow: 0 24px 70px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.jz-hero-proof > div { padding: 0 18px !important; max-width: none !important; }

.jz-hero-proof > div:not(:last-child) { border-right: 1px solid rgba(255,255,255,.08) !important; }

.jz-hero-proof > div > div:first-child {
  color: #fff !important;
  font-weight: 760 !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.jz-hero-proof > div > div:last-child { color: #b9c6d6 !important; }

/* Services: two-column editorial cards with tailored images */
.jz-service-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Neutralize the legacy inline mobile script if it ran before this stylesheet loaded. */
@media (min-width: 1051px) {
  .jz-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

.jz-service-grid .jz-service-card {
  min-width: 0 !important;
  padding: 0 0 20px !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #e0e5eb !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.05) !important;
}

.jz-service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 20px;
  background: #071423;
}

.jz-service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(2,12,22,.22));
  pointer-events: none;
}

.jz-service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.jz-service-card:hover .jz-service-media img { transform: scale(1.035); }

.jz-service-card > :not(.jz-service-media) {
  margin-left: 20px !important;
  margin-right: 20px !important;
}

.jz-service-card > div:nth-child(2) { margin-bottom: 16px !important; }
.jz-service-card h3 {
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}
.jz-service-card p {
  color: #596476 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}
.jz-service-card > div:last-child { margin-top: auto !important; }

@media (max-width: 1050px) and (min-width: 821px) {
  .jz-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.jz-visual-card {
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.jz-visual-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(0,196,167,.16), transparent 68%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.jz-visual-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0,196,167,.22) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.jz-visual-card:hover::after { opacity: 1; }

@keyframes jzHeroDrift {
  from { transform: scale(1.015) translate3d(0,0,0); }
  to { transform: scale(1.045) translate3d(-.6%, -.4%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .jz-hero-upgraded::before { animation: none; }
  .jz-visual-card { transition: none; }
}

@media (max-width: 820px) {
  .jz-hero-upgraded { min-height: auto; }
  .jz-hero-upgraded::before {
    background: linear-gradient(180deg, rgba(3,8,16,.50) 0%, rgba(3,8,16,.84) 42%, #030810 83%),
                var(--jz-hero-image) 64% top / auto 58% no-repeat;
    animation: none;
  }
  .jz-hero-inner { width: min(100% - 32px, 620px); padding: 390px 0 54px; }
  .jz-hero-copy { width: 100%; text-align: left; }
  .jz-hero-upgraded .jz-hero-copy .hero-h1 {
    font-size: clamp(36px, 10vw, 50px) !important;
    line-height: 1.14 !important;
    letter-spacing: -.03em !important;
  }
  .jz-hero-copy .hero-p { font-size: 15px !important; line-height: 1.8 !important; }
  .jz-hero-copy .hero-btns { align-items: stretch !important; }
  .jz-hero-proof { grid-template-columns: repeat(2,1fr); margin-top: 30px; padding: 6px; }
  .jz-hero-proof > div { padding: 14px 10px !important; }
  .jz-hero-proof > div:nth-child(2) { border-right: 0 !important; }
  .jz-hero-proof > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .jz-service-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .jz-service-grid .jz-service-card {
    flex: none !important;
    width: 100% !important;
    border-radius: 13px !important;
    scroll-snap-align: none !important;
  }
  .jz-service-media { aspect-ratio: 16 / 9; margin-bottom: 20px; }
  .jz-service-card > :not(.jz-service-media) {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}

@media (max-width: 480px) {
  .jz-hero-inner { padding-top: 315px; }
}
