/* Base Styles */
:root {
    --primary-color: #9932CC;
    --secondary-color: #FF6B6B;
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Header */
.site-header {
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-nav a:hover {
    background-color: var(--light-bg);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background-image: linear-gradient(120deg, #f5f7fa 0%, #e9e9ff 100%);
}

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

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #8526b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 3rem;
}

.step {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

/* Features Section */
.features {
    padding: 5rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

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

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background-image: linear-gradient(to right, var(--primary-color), #8526b3);
    color: white;
}

.cta-section h2,
.cta-section p {
    color: white;
}

.cta-section .cta-button {
    background-color: white;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.cta-section .cta-button:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-logo p {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links h4,
.footer-terms h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.footer-links li,
.footer-terms li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-terms a {
    color: #f5f5f5;
}

.footer-links a:hover,
.footer-terms a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .hero-content h2 {
        text-align: center;
    }
    
    .hero-content p {
        text-align: center;
    }
    
    .hero-content .cta-button {
        display: block;
        margin: 0 auto;
    }
}

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

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