#!/usr/bin/env python3
from fpdf import FPDF

pdf = FPDF()
pdf.add_page()
pdf.set_auto_page_break(auto=True, margin=15)

# Title
pdf.set_font('helvetica', 'B', 20)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 15, 'WESMART ELECTRONICS', align='C')
pdf.ln(10)
pdf.set_font('helvetica', 'I', 11)
pdf.set_text_color(100, 100, 100)
pdf.cell(0, 8, 'Inventor of Bus-type Stair Light Technology', align='C')
pdf.ln(15)

# Overview
pdf.set_font('helvetica', 'B', 14)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'COMPANY OVERVIEW')
pdf.ln(8)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Wesmart Electronics is a National High-Tech Enterprise headquartered in Shenzhen, China, specializing in intelligent lighting R&D and manufacturing. As the ORIGINAL INVENTOR of Bus-type Stair Light technology, we have revolutionized staircase lighting with our patented 2-wire solution that simultaneously handles power, communication, and sensing.')
pdf.ln(5)

# Stats
pdf.set_font('helvetica', 'B', 20)
pdf.set_text_color(255, 107, 53)
pdf.cell(50, 10, '13+', align='C')
pdf.cell(50, 10, '40+', align='C')
pdf.cell(50, 10, '50+', align='C')
pdf.ln(6)
pdf.set_font('helvetica', '', 9)
pdf.set_text_color(100, 100, 100)
pdf.cell(50, 5, 'Years', align='C')
pdf.cell(50, 5, 'Patents', align='C')
pdf.cell(50, 5, 'Countries', align='C')
pdf.ln(12)

# Brands
pdf.set_font('helvetica', 'B', 14)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'BRAND PORTFOLIO')
pdf.ln(8)
pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(255, 107, 53)
pdf.cell(0, 7, 'Zhibu - China Market')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Premium smart lighting brand. Our flagship ZM1 stair light became a category bestseller on Douyin with over 20,000 units sold.')
pdf.ln(3)
pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(255, 107, 53)
pdf.cell(0, 7, 'Ameistor - Global Market')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Global brand targeting international markets through Amazon and distributors. Compatible with Alexa, Google Home, and Tuya Smart.')
pdf.ln(10)

# Technology
pdf.add_page()
pdf.set_font('helvetica', 'B', 14)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'CORE TECHNOLOGY')
pdf.ln(8)
pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'Bus-Type Stair Light Technology')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Our revolutionary 2-wire technology is the industry first solution that simultaneously transmits power, data communication, and sensor signals through just two wires. This breakthrough reduces installation time by 70%.')
pdf.ln(8)

pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'Key Advantages')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Patented Innovation: Simultaneous power, data, and sensing')
pdf.ln(2)
pdf.multi_cell(0, 6, 'National High-Tech Enterprise certification')
pdf.ln(2)
pdf.multi_cell(0, 6, '40+ patents and software copyrights')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Multi-platform: Mi Home, Alexa, Google Home, Tuya')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Complete vertical integration: R&D, SMT, Assembly')
pdf.ln(10)

# Products
pdf.set_font('helvetica', 'B', 14)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'PRODUCT PORTFOLIO')
pdf.ln(8)
pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(255, 107, 53)
pdf.cell(0, 7, 'FLAGSHIP: ZM1 Smart Stair Light')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'World first bus-type stair light. Winner of industry awards. Douyin category bestseller with 20,000+ units sold. Features intelligent motion sensing and smart home integration.')
pdf.ln(8)

pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'Product Lines')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Motion Sensor Ambient Lights (20,000+ units)')
pdf.ln(2)
pdf.multi_cell(0, 6, 'RGBW Ambient Light Pro (16M colors)')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Outdoor Lighting Solutions (IP65 rated)')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Professional Control Systems')
pdf.ln(10)

# Markets
pdf.add_page()
pdf.set_font('helvetica', 'B', 14)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'MARKET PRESENCE')
pdf.ln(8)
pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'China Domestic Market')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'E-commerce: Douyin, Tmall, JD, Pinduoduo')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Showroom at Star Alliance Lighting Center, Guzhen')
pdf.ln(2)
pdf.multi_cell(0, 6, 'B2B channel partnerships nationwide')
pdf.ln(8)

pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'International Markets')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Amazon Global: US, Canada, UK, Germany, France, Japan')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Exported to 50+ countries across 5 continents')
pdf.ln(2)
pdf.multi_cell(0, 6, 'CE, FCC certified')
pdf.ln(10)

# Partnership
pdf.set_font('helvetica', 'B', 14)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'PARTNERSHIP')
pdf.ln(8)
pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'OEM / ODM Services')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Full-service product development from concept to mass production. 3-6 months from prototype to production.')
pdf.ln(6)

pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'Technology Licensing')
pdf.ln(5)
pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'License our patented bus-type stair light technology. Includes design documentation, firmware, and support.')
pdf.ln(10)

# Contact
pdf.add_page()
pdf.set_font('helvetica', 'B', 14)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'CONTACT US')
pdf.ln(10)

pdf.set_font('helvetica', 'B', 11)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 7, 'WESMART ELECTRONICS CO., LTD.')
pdf.ln(7)

pdf.set_font('helvetica', '', 10)
pdf.set_text_color(60, 60, 60)
pdf.multi_cell(0, 6, 'Headquarters & R&D: Bao\'an District, Shenzhen, China')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Manufacturing: Xiaolan Town, Zhongshan City, Guangdong')
pdf.ln(2)
pdf.multi_cell(0, 6, 'Showroom: 10F C06, Star Alliance, Guzhen, Zhongshan')
pdf.ln(2)
pdf.set_text_color(255, 107, 53)
pdf.set_font('helvetica', 'B', 10)
pdf.multi_cell(0, 6, 'National High-Tech Enterprise')
pdf.ln(2)
pdf.set_text_color(60, 60, 60)
pdf.set_font('helvetica', '', 10)
pdf.multi_cell(0, 6, 'License: Guangdong ICP No. 2020119126-1')
pdf.ln(15)

pdf.set_font('helvetica', 'B', 16)
pdf.set_text_color(26, 58, 138)
pdf.cell(0, 10, 'SMART LIGHTING, EVERY STEP MATTERS.', align='C')
pdf.ln(7)
pdf.set_font('helvetica', 'I', 10)
pdf.set_text_color(128, 128, 128)
pdf.cell(0, 7, 'Inventor of Bus-type Stair Light | 40+ Patents | Global Smart Home Partner', align='C')

output = '/root/.openclaw/workspace/Wesmart_Company_Profile.pdf'
pdf.output(output)
print(f'PDF generated: {output}')
