:root {
  --bg: #f3f1ef;
  --bg-soft: #faf8f6;
  --dark: #121212;
  --dark-2: #1b1b1b;
  --red: #ff2b36;
  --red-light: #ff4d57;
  --text: #161616;
  --muted: #6f6f6f;
  --border: rgba(0,0,0,0.08);
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
  --container: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4 {
  font-family: 'Inter', sans-serif;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
}

img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

.dark {
  background: var(--dark);
  color: var(--white);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  max-width: 700px;
  margin-bottom: 24px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 620px;
  font-size: 17px;
}

.dark .section-subtitle {
  color: rgba(255,255,255,0.72);
}

.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 15px 26px;
  border-radius: 0;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--red-light);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

.btn.dark-btn {
  background: var(--dark);
  color: var(--white);
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.hero {
  padding: 80px 0 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(62px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 28px;
}

.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--white);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  width: 240px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.stat h3 {
  font-size: 32px;
  margin-bottom: 6px;
}

.stat p {
  font-size: 13px;
  color: var(--muted);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 18px;
  margin-top: 60px;
}

.eco-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.eco-card h4 {
  font-size: 24px;
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.logo-chip {
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
}

.feature-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 9px;
  flex-shrink: 0;
}

.dashboard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
  margin-top: 40px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 20px;
}

.dashboard-card {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 14px;
}

.case-study {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-top: 60px;
}

.case-main {
  background: linear-gradient(135deg, #1b0f0d, #3a1c1f);
  color: white;
  padding: 42px;
  border-radius: 18px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.metric-box {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.metric-box h3 {
  font-size: 44px;
}

.final-cta {
  text-align: center;
  padding: 140px 0;
  background: linear-gradient(180deg, #3a0b0d, #170909);
  color: white;
}

.final-cta h2 {
  font-size: clamp(54px, 7vw, 92px);
  max-width: 900px;
  margin: 0 auto 26px;
}

footer {
  padding: 70px 0;
  background: #140908;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 18px;
  font-size: 24px;
}

.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  margin-top: 50px;
}

.faq-item {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.faq-item h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.faq-item p {
  color: var(--muted);
  font-size: 15px;
}

/* Language Toggle */

.lang-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: 0.25s ease;
  line-height: 1;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.lang-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

.lang-toggle .lt-sep {
  opacity: 0.4;
}

.lang-toggle .lt-en,
.lang-toggle .lt-th {
  transition: 0.25s ease;
  opacity: 0.45;
}

html[lang="en"] .lang-toggle .lt-en {
  opacity: 1;
  color: var(--red);
}

html[lang="th"] .lang-toggle .lt-th {
  opacity: 1;
  color: var(--red);
}

/* Thai Typography */

html[lang="th"] body {
  line-height: 1.7;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4 {
  line-height: 1.15;
}

/* Responsive */

@media(max-width: 980px) {

  .hero-grid,
  .two-col,
  .case-study,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid,
  .dashboard-grid,
  .metrics-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 64px;
  }

  .lang-toggle {
    display: inline-flex;
  }
}

@media(max-width: 768px) {

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 640px) {

  .container {
    width: calc(100% - 28px);
  }

  section {
    padding: 70px 0;
  }

  .hero h1,
  .section-title,
  .final-cta h2 {
    font-size: 46px;
  }

  .ecosystem-grid,
  .dashboard-grid,
  .metrics-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 20px;
    width: 100%;
  }
}