:root {
  --primary-color: #9d4edd;
  --secondary-color: #ff758f;
  --accent-color: #5e60ce;
  --text-color: #333333;
  --light-color: #f5f5f5;
  --dark-color: #242323;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Sarabun', sans-serif; /* Thai font */
}

body {
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--gradient);
  color: white;
  padding: 20px 0;
  position: relative;
}

.hero {
  padding: 80px 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%239d4edd" fill-opacity="0.1"/><path d="M0 50 L100 50" stroke="%239d4edd" stroke-opacity="0.2" stroke-width="1"/><path d="M50 0 L50 100" stroke="%239d4edd" stroke-opacity="0.2" stroke-width="1"/></svg>');
  text-align: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--primary-color);
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

.features {
  padding: 80px 0;
  background-color: white;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
}

.how-it-works {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.step {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  box-shadow: var(--shadow);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 30px;
  background: var(--gradient);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.testimonials {
  padding: 80px 0;
  background-color: var(--light-color);
}

.testimonial {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: var(--shadow);
}

.testimonial:before {
  content: """;
  font-size: 80px;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 10px;
}

.cta {
  padding: 100px 0;
  background: var(--gradient);
  text-align: center;
  color: white;
}

footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo svg {
  width: 30px;
  height: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.social-links a {
  color: white;
  font-size: 24px;
}

.disclaimer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  margin-top: 30px;
  font-size: 14px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: var(--gradient);
  bottom: -10px;
  left: 20%;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    background: var(--dark-color);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.4s ease;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .btn-large {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .feature-card, .step, .testimonial {
    padding: 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
}
