/*
Theme Name: GIGASUN
Theme URI: https://gigasun.ai
Author: GIGASUN
Description: Enterprise AI Solutions - theme tuy chinh
Version: 1.0
*/

:root{
  --navy-900:#0A1628;
  --navy-800:#12213B;
  --navy-700:#1B2E4F;
  --blue-600:#2E5EFF;
  --blue-500:#3D6BFF;
  --blue-100:#E8EEFF;
  --orange-500:#F5941F;
  --orange-600:#E8790E;
  --orange-100:#FFF1DE;
  --green-500:#22B573;
  --green-100:#E3F8EF;
  --purple-500:#7C5CFC;
  --purple-100:#EFEAFF;
  --red-500:#F45B69;
  --red-100:#FFE7EA;
  --ink-900:#16213B;
  --slate-600:#4B5670;
  --slate-500:#64708A;
  --slate-400:#8A93A8;
  --cream-50:#F6F7FA;
  --line:#E7EAF1;
  --white:#FFFFFF;
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:8px;
  --shadow-card:0 2px 8px rgba(16,24,48,.06),0 1px 2px rgba(16,24,48,.04);
  --shadow-card-hover:0 12px 28px rgba(16,24,48,.12),0 2px 6px rgba(16,24,48,.06);
  --container:1240px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:var(--ink-900);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none;margin:0;padding:0}
button{font-family:inherit;cursor:pointer}
.container{max-width:var(--container);margin:0 auto;padding:0 24px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

.eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  color:var(--blue-600);
  letter-spacing:.02em;
  margin-bottom:10px;
}
.section-head{max-width:640px;margin-bottom:44px}
.section-head h2{
  font-size:clamp(26px,3.4vw,34px);
  font-weight:800;
  color:var(--navy-900);
  margin:0 0 12px;
  line-height:1.25;
}
.section-head p{font-size:16px;color:var(--slate-500);margin:0}
.section-top-row{
  display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;
}
.section-top-row .section-head{margin-bottom:0}
.link-arrow{
  font-size:15px;font-weight:600;color:var(--blue-600);white-space:nowrap;
  display:inline-flex;align-items:center;gap:6px;
}
.link-arrow svg{width:16px;height:16px;transition:transform .18s}
.link-arrow:hover svg{transform:translateX(3px)}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 24px;border-radius:10px;font-size:15px;font-weight:600;
  border:1.5px solid transparent;transition:transform .15s,box-shadow .15s,background .15s;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--blue-600);color:var(--white)}
.btn-primary:hover{background:#2650E0;box-shadow:0 8px 20px rgba(46,94,255,.28)}
.btn-orange{background:var(--orange-500);color:var(--white)}
.btn-orange:hover{background:var(--orange-600);box-shadow:0 8px 20px rgba(245,148,31,.3)}
.btn-outline{background:transparent;border-color:rgba(255,255,255,.35);color:var(--white)}
.btn-outline:hover{background:rgba(255,255,255,.1)}

/* ============ HEADER ============ */
.site-header{
  position:sticky;top:0;z-index:100;background:var(--white);
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
  height:76px;gap:24px;
}
.site-logo{display:flex;flex-direction:column;line-height:1.1}
.site-logo img{height:42px;width:auto}
.primary-nav{display:flex;align-items:center;gap:6px}
.primary-nav > ul{display:flex;align-items:center;gap:2px}
.primary-nav a.nav-link{
  display:flex;align-items:center;gap:5px;padding:10px 14px;border-radius:8px;
  font-size:15px;font-weight:600;color:var(--ink-900);
}
.primary-nav a.nav-link:hover{background:var(--cream-50);color:var(--blue-600)}
.primary-nav .caret{width:9px;height:9px;opacity:.55}
.has-dropdown{position:relative}
.dropdown-panel{
  position:absolute;top:calc(100% + 10px);left:0;min-width:240px;
  background:var(--white);border-radius:var(--radius-md);box-shadow:var(--shadow-card-hover);
  border:1px solid var(--line);padding:8px;opacity:0;visibility:hidden;
  transform:translateY(6px);transition:opacity .16s,transform .16s,visibility .16s;
}
.has-dropdown:hover .dropdown-panel,.has-dropdown:focus-within .dropdown-panel{
  opacity:1;visibility:visible;transform:translateY(0);
}
.dropdown-panel a{
  display:block;padding:10px 12px;border-radius:7px;font-size:14.5px;font-weight:500;color:var(--ink-900);
}
.dropdown-panel a:hover{background:var(--cream-50);color:var(--blue-600)}
.header-cta{display:flex;align-items:center;gap:10px}
.mobile-toggle{display:none;background:none;border:0;padding:8px}
.mobile-toggle span{display:block;width:22px;height:2px;background:var(--navy-900);margin:5px 0;border-radius:2px}

/* ============ HERO ============ */
.hero{
  position:relative;background:linear-gradient(160deg,var(--navy-900) 0%,var(--navy-800) 55%,var(--navy-700) 100%);
  overflow:hidden;padding:64px 0 0;
}
.hero::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:26px 26px;mask-image:linear-gradient(180deg,black,transparent 75%);
  pointer-events:none;
}
.hero-grid{
  position:relative;display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;
}
.hero-copy .eyebrow{color:var(--orange-500)}
.hero-copy h1{
  font-size:clamp(32px,4.2vw,46px);font-weight:800;color:var(--white);
  line-height:1.2;margin:0 0 18px;letter-spacing:-.01em;
}
.hero-copy h1 .accent{color:#5B9CFF}
.hero-copy p{font-size:16.5px;color:#B6BFD6;max-width:480px;margin:0 0 30px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:44px}
.hero-stats{display:flex;gap:36px;flex-wrap:wrap}
.hero-stat{display:flex;align-items:center;gap:10px}
.hero-stat .stat-ico{
  width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.hero-stat .stat-ico svg{width:19px;height:19px;color:var(--orange-500)}
.hero-stat strong{display:block;font-size:19px;font-weight:800;color:var(--white)}
.hero-stat span{display:block;font-size:12.5px;color:#8891AC}

.hero-visual{position:relative;height:520px}
.robot-illustration{position:absolute;left:6%;bottom:0;width:78%;height:96%}
.dash-card{
  position:absolute;top:0;right:-4%;width:340px;background:var(--white);
  border-radius:var(--radius-lg);box-shadow:0 24px 60px rgba(0,0,0,.35);padding:20px;
}
.dash-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.dash-card-head .brand{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--navy-900)}
.dash-card-head .brand .dot{width:8px;height:8px;border-radius:50%;background:var(--orange-500)}
.dash-card-head .avatars{display:flex;gap:6px}
.dash-card-head .avatars span{width:22px;height:22px;border-radius:50%;background:var(--cream-50);border:1px solid var(--line)}
.dash-title{font-size:13px;font-weight:700;color:var(--navy-900);margin:0 0 12px}
.dash-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.dash-metric{background:var(--cream-50);border-radius:10px;padding:10px 12px}
.dash-metric .m-label{font-size:11px;color:var(--slate-500);margin-bottom:4px}
.dash-metric .m-value{font-size:16px;font-weight:800;color:var(--navy-900)}
.dash-metric .m-delta{font-size:11px;font-weight:700;color:var(--green-500)}
.dash-chart{height:64px;border-radius:10px;background:var(--cream-50);position:relative;overflow:hidden;margin-bottom:14px}
.dash-chart svg{position:absolute;inset:0;width:100%;height:100%}
.dash-ring-row{display:flex;align-items:center;gap:12px}
.dash-ring{width:52px;height:52px;border-radius:50%;
  background:conic-gradient(var(--blue-600) 0 78%,var(--line) 78% 100%);
  display:flex;align-items:center;justify-content:center;flex:none;}
.dash-ring span{width:36px;height:36px;border-radius:50%;background:var(--white);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--navy-900)}
.dash-ring-legend{font-size:11px;color:var(--slate-500);line-height:1.6}
.dash-ring-legend b{color:var(--navy-900);font-weight:700}

.assist-card{
  position:absolute;bottom:-4%;right:4%;width:230px;background:var(--white);
  border-radius:var(--radius-md);box-shadow:0 16px 40px rgba(0,0,0,.3);
  padding:14px;display:flex;gap:10px;align-items:flex-start;
}
.assist-avatar{width:38px;height:38px;border-radius:10px;background:var(--navy-900);flex:none;
  display:flex;align-items:center;justify-content:center}
.assist-avatar svg{width:20px;height:20px;color:var(--orange-500)}
.assist-card strong{display:block;font-size:12.5px;color:var(--navy-900);margin-bottom:3px}
.assist-card span{font-size:11.5px;color:var(--slate-500);line-height:1.4}

.hero-bottom-line{height:1px;background:linear-gradient(90deg,transparent,rgba(245,148,31,.4),transparent);margin-top:56px}

/* ============ SOLUTIONS GRID ============ */
.section{padding:84px 0}
.section-alt{background:var(--cream-50)}
.solutions-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
}
.solution-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);
  overflow:hidden;box-shadow:var(--shadow-card);transition:box-shadow .18s,transform .18s;
  display:flex;flex-direction:column;
}
.solution-card:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-3px)}
.card-media{
  height:112px;display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;flex:none;
}
.card-media svg{width:100%;height:100%}
.solution-card .card-body{padding:20px 20px 22px}
.card-icon{
  width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;
  margin-bottom:12px;
}
.card-icon svg{width:18px;height:18px}
.solution-card h3{font-size:15.5px;font-weight:700;color:var(--navy-900);margin:0 0 7px}
.solution-card p{font-size:13.3px;color:var(--slate-500);margin:0;line-height:1.58}

.media-blue{background:linear-gradient(135deg,#EAF0FF,#D9E4FF)}
.media-orange{background:linear-gradient(135deg,#FFF3E3,#FFE6C7)}
.media-green{background:linear-gradient(135deg,#E4FAF1,#CFF3E3)}
.media-purple{background:linear-gradient(135deg,#F1ECFF,#E4DAFF)}
.media-red{background:linear-gradient(135deg,#FFE9EB,#FFD9DD)}

.icon-blue{background:var(--blue-100)} .icon-blue svg{color:var(--blue-600)}
.icon-orange{background:var(--orange-100)} .icon-orange svg{color:var(--orange-600)}
.icon-green{background:var(--green-100)} .icon-green svg{color:var(--green-500)}
.icon-purple{background:var(--purple-100)} .icon-purple svg{color:var(--purple-500)}
.icon-red{background:var(--red-100)} .icon-red svg{color:var(--red-500)}

/* ============ ROBOTICS ============ */
.robotics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.robotics-card{
  position:relative;border-radius:var(--radius-lg);overflow:hidden;height:330px;
  background:linear-gradient(165deg,var(--navy-800),var(--navy-900));
}
.robotics-card .robot-svg{position:absolute;inset:0;width:100%;height:100%}
.robotics-card .overlay{
  position:absolute;left:0;right:0;bottom:0;padding:22px;
  background:linear-gradient(180deg,transparent,rgba(6,10,20,.88) 60%);
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
}
.robotics-card h3{font-size:18px;font-weight:800;color:var(--white);margin:0 0 6px}
.robotics-card p{font-size:13px;color:#B6BFD6;margin:0;max-width:230px;line-height:1.5}
.robotics-arrow{
  flex:none;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.14);
  display:flex;align-items:center;justify-content:center;transition:background .18s;
}
.robotics-card:hover .robotics-arrow{background:var(--orange-500)}
.robotics-arrow svg{width:16px;height:16px;color:var(--white)}

/* ============ WHY CHOOSE ============ */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.why-item{display:flex;flex-direction:column;gap:12px}
.why-item .card-icon{margin-bottom:4px}
.why-item h3{font-size:15.5px;font-weight:700;color:var(--navy-900);margin:0 0 4px}
.why-item p{font-size:13.5px;color:var(--slate-500);margin:0;line-height:1.55}

/* ============ PRODUCT CAROUSEL ============ */
.carousel-wrap{position:relative}
.carousel-track{
  display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:6px;scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{display:none}
.product-shot{
  flex:0 0 auto;width:290px;scroll-snap-align:start;background:var(--white);
  border-radius:var(--radius-lg);border:1px solid var(--line);box-shadow:var(--shadow-card);
  overflow:hidden;
}
.product-shot .shot-label{padding:14px 16px 0}
.product-shot .shot-label b{display:block;font-size:14px;font-weight:700;color:var(--navy-900)}
.product-shot .shot-label span{font-size:12px;color:var(--slate-500)}
.product-shot .shot-body{padding:14px 16px 18px}
.carousel-nav{display:flex;gap:10px}
.carousel-btn{
  width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--white);
  display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s;
}
.carousel-btn:hover{background:var(--cream-50);border-color:var(--slate-400)}
.carousel-btn svg{width:16px;height:16px;color:var(--navy-900)}

/* ============ CTA BANNER ============ */
.cta-banner{
  position:relative;background:linear-gradient(120deg,var(--navy-900) 20%,var(--navy-700) 100%);
  overflow:hidden;padding:64px 0;
}
.cta-banner::after{
  content:'';position:absolute;right:0;top:0;bottom:0;width:46%;
  background-image:linear-gradient(90deg,var(--navy-900),transparent 40%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 2px,transparent 2px 22px);
  opacity:.5;
}
.cta-banner .container{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta-banner .eyebrow{color:#7FA6FF}
.cta-banner h2{font-size:clamp(22px,2.6vw,28px);font-weight:800;color:var(--white);margin:0;max-width:560px;line-height:1.35}

/* ============ FOOTER ============ */
.site-footer{background:var(--navy-900);color:#AEB6CC;padding:64px 0 0}
.footer-top{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:32px;padding-bottom:48px;border-bottom:1px solid rgba(255,255,255,.08)}
.footer-brand img{height:36px;margin-bottom:10px}
.footer-brand .tagline{font-size:12px;color:var(--orange-500);font-weight:700;margin:2px 0 14px}
.footer-brand p{font-size:13px;line-height:1.7;color:#8892AC;max-width:280px}
.footer-col h4{font-size:13.5px;font-weight:700;color:var(--white);margin:0 0 16px}
.footer-col ul li{margin-bottom:11px}
.footer-col a{font-size:13.5px;color:#9AA3BC}
.footer-col a:hover{color:var(--white)}
.footer-contact li{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:#9AA3BC}
.footer-contact svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--orange-500)}
.footer-social{display:flex;gap:10px;margin-top:18px}
.footer-social a{
  width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
}
.footer-social a:hover{background:var(--orange-500)}
.footer-social svg{width:16px;height:16px;color:var(--white)}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  padding:20px 0;font-size:12.5px;color:#7B84A0;
}
.footer-bottom-links{display:flex;gap:18px;flex-wrap:wrap}
.footer-bottom-links a{color:#7B84A0}
.footer-bottom-links a:hover{color:var(--white)}
.back-to-top{
  width:40px;height:40px;border-radius:50%;background:var(--orange-500);
  display:flex;align-items:center;justify-content:center;border:0;
}
.back-to-top svg{width:16px;height:16px;color:var(--white)}

/* ============ RESPONSIVE ============ */
@media (max-width:1080px){
  .solutions-grid{grid-template-columns:repeat(2,1fr)}
  .robotics-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .footer-top{grid-template-columns:1fr 1fr}
  .hero-grid{grid-template-columns:1fr}
  .hero-visual{height:420px;margin-top:24px}
}
@media (max-width:760px){
  .primary-nav{display:none}
  .header-cta .btn-primary{display:none}
  .mobile-toggle{display:block}
  .primary-nav.is-open{
    display:block;position:absolute;top:76px;left:0;right:0;background:var(--white);
    border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(16,24,48,.08);
    padding:8px;max-height:calc(100vh - 76px);overflow-y:auto;
  }
  .primary-nav.is-open > ul{flex-direction:column;align-items:stretch;gap:0}
  .primary-nav.is-open .nav-link{padding:14px 12px;width:100%}
  .primary-nav.is-open .has-dropdown .dropdown-panel{
    position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
    border:0;padding:0 0 8px 20px;display:none;
  }
  .primary-nav.is-open .has-dropdown.is-expanded .dropdown-panel{display:block}
  .solutions-grid{grid-template-columns:1fr 1fr}
  .why-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .hero-stats{gap:22px}
  .cta-banner .container{flex-direction:column;align-items:flex-start}

  /* Hero visual: bo lop absolute chong cheo, xep doc gon gang */
  .hero-visual{height:auto;position:relative;padding-bottom:24px}
  .robot-illustration{display:none}
  .dash-card{
    position:relative;top:0;right:0;width:100%;max-width:360px;margin:0 auto 16px;
  }
  .assist-card{
    position:relative;bottom:0;right:0;width:100%;max-width:360px;margin:0 auto;
  }
}
@media (max-width:480px){
  .solutions-grid{grid-template-columns:1fr}
  .dash-metrics{grid-template-columns:1fr 1fr}
}

/* ============ LANGUAGE SWITCHER (GTranslate - flags nho gon) ============ */
.gigasun-lang-switcher{display:flex;align-items:center}
.gigasun-lang-switcher .gtranslate_wrapper{
  display:flex !important;align-items:center;gap:8px;
  padding:6px 10px;border-radius:20px;background:var(--cream-50);
  border:1px solid var(--line);
}
.gigasun-lang-switcher .switcher-nested-1{display:flex !important;align-items:center;gap:8px}
.gigasun-lang-switcher img,
.gigasun-lang-switcher a img{
  width:20px !important;height:20px !important;border-radius:50%;
  object-fit:cover;cursor:pointer;opacity:.55;
  transition:opacity .15s,transform .15s;
  display:inline-block !important;
}
.gigasun-lang-switcher img:hover,
.gigasun-lang-switcher a img:hover{opacity:1;transform:scale(1.1)}
.gigasun-lang-switcher a.gt-current-lang img,
.gigasun-lang-switcher .current img{opacity:1}
@media (max-width:760px){
  .gigasun-lang-switcher{order:-1;margin-right:8px}
}

/* ============ GIAI PHAP - SINGLE PAGE ============ */
.gp-hero{padding:40px 0 56px;text-align:left}
.gp-back{
  display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;
  color:var(--slate-600);margin-bottom:28px;
}
.gp-back:hover{color:var(--navy-900)}
.gp-hero-icon{
  width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
}
.gp-hero-icon svg{width:28px;height:28px}
.gp-hero h1{font-size:clamp(28px,3.6vw,38px);font-weight:800;color:var(--navy-900);margin:6px 0 14px;line-height:1.25}
.gp-lead{font-size:17px;color:var(--slate-500);max-width:680px;line-height:1.6;margin:0}
.gp-hero.gp-media-blue{background:linear-gradient(180deg,#EAF0FF,#fff)}
.gp-hero.gp-media-orange{background:linear-gradient(180deg,#FFF3E3,#fff)}
.gp-hero.gp-media-green{background:linear-gradient(180deg,#E4FAF1,#fff)}
.gp-hero.gp-media-purple{background:linear-gradient(180deg,#F1ECFF,#fff)}
.gp-hero.gp-media-red{background:linear-gradient(180deg,#FFE9EB,#fff)}

.gp-content-wrap{max-width:760px}
.gp-content{font-size:16px;color:var(--ink-900);line-height:1.75}
.gp-content p{margin:0 0 20px}
.gp-content h2,.gp-content h3{font-size:20px;font-weight:800;color:var(--navy-900);margin:32px 0 14px}
.gp-content ul{margin:0 0 24px;padding:0;list-style:none}
.gp-content ul li{
  position:relative;padding-left:30px;margin-bottom:12px;color:var(--slate-600);
}
.gp-content ul li::before{
  content:'';position:absolute;left:0;top:7px;width:16px;height:16px;border-radius:50%;
  background:var(--blue-100);
}
.gp-content ul li::after{
  content:'';position:absolute;left:5px;top:11px;width:6px;height:6px;border-radius:50%;
  background:var(--blue-600);
}
