:root {
  --primary-color: #00C9A7;
  --secondary-color: #007ADF;
  --accent-color: #FFD166;
  --text-color: #2F2E41;
  --light-text: #FFFFFF;
  --dark-bg: #1A2A3A;
  --light-bg: #F0F7F4;
  --card-bg: #FFFFFF;
  --gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  --shadow: 0 4px 20px rgba(0, 122, 223, 0.15);
  --border-radius: 10px;
  --font-main: 'Sarabun', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html, body {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

.button {
  display: inline-block;
  background: var(--gradient);
  color: var(--light-text);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
  text-align: center;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 122, 223, 0.4);
  color: var(--light-text);
}

.button-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.button-outline:hover {
  background: var(--primary-color);
  color: var(--light-text);
}

/* Header */
.header {
  background-color: var(--light-bg);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: var(--light-text);
  padding: 10rem 0 6rem;
  margin-top: -1rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Features Section */
.features {
  padding: 7rem 0 4rem;
  background: var(--light-bg);
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-color);
  opacity: 0.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  background: var(--gradient);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--light-text);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.feature-description {
  color: var(--text-color);
  font-size: 1rem;
  opacity: 0.8;
}

/* How It Works */
.process {
  padding: 6rem 0;
  background: var(--dark-bg);
  color: var(--light-text);
  position: relative;
}

.process .section-title {
  color: var(--light-text);
}

.process .section-subtitle {
  color: var(--light-text);
  opacity: 0.7;
}

.steps {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 40px;
  right: -20%;
  width: 40%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.step-description {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: linear-gradient(rgba(0, 201, 167, 0.9), rgba(0, 122, 223, 0.9)), 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="%23FFFFFF" opacity="0.05"/></svg>');
  background-size: cover;
  text-align: center;
  color: var(--light-text);
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.cta-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.cta .button {
  background: var(--accent-color);
  color: var(--dark-bg);
  font-size: 1.1rem;
  padding: 15px 35px;
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.4);
}

.cta .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.6);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo svg {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--light-text);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  
  .step:not(:last-child):after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: 8rem 0 5rem;
  }
  
  .button {
    padding: 10px 25px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
}
