:root {
    --bg: #fbf6ee;
    --ink: #3b352c;
    --muted: #7a7266;
    --accent: #6d8a63;
    --line: #e7ddc9;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding-top: 24px;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--ink);
}

.wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.lang-switch {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.lang-switch button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
}

.lang-switch button.active {
    color: var(--ink);
    font-weight: 600;
}

.lang-switch .sep {
    color: var(--line);
    margin: 0 2px;
}

header {
    padding: 72px 0 40px;
    text-align: center;
}

.mascot {
    width: 136px;
    height: 136px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
}

.mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
    display: block;
}

h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.lead {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 28px;
    white-space: nowrap;
    overflow: hidden;
}

.cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
}

.cta:hover {
    opacity: 0.92;
}

.hint {
    font-size: 0.75rem;
    color: var(--muted);
    opacity: 0.7;
    margin-top: 14px;
}

.hint.flash {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    animation: hintBg 1.8s ease, hintShake 0.5s ease;
}

@keyframes hintBg {
    0% {
        background-color: transparent;
        color: var(--muted);
    }
    15% {
        background-color: #e5484d;
        color: #fff;
    }
    75% {
        background-color: #e5484d;
        color: #fff;
    }
    100% {
        background-color: transparent;
        color: var(--muted);
    }
}

@keyframes hintShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 90% {
        transform: translateX(-1px);
    }
    20%, 80% {
        transform: translateX(2px);
    }
    30%, 50%, 70% {
        transform: translateX(-4px);
    }
    40%, 60% {
        transform: translateX(4px);
    }
}

section {
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

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

h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.subtle {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 20px;
}

.example {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.you-label {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.example code {
    background: none;
    font-family: inherit;
}

.agent-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    min-height: 168px;
}

.agent-block p {
    margin: 0 0 14px;
}

.agent-block p:last-child {
    margin-bottom: 0;
}

.agent-content {
    opacity: 1;
    transition: opacity 0.45s ease;
}

.agent-content.fading {
    opacity: 0;
}

.cursor {
    display: inline-block;
    width: 1px;
    margin-left: 2px;
    color: var(--accent);
    animation: blink 0.9s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.thinking {
    color: var(--muted);
    font-size: 0.9rem;
}

.dots span {
    animation: dotfade 1.2s infinite;
    opacity: 0.2;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotfade {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

.answer {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.feature-list .txt strong {
    font-weight: 600;
}

.feature-list .txt span {
    color: var(--muted);
    font-size: 0.92rem;
}

.start-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.start-list li {
    margin-bottom: 6px;
}

footer {
    padding: 32px 0 56px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

footer a {
    color: var(--muted);
    text-decoration: underline;
}

footer .sep {
    margin: 0 8px;
}
