*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas {
  max-width: 100%;
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 119, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f3b78;
  box-shadow: 0 10px 26px rgba(15, 59, 120, 0.08);
}

.mobile-menu-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: background 0.2s ease;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.mobile-menu-toggle span::before {
  transform: translateY(-6px);
}

.mobile-menu-toggle span::after {
  transform: translateY(6px);
}

.mobile-menu-toggle.is-open span {
  background: transparent;
}

.mobile-menu-toggle.is-open span::before {
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-open span::after {
  transform: rotate(-45deg);
}

.mobile-nav-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 72px;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  padding: 12px;
  box-shadow: 0 24px 60px rgba(15, 59, 120, 0.16);
  backdrop-filter: blur(18px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-nav-panel.is-open {
  display: flex;
}

.mobile-nav-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1d2733;
  font-size: 15px;
  font-weight: 700;
}

.mobile-nav-panel a.text-tech,
.mobile-nav-panel a:hover {
  background: rgba(22, 119, 255, 0.08);
  color: #1677ff;
}

.mobile-nav-panel .mobile-nav-cta {
  justify-content: center;
  margin-top: 6px;
  background: #1677ff;
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.2);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 64px 0 0;
  z-index: 55;
  display: none;
  background: rgba(15, 59, 120, 0.16);
  backdrop-filter: blur(2px);
}

.mobile-nav-backdrop.is-open {
  display: block;
}

.nav-mega-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80px;
}

.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-mega-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.22s ease;
}

.nav-mega-panel {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.nav-mega-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(22, 119, 255, 0.08);
  border-bottom: 1px solid rgba(22, 119, 255, 0.1);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 56px rgba(15, 59, 120, 0.12);
  backdrop-filter: blur(18px);
}

.nav-mega-item:hover .nav-mega-panel,
.nav-mega-item:focus-within .nav-mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mega-item:hover .nav-mega-arrow,
.nav-mega-item:focus-within .nav-mega-arrow {
  transform: translateY(1px) rotate(225deg);
}

.nav-mega-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 40px 38px;
}

.nav-mega-summary {
  border-right: 1px solid rgba(22, 119, 255, 0.12);
  padding-right: 36px;
  color: #4e5969;
  font-size: 15px;
  line-height: 1.75;
}

.nav-mega-kicker {
  margin-bottom: 12px;
  color: #1d2733;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.nav-mega-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 34px 52px;
}

.nav-mega-column h3 {
  margin-bottom: 14px;
  color: #0f3b78;
  font-size: 16px;
  font-weight: 800;
}

.nav-mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px 18px;
}

.nav-mega-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1d2733;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-mega-links a:hover,
.nav-mega-links a:focus-visible {
  background: rgba(22, 119, 255, 0.08);
  color: #1677ff;
  transform: translateX(2px);
}

body.mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

a,
button {
  -webkit-tap-highlight-color: rgba(22, 119, 255, 0.12);
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.34);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .section-pad {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .data-stream,
  .hero-scan,
  .digital-rain,
  .circuit-lines {
    opacity: 0.42;
  }

  .employee-figure {
    min-height: 520px !important;
  }

  .employee-figure .demo-video-canvas,
  .employee-figure .demo-video-animated-fallback {
    transform: scale(1.03) !important;
  }

  .image-frame img {
    min-height: 320px !important;
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .glass-header > div {
    height: 64px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .glass-header img {
    max-width: 142px !important;
    height: 34px !important;
  }

  .glass-header > div > a:first-child {
    min-height: 44px;
  }

  .glass-header > div > a.btn-primary {
    display: none !important;
  }

  .nav-mega-item {
    display: contents;
    min-height: 0;
  }

  .nav-mega-panel {
    display: none !important;
  }

  .nav-mega-trigger {
    gap: 0;
  }

  .nav-mega-arrow {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-bg {
    padding-top: 64px !important;
  }

  .hero-bg > .relative.mx-auto.grid {
    min-height: auto !important;
    gap: 28px !important;
    padding: 56px 16px 44px !important;
  }

  .hero-bg h1,
  h1.text-4xl {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  h2.text-3xl,
  .cta-band h2 {
    font-size: 28px !important;
    line-height: 1.22 !important;
  }

  p.text-lg,
  p.text-xl,
  .hero-bg p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .section-pad {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .section-pad .mx-auto,
  footer .mx-auto {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section-pad [class*="gap-12"],
  .section-pad [class*="gap-16"] {
    gap: 28px !important;
  }

  .btn-primary,
  .btn-secondary,
  a[class*="px-7"][class*="py-4"] {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px !important;
    text-align: center;
  }

  .business-card {
    padding: 24px !important;
  }

  .business-card:hover,
  .product-tile:hover img,
  .image-frame:hover img,
  .hardware-card:hover img {
    transform: none !important;
  }

  .reveal {
    transform: translateY(20px);
  }

  .data-stream,
  .hero-scan {
    display: none !important;
  }

  .digital-rain,
  .circuit-lines {
    opacity: 0.2;
  }

  .avatar-stage {
    min-height: 560px !important;
  }

  .avatar-card {
    padding: 20px !important;
  }

  .avatar-card > .grid {
    align-content: start !important;
    gap: 18px !important;
  }

  .human-portrait {
    height: 260px !important;
    min-height: 260px !important;
  }

  .avatar-card img {
    max-height: 260px;
    object-fit: contain;
  }

  .product-module-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .product-module-tabs button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px !important;
    white-space: normal;
  }

  .product-module-showcase {
    position: relative !important;
    height: 650px !important;
    min-height: 650px !important;
    margin-top: 36px !important;
    overflow: visible !important;
    perspective: 1200px;
  }

  .product-module-item,
  .product-module-item.active {
    position: absolute !important;
    inset: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 430px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    cursor: pointer;
    opacity: 1 !important;
    transform-origin: top center;
    transition:
      transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
      top 0.46s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.46s ease,
      box-shadow 0.32s ease,
      border-color 0.32s ease !important;
  }

  .product-module-item[data-stack-index="0"] {
    top: 0 !important;
    z-index: 8;
    height: 430px !important;
    transform: translateY(0) scale(1) !important;
    border-color: rgba(22, 119, 255, 0.2) !important;
    box-shadow: 0 24px 52px rgba(15, 59, 120, 0.16) !important;
  }

  .product-module-item[data-stack-index="1"] {
    top: 442px !important;
    z-index: 7;
    height: 126px !important;
    transform: translateY(0) scale(0.965) !important;
  }

  .product-module-item[data-stack-index="2"] {
    top: 492px !important;
    z-index: 6;
    height: 126px !important;
    transform: translateY(0) scale(0.93) !important;
  }

  .product-module-item[data-stack-index="3"] {
    top: 542px !important;
    z-index: 5;
    height: 126px !important;
    transform: translateY(0) scale(0.895) !important;
  }

  .product-module-item:not(.active)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(220, 238, 255, 0.82));
    pointer-events: none;
  }

  .product-module-image,
  .product-module-item.active .product-module-image {
    height: 198px !important;
    min-height: 198px !important;
  }

  .product-module-item:not(.active) .product-module-image {
    height: 126px !important;
    min-height: 126px !important;
  }

  .product-module-item:not(.active) .product-module-image img {
    opacity: 0.28 !important;
    filter: saturate(0.86) blur(0.2px);
  }

  .product-module-detail {
    display: none !important;
    min-height: 0 !important;
    padding: 24px !important;
  }

  .product-module-item.active .product-module-detail {
    display: block !important;
  }

  .product-module-detail h3 {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  .product-module-detail p {
    margin-top: 14px !important;
    font-size: 15px !important;
    line-height: 1.78 !important;
  }

  .product-module-summary {
    display: flex !important;
    left: 20px !important;
    right: 20px !important;
    top: 50% !important;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    color: #0f3b78 !important;
    font-size: 18px !important;
    line-height: 1.2;
    white-space: normal !important;
    transform: translateY(-50%);
  }

  .product-module-summary::after {
    content: ">";
    flex: none;
    margin-left: 12px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.12);
    padding: 6px 10px;
    color: #1677ff;
    font-size: 12px;
    font-weight: 700;
  }

  .product-module-item.active .product-module-summary {
    display: none !important;
  }

  .employee-figure {
    min-height: 320px !important;
  }

  .employee-figure .demo-video-canvas,
  .employee-figure .demo-video-player,
  .employee-figure .demo-video-animated-fallback {
    max-height: 340px !important;
    height: auto !important;
    transform: scale(1) !important;
  }

  .capability-panel {
    padding: 18px !important;
  }

  .capability-panel h2 {
    margin-top: 8px !important;
  }

  .capability-panel > p {
    margin-top: 12px !important;
    line-height: 1.65 !important;
  }

  .capability-panel > .mt-8 {
    margin-top: 18px !important;
  }

  .capability-row {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .capability-row > .grid {
    gap: 10px !important;
  }

  .capability-row .line-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .capability-row h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .capability-row p {
    line-height: 1.62 !important;
  }

  .capability-row .mt-3 {
    margin-top: 10px !important;
  }

  .capability-panel > .mt-7 {
    margin-top: 16px !important;
    gap: 10px !important;
  }

  .capability-panel > .mt-7 > div {
    border-radius: 14px !important;
    padding: 14px !important;
  }

  .capability-panel > .mt-7 .text-3xl {
    font-size: 26px !important;
    line-height: 1.1 !important;
  }

  #openclaw {
    padding-top: 40px !important;
    padding-bottom: 44px !important;
  }

  #openclaw h2 {
    font-size: 28px !important;
  }

  #openclaw .reveal.mx-auto > p {
    margin-top: 12px !important;
    line-height: 1.65 !important;
  }

  #openclaw .reveal.mt-12 {
    margin-top: 24px !important;
    gap: 10px !important;
  }

  #openclaw .reveal.mt-12 span {
    padding: 12px 16px !important;
  }

  #openclaw .mt-12.grid {
    margin-top: 26px !important;
    gap: 16px !important;
  }

  #openclaw .business-card {
    padding: 18px !important;
  }

  #openclaw .business-card .line-icon {
    width: 48px;
    height: 48px;
  }

  #openclaw .business-card h3 {
    margin-top: 14px !important;
  }

  #openclaw .business-card p {
    margin-top: 8px !important;
    line-height: 1.6 !important;
  }

  #cases {
    margin-top: 48px !important;
  }

  #cases > .mt-12 {
    margin-top: 28px !important;
    gap: 18px !important;
  }

  #cases .case-card {
    padding: 0 !important;
  }

  #cases .case-card:first-child img {
    height: 156px !important;
    min-height: 156px !important;
  }

  #cases .case-card:first-child .p-9 {
    padding: 22px !important;
  }

  #cases .case-card:first-child h3 {
    margin-top: 12px !important;
    font-size: 28px !important;
  }

  #cases .case-card:first-child p {
    margin-top: 12px !important;
    line-height: 1.65 !important;
  }

  #cases .case-card:first-child .mt-8 {
    margin-top: 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  #cases .case-card:first-child .mt-8 > div {
    border-radius: 14px !important;
    padding: 14px !important;
  }

  #cases .case-card:first-child .text-4xl {
    font-size: 30px !important;
    line-height: 1.1 !important;
  }

  .arch-layer::after {
    display: none;
  }

  .industry-gallery {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .scene-mosaic,
  .eco-map,
  .flow-board,
  .brand-visual,
  .product-stack {
    min-height: 360px !important;
  }

  .scene-mosaic {
    grid-template-rows: repeat(6, 48px) !important;
  }

  .eco-map {
    padding: 20px !important;
  }

  .eco-node {
    min-width: 96px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }

  .product-stack {
    display: grid;
    gap: 12px;
  }

  .product-tile,
  .tile-main,
  .tile-side,
  .tile-bottom {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 190px !important;
    animation: none !important;
  }

  .tile-label {
    left: 12px !important;
    bottom: 12px !important;
  }

  .image-frame {
    border-radius: 18px !important;
  }

  .image-frame img,
  .large-hologram-frame img {
    min-height: 240px !important;
    height: auto !important;
    max-height: 420px;
    object-fit: contain !important;
  }

  .ui-mock {
    min-height: 340px !important;
    padding: 76px 18px 20px !important;
  }

  .flow-board {
    padding: 18px !important;
  }

  .cta-band .reveal,
  .cta-band .relative.z-10 {
    min-height: auto !important;
  }

  .cta-band .reveal,
  [id$="-cta"] .reveal {
    padding: 48px 16px !important;
  }

  .cta-track {
    font-size: 52px !important;
    opacity: 0.12 !important;
  }

  footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #f2f5f9 !important;
  }

  footer .grid {
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  footer .grid > div:first-child {
    display: none !important;
  }

  footer .grid > div:not(:first-child) {
    border: 0;
    border-bottom: 1px solid #d9e0ea;
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow: hidden;
  }

  footer .grid > div:nth-child(5) { order: 1; }
  footer .grid > div:nth-child(2) { order: 2; }
  footer .grid > div:nth-child(3) { order: 3; }
  footer .grid > div:nth-child(4) { order: 4; }

  footer h4 {
    display: none !important;
  }

  footer .mobile-footer-section > h4 {
    display: none !important;
  }

  footer .mobile-footer-toggle {
    display: flex;
    min-height: 50px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    padding: 0 20px;
    color: #1d2733;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
  }

  footer .mobile-footer-toggle::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  footer .mobile-footer-section.is-open .mobile-footer-toggle::after {
    transform: rotate(225deg);
  }

  footer p {
    margin-top: 12px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  footer ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 20px 14px !important;
  }

  footer .grid > div:not(:first-child) > ul {
    display: none !important;
  }

  footer .mobile-footer-links {
    display: none !important;
  }

  footer .mobile-footer-section.is-open .mobile-footer-links {
    display: grid !important;
  }

  footer .mobile-footer-section.is-open > ul {
    display: grid !important;
  }

  footer li {
    margin: 0 !important;
    min-width: 0;
    display: flex;
    min-height: 52px;
    align-items: center;
    color: #1d2733;
    font-size: 15px;
    line-height: 1.4;
  }

  footer a {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    width: 100%;
    border-radius: 0;
    color: #1d2733;
    font-size: 15px;
    line-height: 1.4;
  }

  footer a:active {
    background: rgba(22, 119, 255, 0.08);
    color: #1677ff;
  }

  footer > div:last-child {
    margin-top: 0 !important;
    padding: 18px 20px !important;
    border-top: 1px solid #d9e0ea;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: left;
  }

  .consult-modal {
    padding: 16px !important;
    align-items: flex-end !important;
  }

  .consult-modal__panel {
    max-width: none !important;
    border-radius: 18px !important;
    padding: 28px 20px 24px !important;
  }

  .consult-modal__title {
    font-size: 22px !important;
  }

  .consult-modal__qr {
    width: 196px !important;
    height: 196px !important;
  }

}

@media (max-width: 390px) {
  .hero-bg h1,
  h1.text-4xl {
    font-size: 27px !important;
  }

  h2.text-3xl,
  .cta-band h2 {
    font-size: 25px !important;
  }

  .glass-header img {
    max-width: 128px !important;
  }

  .product-module-tabs {
    grid-template-columns: 1fr;
  }
}
