:root {
  --primary: #0c8de9;
  --primary-dark: #0159a1;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'IBM Plex Sans Thai', 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav { background: white; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { font-weight: 700; font-size: 1.25rem; color: var(--primary); text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-light); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }

/* Hamburger menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* Hero with image */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; overflow: hidden; }
.hero-content { display: flex; flex-direction: column; justify-content: center; padding: 64px 48px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.hero-content h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero-content p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 32px; max-width: 500px; }
.hero-image { background-size: cover; background-position: center; min-height: 400px; }

/* Simple hero (for sub-pages) */
.hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
.hero p { font-size: 1.125rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* GIF Header — Mobile Banner */
.gif-header { width: 100%; overflow: hidden; }
.gif-header a { display: block; width: 100%; }
.gif-header a:hover { text-decoration: none; }
.gif-header img { width: 100%; display: block; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 48px; }

/* Cards with icons */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: white; border-radius: 16px; padding: 32px; border: 1px solid #e5e7eb; transition: box-shadow 0.3s, transform 0.3s; }
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
.card-icon { color: var(--primary); margin-bottom: 16px; }
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 0.875rem; }

/* Product cards with images */
.product-card { background: white; border-radius: 16px; overflow: hidden; border: 1px solid #e5e7eb; transition: box-shadow 0.3s, transform 0.3s; }
.product-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.product-card-img { width: 100%; height: 220px; object-fit: cover; }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.product-card-body p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 12px; }

/* Benefits list */
.benefits { list-style: none; margin-top: 12px; }
.benefits li { padding: 4px 0; font-size: 0.875rem; color: var(--text-light); }
.benefits li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

/* About section with image */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: 16px; width: 100%; height: 350px; object-fit: cover; }

/* Footer */
.footer { background: #1e293b; color: #94a3b8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer h4 { color: white; font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; }
.footer p, .footer a { font-size: 0.8125rem; color: #94a3b8; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; text-align: center; font-size: 0.75rem; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 12px;
  font-size: 0.875rem; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(12,141,233,0.1);
}
.btn-primary {
  display: inline-block; padding: 12px 32px; background: var(--primary); color: white;
  border: none; border-radius: 12px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: white; }

/* Stats bar */
.stats-bar { background: var(--bg-alt); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--text-light); margin-top: 4px; }

/* Privacy Policy content */
.privacy-content h3 { font-size: 1.125rem; font-weight: 600; color: var(--text); margin: 24px 0 12px; }
.privacy-content h3:first-child { margin-top: 0; }
.privacy-content p { margin-bottom: 12px; }
.privacy-content ul { margin: 8px 0 16px 24px; }
.privacy-content li { margin-bottom: 6px; }
.privacy-content strong { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-content { padding: 40px 24px; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-image { min-height: 250px; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 48px 0; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px 24px; gap: 12px; border-bottom: 1px solid #e5e7eb; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 40px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 250px; }
  .product-card-img { height: 180px; }
}