@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #1A56DB;
  --brand-hover: #1239A5;
  --brand-light: #EEF4FF;
  --brand-mid: #BFDBFE;
  --accent: #06B6D4;
  --accent2: #10B981;
  --bg: #F8FAFF;
  --surface: #FFFFFF;
  --surface2: #F1F5FD;
  --surface3: #E8EFFE;
  --text: #0F172A;
  --text2: #475569;
  --text3: #94A3B8;
  --border: #E2E8F0;
  --border2: #CBD5E1;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 8px rgba(26,86,219,0.06);
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
  --shadow-lg: 0 8px 48px rgba(26,86,219,0.15);
  --max-w: 1160px;
  --font: 'Sora', 'Noto Sans Thai', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 32px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 0; line-height: 1; white-space: nowrap;
  text-decoration: none; flex-shrink: 0;
}
.logo-top {
  display: flex; align-items: baseline; gap: 0; line-height: 1;
}
.logo-bplus {
  font-family: 'Sora', 'Noto Sans Thai', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--brand);
  letter-spacing: -0.5px; line-height: 1;
}
.logo-sup {
  font-family: 'Sora', 'Noto Sans Thai', sans-serif;
  font-size: 10px; font-weight: 800; color: var(--brand);
  vertical-align: super; line-height: 1;
}
.logo-plus-suffix {
  font-family: 'Sora', 'Noto Sans Thai', sans-serif;
  font-size: 22px; font-weight: 600; color: var(--text);
  letter-spacing: -0.5px; line-height: 1;
}
.logo-sep {
  display: flex; align-items: center; gap: 0; margin-top: 5px; width: 100%;
}
.logo-line {
  flex: 1; height: 1px; background: var(--border2);
}
.logo-tag {
  font-family: 'Sora', 'Noto Sans Thai', sans-serif;
  font-size: 7px; font-weight: 800; color: var(--text3);
  letter-spacing: 4px; line-height: 1;
  padding: 0 5px; margin-right: -4px;
}
.logo-mark {
  width: 36px; height: 36px; background: var(--brand); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--brand-light); color: var(--brand); }
.nav-cta { display: flex; gap: 8px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: all .18s;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-xl { padding: 16px 34px; font-size: 16px; border-radius: 14px; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border2); color: var(--text2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,0.30); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; border: 1.5px solid var(--border2); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f0f6ff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-ghost-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,0.12); }
.btn-full { width: 100%; }

/* ── SECTION LABELS ── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-light); padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--brand-mid);
  margin-bottom: 14px;
}
.tag-white { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.2); }
.section-title { font-size: 36px; font-weight: 700; line-height: 1.2; color: var(--text); }
.section-title-white { color: #fff; }
.section-sub { font-size: 17px; color: var(--text2); line-height: 1.7; max-width: 580px; }
.section-sub-white { color: rgba(255,255,255,0.72); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 32px;
}
.trust-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px 40px;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text2); }
.trust-icon { font-size: 18px; }
.trust-divider { width: 1px; height: 20px; background: var(--border); }

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: #93c5fd; transform: translateY(-4px); box-shadow: var(--shadow); }
.card-dark {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius); padding: 28px;
  transition: background .2s, border-color .2s;
}
.card-dark:hover { background: rgba(255,255,255,0.10); border-color: rgba(26,86,219,0.5); }

/* ── BADGE / CHIP ── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #ECFDF5; color: #059669; }
.badge-blue { background: var(--brand-light); color: var(--brand); }
.badge-amber { background: #FFFBEB; color: #D97706; }

.dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.3)} }

/* ── AVATAR ── */
.avatar { border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── DARK SECTION ── */
.dark-section { background: var(--text); border-radius: var(--radius-xl); margin: 0 32px; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--brand); border-radius: var(--radius-xl);
  margin: 0 32px 88px; padding: 72px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -160px; right: -80px; pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -100px; left: -60px; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title { font-size: 38px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.cta-sub { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--text); padding: 64px 32px 36px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name { font-weight: 700; font-size: 17px; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: #64748B; }
.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { font-size: 13px; color: #64748B; transition: color .15s; }
.footer-contact a:hover { color: #fff; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #64748B; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #64748B; font-size: 13px; font-weight: 700;
  transition: background .15s, color .15s;
}
.social-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.footer-bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #475569; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: #475569; transition: color .15s; }
.footer-bottom a:hover { color: #94A3B8; }

/* ── PAGE HERO ── */
.page-hero { padding: 64px 0 56px; }
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.anim-up { animation: fadeUp .7s ease both; }
.anim-up-1 { animation: fadeUp .7s .1s ease both; }
.anim-up-2 { animation: fadeUp .7s .2s ease both; }
.anim-up-3 { animation: fadeUp .7s .3s ease both; }

/* ── ACCORDION ── */
.accordion-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
  transition: border-color .2s;
}
.accordion-item.open { border-color: var(--brand); }
.accordion-q {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 15px; font-weight: 600; gap: 16px;
  user-select: none; transition: background .15s;
}
.accordion-q:hover { background: var(--brand-light); }
.accordion-chevron {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all .25s; flex-shrink: 0;
}
.accordion-item.open .accordion-chevron { background: var(--brand); color: #fff; border-color: var(--brand); transform: rotate(180deg); }
.accordion-a {
  max-height: 0; overflow: hidden;
  font-size: 14px; color: var(--text2); line-height: 1.7;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.accordion-item.open .accordion-a { max-height: 300px; padding: 0 24px 20px; }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── UTILITIES ── */
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .dark-section, .cta-section { margin: 0 16px; }
  .cta-section { margin-bottom: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-title { font-size: 28px; }
}
