@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

:root {
  --navy: #1E3A8A;
  --gold: #af8749;
  --gold-50: #f8f6ee;
  --gold-100: #ede7d4;
  --gold-200: #decfaa;
  --gold-500: #af8749;
  --gold-600: #93693b;
  --bg: #ffffff;
  --surface: #f5f5f5;
  --text: #0a0a0a;
  --text-600: #525252;
  --text-400: #a1a1a1;
  --text-500: #737373;
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #e5e5e5;
  --grey-300: #d4d4d4;
  --content-w: 1120px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans Thai", sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-200);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.brand .logo { height: 28px; width: auto; }

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

nav { display: flex; align-items: center; gap: 2px; }

nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-600);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.1s;
}
nav a:hover { background: var(--grey-100); color: var(--text); }

.lang-toggle {
  display: inline-flex;
  background: var(--grey-100);
  border-radius: 80px;
  padding: 2px;
  margin-left: 4px;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-400);
  padding: 4px 12px;
  border-radius: 80px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

/* ─── Full-width sections ────────────────────────────────────────── */

.section { padding: 40px 0; }
.section.bg-grey { background: var(--grey-50); }
.section.bg-white { background: #fff; }

/* ─── Hero ───────────────────────────────────────────────────────── */

.hero-section {
  background: linear-gradient(180deg, var(--grey-50) 0%, #fff 100%);
  padding: 80px 0 40px;
}

.hero-inner {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  color: var(--gold-600);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 80px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.hero-inner h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 0 auto 16px;
  max-width: 640px;
}

.hero-inner h1 .highlight { color: var(--navy); }

.hero-inner .lead {
  font-size: 17px;
  color: var(--text-600);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-ctas { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; text-decoration: none; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--grey-200);
}
.btn-secondary:hover { border-color: var(--grey-300); }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 80px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-600);
}

.stat-chip strong {
  color: var(--navy);
  font-weight: 700;
}

/* ─── Section headers ────────────────────────────────────────────── */

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-500);
  margin: 0;
}

/* ─── Feature cards ──────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s;
}
.feature-card:hover { border-color: var(--grey-300); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon.gold { background: var(--gold-50); border: 1px solid var(--gold-100); }
.feature-icon.blue { background: #EEF2FF; border: 1px solid #E0E7FF; }

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.6;
  margin: 0;
}

/* ─── Category chips ─────────────────────────────────────────────── */

.categories-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: 80px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-600);
  transition: background 0.1s;
}
.cat-chip:hover { background: var(--gold-100); }
.cat-chip .emoji { font-size: 14px; }

/* ─── Steps ──────────────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 24px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 80px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.step-card p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.6;
  margin: 0;
}

/* ─── Trust ──────────────────────────────────────────────────────── */

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEF2FF;
  border: 1px solid #E0E7FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text);
}

.trust-info p {
  font-size: 13px;
  color: var(--text-500);
  margin: 0;
  line-height: 1.5;
}

/* ─── Footer ─────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--grey-200);
  padding: 32px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

footer .footer-brand .logo { height: 20px; width: auto; }
footer .footer-brand span { font-weight: 600; font-size: 14px; color: var(--text); }

footer .footer-links { display: flex; gap: 20px; }
footer .footer-links a { color: var(--text-500); font-size: 13px; font-weight: 500; }
footer .footer-links a:hover { color: var(--text); }

footer .footer-meta { font-size: 12px; color: var(--text-400); }

/* ─── Legal pages ────────────────────────────────────────────────── */

.legal-page { padding: 48px 0 80px; }

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: left;
  max-width: 100%;
  letter-spacing: -0.7px;
  margin-bottom: 4px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-400);
  margin-bottom: 36px;
}

.legal-content { max-width: 720px; }

.legal-content h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 36px 0 10px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.legal-content p {
  font-size: 14px;
  color: var(--text-600);
  margin: 0 0 12px;
  line-height: 1.7;
}

.legal-content ul { padding-left: 20px; margin: 0 0 12px; }

.legal-content li {
  font-size: 14px;
  color: var(--text-600);
  line-height: 1.7;
  margin-bottom: 4px;
}

.legal-content a { font-weight: 500; }

/* ─── Support page ───────────────────────────────────────────────── */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.support-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
}

.support-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.support-card p {
  font-size: 14px;
  color: var(--text-500);
  margin: 0;
  line-height: 1.6;
}

.support-card a { font-weight: 600; font-size: 14px; }

.support-hours {
  text-align: center;
  color: var(--text-400);
  font-size: 13px;
  margin-bottom: 48px;
}

.faq-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.faq-item {
  border-bottom: 1px solid var(--grey-100);
  padding: 18px 0;
}
.faq-item:first-child { border-top: 1px solid var(--grey-100); }

.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-500);
  margin: 0;
  line-height: 1.65;
}

/* ─── Lang ───────────────────────────────────────────────────────── */

[lang-block] { display: none; }
[lang-block].active { display: block; }

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-inner h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-section { padding: 48px 0 32px; }
  .section { padding: 32px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 20px; }
  footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-inner h1 { font-size: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  nav a { padding: 6px 8px; font-size: 12px; }
}
