/* Base styles */
:root {
  --primary-color: #9c27b0;
  --primary-light: #d05ce3;
  --primary-dark: #6a0080;
  --accent-color: #ff6b8b;
  --accent-light: #ff9eb8;
  --accent-dark: #c83b59;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #fff;
  --bg-light: #f9f9f9;
  --bg-dark: #eaeaea;
  --font-main: 'Kanit', 'Prompt', sans-serif;
  --font-secondary: 'Sarabun', sans-serif;
}

@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/kanit/v12/nKKZ-Go6G5tXcraVGwCKd6xBDFs.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/sarabun/v13/DtVjJx26TKEr37c9aAFJn3YO5gjupg.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

/* Header */
header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
}

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

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

nav ul li a:hover {
  background-color: rgba(156, 39, 176, 0.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 2px 0;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(156, 39, 176, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
  background-color: var(--bg-light);
}

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

.feature-card {
  background: var(--bg-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s;
}

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

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

/* How It Works Section */
.how-it-works {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 50px 0;
}

.step {
  flex: 1;
  min-width: 220px;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 25px;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-light);
  z-index: -1;
}

.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.faq {
  background-color: var(--bg-light);
}

.accordion {
  max-width: 800px;
  margin: 40px auto;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  background-color: var(--bg-color);
  padding: 18px 25px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--primary-dark);
}

.accordion-header:after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.accordion-item.active .accordion-header:after {
  content: '-';
}

.accordion-content {
  background-color: var(--bg-color);
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  padding: 0 25px 20px;
  max-height: 200px;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
}

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

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  min-width: 150px;
  margin-bottom: 20px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content, .hero-image {
    flex: none;
    width: 100%;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .steps {
    flex-direction: column;
    gap: 40px;
  }
  
  .step:not(:last-child):after {
    display: none;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }
  
  nav ul li {
    margin: 0;
  }
  
  nav ul li a {
    display: block;
    padding: 12px 25px;
    border-radius: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-logo, .footer-links {
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-section {
    text-align: center;
    padding: 0 20px;
  }
}
