/* Final product-stage and density pass. Loaded last on purpose. */

.hero {
  min-height: min(920px, 100vh);
  padding-top: clamp(96px, 9vh, 124px);
  padding-bottom: clamp(40px, 5vh, 72px);
  overflow: hidden;
}

.hero .hero-content {
  max-width: min(100% - 72px, 1660px);
  grid-template-columns: minmax(470px, 0.78fr) minmax(720px, 1.22fr);
  gap: clamp(28px, 3.2vw, 70px);
  align-items: center;
}

.hero .hero-copy {
  max-width: 660px;
}

.hero .hero-product-stage {
  width: min(58vw, 900px);
  height: clamp(520px, 45vw, 650px);
  margin-left: auto;
  transform: translateY(16px);
  overflow: visible;
  isolation: isolate;
}

.hero .hero-product-stage > figure {
  margin: 0;
}

.hero .hero-product-stage::before {
  width: 70%;
  height: 52%;
  left: 28%;
  top: 38%;
  background:
    radial-gradient(circle at 46% 48%, rgba(255, 91, 22, 0.09), transparent 46%),
    radial-gradient(circle at 80% 62%, rgba(25, 91, 170, 0.055), transparent 54%);
  filter: blur(34px);
  opacity: 0.38;
}

.hero .hero-real-monitor,
.hero .hero-console-window,
.hero .hero-window {
  left: 9% !important;
  top: 0 !important;
  width: min(78%, 760px) !important;
  max-width: 760px !important;
  z-index: 1;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 16px 20px rgba(24, 27, 31, 0.075));
}

.hero .hero-real-monitor img,
.hero .hero-console-window img,
.hero .hero-window img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent !important;
  box-shadow: none !important;
}

.hero .hero-phone-main,
.hero .hero-phone-alt {
  width: clamp(218px, 14.2vw, 270px) !important;
  z-index: 6;
  filter: drop-shadow(0 11px 13px rgba(24, 27, 31, 0.10));
}

.hero .hero-phone-main {
  left: 33% !important;
  bottom: 0 !important;
}

.hero .hero-phone-alt {
  right: 2% !important;
  bottom: 0 !important;
}

.hero .hero-phone-main img,
.hero .hero-phone-alt img {
  width: 100%;
  height: auto;
  filter: none !important;
  box-shadow: none !important;
}

.hero .hero-mascot {
  right: -2px !important;
  bottom: 142px !important;
  width: clamp(72px, 5.6vw, 104px) !important;
  z-index: 7;
  filter: drop-shadow(0 8px 12px rgba(24, 27, 31, 0.09));
}

.hero .hero-stat-card {
  left: 50% !important;
  bottom: 92px !important;
  width: 166px;
  padding: 17px 18px;
  z-index: 8;
  box-shadow: 0 14px 20px rgba(24, 27, 31, 0.14);
}

.hero .hero-stat-card strong {
  font-size: clamp(30px, 2.4vw, 40px);
}

@media (max-width: 1500px) and (min-width: 901px) {
  .hero .hero-content {
    max-width: min(100% - 48px, 1260px);
    grid-template-columns: minmax(390px, 0.78fr) minmax(620px, 1.22fr);
    gap: clamp(22px, 2.6vw, 42px);
  }

  .hero .hero-product-stage {
    width: min(58vw, 720px);
    height: clamp(500px, 47vw, 570px);
  }

  .hero .hero-real-monitor,
  .hero .hero-console-window,
  .hero .hero-window {
    left: 7% !important;
    top: 2px !important;
    width: min(78%, 590px) !important;
  }

  .hero .hero-phone-main,
  .hero .hero-phone-alt {
    width: clamp(186px, 15.2vw, 218px) !important;
  }

  .hero .hero-phone-main {
    left: 31% !important;
    bottom: 2px !important;
  }

  .hero .hero-phone-alt {
    right: 2% !important;
    bottom: 2px !important;
  }

  .hero .hero-mascot {
    right: -6px !important;
    bottom: 128px !important;
    width: clamp(64px, 5.8vw, 82px) !important;
  }

  .hero .hero-stat-card {
    left: 49% !important;
    bottom: 78px !important;
    width: 138px;
    padding: 15px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero .hero-content {
    max-width: min(100% - 28px, 720px);
    grid-template-columns: 1fr;
  }

  .hero .hero-product-stage {
    width: 100%;
    height: min(96vw, 520px);
    transform: none;
  }

  .hero .hero-real-monitor,
  .hero .hero-console-window,
  .hero .hero-window {
    left: 16% !important;
    top: 8px !important;
    width: 70% !important;
  }

  .hero .hero-phone-main {
    left: 16% !important;
    bottom: 10px !important;
    width: 35% !important;
  }

  .hero .hero-phone-alt {
    right: 8% !important;
    bottom: 10px !important;
    width: 35% !important;
  }

  .hero .hero-mascot {
    right: 1% !important;
    bottom: 30% !important;
    width: 13% !important;
  }

  .hero .hero-stat-card {
    left: 42% !important;
    bottom: 16% !important;
    width: 132px;
    padding: 14px;
  }
}

#coordination .sync-endpoint-console {
  overflow: hidden;
}

#coordination .sync-endpoint-console figure.sync-real-monitor-wrap {
  width: min(100%, 390px) !important;
  max-width: 390px !important;
  height: 276px !important;
  margin: 12px auto 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
}

#coordination .sync-endpoint-console figure.sync-real-monitor-wrap::before,
#coordination .sync-endpoint-console figure.sync-real-monitor-wrap::after {
  display: none !important;
}

#coordination .sync-endpoint-console .sync-real-monitor {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 12px 18px rgba(24, 27, 31, 0.1));
}

.section-heading h2,
.section-heading.compact h2,
#driver .section-heading h2,
#language .section-heading h2,
#console .section-heading h2,
#tech-framework .section-heading h2,
#mvp .section-heading h2 {
  max-width: min(920px, 100%);
  font-size: clamp(30px, 2.45vw, 44px);
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.section-heading.compact h2 {
  max-width: min(780px, 100%);
}

#driver .vip-journey-featured {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 46px);
  padding: clamp(34px, 4vw, 56px);
  overflow: hidden;
}

#driver .vip-journey-featured .journey-copy h3 {
  font-size: clamp(28px, 2.1vw, 38px);
  line-height: 1.16;
  max-width: 390px;
}

#driver .vip-journey-featured .journey-copy p {
  max-width: 390px;
  line-height: 1.78;
}

#driver .vip-journey-featured .phone-strip.four {
  min-width: 0;
  gap: clamp(16px, 1.5vw, 28px);
  justify-content: space-between;
  align-items: flex-end;
}

#driver .vip-journey-featured .phone-strip.four figure {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

#driver .vip-journey-featured .phone-strip.four img {
  width: min(100%, 180px);
  max-height: 370px;
  object-fit: contain;
}

#driver .vip-journey-featured .journey-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: clamp(8px, 1vw, 14px);
  align-items: center;
  margin-top: clamp(12px, 1.6vw, 24px);
}

#driver .vip-journey-featured .journey-flow span {
  min-height: 56px;
  width: 100%;
  padding: 0 16px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  border-radius: 999px;
}

#driver .vip-journey-featured .journey-flow i {
  width: 28px;
  height: 28px;
  margin: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  border-radius: 999px;
  transform: none;
}

@media (max-width: 1100px) {
  #driver .vip-journey-featured {
    grid-template-columns: 1fr;
  }

  #driver .vip-journey-featured .journey-copy h3,
  #driver .vip-journey-featured .journey-copy p {
    max-width: 100%;
  }

  #driver .vip-journey-featured .journey-flow {
    grid-template-columns: 1fr;
  }

  #driver .vip-journey-featured .journey-flow i {
    transform: rotate(90deg);
  }
}

/* 2026-06-11: hero stage composition and section density refinement. */
.hero .hero-content {
  grid-template-columns: minmax(430px, 0.82fr) minmax(680px, 1.18fr);
}

.hero .hero-product-stage {
  width: min(57vw, 860px);
  height: clamp(500px, 41vw, 600px);
  transform: translateY(8px);
}

.hero .hero-product-stage::before {
  left: 32%;
  top: 44%;
  width: 58%;
  height: 42%;
  background:
    radial-gradient(circle at 44% 40%, rgba(255, 91, 22, 0.075), transparent 45%),
    radial-gradient(circle at 78% 64%, rgba(54, 112, 179, 0.06), transparent 54%);
  filter: blur(38px);
  opacity: 0.42;
}

.hero .hero-real-monitor,
.hero .hero-console-window,
.hero .hero-window {
  left: 12% !important;
  top: 2px !important;
  width: min(71%, 700px) !important;
  filter: drop-shadow(0 13px 16px rgba(24, 27, 31, 0.065));
}

.hero .hero-phone-main,
.hero .hero-phone-alt {
  width: clamp(214px, 13.1vw, 255px) !important;
  filter: drop-shadow(0 8px 11px rgba(24, 27, 31, 0.085));
}

.hero .hero-phone-main {
  left: 32% !important;
  bottom: 8px !important;
}

.hero .hero-phone-alt {
  right: 5.5% !important;
  bottom: 10px !important;
}

.hero .hero-mascot {
  right: -1.5% !important;
  bottom: 138px !important;
  width: clamp(66px, 4.9vw, 92px) !important;
  filter: drop-shadow(0 7px 10px rgba(24, 27, 31, 0.075));
}

.hero .hero-stat-card {
  left: 49.2% !important;
  bottom: 96px !important;
  width: 158px;
  padding: 16px 17px;
  border-radius: 18px;
  box-shadow: 0 12px 18px rgba(24, 27, 31, 0.13);
}

.hero .hero-stat-card strong {
  font-size: clamp(29px, 2.2vw, 38px);
}

@media (max-width: 1500px) and (min-width: 901px) {
  .hero .hero-content {
    grid-template-columns: minmax(370px, 0.8fr) minmax(600px, 1.2fr);
  }

  .hero .hero-product-stage {
    width: min(58vw, 690px);
    height: clamp(470px, 44vw, 540px);
  }

  .hero .hero-real-monitor,
  .hero .hero-console-window,
  .hero .hero-window {
    left: 10% !important;
    width: min(72%, 540px) !important;
  }

  .hero .hero-phone-main,
  .hero .hero-phone-alt {
    width: clamp(176px, 14.2vw, 206px) !important;
  }

  .hero .hero-phone-main {
    left: 31.5% !important;
    bottom: 6px !important;
  }

  .hero .hero-phone-alt {
    right: 5% !important;
    bottom: 8px !important;
  }

  .hero .hero-mascot {
    right: -1% !important;
    bottom: 116px !important;
    width: clamp(58px, 4.9vw, 76px) !important;
  }

  .hero .hero-stat-card {
    left: 48.5% !important;
    bottom: 78px !important;
    width: 132px;
    padding: 13px 14px;
  }
}

#coordination .sync-endpoint-console figure.sync-real-monitor-wrap {
  height: auto !important;
  max-height: 286px !important;
  overflow: visible !important;
  background: transparent !important;
}

#coordination .sync-endpoint-console .sync-real-monitor {
  height: auto !important;
  max-height: 286px !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: drop-shadow(0 10px 14px rgba(24, 27, 31, 0.08));
}

#driver .vip-journey-featured {
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  gap: clamp(22px, 2.4vw, 38px);
  padding: clamp(30px, 3.2vw, 46px);
}

#driver .vip-journey-featured .journey-copy h3 {
  font-size: clamp(26px, 1.85vw, 34px);
  line-height: 1.18;
  max-width: 360px;
}

#driver .vip-journey-featured .journey-copy p {
  max-width: 360px;
  line-height: 1.68;
}

#driver .vip-journey-featured .progress-card {
  padding: 20px 24px;
}

#driver .vip-journey-featured .phone-strip.four {
  gap: clamp(14px, 1.2vw, 22px);
  align-items: end;
}

#driver .vip-journey-featured .phone-strip.four img {
  width: min(100%, 166px);
  max-height: 342px;
}

#driver .vip-journey-featured .journey-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 46px);
  margin-top: clamp(8px, 1vw, 16px);
}

#driver .vip-journey-featured .journey-flow i {
  display: none !important;
}

#driver .vip-journey-featured .journey-flow span {
  position: relative;
  min-height: 54px;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.2;
}

#driver .vip-journey-featured .journey-flow span:not(:last-of-type)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: calc(-1 * clamp(27px, 2.45vw, 34px));
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff1ea;
  color: #ff5b16;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  #driver .vip-journey-featured .journey-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #driver .vip-journey-featured .journey-flow span:not(:last-of-type)::after {
    right: 50%;
    top: auto;
    bottom: -24px;
    transform: translateX(50%) rotate(90deg);
  }
}

/* 2026-06-11: homepage product stage, final composition pass. */
.hero .hero-content {
  grid-template-columns: minmax(410px, 0.92fr) minmax(620px, 1.08fr);
  align-items: center;
}

.hero .hero-product-stage {
  width: min(58vw, 920px);
  height: clamp(480px, 40vw, 590px);
  transform: translateY(18px);
  overflow: visible;
  isolation: isolate;
}

.hero .hero-product-stage::before {
  left: 36%;
  top: 50%;
  width: 56%;
  height: 36%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 91, 22, 0.055), transparent 48%),
    radial-gradient(circle at 84% 58%, rgba(74, 118, 170, 0.045), transparent 56%);
  filter: blur(32px);
  opacity: 0.32;
}

.hero .hero-real-monitor,
.hero .hero-console-window,
.hero .hero-window {
  left: 8% !important;
  top: 0 !important;
  width: min(84%, 780px) !important;
  z-index: 1;
  filter: drop-shadow(0 8px 10px rgba(24, 27, 31, 0.045));
}

.hero .hero-phone-main,
.hero .hero-phone-alt {
  width: clamp(200px, 13.1vw, 266px) !important;
  z-index: 3;
  filter: drop-shadow(0 6px 8px rgba(24, 27, 31, 0.065));
}

.hero .hero-phone-main {
  left: 31% !important;
  bottom: 2px !important;
}

.hero .hero-phone-alt {
  right: 3.5% !important;
  bottom: 4px !important;
}

.hero .hero-mascot {
  right: -2.2% !important;
  bottom: 118px !important;
  width: clamp(56px, 4.25vw, 78px) !important;
  z-index: 4;
  filter: drop-shadow(0 5px 6px rgba(24, 27, 31, 0.05));
}

.hero .hero-stat-card {
  left: 45.5% !important;
  bottom: 76px !important;
  z-index: 5;
  width: clamp(126px, 9.5vw, 152px);
  padding: 13px 15px;
  border-radius: 17px;
  box-shadow: 0 10px 16px rgba(24, 27, 31, 0.12);
}

.hero .hero-stat-card span {
  font-size: 11px;
}

.hero .hero-stat-card strong {
  font-size: clamp(28px, 2.1vw, 35px);
  line-height: 1;
}

.hero .hero-stat-card p {
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 1500px) and (min-width: 901px) {
  .hero .hero-content {
    grid-template-columns: minmax(360px, 0.88fr) minmax(560px, 1.12fr);
  }

  .hero .hero-product-stage {
    width: min(58vw, 700px);
    height: clamp(430px, 42vw, 510px);
    transform: translateY(16px);
  }

  .hero .hero-real-monitor,
  .hero .hero-console-window,
  .hero .hero-window {
    left: 8% !important;
    width: min(82%, 560px) !important;
  }

  .hero .hero-phone-main,
  .hero .hero-phone-alt {
    width: clamp(170px, 13.6vw, 204px) !important;
  }

  .hero .hero-phone-main {
    left: 30% !important;
    bottom: 0 !important;
  }

  .hero .hero-phone-alt {
    right: 2.5% !important;
    bottom: 2px !important;
  }

  .hero .hero-mascot {
    right: -3% !important;
    bottom: 98px !important;
    width: clamp(50px, 4.3vw, 66px) !important;
  }

  .hero .hero-stat-card {
    left: 45% !important;
    bottom: 64px !important;
    width: 122px;
    padding: 11px 12px;
  }

  .hero .hero-stat-card strong {
    font-size: 27px;
  }
}

@media (max-width: 900px) {
  .hero .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero .hero-product-stage {
    width: min(100%, 560px);
    height: 470px;
    margin: 0 auto;
    transform: none;
  }

  .hero .hero-real-monitor,
  .hero .hero-console-window,
  .hero .hero-window {
    left: 7% !important;
    top: 0 !important;
    width: 86% !important;
  }

  .hero .hero-phone-main,
  .hero .hero-phone-alt {
    width: clamp(148px, 35vw, 180px) !important;
  }

  .hero .hero-phone-main {
    left: 16% !important;
    bottom: 16px !important;
  }

  .hero .hero-phone-alt {
    right: 10% !important;
    bottom: 18px !important;
  }

  .hero .hero-mascot {
    right: 3% !important;
    bottom: 106px !important;
    width: 50px !important;
  }

  .hero .hero-stat-card {
    left: 44% !important;
    bottom: 82px !important;
    width: 116px;
    padding: 10px 11px;
  }
}
