/* Performance layer: keeps the original look while reducing paint/compositing work. */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body.registration-modal-open { overflow: hidden; }

.registration-modal[hidden] { display: none; }
.registration-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 180ms ease;
}
.registration-modal.is-open { opacity: 1; }
.registration-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 67, .68);
  backdrop-filter: blur(8px);
}
.registration-dialog {
  position: relative;
  width: min(550px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(13, 27, 91, .34);
  transform: translateY(14px) scale(.97);
  transition: transform 180ms ease;
}
.registration-modal.is-open .registration-dialog { transform: none; }
.registration-dialog-header {
  position: relative;
  padding: 38px 40px 22px;
  color: #fff;
  background: linear-gradient(125deg, #1d55d9 0%, #444fe0 54%, #8651e9 100%);
  overflow: hidden;
}
.registration-dialog-header::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -66px;
  top: -105px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255,255,255,.05);
}
.registration-dialog-label {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: 11px;
  letter-spacing: .16em;
}
.registration-dialog-header h2 { margin: 18px 0 2px; font-size: 30px; line-height: 1.25; }
.registration-dialog-header p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }
.registration-dialog-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: 300 32px/38px Arial, sans-serif;
  cursor: pointer;
}
.registration-dialog-body { padding: 34px 44px 38px; text-align: center; }
.registration-qr-frame {
  position: relative;
  width: 288px;
  max-width: 84%;
  aspect-ratio: 1;
  margin: 0 auto 24px;
  padding: 20px;
  border: 1px solid #dde4f3;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(35, 56, 130, .09);
}
.registration-qr-frame::before,
.registration-qr-frame::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: #5567ff;
}
.registration-qr-frame::before { left: -6px; top: -6px; border-left: 2px solid; border-top: 2px solid; border-radius: 14px 0 0; }
.registration-qr-frame::after { right: -6px; bottom: -6px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 14px; }
.registration-qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.registration-dialog-body h3 { margin: 0 0 8px; color: #16182c; font-size: 23px; }
.registration-dialog-body > p { margin: 0; color: #858da4; font-size: 14px; }
.registration-benefits {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8ebf3;
  color: #69738a;
  font-size: 13px;
}
.registration-benefits span::before { content: "✓"; margin-right: 6px; color: #10b981; }

@media (max-width: 540px) {
  .registration-modal { padding: 14px; }
  .registration-dialog { border-radius: 22px; }
  .registration-dialog-header { padding: 30px 24px 20px; }
  .registration-dialog-header h2 { margin-top: 15px; font-size: 25px; }
  .registration-dialog-body { padding: 28px 22px 30px; }
  .registration-benefits { gap: 12px; }
}

/* Keep one hero palette at every desktop breakpoint. The original stylesheet
   swaps to a darker gradient above 2600px, which made maximize/restore appear
   to change the site's color theme. */
.hero {
  isolation: isolate;
  background-color: #153bb5;
  background-image:
    radial-gradient(720px 560px at calc(50% + 430px) 300px, rgba(123, 105, 255, .48), transparent 72%),
    radial-gradient(620px 520px at calc(50% - 610px) 310px, rgba(28, 118, 255, .30), transparent 76%),
    linear-gradient(118deg, #103ba5 0%, #2450d2 52%, #5129c6 100%);
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 73% 38%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 70% at 73% 38%, #000 0%, transparent 76%);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(31, 28, 151, .18));
}

.journey-card,
.market-section,
.design-lab-section,
.advantages-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.journey-card-visual,
.journey-shipping-route,
.market-content,
.advantage-card {
  opacity: 1 !important;
  filter: none !important;
  clip-path: none !important;
  transform: none;
}

.design-model-viewer {
  will-change: transform;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

model-viewer.design-model-viewer {
  z-index: 2;
  display: block;
  background: transparent;
  opacity: 0;
}

model-viewer.design-model-viewer.is-ready { opacity: 1; }
.design-model-placeholder.is-hidden { opacity: 0; pointer-events: none; }

.design-feature-stack::before,
.design-feature-stack::after,
.design-model-platform {
  display: none !important;
}

.design-feature-stack {
  display: none !important;
}

@media (min-width: 821px) {
  model-viewer.design-model-viewer {
    transform: translateX(var(--model-shift-x, 0%)) scale(var(--model-scale, .78));
    transform-origin: 50% 52%;
  }
}

.design-3d-loading {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  padding: 9px 14px;
  border: 1px solid rgba(118, 80, 245, .18);
  border-radius: 999px;
  color: #6843d8;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(76, 49, 157, .12);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.partner-track { will-change: transform; }

/* Full-width section rhythm with content held on the shared center canvas. */
@media (min-width: 1101px) {
  .market-section {
    width: 100%;
    min-height: 700px;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #fbfbff;
  }

  .market-inner {
    min-height: 700px;
  }

  .market-visual {
    left: 50%;
    right: auto;
    width: min(1500px, calc(100% - 64px));
    max-width: none;
    transform: translateX(-50%);
    object-fit: cover;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-composite: intersect;
  }
}

/* Section-level deferred rendering caused anchor jumps after layout expansion. */
.market-section,
.design-lab-section,
.advantages-section,
.site-footer {
  content-visibility: visible;
  contain-intrinsic-size: auto none;
}

@media (prefers-reduced-motion: reduce), (max-width: 820px) {
  .partner-track { animation-play-state: paused !important; }
  .hero-aurora,
  .primary-cta::before,
  .primary-cta::after { animation: none !important; }
}

@media (max-width: 540px) {
  .hero-globe-overlay { display: none; }
}

/* Stable canvas architecture, matching the Yunprint layout strategy. */
@media (min-width: 1101px) {
  .navbar,
  .hero-content,
  .step-panel,
  .journey-grid,
  .market-inner,
  .advantages-inner,
  .footer-main,
  .footer-bottom {
    width: min(1500px, calc(100% - 64px));
  }

  .hero { min-height: 800px; }
  .hero-content { margin-top: 58px; }

  .step-panel {
    min-height: 164px;
    padding: 26px 38px;
    border: 1px solid rgba(118, 105, 194, .11);
    border-radius: 26px;
    background: linear-gradient(115deg, rgba(255,255,255,.99), rgba(249,249,255,.97));
    box-shadow: 0 24px 65px rgba(41, 36, 113, .14), inset 0 1px rgba(255, 255, 255, .96);
  }

  .step-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(134, 98, 239, .28), transparent);
  }

  .step-card {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: 27px auto;
  }

  .step-icon {
    width: 72px;
    height: 72px;
    border-radius: 19px;
    background: #fff;
    border-color: rgba(116, 88, 230, .08);
    box-shadow: 0 12px 30px rgba(71, 48, 153, .11), inset 0 1px #fff;
  }

  .step-icon img {
    width: 47px;
    height: 47px;
    filter: none;
  }

  .step-number {
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    color: #7653dd;
    background: rgba(119, 83, 221, .08);
    font-size: 12px;
    letter-spacing: .1em;
  }

  .step-text h2 {
    margin: 4px 0 6px;
    color: #191d38;
    font-size: 18px;
    letter-spacing: .01em;
  }

  .step-text p {
    color: #8b8da2;
    font-size: 12px;
    line-height: 1.6;
  }

  .step-arrow {
    position: relative;
    width: 58px;
    height: 1px;
    margin: 0 24px 0 10px;
    color: transparent;
    background: linear-gradient(90deg, rgba(123, 91, 231, .12), rgba(123, 91, 231, .55));
  }

  .step-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8a65ee;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(138, 101, 238, .10);
  }

  .journey-section { padding: 82px 32px 100px; }
  .market-section,
  .market-inner { min-height: 700px; }
  .advantages-section { min-height: 0; padding: 78px 32px 88px; }

  .design-lab-shell {
    grid-template-columns: 390px minmax(0, 1fr) 120px;
    width: min(1500px, calc(100% - 64px));
    min-height: clamp(820px, 40vw, 900px);
    margin-inline: auto;
    background: transparent;
  }

  .design-lab-copy {
    width: auto;
    padding: 80px 18px 54px 0;
    transform: none;
  }

  .design-lab-section {
    width: 100%;
    min-height: clamp(820px, 40vw, 900px);
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: linear-gradient(to bottom, #edf4ff 0%, #f3f3ff 16%, #f5f2ff 82%, #fafbff 100%);
  }

  .design-model-stage,
  .design-pattern-wrap { min-height: clamp(820px, 40vw, 900px); }
  .design-feature-stack { left: 0; width: 200px; }

  .design-model-viewer {
    width: 854px;
    height: 755px;
    inset: 18px auto auto 50%;
    margin-left: -427px;
  }

  .design-pattern-wrap {
    width: auto;
    padding-right: 0;
    transform: none;
  }
}

@media (min-width: 1400px) {
  .hero-content {
    margin-top: 66px;
    transform: translateX(30px);
  }

  .hero-content .eyebrow {
    height: 34px;
    padding-inline: 16px;
    background: rgba(103, 65, 210, .46);
    border-color: rgba(194, 175, 255, .16);
    box-shadow: none;
  }

  .hero-content h1 {
    max-width: 620px;
    margin: 22px 0 17px;
    font-size: clamp(50px, 3.55vw, 62px);
    line-height: 1.13;
  }

  .hero-content .hero-copy {
    color: rgba(222, 225, 247, .76);
    font-size: 17px;
    line-height: 1.72;
  }

  .hero-content .hero-actions {
    gap: 20px;
    margin-top: 27px;
  }

  .hero-content .capability-list {
    gap: 26px;
    margin-top: 30px;
    color: rgba(229, 230, 255, .72);
  }

  .hero { --hero-canvas-globe-left: calc(50% - 120px); }
  .hero-visual { display: none; }

  .hero-globe-overlay {
    z-index: 1;
    display: block;
    position: absolute;
    top: 76px;
    left: var(--hero-canvas-globe-left);
    width: clamp(700px, 42vw, 920px);
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 18px rgba(78, 185, 255, .24)) drop-shadow(0 24px 36px rgba(18, 8, 112, .22));
    transform: none;
  }

  .hero-feature-labels {
    inset: 76px auto auto var(--hero-canvas-globe-left);
    width: clamp(700px, 42vw, 920px);
    height: auto;
    aspect-ratio: 1593 / 987;
    transform: none;
  }

  .hero-feature-label { gap: 3px; width: 138px; }
  .hero-feature-label strong { font-size: 14px; }
  .hero-feature-label span { font-size: 10px; }
  .hero-feature-label .hero-count {
    display: inline-block;
    min-width: 2.15em;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(91, 214, 255, .72);
  }
  .hero-feature-label .hero-count.is-complete {
    animation: hero-count-finish .46s ease-out;
  }
  .hero-feature-labels::before,
  .hero-feature-labels::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
  }

  .hero-feature-labels::before {
    inset: 9% 17% 20% 20%;
    border: 1px solid rgba(117, 225, 255, .25);
    box-shadow: inset 0 0 28px rgba(73, 164, 255, .10), 0 0 28px rgba(72, 171, 255, .10);
    animation: hero-orbit-flow 18s linear infinite;
  }

  .hero-feature-labels::after {
    inset: 14% 22% 25% 25%;
    border: 1px dashed rgba(164, 112, 255, .22);
    animation: hero-star-chain 13s linear infinite;
  }

  .hero-feature-label--sales { top: 11.4%; left: 77.8%; }
  .hero-feature-label--ai { top: 29.7%; left: 25.7%; }
  .hero-feature-label--production { top: 47.8%; left: 77.8%; }
  .hero-feature-label--shipping { top: 61.8%; left: 31.7%; }

}

/* Keep the selected-pattern marker attached to the thumbnail ring. */
.design-pattern-panel button.is-active::after {
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-width: 2px;
  box-shadow: 0 2px 7px rgba(78, 45, 187, .28);
}

@keyframes hero-orbit-flow {
  0% { transform: rotate(0deg); opacity: .52; filter: drop-shadow(0 0 4px rgba(90, 223, 255, .25)); }
  50% { opacity: 1; filter: drop-shadow(0 0 10px rgba(90, 223, 255, .72)); }
  100% { transform: rotate(360deg); opacity: .52; filter: drop-shadow(0 0 4px rgba(90, 223, 255, .25)); }
}

@keyframes hero-star-chain {
  0% { transform: rotate(0deg); opacity: .35; filter: drop-shadow(0 0 3px rgba(191, 132, 255, .3)); }
  45% { opacity: .95; filter: drop-shadow(0 0 11px rgba(171, 121, 255, .78)); }
  100% { transform: rotate(-360deg); opacity: .35; filter: drop-shadow(0 0 3px rgba(191, 132, 255, .3)); }
}

@keyframes hero-count-finish {
  50% { transform: scale(1.13); color: #9ff3ff; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-feature-labels::before,
  .hero-feature-labels::after {
    animation: none !important;
  }
}

/* Browser zoom and tablets switch structure instead of squeezing columns. */
@media (min-width: 821px) and (max-width: 1100px) {
  .navbar,
  .hero-content,
  .step-panel,
  .journey-grid,
  .market-inner,
  .advantages-inner,
  .footer-main,
  .footer-bottom { width: calc(100% - 48px); }

  .nav-links { display: none; }
  .hero { min-height: 840px; }
  .hero-content { margin-top: 48px; }
  .hero-feature-labels { display: none; }

  .step-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    min-height: 210px;
    padding: 22px 30px;
  }
  .step-arrow { display: none; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-section,
  .market-inner { min-height: 760px; }

  .design-lab-section {
    background: linear-gradient(to bottom, #edf4ff 0%, #f3f3ff 16%, #f5f2ff 82%, #fafbff 100%);
  }
  .design-lab-shell { grid-template-columns: 1fr; min-height: auto; background: transparent; }
  .design-lab-copy { text-align: center; padding: 64px 32px 12px; transform: none; }
  .design-lab-copy h2 { align-items: center; }
  .design-lab-copy > p,
  .design-lab-cta { margin-inline: auto; }
  .design-model-stage { min-height: 660px; }
  .design-model-viewer { width: 100%; left: 0; right: auto; }
  .design-feature-stack { left: 5%; width: 190px; }
  .design-pattern-wrap { min-height: 0; padding: 12px 28px 34px; transform: none; }
  .design-pattern-panel { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .design-pattern-more { display: none; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .design-lab-section {
    background: linear-gradient(to bottom, #edf4ff 0%, #f3f3ff 16%, #f5f2ff 82%, #fafbff 100%);
  }
  .design-lab-shell { background: transparent; }
}

/* The 3D studio is a full-bleed scene, not a standard 1500px content block. */
@media (min-width: 1800px) {
  .design-lab-section {
    background-size: cover;
    background-position: center;
  }

  .design-lab-shell {
    grid-template-columns: 520px minmax(0, 1fr) 160px;
    width: min(1500px, calc(100% - 64px));
  }

  .design-lab-copy {
    padding-left: 0;
    padding-right: 24px;
    transform: translateX(90px);
  }

  .design-feature-stack {
    width: 228px;
    left: 0;
  }

  .design-model-viewer {
    width: 1100px;
    height: calc(100% - 100px);
    margin-left: -550px;
    transform: translateX(var(--model-shift-x, 0%)) scale(calc(var(--model-scale, .78) * 1.14));
  }

  .design-rotation-control {
    left: 5%;
    right: 5%;
  }

  .design-pattern-wrap {
    padding-right: 0;
  }
}

/* True 21:9 desktop canvas. A 1500px cap makes the whole site look undersized
   on 3440px monitors, even though it is correct on 2560px displays. */
@media (min-width: 3000px) and (max-width: 5999px) {
  .navbar,
  .hero-content,
  .step-panel,
  .journey-grid,
  .market-inner,
  .design-lab-shell,
  .advantages-inner,
  .footer-main,
  .footer-bottom {
    width: min(2000px, calc(100% - 160px));
  }

  .hero {
    min-height: 900px;
  }

  .hero-globe-overlay,
  .hero-feature-labels {
    width: 1100px;
  }

  .hero {
    --hero-canvas-globe-left: calc(50% - 80px);
  }

  .market-visual {
    width: min(2000px, calc(100% - 160px));
  }

  .journey-section,
  .advantages-section {
    padding-inline: 80px;
  }
}
