@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');

:root{font-family:'Noto Sans TC',system-ui,-apple-system,sans-serif;color:#17244a;background:#f3f5fa;scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
a{color:inherit;text-decoration:none}
button{font:inherit}
h1,h2,h3,p{margin-top:0}
[hidden]{display:none!important}
.page-width{width:min(1480px,calc(100% - 110px));margin-inline:auto}
.skip-link{position:absolute;top:-80px;left:18px;z-index:100;padding:10px 15px;background:#fff;border-radius:8px}
.skip-link:focus{top:12px}
a:focus-visible,button:focus-visible{outline:3px solid #7369f5;outline-offset:3px}

/* Header */
.site-header{position:relative;z-index:20;background:#faf9ff;border-bottom:1px solid #e6e4f6}
.header-inner{height:100px;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative}
.product-brand{display:flex;align-items:center;flex:none}
.product-brand img{display:block;width:360px;height:auto}
.header-nav{margin-left:auto;display:flex;align-items:center;gap:51px;color:#101c58;font-size:20px;font-weight:900;white-space:nowrap}
.header-nav>a:not(.header-cta):hover,.nav-link-button:hover{color:#633bf1}
.nav-link-button{border:0;background:none;color:inherit;cursor:pointer;font:inherit;padding:8px 0}
.faq-menu{position:relative}
.faq-menu summary{list-style:none;cursor:pointer}
.faq-menu summary::-webkit-details-marker{display:none}
.faq-menu summary:hover{color:#633bf1}
.faq-panel{position:absolute;right:-60px;top:calc(100% + 26px);z-index:25;width:320px;padding:22px;border:1px solid #e2dafa;border-radius:20px;background:#fff;box-shadow:0 18px 40px #21166c25;white-space:normal}
.faq-panel h2{margin:0 0 12px;font-size:20px}
.faq-panel p{margin:0;padding:10px 0;border-top:1px solid #ece9f6;color:#485474;font-size:13px;line-height:1.65;font-weight:500}
.faq-panel strong{color:#142058}
.header-cta{display:inline-flex;align-items:center;gap:10px;padding:13px 23px;border:0;border-radius:99px;background:linear-gradient(110deg,#8847ff,#5832f1);box-shadow:0 6px 16px #6539ed45;color:#fff;font-size:18px;font-weight:800;cursor:pointer}
.header-cta span:first-child{font-size:18px}
.header-cta span:last-child{font-size:17px}
.guide-popover{position:absolute;right:0;top:calc(100% + 8px);width:min(410px,calc(100vw - 36px));padding:28px 30px 21px;border:1px solid #dfe4ef;border-radius:22px;background:#fff;box-shadow:0 25px 60px #1423532c}
.guide-popover:before{content:"";position:absolute;right:54px;top:-9px;width:17px;height:17px;transform:rotate(45deg);background:#fff;border-top:1px solid #dfe4ef;border-left:1px solid #dfe4ef}
.guide-eyebrow,.section-overline{font-size:11px;font-weight:900;letter-spacing:.08em;color:#7040ef}
.guide-eyebrow{margin-bottom:6px}
.guide-popover h2{font-size:25px;letter-spacing:-.04em;margin-bottom:17px}
.guide-popover ol{padding:0;margin:0;list-style:none}
.guide-popover li{display:flex;gap:15px;padding:14px 0;border-top:1px solid #e9ebf2}
.guide-popover li>span{font-size:15px;font-weight:900;color:#6b60e8}
.guide-popover strong{font-size:15px}
.guide-popover li p{font-size:12px;line-height:1.6;color:#69748a;margin:4px 0 0}

/* Home composition */
main{padding-bottom:45px}
.home-view{min-height:calc(100vh - 100px - 45px);background:radial-gradient(circle at 50% 10%,#e9e7ff 0,transparent 45%),#f8f7ff;padding:0 0 50px;overflow:hidden}
.home-grid{display:flex;flex-direction:column;gap:22px}
.feature-panel{position:relative;isolation:isolate;width:100vw;margin-left:calc((100vw - 100%)/-2);height:clamp(320px,37vh,380px);overflow:hidden;background:#4224b7 url('./assets/hero-hsinchu-ai-v2.png') center center/cover no-repeat;color:#fff}
.feature-panel:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#3522a244 0%,#3b2bb622 48%,transparent 70%)}
.feature-copy{position:relative;z-index:2;width:min(650px,51%);height:100%;padding:32px 0 18px clamp(60px,7.5vw,120px)}
.feature-copy h1{margin:0 0 7px}
.feature-copy h1 img{display:block;width:min(580px,100%);height:auto;filter:drop-shadow(0 6px 13px #19136445)}
.feature-lead{margin:0;color:#fff;font-size:clamp(22px,1.9vw,28px);font-weight:800;line-height:1.35;letter-spacing:.01em;text-shadow:0 3px 12px #24107c7a}
.hero-actions{display:flex;align-items:center;gap:18px;margin-top:21px}
.hero-primary,.hero-secondary{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:54px;border-radius:99px;font-size:18px;font-weight:900;white-space:nowrap}
.hero-primary{padding:6px 9px 6px 22px;background:#fff;color:#171e59;box-shadow:0 8px 22px #2f22a85e}
.hero-primary span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#6c3bfa;color:#fff;font-size:18px}
.hero-secondary{padding:6px 19px;border:1.5px solid #fff;background:#ffffff13;color:#fff;cursor:pointer;box-shadow:inset 0 0 0 1px #ffffff45}
.hero-secondary span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#6b3af6;font-size:10px}
.feature-mascots{position:absolute;z-index:1;right:25%;bottom:-6px;width:clamp(240px,22vw,350px);filter:drop-shadow(0 12px 10px #24206f70);pointer-events:none}
.hero-tools{position:absolute;inset:0;z-index:1;pointer-events:none}
.glass-tool{position:absolute;display:grid;place-items:center;width:96px;height:96px;border:1.5px solid #ffffffa8;border-radius:22px;background:linear-gradient(145deg,#ffffffb8,#e9e7ff50 55%,#78d8ff57);box-shadow:inset 1px 1px 9px #ffffffd4,0 10px 22px #231a9570;backdrop-filter:blur(8px);color:#fff;transform:rotate(9deg)}
.glass-tool svg{width:52px;height:52px;fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 4px #6c4bd0)}
.tool-people{left:44%;top:39%;transform:rotate(9deg)}
.tool-file{left:50%;top:11%;transform:rotate(10deg)}
.tool-chart{left:70%;top:11%;transform:rotate(-6deg)}
.tool-search{left:73%;top:40%;transform:rotate(5deg)}

/* Service dashboard */
.service-panel{min-width:0;scroll-margin-top:10px}
.services-heading{display:flex;align-items:end;gap:24px;margin-bottom:20px;padding:0 6px}
.services-heading>div:first-child{flex:none}
.section-overline{margin-bottom:3px}
.services-heading h2{margin:0;color:#121a59;font-size:clamp(27px,2.5vw,39px);line-height:1.2;letter-spacing:-.04em}
.services-heading>p{margin:0 0 6px auto;padding-left:18px;border-left:2px solid #8c55fa;color:#1e2963;font-size:16px;white-space:nowrap}
.service-count{flex:none;align-self:end;margin:0 0 2px;padding:9px 17px;border:1px solid #e8dfff;border-radius:99px;background:#fff;box-shadow:0 4px 13px #6846d62c;color:#17215d;font-size:17px;font-weight:900;white-space:nowrap}
.service-count strong{color:#7b3df4;font-size:20px}
.service-count span{padding:0 7px;color:#6e62a6}
.service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.service-card{--accent:#49b92f;--tint:#f1fbe5;--edge:#d3eab3;position:relative;display:flex;flex-direction:column;min-width:0;min-height:clamp(310px,32vh,430px);overflow:hidden;padding:15px;border:1px solid var(--edge);border-radius:21px;background:linear-gradient(145deg,#fff 0%,var(--tint) 100%);box-shadow:0 5px 12px #28308617;transition:transform .2s,box-shadow .2s}
.service-card:after{content:"";position:absolute;z-index:0;left:-20%;right:-20%;bottom:-24%;height:48%;border-radius:50% 50% 0 0;background:#ffffffa3;transform:rotate(-10deg);pointer-events:none}
.service-card:hover{transform:translateY(-3px);box-shadow:0 13px 26px #27328929}
.tone-cyan{--accent:#20acf2;--tint:#e4f5ff;--edge:#b8dfff}
.tone-yellow{--accent:#f4ab00;--tint:#fff2da;--edge:#f8dda4}
.tone-violet{--accent:#8143ec;--tint:#f1e9ff;--edge:#ddc3ff}
.service-card-head,.card-description,.card-links{position:relative;z-index:1}
.service-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:5px}
.card-index{display:inline-flex;align-items:center;margin:0 0 8px;padding:5px 10px;border:1px solid #ffffffda;border-radius:99px;background:#fff;box-shadow:0 3px 8px color-mix(in srgb,var(--accent) 30%,transparent);color:#17215c;font-size:15px;font-weight:900;letter-spacing:0}
.service-card h3{margin:0;color:#101a59;font-size:clamp(31px,2.6vw,41px);line-height:1.1;letter-spacing:-.04em}
.card-icon{display:grid;place-items:center;flex:none;width:95px;height:95px;margin-top:9px;border-radius:17px;background:linear-gradient(145deg,#fff,var(--tint));color:var(--accent);box-shadow:6px 8px 13px color-mix(in srgb,var(--accent) 28%,transparent),inset 2px 2px 5px #ffffffce;transform:rotate(8deg)}
.card-icon svg{width:64px;height:64px;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;fill:none;filter:drop-shadow(1px 2px 1px #ffffffb5)}
.card-description{min-height:48px;margin:6px 0 0;color:#1e2a5d;font-size:clamp(15px,1.08vw,17px);font-weight:600;line-height:1.45}
.card-links{display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px;margin-top:8px;padding-top:10px;border-top:1.5px solid color-mix(in srgb,var(--accent) 28%,white)}
.card-links a{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:6px 10px;border:1px solid #ffffffed;border-radius:99px;background:#fff;color:#141d58;font-size:16px;font-weight:900;line-height:1.2;white-space:nowrap;box-shadow:0 3px 7px color-mix(in srgb,var(--accent) 22%,transparent);transition:transform .2s,box-shadow .2s}
.card-links a span{color:#242660;font-size:17px;line-height:1}
.card-links a:hover{transform:translateY(-2px);box-shadow:0 6px 13px color-mix(in srgb,var(--accent) 35%,transparent)}

/* Agent detail */
.agent-view{padding-top:34px;padding-bottom:90px;min-height:calc(100vh - 146px)}
.breadcrumb{display:flex;align-items:center;gap:10px;color:#74809a;font-size:12px;font-weight:700}
.breadcrumb a:hover{color:#655be5}
.agent-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin:27px 0 24px}
.agent-heading h1{font-size:clamp(31px,3.3vw,46px);letter-spacing:-.055em;margin:0 0 7px}
.agent-heading p:last-child{font-size:14px;color:#67748d;margin:0}
.back-link{display:inline-flex;align-items:center;border:1px solid #dde2ed;background:#fff;border-radius:99px;padding:10px 15px;font-size:12px;font-weight:800;white-space:nowrap}
.back-link:hover{border-color:#6a60ed;color:#5f56e3}
.agent-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px}
.agent-sidebar{align-self:start;border:1px solid #e0e4ed;background:#fff;border-radius:18px;padding:18px 11px;box-shadow:0 8px 22px #2233640c}
.agent-sidebar h2{font-size:14px;margin:0 9px 12px}
.agent-sidebar>div{display:grid;gap:2px}
.agent-sidebar a{padding:8px 10px;border-radius:9px;color:#5e6980;font-size:12px;font-weight:700}
.agent-sidebar a:hover,.agent-sidebar a[aria-current="page"]{background:#eeedff;color:#5a50d2}
.agent-shell{border:1px solid #e0e4ed;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 12px 30px #22336413}
.agent-shell-header{height:54px;padding:0 18px;border-bottom:1px solid #e8ebf2;display:flex;justify-content:space-between;align-items:center;color:#69748b;font-size:12px;font-weight:800}
.agent-shell-header span:first-child{display:flex;align-items:center;gap:8px}
.agent-shell-header i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#8edb70}
.embed-container{min-height:610px}
.embed-container iframe{display:block;width:100%;height:690px;border:0}
.embed-empty{min-height:610px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center;background:radial-gradient(circle at center,#f1f0ff,#fff 65%)}
.empty-mark{color:#6c60ed;font-size:67px;line-height:1}
.embed-empty .section-overline{margin:12px 0 6px}
.embed-empty h2{font-size:27px;margin-bottom:9px}
.embed-empty p:last-child{font-size:14px;line-height:1.8;color:#6a748e;margin:0}

/* Fixed footer */
.site-footer{position:fixed;inset:auto 0 0;z-index:30;background:linear-gradient(90deg,#a47aff,#6942e9);color:#fff;box-shadow:0 -7px 18px #7b56e926}
.site-footer:before{content:"";position:absolute;left:0;right:0;bottom:100%;height:28px;background:url('./assets/footer-wave.svg') center bottom/100% 100% no-repeat;pointer-events:none}
.footer-inner{height:54px;display:flex;align-items:center;gap:32px;font-size:11px;font-weight:600}
.footer-inner span:nth-child(2){color:#f2ebff}
.footer-inner a{margin-left:auto}
.footer-inner a:hover{color:#fff;text-decoration:underline}

@media(max-height:820px) and (min-width:921px){
  .header-inner{height:72px}
  .product-brand img{width:265px}
  .header-nav{gap:32px;font-size:15px}
  .header-cta{padding:11px 18px;font-size:14px}
  .feature-panel{height:253px}
  .feature-copy{padding-top:17px}
  .feature-copy h1 img{width:min(420px,100%)}
  .feature-lead{font-size:20px;line-height:1.3}
  .hero-actions{margin-top:12px}
  .hero-primary,.hero-secondary{min-height:38px;font-size:13px}
  .hero-primary span{width:27px;height:27px}
  .feature-mascots{width:235px;right:25%;bottom:-12px}
  .glass-tool{width:66px;height:66px;border-radius:16px}
  .glass-tool svg{width:38px;height:38px}
  .home-grid{gap:18px}
  .services-heading{margin-bottom:16px}
  .service-card{min-height:230px;padding:12px 13px}
  .card-index{margin-bottom:8px;padding:5px 9px;font-size:11px}
  .service-card h3{font-size:29px}
  .card-icon{width:61px;height:61px}
  .card-icon svg{width:40px;height:40px}
  .card-description{min-height:38px;margin:5px 0 0;font-size:14px}
  .card-links{gap:5px;margin-top:6px;padding-top:8px}
  .card-links a{min-height:38px;padding:5px 9px;font-size:16px}
  .footer-inner{height:42px}
  .site-footer:before{height:22px}
  main{padding-bottom:42px}
}

@media(max-width:1180px){
  .product-brand img{width:235px}
  .header-nav{gap:20px}
  .feature-copy{padding-left:32px}
  .services-heading{flex-wrap:wrap}
  .services-heading>p{display:none}
  .service-count{margin-left:auto}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .service-card{min-height:230px}
}
@media(max-width:920px){
  .page-width{width:calc(100% - 40px)}
  .product-brand img{width:190px}
  .header-nav{gap:14px;font-size:13px}
  .header-cta{padding:9px 15px;font-size:12px}
  .feature-copy{width:58%;padding-left:28px}
  .feature-mascots{right:16%;width:170px}
  .faq-menu{display:none}
  .agent-layout{grid-template-columns:180px minmax(0,1fr)}
}
@media(max-width:620px){
  .page-width{width:calc(100% - 30px)}
  .header-inner{height:64px}
  .product-brand img{width:145px}
  .header-nav>a,.nav-link-button{display:none}
  .header-cta{gap:4px;padding:8px 11px;font-size:10px}
  .header-cta span:first-child{font-size:13px}
  .header-cta span:last-child{display:none}
  .guide-popover{right:0;top:calc(100% + 6px);padding:22px}
  .home-view{padding-bottom:100px}
  .feature-panel{height:415px;background-position:60% center}
  .feature-panel:before{background:linear-gradient(180deg,#3923bfa0,#4833ac52 58%,transparent 100%)}
  .feature-copy{width:100%;padding:23px 19px 0}
  .feature-copy h1 img{width:min(340px,88%)}
  .feature-lead{font-size:20px}
  .hero-actions{gap:9px;margin-top:18px}
  .hero-primary,.hero-secondary{min-height:39px;font-size:11px;gap:7px}
  .hero-primary{padding:5px 6px 5px 12px}
  .hero-primary span{width:25px;height:25px;font-size:14px}
  .hero-secondary{padding:5px 11px}
  .feature-mascots{right:5%;bottom:11px;width:135px}
  .hero-tools{display:none}
  .services-heading{display:block;margin-top:1px;margin-bottom:13px;padding:0}
  .services-heading h2{font-size:25px}
  .service-count{display:inline-flex;align-items:center;margin-top:12px;padding:7px 13px;font-size:12px}
  .service-count strong{font-size:17px}
  .service-grid{grid-template-columns:1fr;gap:12px}
  .service-card{min-height:225px}
  .card-description{font-size:14px}
  .agent-view{padding-top:22px}
  .agent-heading{display:block;margin:18px 0}
  .agent-heading h1{font-size:32px}
  .back-link{margin-top:17px}
  .agent-layout{grid-template-columns:1fr}
  .agent-sidebar{order:2}
  .embed-container,.embed-empty{min-height:550px}
  .embed-container iframe{height:620px}
  .footer-inner{height:45px;font-size:10px}
  .footer-inner span:nth-child(2){display:none}
  main{padding-bottom:45px}
}
@media(max-width:390px){
  .product-brand img{width:132px}
  .feature-copy h1 img{width:310px}
  .hero-secondary{font-size:10px}
}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}.service-card,.card-links a{transition:none}}
