:root {
    --font-main: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    --color-bg: #FFFFFF;
    --color-text: #050505;
    --color-text-secondary: #666666;
    --color-accent: #000000;
    --color-gray-bg: #F7F7F7;
    --color-border: #E8E8E8;

    --spacing-container: 1080px;
    --spacing-mobile: 20px;

    --radius-card: 12px;
    --radius-btn: 6px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-mobile);
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
}

.badge {
    display: inline-block;
    background: var(--color-gray-bg);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.badge-white {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.code-block-display {
    background: var(--color-gray-bg);
    padding: 16px 24px;
    border-radius: 8px;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--color-border);
    max-width: 100%;
    overflow-x: auto;
}

.copy-btn {
    background: white;
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-main);
    flex-shrink: 0;
}

.sub-cta-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 12px;
}

/* General Sections */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    letter-spacing: -1px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Cards */
.card {
    padding: 32px;
    border-radius: var(--radius-card);
    transition: transform 0.2s;
}

.card.bg-gray {
    background: var(--color-gray-bg);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Checklist */
.checklist-container {
    max-width: 800px;
    margin: 0 auto;
}

.checklist-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}

.checklist-item:last-child {
    border-bottom: none;
}

.check-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* Flow Section */
.step-card {
    display: flex;
    gap: 32px;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.code-snippet {
    background: #000;
    color: white;
    padding: 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    margin-top: 16px;
    font-size: 0.9rem;
    overflow-x: auto;
    max-width: 100%;
}

.json-snippet {
    white-space: pre;
    color: #cecece;
}

/* Agent Section */
.agent-section {
    background: #000;
    color: white;
}

.align-center {
    align-items: center;
}

.text-large {
    font-size: 1.2rem;
    margin: 24px 0;
    opacity: 0.9;
}

.feature-list li {
    margin-bottom: 12px;
    list-style-type: none;
    position: relative;
    padding-left: 24px;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.agent-preview {
    background: #1A1A1A;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #333;
}

.chat-bubble {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.chat-bubble.user {
    background: #333;
    color: white;
    margin-left: 20%;
}

.chat-bubble.ai {
    background: #000;
    border: 1px solid #333;
    color: white;
    margin-right: 20%;
}

.chat-attachment {
    background: #222;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    display: inline-block;
    font-size: 0.85rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.faq-item h3 {
    margin-bottom: 8px;
}

/* Offer */
.offer-box {
    background: var(--color-gray-bg);
    padding: 40px;
    border-radius: var(--radius-card);
    margin-top: 40px;
    border: 1px solid var(--color-border);
}

.offer-box ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* Footer CTA */
.footer-cta {
    padding: 140px 0 40px;
    border-top: 1px solid var(--color-border);
}

.cta-group {
    margin: 32px 0;
}

.footer-credit {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: 60px;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn-sm {
        display: none;
    }

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

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .step-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .step-number {
        font-size: 2rem;
    }

    .code-snippet {
        padding: 12px;
        font-size: 0.8rem;
    }

    /* Force code wrapping on mobile to avoid horizontal scroll */
    .code-snippet pre,
    .code-snippet code {
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Append this to the end of style.css */

.chat-bubble.ai-action {
    background: transparent;
    border: 1px dashed #444;
    color: #888;
    font-size: 0.8rem;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20%;
}

.code-snippet-mini {
    background: #111;
    padding: 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin: 8px 0;
    color: #4CAF50;
    border: 1px solid #333;
}

/* Round 2 Additions */

.btn-github {
    background: #24292e;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.why-section img {
    border: 1px solid #E0E0E0;
}

/* Round 3 Additions */

.checklist-item {
    align-items: center;
    /* Fix alignment */
}

.btn-github svg {
    margin-right: 6px;
    margin-left: -4px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Override Prism Theme for Black Background */
pre[class*="language-"],
code[class*="language-"] {
    background: #000000 !important;
    text-shadow: none !important;
}