/* Homepage hero v2 ? Chihongoi blue */
body.cm-home .cm-hero--v2,
.cm-hero--v2 {
  position: relative;
  min-height: clamp(380px, 52vh, 520px);
  margin: 0;
  padding: 56px 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
  color: #ffffff !important;
  background-color: #0057c8;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.cm-hero--v2::before {
  display: none;
}

.cm-hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cm-hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}

.cm-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  animation: cm-hero-float 9s ease-in-out infinite;
}

.cm-hero__orb--a {
  width: 340px;
  height: 340px;
  top: -120px;
  right: 8%;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.55) 0%, rgba(120, 200, 255, 0) 70%);
}

.cm-hero__orb--b {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: 12%;
  background: radial-gradient(circle, rgba(0, 30, 120, 0.45) 0%, rgba(0, 30, 120, 0) 70%);
  animation-delay: -3s;
}

@keyframes cm-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.cm-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  width: min(100% - 48px, 1240px);
}

.cm-hero__copy {
  max-width: 620px;
  animation: cm-hero-rise 0.7s ease-out both;
}

@keyframes cm-hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eaf3ff !important;
  -webkit-text-fill-color: #eaf3ff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none !important;
}

body.cm-home .cm-hero--v2 h1,
.cm-hero--v2 h1,
.cm-hero--v2 .cm-hero__title {
  margin: 0 0 16px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-transform: none !important;
  text-shadow: 0 1px 2px rgba(0, 20, 70, 0.35), 0 4px 28px rgba(0, 30, 90, 0.35);
}

.cm-hero__lead {
  margin: 0 0 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.95) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}

.cm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.cm-btn--hero-primary,
.cm-btn--hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cm-btn--hero-primary {
  color: #0b3d8c !important;
  background: #fff !important;
  border: 0;
  box-shadow: 0 10px 28px rgba(0, 30, 90, 0.22);
}

.cm-btn--hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 30, 90, 0.28);
  color: #062a66 !important;
}

.cm-btn--hero-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(6px);
}

.cm-btn--hero-ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-2px);
}

.cm-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.95) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: none !important;
}

.cm-hero__trust .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.95;
}

.cm-hero__stage {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cm-hero-rise 0.85s ease-out 0.12s both;
}

.cm-hero__glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.cm-hero__doc {
  position: absolute;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 25, 80, 0.28);
}

.cm-hero__doc--back {
  width: 210px;
  height: 270px;
  transform: translate(36px, -10px) rotate(10deg);
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
  opacity: 0.85;
  z-index: 1;
}

.cm-hero__doc--mid {
  width: 220px;
  height: 280px;
  transform: translate(-28px, 8px) rotate(-8deg);
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  z-index: 2;
}

.cm-hero__doc--front {
  width: 230px;
  height: 290px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translate(0, 0) rotate(2deg);
  z-index: 3;
  animation: cm-hero-float 7s ease-in-out infinite;
}

.cm-hero__doc-bar {
  display: block;
  width: 42%;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  margin-bottom: 8px;
}

.cm-hero__doc-line {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
}

.cm-hero__doc-line--short { width: 62%; }
.cm-hero__doc-line--mid { width: 78%; }

.cm-hero__doc-chip {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .cm-hero__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cm-hero__stage {
    height: 250px;
    order: -1;
  }

  .cm-hero__doc--front {
    width: 180px;
    height: 230px;
  }

  .cm-hero__doc--mid {
    width: 170px;
    height: 220px;
  }

  .cm-hero__doc--back {
    width: 160px;
    height: 210px;
  }

  .cm-hero--v2 {
    padding: 40px 0 48px;
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .cm-hero__layout {
    width: min(100% - 24px, 540px);
  }

  .cm-hero__lead {
    font-size: 15px;
  }

  .cm-hero__trust {
    flex-direction: column;
    gap: 8px;
  }

  .cm-btn--hero-primary,
  .cm-btn--hero-ghost {
    width: 100%;
  }
}

/* Prevent legacy .cm-hero > div width clamp from breaking hero v2 */
.cm-hero.cm-hero--v2 > div {
  width: auto;
  max-width: none;
}
.cm-hero.cm-hero--v2 > .cm-hero__atmosphere {
  position: absolute;
  inset: 0;
  width: auto;
}
.cm-hero.cm-hero--v2 > .cm-hero__layout {
  width: min(100% - 48px, 1240px);
  margin-left: auto;
  margin-right: auto;
}
