/* ============================================================
   AppAI.vn — Home Page Sections CSS
   Port 1:1 từ HTML v4. Scope: body.appai-vn-home #main
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
body.appai-vn-home #main .hero{padding:calc(var(--appai-vn-sp-20) + 48px) 0 var(--appai-vn-sp-20);
  background:var(--appai-vn-bg-hero);position:relative;overflow:hidden}

/* Dot mesh */
body.appai-vn-home #main .hero-mesh{position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(0,92,224,.06) 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 40%,black 10%,transparent 70%);
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 40%,black 10%,transparent 70%);
  animation:appai-vn-meshFade 12s ease-in-out infinite alternate}
@keyframes appai-vn-meshFade{0%{opacity:.3}100%{opacity:.55}}

/* Gradient orbs */
body.appai-vn-home #main .hero-gradient{position:absolute;border-radius:50%;filter:blur(120px);pointer-events:none}
body.appai-vn-home #main .hero-gradient-1{width:520px;height:520px;top:-180px;left:-120px;
  background:radial-gradient(circle,rgba(0,92,224,.08),transparent 70%);
  animation:appai-vn-floatSlow 16s ease-in-out infinite}
body.appai-vn-home #main .hero-gradient-2{width:400px;height:400px;bottom:-120px;right:-80px;
  background:radial-gradient(circle,rgba(124,58,237,.05),transparent 70%);
  animation:appai-vn-floatSlow 20s ease-in-out infinite reverse}
@keyframes appai-vn-floatSlow{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(20px,-12px) scale(1.05)}}

/* Floating orbs */
body.appai-vn-home #main .hero-orbs{position:absolute;inset:0;pointer-events:none;overflow:hidden}
body.appai-vn-home #main .orb{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--appai-vn-blue-300);
  opacity:0;animation:appai-vn-orbRise 7s ease-in-out infinite}
body.appai-vn-home #main .orb-1{left:12%;animation-delay:0s;animation-duration:9s}
body.appai-vn-home #main .orb-2{left:32%;animation-delay:2s;animation-duration:7s}
body.appai-vn-home #main .orb-3{left:58%;animation-delay:3.5s;animation-duration:10s}
body.appai-vn-home #main .orb-4{left:74%;animation-delay:.8s;animation-duration:8s}
body.appai-vn-home #main .orb-5{left:88%;animation-delay:2.8s;animation-duration:7.5s}
@keyframes appai-vn-orbRise{
  0%{transform:translateY(100vh) scale(0);opacity:0}
  15%{opacity:.25}85%{opacity:.1}
  100%{transform:translateY(-40px) scale(1.2);opacity:0}}

/* Hero layout */
body.appai-vn-home #main .hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:var(--appai-vn-sp-8);align-items:center;position:relative;z-index:1}
body.appai-vn-home #main .hero-copy{max-width:560px}

/* Hero badge */
body.appai-vn-home #main .hero-badge{display:inline-flex;align-items:center;gap:var(--appai-vn-sp-2);padding:6px 18px;
  border-radius:var(--appai-vn-r-full);font-size:.8125rem;font-weight:600;
  background:rgba(0,92,224,.06);border:1px solid rgba(0,92,224,.1);
  color:var(--appai-vn-blue-600);margin-bottom:var(--appai-vn-sp-4);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
body.appai-vn-home #main .badge-pulse{width:7px;height:7px;border-radius:50%;background:var(--appai-vn-emerald-500);
  box-shadow:0 0 6px var(--appai-vn-emerald-500);animation:appai-vn-pulse 2.5s ease-in-out infinite}
@keyframes appai-vn-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.75)}}

/* Hero text */
body.appai-vn-home #main .hero h1{font-size:clamp(1.75rem,3.5vw,2.5rem);line-height:1.25;letter-spacing:-.02em;
  margin:0 0 var(--appai-vn-sp-3) 0;font-weight:800;text-transform:none}
body.appai-vn-home #main .hero h1 .hl{color:var(--appai-vn-blue-600)}
body.appai-vn-home #main .hero-sub{font-size:1rem;color:var(--appai-vn-text-secondary);line-height:1.8;margin:0 0 var(--appai-vn-sp-4) 0;max-width:500px}
body.appai-vn-home #main .hero-cta{display:flex;gap:var(--appai-vn-sp-3);margin-bottom:var(--appai-vn-sp-4)}

/* Hero assurance */
body.appai-vn-home #main .hero-assurance{display:flex;flex-wrap:nowrap;gap:18px}
body.appai-vn-home #main .hero-assurance span{display:inline-flex;align-items:center;gap:6px;
  font-size:.875rem;font-weight:600;color:var(--appai-vn-text-secondary);white-space:nowrap}
body.appai-vn-home #main .hero-assurance i{color:var(--appai-vn-blue-600);font-size:15px}

/* Hero mockup */
body.appai-vn-home #main .hero-mockup{overflow:hidden;animation:appai-vn-mockFloat 6s ease-in-out infinite;
  border-radius:var(--appai-vn-r-xl)}
body.appai-vn-home #main .hero-mockup img{display:block;width:100%;height:auto}
@keyframes appai-vn-mockFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* ============================================================
   HOW IT WORKS — 4 Steps
   ============================================================ */
body.appai-vn-home #main .steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--appai-vn-sp-5);position:relative}
body.appai-vn-home #main .steps-grid::before{content:'';position:absolute;top:30px;left:calc(12.5% + 28px);
  right:calc(12.5% + 28px);height:1px;background:var(--appai-vn-border);z-index:0}

body.appai-vn-home #main .step-card{text-align:center;position:relative;z-index:1;
  padding:var(--appai-vn-sp-6) var(--appai-vn-sp-4);border-radius:var(--appai-vn-r-lg);
  background:var(--appai-vn-bg);border:1px solid var(--appai-vn-border);transition:all .4s var(--appai-vn-ease-out)}
body.appai-vn-home #main .step-card:hover{border-color:var(--appai-vn-blue-100);transform:translateY(-5px);box-shadow:var(--appai-vn-shadow-card-hover)}

body.appai-vn-home #main .step-num{font-size:.75rem;font-weight:700;color:var(--appai-vn-blue-600);letter-spacing:.08em;margin-bottom:var(--appai-vn-sp-3);opacity:.45}
body.appai-vn-home #main .step-icon{width:52px;height:52px;border-radius:var(--appai-vn-r-md);display:flex;
  align-items:center;justify-content:center;font-size:1.3rem;margin:0 auto var(--appai-vn-sp-4);
  background:var(--appai-vn-blue-50);color:var(--appai-vn-blue-600);border:1px solid var(--appai-vn-blue-100);
  transition:all .35s var(--appai-vn-ease-spring)}
body.appai-vn-home #main .step-card:hover .step-icon{background:var(--appai-vn-blue-600);color:#fff;
  box-shadow:0 6px 20px rgba(0,92,224,.25);border-color:var(--appai-vn-blue-600);transform:scale(1.08) rotate(-3deg)}
body.appai-vn-home #main .step-card h3{font-size:1.0625rem;font-weight:600;margin:0 0 var(--appai-vn-sp-2) 0;color:var(--appai-vn-text-primary)}
body.appai-vn-home #main .step-card p{font-size:.9375rem;color:var(--appai-vn-text-secondary);line-height:1.7;margin:0}

/* ============================================================
   BENEFITS — Stats grid
   ============================================================ */
body.appai-vn-home #main .stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--appai-vn-sp-5)}
body.appai-vn-home #main .stat-item{text-align:center;padding:var(--appai-vn-sp-8) var(--appai-vn-sp-5);border-radius:var(--appai-vn-r-lg);
  background:var(--appai-vn-bg);border:1px solid var(--appai-vn-border);transition:all var(--appai-vn-duration-slow) var(--appai-vn-ease-out)}
body.appai-vn-home #main .stat-item:hover{border-color:var(--appai-vn-blue-100);box-shadow:var(--appai-vn-shadow-card-hover);transform:translateY(-2px)}
body.appai-vn-home #main .stat-icon{width:48px;height:48px;border-radius:var(--appai-vn-r-md);margin:0 auto var(--appai-vn-sp-4);
  display:flex;align-items:center;justify-content:center;font-size:1.25rem;
  background:var(--appai-vn-blue-50);color:var(--appai-vn-blue-600);border:1px solid var(--appai-vn-blue-100);transition:all var(--appai-vn-duration) var(--appai-vn-ease)}
body.appai-vn-home #main .stat-item:hover .stat-icon{background:var(--appai-vn-blue-600);color:#fff;
  box-shadow:0 4px 12px rgba(0,92,224,.2);border-color:var(--appai-vn-blue-600)}
body.appai-vn-home #main .stat-num{font-size:1.1875rem;font-weight:700;color:var(--appai-vn-text-primary);line-height:1.3;margin:0}
body.appai-vn-home #main .stat-label{font-size:.9375rem;color:var(--appai-vn-text-secondary);margin:var(--appai-vn-sp-2) 0 0 0;line-height:1.7}

/* ============================================================
   FEATURES — Grid with accent colors
   ============================================================ */
body.appai-vn-home #main .ch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--appai-vn-sp-5)}
body.appai-vn-home #main .ch-card{background:var(--appai-vn-bg);border:1px solid var(--appai-vn-border);border-radius:var(--appai-vn-r-lg);
  padding:var(--appai-vn-sp-8);text-align:center;transition:all .4s var(--appai-vn-ease-out);position:relative;overflow:hidden}
body.appai-vn-home #main .ch-card::after{content:'';position:absolute;inset:0;opacity:0;
  background:linear-gradient(135deg,rgba(0,92,224,.02),rgba(124,58,237,.02));transition:opacity .4s var(--appai-vn-ease)}
body.appai-vn-home #main .ch-card:hover{transform:translateY(-5px);border-color:var(--appai-vn-blue-100);box-shadow:var(--appai-vn-shadow-card-hover)}
body.appai-vn-home #main .ch-card:hover::after{opacity:1}

body.appai-vn-home #main .ch-icon{width:52px;height:52px;border-radius:var(--appai-vn-r-md);margin:0 auto var(--appai-vn-sp-4);
  display:flex;align-items:center;justify-content:center;font-size:1.3rem;position:relative;z-index:1;
  transition:all .35s var(--appai-vn-ease-spring)}
body.appai-vn-home #main .ch-icon.accent-blue{background:var(--appai-vn-blue-50);color:var(--appai-vn-blue-600);border:1px solid var(--appai-vn-blue-100)}
body.appai-vn-home #main .ch-icon.accent-cyan{background:var(--appai-vn-cyan-50);color:var(--appai-vn-cyan-600);border:1px solid rgba(8,145,178,.15)}
body.appai-vn-home #main .ch-icon.accent-violet{background:var(--appai-vn-violet-50);color:var(--appai-vn-violet-600);border:1px solid var(--appai-vn-violet-100)}
body.appai-vn-home #main .ch-icon.accent-emerald{background:var(--appai-vn-emerald-50);color:var(--appai-vn-emerald-600);border:1px solid var(--appai-vn-emerald-100)}

body.appai-vn-home #main .ch-card:hover .ch-icon{transform:scale(1.1) rotate(-5deg)}
body.appai-vn-home #main .ch-card:hover .ch-icon.accent-blue{box-shadow:0 6px 20px rgba(0,92,224,.18)}
body.appai-vn-home #main .ch-card:hover .ch-icon.accent-cyan{box-shadow:0 6px 20px rgba(8,145,178,.16)}
body.appai-vn-home #main .ch-card:hover .ch-icon.accent-violet{box-shadow:0 6px 20px rgba(124,58,237,.14)}
body.appai-vn-home #main .ch-card:hover .ch-icon.accent-emerald{box-shadow:0 6px 20px rgba(5,150,105,.14)}

body.appai-vn-home #main .ch-card h3{font-size:1.125rem;font-weight:600;margin:0 0 var(--appai-vn-sp-2) 0;color:var(--appai-vn-text-primary);position:relative;z-index:1}
body.appai-vn-home #main .ch-card p{font-size:1rem;color:var(--appai-vn-text-secondary);line-height:1.7;margin:0;position:relative;z-index:1}

/* ============================================================
   TESTIMONIALS — Marquee
   ============================================================ */
/* Testimonials section bg must be white so edge fades match */
body.appai-vn-home #main .test-marquee-wrap{position:relative;overflow:hidden;padding:0 0 var(--appai-vn-sp-4)}
body.appai-vn-home #main .test-marquee-wrap::before,body.appai-vn-home #main .test-marquee-wrap::after{
  content:'';position:absolute;top:0;bottom:0;width:100px;z-index:2;pointer-events:none}
body.appai-vn-home #main .test-marquee-wrap::before{left:0;background:linear-gradient(90deg,var(--appai-vn-bg),transparent)}
body.appai-vn-home #main .test-marquee-wrap::after{right:0;background:linear-gradient(90deg,transparent,var(--appai-vn-bg))}

body.appai-vn-home #main .test-marquee{overflow:hidden}
body.appai-vn-home #main .test-marquee + .test-marquee{margin-top:var(--appai-vn-sp-4)}
body.appai-vn-home #main .test-marquee-track{display:flex;gap:var(--appai-vn-sp-5);width:max-content;
  animation:appai-vn-testScroll var(--appai-vn-marquee-duration,40s) linear infinite}
body.appai-vn-home #main .test-marquee-row2 .test-marquee-track{animation-direction:reverse}
body.appai-vn-home #main .test-marquee-set{display:flex;align-items:stretch;gap:var(--appai-vn-sp-5)}
@keyframes appai-vn-testScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

body.appai-vn-home #main .test-card-m{flex-shrink:0;width:360px;background:var(--appai-vn-bg);border:1px solid var(--appai-vn-border);
  border-radius:var(--appai-vn-r-lg);padding:var(--appai-vn-sp-6);position:relative;box-sizing:border-box;
  transition:border-color var(--appai-vn-duration),box-shadow var(--appai-vn-duration)}
body.appai-vn-home #main .test-card-m:hover{border-color:var(--appai-vn-blue-100);box-shadow:var(--appai-vn-shadow-md)}

body.appai-vn-home #main .test-stars{display:flex;align-items:center;gap:2px;line-height:1;margin:0 0 var(--appai-vn-sp-3)}
body.appai-vn-home #main .test-stars :is(i,span){color:var(--appai-vn-amber-400);font-size:.85rem;font-style:normal}
body.appai-vn-home #main .test-quote{
  margin:0 0 var(--appai-vn-sp-4)!important;padding:0!important;border:0!important;
  color:var(--appai-vn-text-secondary);font:400 .9375rem/1.75 var(--appai-vn-font);font-style:normal!important}
body.appai-vn-home #main .test-author{display:flex;align-items:center;gap:12px}
body.appai-vn-home #main .test-av{
  width:40px;height:40px;border-radius:50%;display:block;overflow:hidden;flex:0 0 40px;
  background:var(--appai-vn-bg-muted);box-shadow:0 0 0 2px #fff,0 0 0 3px var(--appai-vn-border)}
body.appai-vn-home #main .test-avatar-image{display:block;width:100%;height:100%;margin:0;object-fit:cover;object-position:center}
body.appai-vn-home #main .test-author-copy{min-width:0}
body.appai-vn-home #main .test-av.t1{background:var(--appai-vn-blue-600)}
body.appai-vn-home #main .test-av.t2{background:var(--appai-vn-violet-600)}
body.appai-vn-home #main .test-av.t3{background:var(--appai-vn-emerald-600)}
body.appai-vn-home #main .test-name{color:var(--appai-vn-text-primary);font-size:.9375rem;font-weight:600;line-height:1.35}
body.appai-vn-home #main .test-role{margin-top:2px;color:var(--appai-vn-text-tertiary);font-size:.8125rem;line-height:1.4}

/* ============================================================
   FAQ — Accordion
   ============================================================ */
body.appai-vn-home #main .faq-list{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:var(--appai-vn-sp-2)}
body.appai-vn-home #main .faq-item{background:var(--appai-vn-bg);border:1px solid var(--appai-vn-border);border-radius:var(--appai-vn-r-md);
  overflow:hidden;transition:all var(--appai-vn-duration-slow) var(--appai-vn-ease-out)}
body.appai-vn-home #main .faq-item:hover{border-color:var(--appai-vn-border-hover)}
body.appai-vn-home #main .faq-item.open{border-color:var(--appai-vn-blue-100);box-shadow:0 0 0 3px rgba(0,92,224,.04),var(--appai-vn-shadow-sm)}
body.appai-vn-home #main .faq-q{display:flex;align-items:center;justify-content:space-between;width:100%;
  padding:20px 24px;background:none;border:none;cursor:pointer;font-family:var(--appai-vn-font);
  font-size:1.0625rem;font-weight:600;color:var(--appai-vn-text-primary);text-align:left;gap:var(--appai-vn-sp-3);
  line-height:normal;min-height:0;transition:color var(--appai-vn-duration)}
body.appai-vn-home #main .faq-q:hover{color:var(--appai-vn-blue-600)}
body.appai-vn-home #main .faq-icon{width:26px;height:26px;border-radius:50%;background:var(--appai-vn-bg-muted);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  font-size:.8rem;color:var(--appai-vn-text-tertiary);transition:all var(--appai-vn-duration) var(--appai-vn-ease)}
body.appai-vn-home #main .faq-item.open .faq-icon{background:var(--appai-vn-blue-600);color:#fff;transform:rotate(45deg);
  box-shadow:0 2px 6px rgba(0,92,224,.2)}
body.appai-vn-home #main .faq-a{max-height:0;overflow:hidden;transition:max-height var(--appai-vn-duration-slow) var(--appai-vn-ease)}
body.appai-vn-home #main .faq-item.open .faq-a{max-height:300px}
body.appai-vn-home #main .faq-a-inner{padding:0 24px 22px;font-size:1rem;color:var(--appai-vn-text-secondary);line-height:1.8}

/* ============================================================
   BLOG / NEWS
   ============================================================ */
body.appai-vn-home #main .blog-grid{display:grid;grid-template-columns:repeat(var(--appai-vn-blog-columns,3),1fr);gap:var(--appai-vn-sp-6)}
body.appai-vn-home #main .blog-card{display:flex;flex-direction:column;background:var(--appai-vn-bg);border:1px solid var(--appai-vn-border);
  border-radius:var(--appai-vn-r-lg);overflow:hidden;text-decoration:none!important;color:inherit!important;transition:all .4s var(--appai-vn-ease-out)}
body.appai-vn-home #main .blog-card:hover{transform:translateY(-6px);border-color:var(--appai-vn-blue-100);box-shadow:var(--appai-vn-shadow-lg)}
body.appai-vn-home #main .blog-card-link{display:flex;flex:1;flex-direction:column;color:inherit;text-decoration:none}
body.appai-vn-home #main .blog-img{position:relative;height:180px;overflow:hidden}
body.appai-vn-home #main .blog-img>img{width:100%;height:100%;object-fit:cover;transition:transform .45s var(--appai-vn-ease-out)}
body.appai-vn-home #main .blog-card:hover .blog-img>img{transform:scale(1.045)}
body.appai-vn-home #main .blog-img-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:var(--appai-vn-bg-muted);font-size:2.5rem;color:var(--appai-vn-blue-300);transition:all var(--appai-vn-duration-slow) var(--appai-vn-ease-out)}
body.appai-vn-home #main .blog-card:hover .blog-img-placeholder{background:var(--appai-vn-blue-50);color:var(--appai-vn-blue-500);transform:scale(1.05)}
body.appai-vn-home #main .blog-tag{position:absolute;top:12px;left:12px;padding:4px 12px;border-radius:var(--appai-vn-r-full);
  font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  background:var(--appai-vn-bg);color:var(--appai-vn-blue-600);border:1px solid var(--appai-vn-border);box-shadow:var(--appai-vn-shadow-xs)}
body.appai-vn-home #main .blog-body{height:212px;min-height:212px;padding:var(--appai-vn-sp-5) var(--appai-vn-sp-5) var(--appai-vn-sp-6);flex:1;display:flex;flex-direction:column}
body.appai-vn-home #main .blog-body h3{font-size:1.0625rem;font-weight:700;color:var(--appai-vn-text-primary)!important;
  margin:0 0 var(--appai-vn-sp-2) 0;line-height:1.4;letter-spacing:-.015em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.appai-vn-home #main .blog-body p{font-size:.9375rem;color:var(--appai-vn-text-tertiary);line-height:1.7;flex:1;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.appai-vn-home #main .blog-card-date{display:none}
body.appai-vn-home #main .blog-link{display:inline-flex;align-items:center;gap:6px;margin-top:var(--appai-vn-sp-3);
  font-size:.875rem;font-weight:600;color:var(--appai-vn-blue-600);transition:gap var(--appai-vn-duration) var(--appai-vn-ease)}
body.appai-vn-home #main .blog-card:hover .blog-link{gap:10px}
body.appai-vn-home #main .blog-link i{font-size:.85rem}
body.appai-vn-home #main .blog-cta{text-align:center;margin-top:var(--appai-vn-sp-10)}

/* ============================================================
   CTA
   ============================================================ */
body.appai-vn-home #main .cta-section{padding:var(--appai-vn-sp-24) 0;text-align:center;position:relative;overflow:hidden;
  background:linear-gradient(180deg,#eef4ff 0%,#DCEAFF 100%)}
body.appai-vn-home #main .cta-glow{position:absolute;width:520px;height:320px;top:50%;left:50%;
  transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(ellipse,rgba(0,92,224,.08),transparent 70%);
  filter:blur(70px);pointer-events:none;animation:appai-vn-floatSlow 14s ease-in-out infinite}
body.appai-vn-home #main .cta-content{max-width:620px;margin:0 auto;position:relative;z-index:1}
body.appai-vn-home #main .cta-content h2{font-size:2.25rem;margin:0 0 var(--appai-vn-sp-4) 0;font-weight:800}
body.appai-vn-home #main .cta-content > p{font-size:1.125rem;color:var(--appai-vn-text-secondary);margin:0 0 var(--appai-vn-sp-8) 0;line-height:1.75}
body.appai-vn-home #main .cta-buttons{margin-bottom:var(--appai-vn-sp-5)}
body.appai-vn-home #main .cta-buttons .btn-primary{animation:appai-vn-ctaPulse 3s ease-in-out infinite}
@keyframes appai-vn-ctaPulse{
  0%,100%{box-shadow:0 1px 3px rgba(0,0,0,.12),0 4px 14px var(--appai-vn-blue-glow)}
  50%{box-shadow:0 2px 8px rgba(0,0,0,.1),0 8px 32px rgba(0,92,224,.3)}}

/* Trust row */
body.appai-vn-home #main .trust-row{display:flex;flex-wrap:wrap;gap:var(--appai-vn-sp-5)}
body.appai-vn-home #main .trust-row.center{justify-content:center}
body.appai-vn-home #main .trust-row span{display:inline-flex;align-items:center;gap:6px;
  font-size:.875rem;font-weight:500;color:var(--appai-vn-text-secondary)}
body.appai-vn-home #main .trust-row i{color:var(--appai-vn-emerald-500);font-size:.9375rem}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
  body.appai-vn-home #main .hero-inner{grid-template-columns:minmax(0,1fr);gap:36px;text-align:center}
  body.appai-vn-home #main .hero-copy{max-width:560px;margin:0 auto}
  body.appai-vn-home #main .hero-sub{margin-left:auto;margin-right:auto}
  body.appai-vn-home #main .hero-cta{justify-content:center;flex-wrap:wrap}
  body.appai-vn-home #main .hero-assurance{justify-content:center;flex-wrap:wrap}
  body.appai-vn-home #main .trust-row{justify-content:center}
  body.appai-vn-home #main .steps-grid{grid-template-columns:repeat(2,1fr);gap:var(--appai-vn-sp-4)}
  body.appai-vn-home #main .steps-grid::before{display:none}
  body.appai-vn-home #main .ch-grid{grid-template-columns:1fr 1fr}
  body.appai-vn-home #main .stats-grid{grid-template-columns:repeat(2,1fr)}
  body.appai-vn-home #main .blog-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  body.appai-vn-home #main .section{padding:var(--appai-vn-sp-16) 0}
  body.appai-vn-home #main .hero{padding-top:calc(var(--appai-vn-sp-20) + 24px);padding-bottom:var(--appai-vn-sp-16)}
  body.appai-vn-home #main .hero-inner{gap:32px}
  body.appai-vn-home #main .hero-mockup{order:-1}
  body.appai-vn-home #main .ch-grid{grid-template-columns:1fr}
  body.appai-vn-home #main .stats-grid{grid-template-columns:1fr 1fr}
  body.appai-vn-home #main .blog-grid{grid-template-columns:1fr}
  body.appai-vn-home #main .hero-cta{justify-content:center}
  body.appai-vn-home #main .hero-assurance{gap:12px 18px}
  body.appai-vn-home #main .steps-grid{grid-template-columns:1fr 1fr}
  body.appai-vn-home #main .cta-content h2{font-size:1.75rem}
  body.appai-vn-home #main .test-card-m{width:300px}
}
/* The reference cards are content-sized at tablet widths. Keep the dynamic
   excerpts to the same visual footprint without replacing WordPress data. */
@media(min-width:769px) and (max-width:1024px){
  body.appai-vn-home #main .blog-body{height:192px;min-height:192px}
}
@media(min-width:481px) and (max-width:768px){
  body.appai-vn-home #main .blog-body{height:137px;min-height:137px}
  body.appai-vn-home #main .blog-body p{-webkit-line-clamp:1}
}
@media(max-width:549px){
  body.appai-vn-home #main .hero{padding-top:96px;padding-bottom:56px}
  body.appai-vn-home #main .hero-inner{gap:28px}
  body.appai-vn-home #main .hero-badge{padding:5px 14px;font-size:.75rem;margin-bottom:12px}
  body.appai-vn-home #main .hero h1{font-size:clamp(1.7rem,8vw,1.875rem);line-height:1.2;overflow-wrap:anywhere}
  body.appai-vn-home #main .hero-sub{font-size:.9375rem;line-height:1.7;margin-bottom:20px}
  body.appai-vn-home #main .hero-cta{max-width:360px;margin-left:auto;margin-right:auto;gap:12px}
  body.appai-vn-home #main .hero-cta .button{padding:12px 18px}
  body.appai-vn-home #main .hero-assurance{max-width:380px;margin-left:auto;margin-right:auto;gap:10px 14px}
  body.appai-vn-home #main .hero-assurance span{font-size:.8125rem;white-space:normal}
}
@media(max-width:480px){
  body.appai-vn-home #main .container{padding:0 var(--appai-vn-sp-4)}
  body.appai-vn-home #main .section-header h2{font-size:1.5rem}
  body.appai-vn-home #main .stats-grid{grid-template-columns:1fr}
  body.appai-vn-home #main .steps-grid{grid-template-columns:1fr}
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  body.appai-vn-home #main .rv{opacity:1;transform:none;transition:none}
  body.appai-vn-home #main .hero-mesh,body.appai-vn-home #main .hero-gradient,
  body.appai-vn-home #main .orb,body.appai-vn-home #main .hero-mockup,
  body.appai-vn-home #main .cta-glow{animation:none}
  body.appai-vn-home #main .test-marquee-track{animation:none}
}
