:root {
  --indigo: #4F46E5;
  --indigo-light: #6366F1;
  --indigo-dark: #3730A3;
  --violet: #7C3AED;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --green-bg: #D1FAE5;
  --green-text: #065F46;
  --red: #EF4444;
  --font: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }

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

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--gray-200); }
.header-layout { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header-logo img { height: 38px; width: auto; display: block; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-menu { display: flex; gap: 2px; }
.nav-menu a { text-decoration: none; color: var(--gray-700); font-size: 0.9rem; font-weight: 500; padding: 8px 18px; border-radius: var(--radius-sm); transition: all 0.2s; }
.nav-menu a:hover { background: #EEF2FF; color: var(--indigo); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all 0.25s; border: 1px solid transparent; cursor: pointer; font-family: var(--font); }
.btn-solid { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.btn-solid:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--gray-700); border-color: var(--gray-200); }
.btn-ghost:hover { background: var(--gray-50); border-color: var(--indigo); color: var(--indigo); }
.btn-full { width: 100%; }

/* ===== Section defaults ===== */
section { padding: 96px 0; }
.section-heading { font-size: 2.25rem; font-weight: 800; margin-bottom: 12px; text-align: center; color: var(--gray-900); letter-spacing: -0.025em; }
.section-subhead { font-size: 1.125rem; color: var(--gray-600); text-align: center; max-width: 680px; margin: 0 auto 56px; }

/* ===== Hero ===== */
.hero-section { padding: 64px 0 80px; background: linear-gradient(135deg, #EEF2FF 0%, var(--white) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 0; }
.hero-text { max-width: 540px; }
.hero-badge { display: inline-flex; align-items: center; padding: 6px 14px; background: rgba(79,70,229,0.08); color: var(--indigo); border-radius: 100px; font-size: 0.75rem; font-weight: 700; margin-bottom: 20px; border: 1px solid rgba(79,70,229,0.12); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-thai { font-size: 3.5rem; font-weight: 800; line-height: 1.1; color: var(--gray-900); margin-bottom: 12px; letter-spacing: -0.04em; }
.hero-eng { font-size: 1.2rem; font-weight: 600; color: var(--violet); margin-bottom: 24px; letter-spacing: 0.02em; }
.hero-desc { font-size: 1.05rem; color: var(--gray-600); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12); aspect-ratio: 4/3; }

/* ===== Trust Bar ===== */
.trust-strip { background: var(--white); padding: 28px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-cell { padding: 0 28px; text-align: left; border-right: 1px solid var(--gray-200); }
.trust-cell:last-child { border-right: none; }
.trust-label { display: block; font-size: 0.7rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.trust-data { display: block; font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.trust-active { color: #059669; display: inline-flex; align-items: center; gap: 6px; }
.trust-active::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #059669; border-radius: 50%; flex-shrink: 0; }

/* ===== About ===== */
.about-section { background: var(--white); }
.about-body { max-width: 800px; margin: 0 auto; text-align: center; }
.about-body p { font-size: 1.1rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; }

/* ===== Dashboard Stats ===== */
.dashboard-section { background: var(--gray-50); }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { background: var(--white); padding: 32px 24px; border-radius: var(--radius); border: 1px solid var(--gray-200); text-align: center; transition: all 0.3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--indigo); }
.stat-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.stat-icon-orders { background: #EEF2FF; color: var(--indigo); }
.stat-icon-revenue { background: #F5F3FF; color: var(--violet); }
.stat-icon-channels { background: #ECFDF5; color: #059669; }
.stat-icon-fulfillment { background: #FEF3C7; color: #D97706; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 0.9rem; color: var(--gray-500); font-weight: 500; }

/* ===== Business / Services ===== */
.business-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: var(--white); padding: 32px; border-radius: var(--radius); border: 1px solid var(--gray-200); transition: all 0.3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--indigo); transform: scaleY(0); transition: transform 0.3s ease; transform-origin: bottom; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--indigo); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon { font-size: 2rem; margin-bottom: 24px; display: block; color: var(--indigo); width: 48px; height: 48px; background: #EEF2FF; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }
.service-card p { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.7; }

/* ===== Company Info ===== */
.company-section { background: var(--gray-50); }
.info-table { max-width: 960px; margin: 0 auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; box-shadow: var(--shadow); }
.info-row { display: grid; grid-template-columns: 280px 1fr; border-bottom: 1px solid var(--gray-200); }
.info-row:last-child { border-bottom: none; }
.info-row:nth-child(even) { background: var(--gray-50); }
.info-label { padding: 18px 28px; background: transparent; font-weight: 600; font-size: 0.9375rem; color: var(--gray-700); display: flex; align-items: center; }
.info-value { padding: 18px 28px; font-size: 0.9375rem; color: var(--gray-900); line-height: 1.6; display: flex; align-items: center; }
.status-badge { display: inline-flex; align-items: center; padding: 4px 14px; background: var(--green-bg); color: var(--green-text); border-radius: 100px; font-size: 0.8125rem; font-weight: 700; }

/* ===== Contact ===== */
.contact-section { background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 28px; }
.contact-address-block { display: flex; gap: 16px; padding: 20px 24px; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-200); }
.contact-address-icon { flex-shrink: 0; width: 44px; height: 44px; background: #EEF2FF; color: var(--indigo); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.contact-address-text h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.contact-address-text p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.6; }
.contact-map-card { background: var(--gray-50); padding: 20px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.map-figure { height: 200px; background: var(--gray-100); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--gray-200); }
.map-figure img { width: 100%; height: 100%; object-fit: cover; }
.map-caption { display: block; font-size: 0.8rem; color: var(--gray-400); text-align: center; }

.contact-form { background: var(--white); padding: 44px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-xl); }
.form-heading { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.form-desc { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 28px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; color: var(--gray-700); }
.field .required { color: var(--red); }
.field input, .field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); transition: all 0.2s; background: var(--gray-50); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: var(--white); box-shadow: 0 0 0 4px rgba(79,70,229,0.08); }
.field textarea { resize: vertical; min-height: 100px; }

/* ===== Footer ===== */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 40px 0 32px; }
.footer-layout { display: flex; flex-direction: column; gap: 16px; }
.footer-main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 32px; width: auto; }
.footer-meta { font-size: 0.875rem; line-height: 1.6; }
.footer-meta strong { color: var(--gray-200); }
.footer-legal { font-size: 0.8125rem; }
.footer-legal a { color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }
.footer-sep { margin: 0 10px; color: var(--gray-600); }
.footer-statement { font-size: 0.75rem; color: var(--gray-500); line-height: 1.5; }
.footer-copy { font-size: 0.75rem; color: var(--gray-500); }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--white); width: 100%; max-width: 580px; border-radius: var(--radius); padding: 40px; position: relative; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-xl); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: var(--gray-400); line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--gray-900); }
.modal-body h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; color: var(--gray-900); }
.modal-body p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.7; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-thai { font-size: 3rem; }
  .hero-text { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .hero-visual img { max-height: 360px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .trust-cell:nth-child(2) { border-right: none; }
  .trust-cell { padding: 16px 20px; }
  .services-grid, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hamburger { display: flex; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 8px 24px 20px; border-bottom: 1px solid var(--gray-200); display: none; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 0; }
  .hero-thai { font-size: 2.5rem; }
  .hero-eng { font-size: 1rem; }
  .section-heading { font-size: 1.8rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .info-row { grid-template-columns: 1fr; }
  .info-label { padding-bottom: 4px; border-bottom: none; }
  .info-row:nth-child(even) .info-label { background: transparent; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer { padding: 32px 0 24px; }
}

@media (max-width: 480px) {
  .hero-thai { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .trust-row { grid-template-columns: 1fr; gap: 0; }
  .trust-cell { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 14px 0; }
  .trust-cell:last-child { border-bottom: none; }
  .services-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}
