/* The Mandarin Landing Page - Terminal Theme */

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

body {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    min-height: 100vh;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 1rem 0 3rem 0;
}

.duck-logo {
    font-size: 80px;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: #8b949e;
}

/* Download Button */
.download-section {
    margin-top: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #238636;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #2ea043;
}

.download-btn:hover {
    background: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35, 134, 54, 0.4);
}

.requirements {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #8b949e;
}

.requirements a {
    color: #58a6ff;
    text-decoration: none;
}

.requirements a:hover {
    text-decoration: underline;
}

/* Terminal Demo */
.demo-section {
    padding: 2rem 0;
}

.terminal {
    background: #161b22;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.terminal-header {
    background: #21262d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #f85149; }
.btn-minimize { background: #f0883e; }
.btn-maximize { background: #3fb950; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #8b949e;
}

/* Session Bar */
.session-bar {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.session-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    background: #238636;
    border: 1px solid #2ea043;
    color: white;
}

.session-item.logged-in .status-dot {
    background: white;
    box-shadow: 0 0 6px white;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Messages */
.terminal-body {
    padding: 16px;
    min-height: 280px;
}

.message {
    display: flex;
    gap: 8px;
    line-height: 1.5;
    padding: 4px 0;
    font-size: 14px;
}

.message .prefix {
    color: #3fb950;
    font-weight: bold;
    width: 16px;
    flex-shrink: 0;
}

.message .content {
    flex: 1;
}

.message.user .prefix { color: #3fb950; }
.message.user .content { color: #58a6ff; }
.message.assistant .content { color: #c9d1d9; }
.message.system .content { color: #8b949e; }

.message.tool-call {
    background: #21262d;
    border-radius: 6px;
    padding: 8px 12px;
    border-left: 3px solid #f0883e;
    margin: 4px 0;
}

.tool-icon { margin-right: 8px; }
.tool-name { color: #f0883e; font-weight: 600; }

/* Terminal Input */
.terminal-input {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #21262d;
    border-top: 1px solid #30363d;
    gap: 8px;
}

.terminal-input .prompt {
    color: #3fb950;
    font-weight: bold;
}

.terminal-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #484f58;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 0;
}

.terminal-input button {
    background: #30363d;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: #8b949e;
    display: flex;
    align-items: center;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
}

.feature {
    background: #161b22;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #30363d;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature h3 {
    color: #c9d1d9;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-example {
    color: #8b949e;
    font-size: 0.85rem;
    font-style: italic;
}

/* Setup Steps */
.setup {
    padding: 3rem 0;
}

.setup h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #c9d1d9;
}

.steps {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 250px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #238636;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #c9d1d9;
}

.step-content p {
    font-size: 0.85rem;
    color: #8b949e;
}

/* FAQ */
.faq {
    padding: 3rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #c9d1d9;
}

.faq details {
    background: #161b22;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #30363d;
}

.faq summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: #c9d1d9;
}

.faq summary:hover {
    color: #58a6ff;
}

.faq details p {
    padding: 0 1.5rem 1rem;
    color: #8b949e;
    font-size: 0.9rem;
}

.faq a {
    color: #58a6ff;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #30363d;
    margin-top: 2rem;
}

footer p {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

footer a {
    color: #58a6ff;
    text-decoration: none;
}

.powered-by {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .duck-logo {
        font-size: 60px;
    }
}
