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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

.marketplace-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.marketplace-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marketplace-btn img {
    width: 24px;
    height: 24px;
}

.marketplace-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#query {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#query:focus {
    outline: none;
    border-color: #667eea;
}

#downloadBtn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#downloadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
}

.example {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.example:hover {
    background: #e0e0e0;
}

.status, .result {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status.hidden, .result.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.feature h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
}

.faq {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.faq h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
}

.faq-answer {
    color: #666;
    padding: 10px 0 0 20px;
    display: none;
}

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

footer {
    text-align: center;
    padding: 30px;
    background: #1a1a2e;
    color: white;
    margin-top: 40px;
}

footer nav {
    margin-top: 10px;
}

footer nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
}

footer nav a:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .input-group { flex-direction: column; }
    .marketplace-selector { flex-direction: column; align-items: stretch; }
    .marketplace-btn { justify-content: center; }
}
