/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --line-green: #00B900;
    --line-dark-green: #009900;
    --primary-color: #00B900;
    --secondary-color: #00C300;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --risk-low: #28a745;
    --risk-medium: #ffc107;
    --risk-high: #dc3545;
}

body {
    font-family: 'Sarabun', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo .thai-name {
    color: var(--text-dark);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.line-icon {
    width: 24px;
    height: 24px;
}

.hero-badge {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

/* Page Hero (for internal pages) */
.page-hero {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Problem Section */
.problem-section {
    background-color: var(--bg-light);
}

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

.problem-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.problem-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

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

.feature-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Supported Documents */
.supported-docs {
    background-color: var(--bg-light);
}

.docs-types {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.doc-type {
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 150px;
}

.doc-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.doc-type p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.qr-placeholder {
    margin-top: 2rem;
}

.qr-note {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.qr-box {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 300px;
    margin: 0 auto;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Disclaimer */
.disclaimer-section {
    background-color: #fff3cd;
    padding: 2rem 0;
}

.disclaimer-box {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.disclaimer-box h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.disclaimer-box p {
    color: #856404;
    line-height: 1.7;
}

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

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

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* How It Works - Steps */
.steps-section {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.step-details {
    list-style: none;
    margin: 1.5rem 0;
}

.step-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.step-details li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.supported-formats,
.risk-levels {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.format-badge {
    background-color: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.risk-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

.risk-low {
    background-color: #d4edda;
    color: var(--risk-low);
}

.risk-medium {
    background-color: #fff3cd;
    color: #856404;
}

.risk-high {
    background-color: #f8d7da;
    color: var(--risk-high);
}

.example-questions p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.question-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.q-example {
    background-color: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-gray);
    font-style: italic;
}

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

.persona-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.persona-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.persona-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.persona-card ul {
    list-style: none;
}

.persona-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.persona-card ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Red Flags */
.red-flags-section {
    background-color: var(--bg-light);
}

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

.flag-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.flag-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.flag-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.flag-item p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.9375rem;
}

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

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

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.privacy-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.privacy-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* FAQ Page */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-question .toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s;
}

.faq-item.active .toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav a {
        font-size: 0.875rem;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 1.875rem;
    }

    .page-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 2.5rem 0;
    }
}
