/* Final responsive overrides shared by Chinese and English pages. */
html,body{max-width:100%}
.seo-context{display:none!important}
.mobile-contact-nav,.mobile-sub-toggle{display:none}
.topbar{padding-inline:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Capability strip: compact on desktop, single-row swipe on mobile. */
.marquee{height:auto!important;min-height:0!important;padding:13px 0!important;background:#f7f7f4;border-bottom:1px solid var(--line);overflow:hidden}
.marquee>div{width:min(1220px,calc(100% - 56px));margin:0 auto!important;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px!important;white-space:normal!important;color:#666b78!important;font-size:11px!important}
.marquee span{display:inline-flex;align-items:center;flex:0 0 auto;padding:8px 13px;border:1px solid #dedfd9;border-radius:999px;background:#fff;color:#555a67;line-height:1.25}
.marquee i{display:none!important}

/* Prevent grid and flex children from creating horizontal overflow. */
.cap-grid>*,.product-map>*,.pricing-grid>*,.feature-matrix>*,.engine-grid>*,.scenario-cards>*,.ai-suite>*,.showcase-stage>*,.shot-stack>*,.automation-strip>*,.industry-product-map>*{min-width:0}
.product-subnav .wrap{overflow-x:auto;scrollbar-width:none}
.product-subnav .wrap::-webkit-scrollbar{display:none}

@media(max-width:960px){
  .marquee>div{width:calc(100% - 40px)}
  .nav-actions>a:first-child{display:none!important}
  .ai-kicker,.ai-growth-head,.showcase-head{gap:22px!important}
  .automation-strip{grid-template-columns:1fr!important}
  .global-footer .foot-grid{gap:34px 24px!important}
  .site-head.mobile .main-nav{top:78px!important;gap:0!important;padding:14px 24px 22px!important;max-height:calc(100dvh - 110px)!important;overflow-y:auto!important;overscroll-behavior:contain;box-shadow:0 24px 45px rgba(10,13,29,.13)}
  .site-head.mobile .nav-item{display:grid!important;grid-template-columns:minmax(0,1fr) 44px;width:100%;padding:0!important;border-bottom:1px solid var(--line)}
  .site-head.mobile .nav-item>a{min-height:54px;width:100%;font-size:15px!important;line-height:1.35;display:flex;align-items:center}
  .site-head.mobile .nav-item>a i{display:none!important}
  .site-head.mobile .mobile-contact-nav{display:grid!important}
  .site-head.mobile .mobile-sub-toggle{display:grid;place-items:center;align-self:center;width:38px;height:38px;border:0;border-radius:50%;background:#f1f1ed;color:#585c69;font-size:18px;line-height:1;transition:.2s}
  .site-head.mobile .nav-item.sub-open>.mobile-sub-toggle{transform:rotate(180deg);background:#e9e7ff;color:var(--purple)}
  .site-head.mobile .nav-item>.mega{display:none!important;position:static!important;grid-column:1/-1;width:100%!important;opacity:1!important;visibility:visible!important;transform:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:#f7f7f4!important;padding:8px 10px 12px!important;margin:0 0 10px!important;grid-template-columns:1fr!important;gap:2px!important}
  .site-head.mobile .nav-item.sub-open>.mega{display:grid!important}
  .site-head.mobile .mega .nav-section-label{display:none}
  .site-head.mobile .mega a{padding:10px 12px!important;border-radius:9px!important}
  .site-head.mobile .mega b{font-size:13px!important;line-height:1.35}
  .site-head.mobile .mega small{font-size:11px!important;line-height:1.45;margin-top:3px!important}
  body.mobile-nav-open{overflow:hidden}
}

@media(max-width:620px){
  html,body{overflow-x:clip}
  .wrap{width:calc(100% - 32px)!important}
  img,video,svg{max-width:100%}

  .marquee{padding:9px 0!important}
  .marquee>div{width:100%;padding:0 16px;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none}
  .marquee>div::-webkit-scrollbar{display:none}
  .marquee span{padding:7px 11px;font-size:11px;scroll-snap-align:start}

  .section,.product-showcase,.ai-growth-v8,.seo-faq,.assurance{padding-top:64px!important;padding-bottom:64px!important}
  .page-hero{padding-top:72px!important;padding-bottom:64px!important}
  .display,.home-copy .display,.page-hero .display{font-size:clamp(34px,10.5vw,42px)!important;line-height:1.12!important;letter-spacing:-1.5px!important;overflow-wrap:normal;word-break:normal!important;text-wrap:balance}
  .title,.footer-cta .title,.image-banner .title{font-size:clamp(29px,8.5vw,35px)!important;line-height:1.18!important;letter-spacing:-1.1px!important;overflow-wrap:normal;word-break:normal!important;text-wrap:balance}
  [lang="en"] .display,[lang="en"] .title,[lang="en"] h1,[lang="en"] h2,[lang="en"] h3{overflow-wrap:normal;word-break:normal!important;hyphens:none;text-wrap:balance}
  .lede,.sub,.intro-grid .sub,.story-copy .sub{font-size:14px!important;line-height:1.72!important}
  .eyebrow{font-size:10px!important;letter-spacing:.9px!important}

  .cap-grid,.product-map,.pricing-grid,.metric-grid,.feature-matrix,.engine-grid,.engine-grid.two,.scenario-cards,.ai-suite,.ai-suite-three,.showcase-stage,.shot-stack,.feature-list,.industry-product-map{grid-template-columns:minmax(0,1fr)!important}
  .cap-card,.product-block,.price-card,.feature-matrix article,.engine-grid article,.scenario-cards article,.ai-feature{min-height:0!important;padding:23px 20px!important}
  .cap-card h3,.product-block h3,.ai-feature h3{font-size:22px!important;margin-top:18px!important}
  .cap-card p,.product-block p,.ai-feature p{font-size:13px!important;line-height:1.68!important}
  .cap-head,.showcase-head{margin-bottom:30px!important}
  .showcase-stage,.shot-stack{gap:12px!important}
  .shot-main,.shot-small{padding:6px!important;border-radius:15px!important}
  .shot-caption{padding:12px 5px 5px!important}

  .ai-growth-v8:before{width:320px!important;height:320px!important;right:-180px!important;top:-150px!important}
  .ai-kicker,.ai-growth-head{grid-template-columns:1fr!important;gap:16px!important}
  .growth-loop{margin:28px 0 18px!important;padding:12px!important;gap:14px!important;overflow-x:auto;scrollbar-width:none}
  .growth-loop::-webkit-scrollbar{display:none}
  .growth-loop span{white-space:nowrap;font-size:11px!important}
  .ai-feature-head{gap:11px!important}
  .ai-mark{flex-basis:40px!important;height:40px!important}
  .feature-proof{display:block!important}
  .feature-proof span{display:block;text-align:left!important;margin-top:8px}
  .automation-strip{padding:20px!important;gap:18px!important}
  .automation-tags{gap:7px!important}
  .automation-tags span{padding:7px 10px!important}
  .hero-badges,.hero-value-line{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  .hero-badges span,.hero-value-line span{width:auto!important;justify-content:flex-start!important}

  .pricing-grid{gap:14px!important}
  .pricing-v8 .price-card{padding:24px 20px!important}
  .price-card strong{font-size:38px!important}
  .pricing-note,.price-assurance{display:grid!important;gap:9px!important}

  .industry-grid{grid-template-columns:1fr 1fr!important;gap:0!important}
  .industry-grid a{height:auto!important;min-height:112px!important;padding:16px!important}
  .industry-grid h3{font-size:15px!important}

  .faq-list{margin-top:26px!important}
  .faq-list details{padding:0 16px!important}
  .faq-list summary{font-size:13px!important;line-height:1.5!important;padding:17px 22px 17px 0!important}
  .faq-list p{font-size:12px!important;line-height:1.7!important;padding-right:0!important}

  .footer-cta{padding:62px 0!important}
  .footer-cta .wrap{display:block!important}
  .footer-cta .btn{margin-top:22px!important}
  .global-footer{padding-top:58px!important}
  .global-footer .foot-grid{grid-template-columns:1fr 1fr!important;gap:30px 20px!important}
  .global-footer .foot-brand{grid-column:1/-1!important;grid-row:auto!important}
  .global-footer .foot-bottom{display:grid!important;gap:12px!important}
  .global-footer .foot-legal,.global-footer .foot-lang{flex-wrap:wrap!important}

  .phone-input{grid-template-columns:112px minmax(0,1fr)!important}
  .modal-box{width:calc(100% - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:24px 18px!important;overflow-y:auto}
  .form-row{grid-template-columns:1fr!important}
  .contact-card{padding:22px 18px!important}

  .product-subnav .wrap{width:100%!important;padding:0 16px;gap:17px!important}
  .product-subnav a{flex:0 0 auto;white-space:nowrap}
  .sticky-demo{display:none!important}
  .site-head.mobile .main-nav{top:68px!important;max-height:calc(100dvh - 97px)!important;padding-inline:16px!important}
}

@media(max-width:380px){
  .industry-grid{grid-template-columns:1fr!important}
  .nav-actions .btn{padding:10px 12px!important}
  .lang-switch{padding:0 7px!important}
  .display,.home-copy .display,.page-hero .display{font-size:33px!important}
}

/* v6: consistent English mobile headings without orphaned words. */
@media(max-width:620px){
  .nav-actions>a:not(.lang-switch){display:none!important}
  html[lang="zh-CN"] .home-copy .display{
    font-size:clamp(36px,9.7vw,38px)!important;
    line-height:1.13!important;
    letter-spacing:-1.9px!important;
  }
  html[lang="zh-CN"] .page-hero .display{
    font-size:clamp(34px,9.2vw,37px)!important;
    line-height:1.16!important;
    letter-spacing:-1.5px!important;
  }
  html[lang="zh-CN"] .title,
  html[lang="zh-CN"] .footer-cta .title,
  html[lang="zh-CN"] .image-banner .title{
    font-size:clamp(30px,8.3vw,34px)!important;
    line-height:1.2!important;
    letter-spacing:-1px!important;
  }
  html[lang="en"] .home-copy .display{
    font-size:clamp(36px,9.8vw,40px)!important;
    line-height:1.08!important;
    letter-spacing:-1.5px!important;
    text-wrap:balance;
  }
  html[lang="en"] .page-hero .display{
    font-size:clamp(34px,9vw,38px)!important;
    line-height:1.1!important;
    letter-spacing:-1.2px!important;
    text-wrap:balance;
  }
  html[lang="en"] .title,
  html[lang="en"] .footer-cta .title,
  html[lang="en"] .image-banner .title{
    font-size:clamp(30px,8vw,35px)!important;
    line-height:1.14!important;
    letter-spacing:-.9px!important;
    text-wrap:balance;
  }
}
