:root {
  --primary: #0b5394;
  --accent: #e63946;
  --gold: #f4b400;
  --dark: #0a1929;
  --light: #f8f9fa;
  --text: #1a202c;
  --muted: #64748b;
  --border: #e2e8f0;
  --thai-red: #a51931;
  --thai-blue: #2d2a4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    -apple-system,
    sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.topbar {
  background: var(--dark);
  text-align: center;
}

.topbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
  font-size: 13px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
}

.topbar .container .lang-toggle {
  position: absolute;
  right: 24px;
  display: inline-flex;
  align-items: center;
  width: 120px;
  height: 38px;
  background: var(--dark);
  border-radius: 999px;
  cursor: pointer;
  padding: 3px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  user-select: none;
  transition: background 0.3s ease;
}

.topbar .container .lang-toggle .slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 2;
}

.topbar .container .lang-toggle .flag-id,
.topbar .container .lang-toggle .flag-th {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

.topbar .container .lang-toggle .flag-id {
  background: linear-gradient(
    to bottom,
    #0b3d91 0%,
    #0b3d91 33%,
    #fff 33%,
    #fff 66%,
    #e63946 66%,
    #e63946 100%
  );
  opacity: 1;
}

.topbar .container .lang-toggle .flag-th {
  background: linear-gradient(
    to bottom,
    var(--thai-red) 0%,
    var(--thai-red) 16.6%,
    #fff 16.6%,
    #fff 33.3%,
    var(--thai-blue) 33.3%,
    var(--thai-blue) 66.6%,
    #fff 66.6%,
    #fff 83.3%,
    var(--thai-red) 83.3%,
    var(--thai-red) 100%
  );
  opacity: 0;
}

.topbar .container .lang-toggle .labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 12px 0 40px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}

.topbar .container .lang-toggle .labels span {
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

.topbar .container .lang-toggle .labels .lbl-id {
  opacity: 1;
}

.topbar .container .lang-toggle .labels .lbl-th {
  opacity: 0.4;
}

.topbar .container .lang-toggle.active {
  background: var(--thai-blue);
}

.topbar .container .lang-toggle.active .slider {
  transform: translateX(82px);
}

.topbar .container .lang-toggle.active .flag-id {
  opacity: 0;
}

.topbar .container .lang-toggle.active .flag-th {
  opacity: 1;
}

.topbar .container .lang-toggle.active .labels {
  padding: 0 40px 0 12px;
  flex-direction: row-reverse;
}

.topbar .container .lang-toggle.active .labels .lbl-id {
  opacity: 0.4;
}

.topbar .container .lang-toggle.active .labels .lbl-th {
  opacity: 1;
}

.topbar .container .lang-toggle:hover {
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.topbar span {
  margin: 0 12px;
  opacity: 0.85;
}

.topbar strong {
  color: var(--gold);
}

/* Header */
header {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0b5394 0%, #0a1929 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(244, 180, 0, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.badge-th {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-th::before {
  content: "🇹🇭";
  font-size: 16px;
}

h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

h1 .highlight {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.hero p.lead {
  font-size: 19px;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-btn-lg {
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.cta-btn-lg:hover {
  background: #c92a37;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.cta-secondary {
  background: transparent;
  color: #fff;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero illustration */
.hero-visual {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 0.3s;
}

.flow-step:hover {
  transform: translateX(8px);
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  font-weight: 700;
}

.flow-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.flow-text small {
  opacity: 0.75;
  font-size: 13px;
}

/* Pain Points */
.pain {
  padding: 80px 0;
  background: #fff;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 50px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  padding: 32px;
  border-radius: 14px;
  background: #fef2f2;
  border-left: 4px solid var(--accent);
}

.pain-card .icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.pain-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.pain-card p {
  color: var(--muted);
  font-size: 14px;
}

/* Solution */
.solution {
  padding: 90px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sol-list {
  list-style: none;
  margin-top: 24px;
}

.sol-list li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.sol-list li:last-child {
  border-bottom: none;
}

.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.sol-list strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.sol-list span {
  color: var(--muted);
  font-size: 14px;
}

.sol-visual {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.stat-box {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #0b5394 0%, #1976d2 100%);
  color: #fff;
  border-radius: 12px;
}

.stat-box .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.stat-box .label {
  font-size: 12px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.progress-bar {
  margin: 14px 0;
}

.progress-bar .label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

.progress-bar .bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 10px;
}

/* How It Works */
.how {
  padding: 90px 0;
  background: var(--dark);
  color: #fff;
}

.how h2 {
  color: #fff;
}

.how .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.step h4 {
  font-size: 17px;
  margin: 14px 0 10px;
  font-weight: 700;
}

.step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

/* Why Us */
.why {
  padding: 90px 0;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.why-card {
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 83, 148, 0.12);
  border-color: var(--primary);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7e6, #ffe9b3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 700;
}

.why-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Comparison */
.compare {
  padding: 80px 0;
  background: #f8f9fa;
}

.compare-table {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin-top: 30px;
}

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
}

.compare-head {
  background: var(--dark);
  color: #fff;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15px;
}

.compare-head .us {
  background: var(--accent);
  text-align: center;
}

.compare-head .them {
  text-align: center;
  background: #475569;
}

.compare-cell {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.compare-cell.us {
  text-align: center;
  color: #10b981;
  font-weight: 700;
  background: #f0fdf4;
}

.compare-cell.them {
  text-align: center;
  color: #94a3b8;
}

.compare-row:last-child .compare-cell {
  border-bottom: none;
}

/* Testimonial style banner */
.quote-banner {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--gold) 0%, #ff9800 100%);
  color: var(--dark);
}

.quote-banner .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
}

.quote-icon {
  font-size: 80px;
  line-height: 1;
  font-weight: 800;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.quote-text small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* CTA Section */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a1929 0%, #0b5394 100%);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  font-size: 44px;
  color: #fff;
  margin-bottom: 18px;
}

.final-cta p {
  font-size: 19px;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 40px;
}

.form-card {
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.form-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
  font-weight: 800;
}

.form-card .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.submit-btn:hover {
  background: #c92a37;
  transform: translateY(-1px);
}

.form-foot {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* Contact direct */
.direct-contact {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
  background: #050d17;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  font-size: 13px;
  text-align: center;
}

footer strong {
  color: #fff;
}

@media (max-width: 900px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-grid,
  .sol-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pain-grid,
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .quote-banner .container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}
