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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f7f6e8;
    min-height: 100vh;
    color: #2d3e2d;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #2d5016;
    text-decoration: none;
}

.logo:hover {
    color: #2d5016;
}

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

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #2d5016;
}

.nav-cta {
    background: #2d5016;
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
}

.nav-cta:hover {
    background: #3d6b1e;
    color: white !important;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px 80px;
    text-align: center;
}

.hero-illustration {
    width: 200px;
    height: 200px;
    margin-bottom: 36px;
    animation: float 6s ease-in-out infinite;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #2d5016;
}

.subtitle {
    font-size: 17px;
    color: #444;
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.6;
}

.install-block {
    margin-bottom: 64px;
    text-align: center;
}

.install-label {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.install-command {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    color: #00ff88;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.install-command:hover {
    background: #252525;
    transform: translateY(-1px);
}

.install-command code {
    user-select: all;
}

.copy-btn {
    background: #2d5016;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #3d6b1e;
}

.copy-btn.copied {
    background: #1a4d1a;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    width: 100%;
}

.feature-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2d5016;
}

.feature-description {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.feature-btn {
    display: inline-block;
    background: #2d5016;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.feature-btn:hover {
    background: #3d6b1e;
    transform: translateY(-1px);
}

/* Inner page content (Token, Agent, Docs pages) */
.page-content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    text-align: left;
}

.page-content h1 {
    font-size: 32px;
    color: #2d5016;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #2d5016;
}

.page-content h2 {
    font-size: 22px;
    color: #3d6b1e;
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-content p {
    color: #444;
    line-height: 1.75;
    margin-bottom: 14px;
    font-size: 15px;
}

.page-content ul {
    margin: 12px 0 16px 24px;
    color: #444;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content code {
    background: #e8f0e4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.page-content .section-lead {
    font-size: 16px;
    color: #333;
}

.footer {
    text-align: center;
    padding: 56px 40px 40px;
    color: #444;
}

.footer-message {
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.footer-credit {
    font-size: 14px;
}

.footer-credit a {
    color: #2563eb;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.chat-section {
    max-width: 560px;
    width: 100%;
    margin-top: 48px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.chat-section h2 {
    font-size: 20px;
    color: #2d5016;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.chat-key-wrap {
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
}

.chat-key-wrap label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.chat-key-wrap input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.chat-key-wrap input:focus {
    outline: none;
    border-color: #2d5016;
}

.chat-messages {
    min-height: 240px;
    max-height: 360px;
    overflow-y: auto;
    padding: 16px 24px;
}

.chat-msg {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 90%;
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg.user {
    background: #2d5016;
    color: white;
    margin-left: auto;
}

.chat-msg.agent {
    background: #e8f0e4;
    color: #2d3e2d;
}

.chat-msg.error {
    background: #fce8e8;
    color: #8b2a2a;
}

.chat-form {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}

.chat-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.chat-form input:focus {
    outline: none;
    border-color: #2d5016;
}

.chat-form button {
    padding: 12px 20px;
    background: #2d5016;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

.chat-form button:hover {
    background: #3d6b1e;
}

.chat-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .nav {
        gap: 20px;
    }

    .main {
        padding: 40px 20px 56px;
    }

    .title {
        font-size: 32px;
    }

    .hero-illustration {
        width: 160px;
        height: 160px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-content {
        padding: 32px 16px 48px;
    }
}
