| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/novamira-sandbox/ |
Upload File : |
<?php
/**
* AIWebstation Homepage Builder - Constructs Elementor JSON directly on server
* Target: Page ID 284
*/
$page_id = 284;
// ── Helpers ──
function _id() { return substr(md5(uniqid(mt_rand(), true)), 0, 7); }
function _px($n) { return ['unit'=>'px','size'=>$n,'sizes'=>[]]; }
function _pct($n) { return ['unit'=>'%','size'=>$n,'sizes'=>[]]; }
function _pad($t,$r,$b,$l) { return ['unit'=>'px','top'=>(string)$t,'right'=>(string)$r,'bottom'=>(string)$b,'left'=>(string)$l,'isLinked'=>false]; }
function _rad($n,$u='px') { return ['unit'=>$u,'top'=>(string)$n,'right'=>(string)$n,'bottom'=>(string)$n,'left'=>(string)$n,'isLinked'=>true]; }
function _gap($n) { return ['column'=>(string)$n,'row'=>(string)$n,'isLinked'=>true,'unit'=>'px','size'=>$n,'sizes'=>[]]; }
function _grad($a,$b,$angle=135) {
return [
'background_background'=>'gradient','background_color'=>$a,
'background_color_stop'=>['unit'=>'%','size'=>0,'sizes'=>[]],
'background_color_b'=>$b,'background_color_b_stop'=>['unit'=>'%','size'=>100,'sizes'=>[]],
'background_gradient_type'=>'linear','background_gradient_angle'=>['unit'=>'deg','size'=>$angle,'sizes'=>[]]
];
}
function _solid($c) { return ['background_background'=>'classic','background_color'=>$c]; }
function _border($c,$w=1) {
return ['border_border'=>'solid','border_width'=>['unit'=>'px','top'=>(string)$w,'right'=>(string)$w,'bottom'=>(string)$w,'left'=>(string)$w,'isLinked'=>true],'border_color'=>$c];
}
// ── Section 1: CSS Hook ──
$css_id = _id();
$css_html = '<style>
#hero-el{position:relative;}
#hero-el::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 30%,rgba(96,74,255,.24),transparent 35%),radial-gradient(circle at 88% 80%,rgba(27,107,255,.20),transparent 35%);pointer-events:none;z-index:1;}
.aw-gt{background:linear-gradient(90deg,#1765ff,#7441f5);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent;display:inline;}
.aw-hi img{box-shadow:0 30px 70px rgba(28,44,117,.22);}
.aw-sol{transition:.3s ease;}
.aw-sol:hover{transform:translateY(-5px);border-color:#b9c7ff!important;box-shadow:0 18px 45px rgba(41,79,170,.12)!important;}
.aw-ind{transition:.25s ease;}
.aw-ind:hover{transform:translateY(-3px);border-color:#bdcaff!important;box-shadow:0 12px 30px rgba(40,75,155,.09)!important;}
.aw-fa a:hover{color:#fff!important;}
@media(max-width:768px){
.aw-hero-img{display:none!important;}
.aw-btn-full{width:100%!important;}
.aw-why-grid{flex-direction:column!important;}
}
@media(max-width:1100px){
.aw-sol-grid > .e-con{width:calc(50% - 9px)!important;}
.aw-ind-grid > .e-con{width:calc(33.333% - 10px)!important;}
}
@media(max-width:768px){
.aw-sol-grid > .e-con{width:100%!important;}
.aw-ind-grid > .e-con{width:calc(50% - 7.5px)!important;}
}
@media(max-width:480px){
.aw-ind-grid > .e-con{width:100%!important;}
}
</style>';
$el_css = ['id'=>$css_id,'elType'=>'widget','widgetType'=>'html','settings'=>['html'=>$css_html],'elements'=>[]];
// ── Section 2: Hero ──
$hero_id = 'hero-el'; $hero_inner = _id(); $hero_content = _id(); $hero_badge = _id(); $hero_badge_txt = _id();
$hero_head = _id(); $hero_desc = _id(); $hero_btns = _id(); $hero_btn1 = _id(); $hero_btn2 = _id(); $hero_visual = _id(); $hero_img = _id();
$el_hero = [
'id'=>$hero_id,'elType'=>'container','isInner'=>false,
'settings'=>array_merge([
'layout'=>'full_width','min_height'=>_px(520),'flex_direction'=>'column','flex_align_items'=>'center',
'padding'=>_pad(0,0,0,0),'css_id'=>'hero-el','html_tag'=>'section'
], _grad('#f8faff','#e5eaff',110)),
'elements'=>[['id'=>$hero_inner,'elType'=>'container','isInner'=>true,'settings'=>[
'layout'=>'boxed','boxed_width'=>_px(1400),'flex_direction'=>'row','flex_align_items'=>'center',
'flex_gap'=>_gap(0),'min_height'=>_px(520),'padding'=>_pad(0,40,0,40)
],'elements'=>[
['id'=>$hero_content,'elType'=>'container','isInner'=>true,'settings'=>[
'layout'=>'boxed','width'=>_pct(48),'flex_direction'=>'column','flex_align_items'=>'flex_start','padding'=>_pad(70,0,70,0)
],'elements'=>[
['id'=>$hero_badge,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>['unit'=>'auto','size'=>'','sizes'=>[]],'border_radius'=>_rad(30),
'padding'=>_pad(8,16,8,16),'margin'=>_pad(0,0,18,0)
],_grad('#e8edff','#f0eaff',90)),'elements'=>[['id'=>$hero_badge_txt,'elType'=>'widget','widgetType'=>'text-editor','settings'=>[
'editor'=>'AI-Powered • Smart • Efficient','text_color'=>'#2858dd','typography_typography'=>'custom',
'typography_font_size'=>_px(13),'typography_font_weight'=>'700','typography_line_height'=>['unit'=>'em','size'=>1.2,'sizes'=>[]]
],'elements'=>[]]]],
['id'=>$hero_head,'elType'=>'widget','widgetType'=>'heading','settings'=>[
'title'=>'Empowering Businesses<br>with <span class="aw-gt">AI Solutions</span>','header_size'=>'h1','title_color'=>'#0a153c',
'typography_font_family'=>'Inter','typography_typography'=>'custom','typography_font_size'=>_px(72),'typography_font_weight'=>'800',
'typography_line_height'=>['unit'=>'em','size'=>1.08,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-3.5,'sizes'=>[]]
],'elements'=>[]],
['id'=>$hero_desc,'elType'=>'widget','widgetType'=>'text-editor','settings'=>[
'editor'=>'AIWebstation helps businesses automate, digitalize and grow with intelligent solutions, cloud technology and expert support.',
'text_color'=>'#4e5b79','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],
'margin'=>_pad(25,0,28,0)
],'elements'=>[]],
['id'=>$hero_btns,'elType'=>'container','isInner'=>true,'settings'=>[
'layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_align_items'=>'center',
'flex_gap'=>_gap(12),'flex_wrap'=>'wrap','css_classes'=>'aw-btn-full'
],'elements'=>[
['id'=>$hero_btn1,'elType'=>'widget','widgetType'=>'button','settings'=>array_merge([
'text'=>'Explore Solutions →','link'=>['url'=>'#aw-solutions','is_external'=>false,'nofollow'=>false],
'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom',
'typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50),
'box_shadow_box_shadow_type'=>'yes','box_shadow_box_shadow'=>['horizontal'=>0,'vertical'=>10,'blur'=>25,'spread'=>0,'color'=>'rgba(41,86,255,0.25)']
],_grad('#1e62ff','#693ff5',135)),'elements'=>[]],
['id'=>$hero_btn2,'elType'=>'widget','widgetType'=>'button','settings'=>[
'text'=>'💬 Talk to AI Assistant','link'=>['url'=>'#aw-ai','is_external'=>false,'nofollow'=>false],
'button_text_color'=>'#1a2850','background_background'=>'classic','background_color'=>'rgba(255,255,255,0.65)',
'border_border'=>'solid','border_width'=>['unit'=>'px','top'=>'1','right'=>'1','bottom'=>'1','left'=>'1','isLinked'=>true],'border_color'=>'#8d9bc0',
'border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700',
'padding'=>_pad(0,25,0,25),'min_height'=>_px(50)
],'elements'=>[]]
]]
]],
['id'=>$hero_visual,'elType'=>'container','isInner'=>true,'settings'=>[
'layout'=>'boxed','width'=>_pct(50),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'flex_end','css_classes'=>'aw-hero-img'
],'elements'=>[['id'=>$hero_img,'elType'=>'widget','widgetType'=>'image','settings'=>[
'image'=>['url'=>'https://website.ipohserver.com/AIWEBSTATION/wp-content/uploads/2026/08/aiwebstation-header-scaled.jpg','id'=>88],
'image_size'=>'full','image_border_radius'=>_rad(18),'css_classes'=>'aw-hi'
],'elements'=>[]]]
]]]
];
echo "Hero done\n";
// ── Section 3: Trusted Partners ──
$t_id=_id(); $t_in=_id(); $t_title=_id(); $t_pw=_id();
$t1=_id();$t2=_id();$t3=_id();$t4=_id();$t5=_id();$t6=_id();
$el_trusted = ['id'=>$t_id,'elType'=>'container','isInner'=>false,'settings'=>array_merge([
'layout'=>'full_width','min_height'=>_px(90),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(0,0,0,0),'html_tag'=>'section'
],_solid('#ffffff')),'elements'=>[['id'=>$t_in,'elType'=>'container','isInner'=>true,'settings'=>[
'layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between',
'flex_gap'=>_gap(30),'padding'=>_pad(0,40,0,40)
],'elements'=>[
['id'=>$t_title,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Trusted by Leading Businesses','header_size'=>'h6','title_color'=>'#263351','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_font_weight'=>'800','typography_white_space'=>'nowrap'],'elements'=>[]],
['id'=>$t_pw,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','flex_gap'=>_gap(30),'flex_wrap'=>'wrap'],'elements'=>[
['id'=>$t1,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'AutoCount','header_size'=>'h6','title_color'=>'#36a950','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800'],'elements'=>[]],
['id'=>$t2,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Microsoft','header_size'=>'h6','title_color'=>'#737373','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800'],'elements'=>[]],
['id'=>$t3,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'tp-link','header_size'=>'h6','title_color'=>'#31a5bd','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800'],'elements'=>[]],
['id'=>$t4,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'SiteGiant','header_size'=>'h6','title_color'=>'#25bd82','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800'],'elements'=>[]],
['id'=>$t5,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'DELL','header_size'=>'h6','title_color'=>'#6a7181','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800'],'elements'=>[]],
['id'=>$t6,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'HIKVISION','header_size'=>'h6','title_color'=>'#6a7181','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800'],'elements'=>[]]
]]
]]];
echo "Trusted done\n";
// ── Section 4: Solutions ──
$sol_data = [
['icon'=>'🤖','title'=>'AI Solutions','text'=>'AI Chatbot<br>Business Automation<br>Knowledge Base'],
['icon'=>'🧾','title'=>'Accounting Solutions','text'=>'AutoCount Accounting<br>Cloud Accounting<br>POS Solutions'],
['icon'=>'🛒','title'=>'Website & E-Commerce','text'=>'Website Development<br>E-Commerce Solutions<br>Online Store'],
['icon'=>'☁','title'=>'Cloud Solutions','text'=>'Cloud Infrastructure<br>Microsoft 365<br>Business Email'],
['icon'=>'🛡','title'=>'IT Support & Network','text'=>'IT Support<br>Network Setup<br>System Maintenance'],
['icon'=>'🛍','title'=>'Marketplace Integration','text'=>'Shopee Integration<br>Lazada Integration<br>TikTok Shop']
];
$sol_id=_id(); $sol_in=_id(); $sol_lbl=_id(); $sol_tit=_id(); $sol_sub=_id(); $sol_g=_id();
$sol_cards=[];
foreach($sol_data as $i=>$sd){
$cid=_id(); $iid=_id(); $ic=_id(); $cc=_id(); $ch=_id(); $cl=_id();
$sol_cards[]=['id'=>$cid,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>_pct(33.333),'flex_direction'=>'row','flex_align_items'=>'flex_start','flex_gap'=>_gap(22),
'min_height'=>_px(170),'border_radius'=>_rad(16),'padding'=>_pad(27,27,27,27),'css_classes'=>'aw-sol'
],_solid('#ffffff'),_border('#e9edf5')),'elements'=>[
['id'=>$iid,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>['unit'=>'px','size'=>64,'sizes'=>[]],'min_height'=>_px(64),'flex_direction'=>'column',
'flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(18)
],_grad('#edf2ff','#f4eeff',145)),'elements'=>[['id'=>$ic,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>$sd['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(28)],'elements'=>[]]],
['id'=>$cc,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'column','flex_align_items'=>'flex_start'],'elements'=>[
['id'=>$ch,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>$sd['title'],'header_size'=>'h5','title_color'=>'#13204a','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'700','margin'=>_pad(4,0,10,0)],'elements'=>[]],
['id'=>$cl,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>$sd['text'],'text_color'=>'#6a758d','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]],'elements'=>[]]
]]
]];
}
$el_sol = ['id'=>$sol_id,'elType'=>'container','isInner'=>false,'settings'=>array_merge([
'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(85,0,85,0),'html_tag'=>'section'
],_solid('#ffffff')),'elements'=>[['id'=>$sol_in,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'],'elements'=>[
['id'=>$sol_lbl,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Our Solutions','header_size'=>'h6','title_color'=>'#3569ff','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'800','typography_letter_spacing'=>['unit'=>'px','size'=>1.5,'sizes'=>[]],'typography_text_transform'=>'uppercase','align'=>'center','margin'=>_pad(0,0,10,0)],'elements'=>[]],
['id'=>$sol_tit,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Complete IT & AI Solutions<br>for Your Business','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]],'align'=>'center'],'elements'=>[]],
['id'=>$sol_sub,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'Technology solutions designed to help your business work smarter and grow faster.','text_color'=>'#69758f','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center','margin'=>_pad(12,0,42,0)],'elements'=>[]],
['id'=>$sol_g,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(18),'css_classes'=>'aw-sol-grid'],'elements'=>$sol_cards]
]]];
echo "Solutions done\n";
// ── Section 5: AI Assistant ──
$ai_id=_id(); $ai_in=_id(); $ai_b=_id(); $ai_cp=_id(); $ai_h=_id(); $ai_d=_id(); $ai_ck=_id();
$ai_c1=_id();$ai_c2=_id();$ai_c3=_id();$ai_c4=_id(); $ai_btn=_id();
$ai_dm=_id(); $ai_dh=_id(); $ai_dd=_id(); $ai_dt=_id(); $ai_ms=_id();
$ai_m1w=_id();$ai_m1=_id();$ai_m1t=_id();$ai_m2w=_id();$ai_m2=_id();$ai_m2t=_id();$ai_m3w=_id();$ai_m3=_id();$ai_m3t=_id();
$ai_inp=_id();$ai_int=_id();
$el_ai = ['id'=>$ai_id,'elType'=>'container','isInner'=>false,'settings'=>['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(35,0,85,0),'html_tag'=>'section'],'elements'=>[['id'=>$ai_in,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'],'elements'=>[['id'=>$ai_b,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>_pct(100),'min_height'=>_px(350),'border_radius'=>_rad(18),'padding'=>_pad(55,55,55,55),
'flex_direction'=>'row','flex_align_items'=>'center','flex_gap'=>_gap(60),'overflow'=>'hidden'
],_grad('#071e69','#3722b8',110)),'elements'=>[
['id'=>$ai_cp,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(38),'flex_direction'=>'column','flex_align_items'=>'flex_start'],'elements'=>[
['id'=>$ai_h,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Meet Your<br><span class="aw-gt">AI Business Assistant</span>','header_size'=>'h2','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(39),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.12,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1,'sizes'=>[]]],'elements'=>[]],
['id'=>$ai_d,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'Get instant answers to your business questions 24/7.','text_color'=>'#d4ddff','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(15,0,22,0)],'elements'=>[]],
['id'=>$ai_ck,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(12)],'elements'=>[
['id'=>$ai_c1,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="color:#4b76ff;font-weight:800;margin-right:8px;">✓</span><span style="color:#ffffff;font-size:13px;">Smart & Accurate</span>'],'elements'=>[]],
['id'=>$ai_c2,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="color:#4b76ff;font-weight:800;margin-right:8px;">✓</span><span style="color:#ffffff;font-size:13px;">Trained with Your Data</span>'],'elements'=>[]],
['id'=>$ai_c3,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="color:#4b76ff;font-weight:800;margin-right:8px;">✓</span><span style="color:#ffffff;font-size:13px;">24/7 Available</span>'],'elements'=>[]],
['id'=>$ai_c4,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="color:#4b76ff;font-weight:800;margin-right:8px;">✓</span><span style="color:#ffffff;font-size:13px;">Multi-language Support</span>'],'elements'=>[]]
]],
['id'=>$ai_btn,'elType'=>'widget','widgetType'=>'button','settings'=>array_merge(['text'=>'Try AI Assistant Now →','link'=>['url'=>'#aw-contact','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50),'margin'=>_pad(22,0,0,0)],_grad('#1e62ff','#693ff5',135)),'elements'=>[]]
]],
['id'=>$ai_dm,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>_pct(62),'min_height'=>_px(275),'border_radius'=>_rad(17),'padding'=>_pad(20,20,20,20),'flex_direction'=>'column'
],_solid('rgba(255,255,255,0.96)'),['box_shadow_box_shadow_type'=>'yes','box_shadow_box_shadow'=>['horizontal'=>0,'vertical'=>25,'blur'=>60,'spread'=>0,'color'=>'rgba(0,0,0,0.18)']]),'elements'=>[
['id'=>$ai_dh,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_align_items'=>'center','flex_gap'=>_gap(10),'padding'=>_pad(0,0,15,0),'border_bottom_border'=>'solid','border_bottom_width'=>['unit'=>'px','top'=>'0','right'=>'0','bottom'=>'1','left'=>'0','isLinked'=>false],'border_bottom_color'=>'#e7ebf5'],'elements'=>[
['id'=>$ai_dd,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>30,'sizes'=>[]],'min_height'=>_px(30),'border_radius'=>_rad(50,'%')],_grad('#2967ff','#7a42f5',135)),'elements'=>[]],
['id'=>$ai_dt,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'AIWebstation Assistant','header_size'=>'h6','title_color'=>'#18234b','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700'],'elements'=>[]]
]],
['id'=>$ai_ms,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'column','flex_gap'=>_gap(12),'margin'=>_pad(10,0,10,0)],'elements'=>[
['id'=>$ai_m1w,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','justify_content'=>'flex_start'],'elements'=>[['id'=>$ai_m1,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(75),'border_radius'=>_rad(12),'padding'=>_pad(12,15,12,15)]+_solid('#f0f3ff'),'elements'=>[['id'=>$ai_m1t,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'How can I help your business today?','text_color'=>'#18234b','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]],'elements'=>[]]]]],
['id'=>$ai_m2w,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','justify_content'=>'flex_end'],'elements'=>[['id'=>$ai_m2,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>_pct(75),'border_radius'=>_rad(12),'padding'=>_pad(12,15,12,15)],_grad('#3b6bff','#7542f5',135)),'elements'=>[['id'=>$ai_m2t,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'I want to know about AutoCount pricing.','text_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]],'elements'=>[]]]]],
['id'=>$ai_m3w,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','justify_content'=>'flex_start'],'elements'=>[['id'=>$ai_m3,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(75),'border_radius'=>_rad(12),'padding'=>_pad(12,15,12,15)]+_solid('#f0f3ff'),'elements'=>[['id'=>$ai_m3t,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'AutoCount offers flexible solutions based on your business needs.','text_color'=>'#18234b','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]],'elements'=>[]]]]]
]],
['id'=>$ai_inp,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>_pct(100),'min_height'=>_px(42),'border_radius'=>_rad(9),'flex_direction'=>'row','flex_align_items'=>'center','padding'=>_pad(0,14,0,14)],_border('#dfe4ef')),'elements'=>[['id'=>$ai_int,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'Ask me anything...','text_color'=>'#9aa4ba','typography_typography'=>'custom','typography_font_size'=>_px(12)],'elements'=>[]]]
]]
]]]]];
echo "AI done\n";
// ── Section 6: Why Choose ──
$why_id=_id(); $why_in=_id(); $why_g=_id(); $why_i=_id(); $why_ih=_id(); $why_idt=_id(); $why_ib=_id();
$why_c1=_id();$why_i1=_id();$why_ic1=_id();$why_ch1=_id();$why_cd1=_id();
$why_c2=_id();$why_i2=_id();$why_ic2=_id();$why_ch2=_id();$why_cd2=_id();
$why_c3=_id();$why_i3=_id();$why_ic3=_id();$why_ch3=_id();$why_cd3=_id();
$why_c4=_id();$why_i4=_id();$why_ic4=_id();$why_ch4=_id();$why_cd4=_id();
$el_why = ['id'=>$why_id,'elType'=>'container','isInner'=>false,'settings'=>array_merge([
'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(85,0,85,0),'html_tag'=>'section'
],_solid('#f8faff')),'elements'=>[['id'=>$why_in,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'],'elements'=>[['id'=>$why_g,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(1),'css_classes'=>'aw-why-grid'],'elements'=>[
['id'=>$why_i,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>_pct(24),'flex_direction'=>'column','flex_align_items'=>'flex_start','padding'=>_pad(30,30,30,30)],_solid('#ffffff')),'elements'=>[
['id'=>$why_ih,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Why Choose<br><span class="aw-gt">AIWebstation?</span>','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(30),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'margin'=>_pad(0,0,10,0)],'elements'=>[]],
['id'=>$why_idt,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'We provide professional, reliable and innovative solutions to help your business grow.','text_color'=>'#68738e','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.6,'sizes'=>[]],'margin'=>_pad(0,0,20,0)],'elements'=>[]],
['id'=>$why_ib,'elType'=>'widget','widgetType'=>'button','settings'=>array_merge(['text'=>'About Us →','link'=>['url'=>'#aw-contact','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50)],_grad('#1e62ff','#693ff5',135)),'elements'=>[]]
]],
['id'=>$why_c1,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>_pct(19),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(30,30,30,30)],_solid('#ffffff')),'elements'=>[
['id'=>$why_i1,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>55,'sizes'=>[]],'min_height'=>_px(55),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%'),'margin'=>_pad(0,0,15,0)],_solid('#edf2ff')),'elements'=>[['id'=>$why_ic1,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'👥','header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(25)],'elements'=>[]]],
['id'=>$why_ch1,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Professional Team','header_size'=>'h5','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(15),'typography_font_weight'=>'700','align'=>'center','margin'=>_pad(0,0,8,0)],'elements'=>[]],
['id'=>$why_cd1,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'Experienced specialists ready to help','text_color'=>'#7a8499','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center'],'elements'=>[]]
]],
['id'=>$why_c2,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>_pct(19),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(30,30,30,30)],_solid('#ffffff')),'elements'=>[
['id'=>$why_i2,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>55,'sizes'=>[]],'min_height'=>_px(55),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%'),'margin'=>_pad(0,0,15,0)],_solid('#edf2ff')),'elements'=>[['id'=>$why_ic2,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'🛡','header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(25)],'elements'=>[]]],
['id'=>$why_ch2,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Reliable Solutions','header_size'=>'h5','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(15),'typography_font_weight'=>'700','align'=>'center','margin'=>_pad(0,0,8,0)],'elements'=>[]],
['id'=>$why_cd2,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'High quality and trusted solutions','text_color'=>'#7a8499','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center'],'elements'=>[]]
]],
['id'=>$why_c3,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>_pct(19),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(30,30,30,30)],_solid('#ffffff')),'elements'=>[
['id'=>$why_i3,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>55,'sizes'=>[]],'min_height'=>_px(55),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%'),'margin'=>_pad(0,0,15,0)],_solid('#edf2ff')),'elements'=>[['id'=>$why_ic3,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'⚡','header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(25)],'elements'=>[]]],
['id'=>$why_ch3,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Fast Response','header_size'=>'h5','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(15),'typography_font_weight'=>'700','align'=>'center','margin'=>_pad(0,0,8,0)],'elements'=>[]],
['id'=>$why_cd3,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'Quick support whenever you need','text_color'=>'#7a8499','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center'],'elements'=>[]]
]],
['id'=>$why_c4,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>_pct(19),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(30,30,30,30)],_solid('#ffffff')),'elements'=>[
['id'=>$why_i4,'elType'=>'container','isInner'=>true,'settings'=>array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>55,'sizes'=>[]],'min_height'=>_px(55),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%'),'margin'=>_pad(0,0,15,0)],_solid('#edf2ff')),'elements'=>[['id'=>$why_ic4,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'📍','header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(25)],'elements'=>[]]],
['id'=>$why_ch4,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Local Support','header_size'=>'h5','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(15),'typography_font_weight'=>'700','align'=>'center','margin'=>_pad(0,0,8,0)],'elements'=>[]],
['id'=>$why_cd4,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'Malaysia-based support team','text_color'=>'#7a8499','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center'],'elements'=>[]]
]]
]]]]];
echo "Why done\n";
// ── Section 7: Industries ──
$ind_id=_id(); $ind_in=_id(); $ind_lbl=_id(); $ind_tit=_id(); $ind_sub=_id(); $ind_g=_id();
$ind_data = [
['icon'=>'🛍','label'=>'Retail & Trading'],['icon'=>'🏭','label'=>'Manufacturing'],['icon'=>'🧾','label'=>'Accounting Firms'],
['icon'=>'🎓','label'=>'Education'],['icon'=>'🏥','label'=>'Healthcare'],['icon'=>'🏢','label'=>'SME Businesses']
];
$ind_cards=[];
foreach($ind_data as $i=>$id){
$cid=_id(); $ic=_id(); $it=_id();
$ind_cards[]=['id'=>$cid,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>_pct(16.666),'min_height'=>_px(105),'border_radius'=>_rad(13),
'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','flex_gap'=>_gap(10),'css_classes'=>'aw-ind'
],_solid('#ffffff'),_border('#e7ebf4')),'elements'=>[
['id'=>$ic,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>$id['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(26)],'elements'=>[]],
['id'=>$it,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>$id['label'],'header_size'=>'h6','title_color'=>'#293553','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'700'],'elements'=>[]]
]];
}
$el_ind = ['id'=>$ind_id,'elType'=>'container','isInner'=>false,'settings'=>['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(75,0,75,0),'html_tag'=>'section'],'elements'=>[['id'=>$ind_in,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'],'elements'=>[
['id'=>$ind_lbl,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Industries We Serve','header_size'=>'h6','title_color'=>'#3569ff','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'800','typography_letter_spacing'=>['unit'=>'px','size'=>1.5,'sizes'=>[]],'typography_text_transform'=>'uppercase','align'=>'center','margin'=>_pad(0,0,10,0)],'elements'=>[]],
['id'=>$ind_tit,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Solutions for Every Industry','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]],'align'=>'center'],'elements'=>[]],
['id'=>$ind_sub,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'We support businesses from various industries.','text_color'=>'#69758f','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center','margin'=>_pad(12,0,42,0)],'elements'=>[]],
['id'=>$ind_g,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(15),'css_classes'=>'aw-ind-grid'],'elements'=>$ind_cards]
]]];
echo "Industries done\n";
// ── Section 8: CTA ──
$cta_id=_id(); $cta_in=_id(); $cta_b=_id(); $cta_ct=_id(); $cta_h=_id(); $cta_d=_id(); $cta_btn=_id(); $cta_r=_id(); $cta_rt=_id();
$el_cta = ['id'=>$cta_id,'elType'=>'container','isInner'=>false,'settings'=>['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(0,0,80,0),'html_tag'=>'section'],'elements'=>[['id'=>$cta_in,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'],'elements'=>[['id'=>$cta_b,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>_pct(100),'min_height'=>_px(220),'border_radius'=>_rad(18),'padding'=>_pad(45,55,45,55),
'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','overflow'=>'hidden'
],_grad('#1349d9','#4930d9',105)),'elements'=>[
['id'=>$cta_ct,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(70),'flex_direction'=>'column','flex_align_items'=>'flex_start'],'elements'=>[
['id'=>$cta_h,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Ready to Transform Your Business with AI?','header_size'=>'h2','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(38),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.12,'sizes'=>[]]],'elements'=>[]],
['id'=>$cta_d,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>"Let's help you build a smarter and more efficient business.",'text_color'=>'#d8e1ff','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(12,0,23,0)],'elements'=>[]],
['id'=>$cta_btn,'elType'=>'widget','widgetType'=>'button','settings'=>array_merge(['text'=>'Get Free Consultation →','link'=>['url'=>'#aw-contact','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50)],_grad('#1e62ff','#693ff5',135)),'elements'=>[]]
]],
['id'=>$cta_r,'elType'=>'container','isInner'=>true,'settings'=>array_merge([
'layout'=>'boxed','width'=>['unit'=>'px','size'=>190,'sizes'=>[]],'min_height'=>_px(190),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%')
],['background_background'=>'gradient','background_color'=>'#6c67ff','background_color_stop'=>['unit'=>'%','size'=>0,'sizes'=>[]],'background_color_b'=>'transparent','background_color_b_stop'=>['unit'=>'%','size'=>65,'sizes'=>[]],'background_gradient_type'=>'radial','background_gradient_position'=>['x'=>50,'y'=>50,'unit'=>'%']]),'elements'=>[['id'=>$cta_rt,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'🚀','header_size'=>'h1','typography_typography'=>'custom','typography_font_size'=>_px(80)],'elements'=>[]]]
]]]]];
echo "CTA done\n";
// ── Section 9: Footer ──
$foot_id=_id(); $foot_in=_id(); $foot_br=_id(); $foot_lo=_id(); $foot_de=_id(); $foot_so=_id();
$foot_sl=_id(); $foot_se=_id(); $foot_co=_id(); $foot_su=_id();
$foot_bot=_id(); $foot_cp=_id(); $foot_li=_id();
$el_foot = ['id'=>$foot_id,'elType'=>'container','isInner'=>false,'settings'=>array_merge([
'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(65,0,20,0),'html_tag'=>'footer'
],_solid('#07183f')),'elements'=>[['id'=>$foot_in,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','boxed_width'=>_px(1200),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(50)],'elements'=>[
['id'=>$foot_br,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(30),'flex_direction'=>'column','flex_align_items'=>'flex_start'],'elements'=>[
['id'=>$foot_lo,'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'<span style="color:#245cff;font-weight:800;">AI</span><span style="color:#ffffff;">Webstation</span>','header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(22),'typography_font_weight'=>'800'],'elements'=>[]],
['id'=>$foot_de,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'Empowering businesses with AI and digital solutions.','text_color'=>'#aab7d7','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.6,'sizes'=>[]],'margin'=>_pad(15,0,20,0)],'elements'=>[]],
['id'=>$foot_so,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_gap'=>_gap(8)],'elements'=>[
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">f</span>'],'elements'=>[]],
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">in</span>'],'elements'=>[]],
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">▶</span>'],'elements'=>[]],
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">◎</span>'],'elements'=>[]]
]]
]],
['id'=>$foot_sl,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(17.5),'flex_direction'=>'column'],'elements'=>[
['id'=>_id(),'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Solutions','header_size'=>'h5','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','margin'=>_pad(0,0,18,0)],'elements'=>[]],
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">AI Solutions</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Accounting Software</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Cloud Solutions</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Website Development</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">E-Commerce</a>','css_classes'=>'aw-fa'],'elements'=>[]]
]],
['id'=>$foot_se,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(17.5),'flex_direction'=>'column'],'elements'=>[
['id'=>_id(),'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Services','header_size'=>'h5','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','margin'=>_pad(0,0,18,0)],'elements'=>[]],
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">IT Support</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Network Solutions</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Web Hosting</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Email Solutions</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Cybersecurity</a>','css_classes'=>'aw-fa'],'elements'=>[]]
]],
['id'=>$foot_co,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(17.5),'flex_direction'=>'column'],'elements'=>[
['id'=>_id(),'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Company','header_size'=>'h5','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','margin'=>_pad(0,0,18,0)],'elements'=>[]],
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">About Us</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Our Team</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Careers</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Contact Us</a>','css_classes'=>'aw-fa'],'elements'=>[]]
]],
['id'=>$foot_su,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','width'=>_pct(17.5),'flex_direction'=>'column'],'elements'=>[
['id'=>_id(),'elType'=>'widget','widgetType'=>'heading','settings'=>['title'=>'Support','header_size'=>'h5','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','margin'=>_pad(0,0,18,0)],'elements'=>[]],
['id'=>_id(),'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Help Center</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">FAQ</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Remote Support</a><a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">Privacy Policy</a>','css_classes'=>'aw-fa'],'elements'=>[]]
]]
]],['id'=>$foot_bot,'elType'=>'container','isInner'=>true,'settings'=>['layout'=>'boxed','boxed_width'=>_px(1200),'max_width'=>_px(1200),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','margin'=>_pad(40,0,0,0),'padding'=>_pad(18,0,0,0),'border_top_border'=>'solid','border_top_width'=>['unit'=>'px','top'=>'1','right'=>'0','bottom'=>'0','left'=>'0','isLinked'=>false],'border_top_color'=>'rgba(255,255,255,0.12)'],'elements'=>[
['id'=>$foot_cp,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'© 2026 AIWebstation. All Rights Reserved.','text_color'=>'#8997bb','typography_typography'=>'custom','typography_font_size'=>_px(11)],'elements'=>[]],
['id'=>$foot_li,'elType'=>'widget','widgetType'=>'text-editor','settings'=>['editor'=>'<a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Sitemap</a> | <a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Terms of Service</a> | <a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Privacy Policy</a>','text_color'=>'#8997bb'],'elements'=>[]]
]];
echo "Footer done\n";
// ── Assemble and Save ──
$elements = [$el_css, $el_hero, $el_trusted, $el_sol, $el_ai, $el_why, $el_ind, $el_cta, $el_foot];
$json = json_encode($elements, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
echo "JSON length: " . strlen($json) . "\n";
echo "JSON valid: " . (json_decode($json) !== null ? 'yes' : 'no') . "\n";
update_post_meta($page_id, '_elementor_edit_mode', 'builder');
update_post_meta($page_id, '_elementor_template_type', 'wp-page');
update_post_meta($page_id, '_elementor_version', ELEMENTOR_VERSION);
$document = \Elementor\Plugin::$instance->documents->get($page_id);
if ($document) {
$document->save(['elements' => $elements]);
\Elementor\Plugin::$instance->files_manager->clear_cache();
echo "Document saved via Elementor API\n";
} else {
// fallback: direct meta
update_post_meta($page_id, '_elementor_data', wp_slash($json));
echo "Saved via direct meta update\n";
}
// Verify
$saved = get_post_meta($page_id, '_elementor_data', true);
echo "Saved data length: " . strlen($saved) . "\n";
echo "Saved data JSON ok: " . (json_decode($saved) !== null ? 'yes' : 'no') . "\n";
function tally($arr, &$wc, &$cc) {
if (!is_array($arr)) return;
foreach ($arr as $el) {
$t = $el['elType'] ?? '';
if ($t === 'widget') { $wt = $el['widgetType'] ?? 'unknown'; $wc[$wt] = ($wc[$wt] ?? 0) + 1; }
elseif ($t === 'container') { $cc++; }
if (!empty($el['elements'])) tally($el['elements'], $wc, $cc);
}
}
$wc = []; $cc = 0;
$tally(json_decode($saved, true), $wc, $cc);
echo "Top-level sections: " . count(json_decode($saved, true)) . "\n";
echo "Containers: " . $cc . "\n";
echo "Widgets: " . json_encode($wc) . "\n";
echo "Post status: " . get_post_status($page_id) . "\n";