:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --secondary: #10B981;
    --accent: #F59E0B;
    --text: #1F2937;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-dark: #0F172A;
    --border: #E5E7EB;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-xl: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 6px;
    --radius-lg: 10px;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', 'Noto Sans Thai', sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--bg);

    /* Keep text from rendering unexpectedly small on mobile Safari */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Language Bar */
.language-bar { background: var(--bg-dark); padding: 6px 0; }
.language-selector { display: flex; gap: 12px; justify-content: flex-end; }
.lang-btn {
    background: none; border: none; color: var(--text-lighter);
    cursor: pointer; padding: 3px 8px; font-size: 12px; font-weight: 500;
    transition: var(--transition); border-radius: 3px;
}
.lang-btn:hover, .lang-btn.active { color: white; background: rgba(255,255,255,0.1); }

/* Navbar */
.navbar {
    background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo img { height: 72px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 24px; }
.nav-menu a {
    text-decoration: none; color: var(--text); font-weight: 500;
    font-size: 15px; transition: var(--transition); position: relative; padding: 4px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary);
}
.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu-toggle span { width: 20px; height: 2px; background: var(--text); transition: var(--transition); }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
    padding: 48px 0 56px; position: relative; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-content { z-index: 1; }
.hero-badges { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary); color: white; padding: 5px 12px;
    border-radius: 20px; font-size: 11px; font-weight: 600;
}
.hero-badge-secondary { background: var(--secondary); }
.hero h1 { font-size: 34px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--bg-dark); }
.hero-subtitle { font-size: 15px; color: var(--text-light); margin-bottom: 24px; max-width: 500px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.stat {
    text-align: center; padding: 12px 16px; background: white;
    border-radius: var(--radius); box-shadow: var(--shadow); min-width: 100px;
}
.stat-number { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* Hero Visual */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual { position: relative; width: 260px; height: 260px; }
.molecule-visual svg { width: 100%; height: 100%; animation: rotate 30s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.shield-badge {
    position: absolute; bottom: 16px; right: 16px; width: 48px; height: 48px;
    background: white; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; box-shadow: var(--shadow-lg);
}
.shield-badge svg { width: 28px; height: 28px; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 40px; }
.hero-wave path { fill: var(--bg); }

/* Trust Bar */
.trust-bar { background: var(--bg-dark); padding: 14px 0; }
.trust-items { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--text-lighter); font-size: 12px; font-weight: 500; }
.trust-icon { font-size: 16px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border-radius: var(--radius); font-weight: 600;
    font-size: 13px; text-decoration: none; transition: var(--transition);
    cursor: pointer; border: none; gap: 6px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-large { padding: 14px 32px; font-size: 15px; }

/* Section Styles */
section { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; color: var(--bg-dark); }
.section-header p { font-size: 15px; color: var(--text-light); max-width: 550px; margin: 0 auto; }

/* Why Choose Section */
.why-choose { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    padding: 24px; background: var(--bg-alt); border-radius: var(--radius-lg);
    transition: var(--transition); border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon {
    width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--primary);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 13px; line-height: 1.5; }

/* Product Showcase */
.product-showcase { background: var(--bg-alt); }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
    background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.product-badge {
    position: absolute; top: 12px; left: 12px; background: var(--accent);
    color: var(--bg-dark); padding: 3px 10px; border-radius: 16px; font-size: 11px; font-weight: 600;
}
.product-image {
    position: relative; background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    min-height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-visual svg { width: 100%; max-width: 120px; height: auto; }
.product-info { padding: 24px; }
.product-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.product-info p { color: var(--text-light); margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
.product-specs { list-style: none; margin-bottom: 16px; }
.product-specs li {
    padding: 4px 0; color: var(--text-light); font-size: 12px;
    position: relative; padding-left: 18px;
}
.product-specs li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 600; }

/* Technology Section */
.technology { background: var(--bg-dark); color: white; }
.tech-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.tech-text h2 { font-size: 28px; margin-bottom: 16px; }
.tech-text > p { color: var(--text-lighter); margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.tech-comparison { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.comparison-item { background: rgba(255,255,255,0.05); padding: 18px; border-radius: var(--radius); }
.comparison-item h4 { font-size: 14px; margin-bottom: 12px; color: var(--secondary); }
.comparison-item.negative h4 { color: #EF4444; }
.comparison-item ul { list-style: none; }
.comparison-item li { padding: 4px 0; font-size: 12px; color: var(--text-lighter); position: relative; padding-left: 12px; }
.comparison-item li::before { content: '•'; position: absolute; left: 0; color: var(--text-lighter); }
.patent-badge { background: rgba(255,255,255,0.08); padding: 30px; border-radius: var(--radius-lg); text-align: center; }
.patent-badge span { display: block; font-size: 20px; font-weight: 600; margin-bottom: 16px; color: var(--accent); }
.patent-numbers p { font-size: 16px; color: var(--text-lighter); margin: 6px 0; }

/* Market Success Section */
.market-success { background: linear-gradient(135deg, #EFF6FF 0%, var(--primary-light) 100%); }
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.market-stat {
    background: white; padding: 24px 20px; border-radius: var(--radius-lg);
    text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.market-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.market-stat-icon { font-size: 32px; margin-bottom: 12px; }
.market-stat h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--bg-dark); }
.market-stat p { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* Distributor CTA */
.distributor-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; text-align: center; padding: 48px 0;
}
.cta-content h2 { font-size: 28px; margin-bottom: 12px; }
.cta-content > p { font-size: 16px; opacity: 0.9; max-width: 550px; margin: 0 auto 32px; }
.distributor-benefits { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.benefit { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.benefit-icon { font-size: 18px; }

/* Footer */
.footer { background: var(--bg-dark); color: var(--text-lighter); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand img { height: 30px; margin-bottom: 12px; filter: invert(1); }
.footer-tagline { font-style: italic; color: var(--text-light); margin-bottom: 6px; font-size: 13px; }
.footer-company { font-size: 12px; }
.footer h4 { color: white; font-size: 14px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-lighter); text-decoration: none; font-size: 13px; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-contact p { margin-bottom: 8px; font-size: 13px; }
.footer-contact a { color: var(--text-lighter); text-decoration: none; }
.footer-contact a:hover { color: white; }
.social-links { margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 24px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { order: -1; }
    .hero-visual { width: 220px; height: 220px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
    .tech-content { grid-template-columns: 1fr; }
    .tech-comparison { grid-template-columns: 1fr; }
    .market-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* Make typography more readable on phones */
    body { font-size: 16px; line-height: 1.6; }

    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px; gap: 12px; box-shadow: var(--shadow-lg); }
    .nav-menu.active { display: flex; }
    .mobile-menu-toggle { display: flex; }

    .lang-btn { font-size: 13px; padding: 6px 10px; }
    .nav-menu a { font-size: 16px; padding: 10px 0; }

    .hero h1 { font-size: 30px; }
    .hero-subtitle { font-size: 16px; }

    .hero-stats { gap: 12px; }
    .stat { min-width: 80px; padding: 8px 12px; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 12px; }

    .section-header h2 { font-size: 24px; }
    .section-header p { font-size: 16px; }

    .trust-items { gap: 16px; }
    .trust-item { font-size: 13px; }

    .feature-card p { font-size: 15px; line-height: 1.6; }

    .products-grid { grid-template-columns: 1fr; }
    .product-card.featured { grid-column: span 1; }
    .product-info p { font-size: 15px; line-height: 1.6; }
    .product-specs li { font-size: 14px; }

    .features-grid { grid-template-columns: 1fr; }
    .market-grid { grid-template-columns: 1fr; }
    .distributor-benefits { flex-direction: column; gap: 12px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-tagline { font-size: 14px; }
    .footer-links a { font-size: 14px; }
    .footer-contact p { font-size: 14px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
