:root {
  --primary-color: #ED1C24;
  --secondary-color: #241D4F;
  --accent-color: #F8B500;
  --text-color: #333333;
  --light-text: #FFFFFF;
  --background: #F9F9F9;
  --section-bg: #FFFFFF;
  --section-alt-bg: #F2F2F2;
  --header-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --button-shadow: 0 4px 8px rgba(237, 28, 36, 0.3);
  --border-radius: 12px;
  --border-radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Sarabun', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

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

a:hover {
  color: var(--accent-color);
}

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

/* ===== HEADER ===== */
.site-header {
  background: var(--header-bg);
  color: var(--light-text);
  padding: 18px 0;
  position: relative;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.site-logo svg {
  width: 36px;
  height: 36px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: var(--light-text);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, rgba(36, 29, 79, 0.9), rgba(237, 28, 36, 0.85)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--light-text);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--background), transparent);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: var(--button-shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-btn:hover {
  transform: translateY(-3px);
  background-color: #FFD24C;
  color: var(--secondary-color);
  box-shadow: 0 6px 15px rgba(248, 181, 0, 0.4);
}

/* ===== FEATURES SECTION ===== */
.section {
  padding: 80px 0;
  position: relative;
}

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

.section-title h2 {
  font-size: 2.4rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  height: 4px;
  width: 60px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.features {
  background-color: var(--section-bg);
  overflow: hidden;
}

.features-inner {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.feature-card {
  flex: 1 1 300px;
  background: var(--section-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 15px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  z-index: -1;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(237, 28, 36, 0.1);
  border-radius: 50%;
}

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

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.feature-card p {
  color: #666;
  font-size: 1rem;
}

/* ===== HOW IT WORKS ===== */
.process {
  background-color: var(--section-alt-bg);
  position: relative;
}

.process-inner {
  position: relative;
  z-index: 1;
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: var(--primary-color);
  opacity: 0.2;
}

.step {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step:nth-child(odd) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 0 0 calc(50% - 40px);
  padding: 30px;
  background-color: var(--section-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
}

.step:nth-child(odd) .step-content {
  margin-right: 80px;
}

.step:nth-child(even) .step-content {
  margin-left: 80px;
}

.step-number {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(237, 28, 36, 0.3);
}

.step:nth-child(odd) .step-number {
  left: calc(50% - 30px);
}

.step:nth-child(even) .step-number {
  right: calc(50% - 30px);
}

.step h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.step p {
  color: #666;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--section-bg);
}

.testimonial {
  background: linear-gradient(to bottom right, #f7f7f7, #fff);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial svg {
  fill: var(--primary-color);
  opacity: 0.1;
  width: 60px;
  height: 60px;
  position: absolute;
  top: 20px;
  left: 20px;
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.user-info h4 {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 5px;
}

.user-info p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
  font-style: normal;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--light-text);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H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9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  animation: rotate 100s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #1a1a1a;
  color: #999;
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-info h3 {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

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

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

.footer-logo span {
  color: var(--light-text);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-desc {
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links h4 {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #999;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #777;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-info {
    grid-column: 1 / 3;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 77px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 77px);
    flex-direction: column;
    background-color: var(--secondary-color);
    padding: 40px 20px;
    transition: left 0.3s ease;
    gap: 20px;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .steps::before {
    left: 30px;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step:nth-child(odd) {
    flex-direction: column;
  }
  
  .step-content {
    flex: 0 0 100%;
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
  
  .step-number {
    left: 0 !important;
    right: auto !important;
    top: 30px;
  }
  
  .features-inner {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .footer-info {
    grid-column: 1;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}
