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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #fff;
}

.tagline {
    font-size: 1.1rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Stats bar */
.stats-bar {
    text-align: center;
    padding: 0.8rem;
    background: #12121a;
    border-top: 1px solid #1a1a2e;
    border-bottom: 1px solid #1a1a2e;
    font-size: 0.95rem;
    color: #777;
}

#stats-count {
    color: #6c9bff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Demo section */
.demo-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.demo-section h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #aaa;
    margin-bottom: 1rem;
}

/* Canned query buttons */
.canned-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.canned-btn {
    padding: 0.6rem 1.2rem;
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    border-radius: 6px;
    color: #c0c0e0;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.canned-btn:hover {
    background: #252545;
    border-color: #4a4a8e;
    color: #fff;
}

.canned-btn.active {
    background: #2a2a5e;
    border-color: #6c9bff;
    color: #fff;
}

.canned-cta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.canned-cta a {
    color: #6c9bff;
    text-decoration: none;
}

.canned-cta a:hover {
    text-decoration: underline;
}

/* Subscriber search */
.subscriber-search {
    margin-bottom: 1.5rem;
}

#search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #12121a;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.15s;
}

#search-input:focus {
    border-color: #6c9bff;
}

/* Results */
.results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.result-card {
    padding: 0.8rem 1rem;
    background: #12121a;
    border: 1px solid #1a1a2e;
    border-radius: 6px;
    transition: border-color 0.15s;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card:hover {
    border-color: #2a2a4e;
}

.result-content {
    color: #ddd;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    word-break: break-word;
}

.result-meta {
    font-size: 0.8rem;
    color: #666;
}

.result-similarity {
    color: #6c9bff;
    font-weight: 500;
}

.search-status {
    text-align: center;
    color: #555;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Subscriber toggle */
.subscriber-toggle {
    max-width: 800px;
    margin: 1rem auto 2rem;
    padding: 0 1.5rem;
}

#key-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.key-prompt {
    color: #666;
    font-size: 0.9rem;
}

#api-key-input {
    padding: 0.4rem 0.7rem;
    background: #12121a;
    border: 1px solid #2a2a4e;
    border-radius: 4px;
    color: #c0c0e0;
    font-size: 0.85rem;
    width: 200px;
    outline: none;
}

#api-key-input:focus {
    border-color: #6c9bff;
}

#key-submit, #key-clear {
    padding: 0.4rem 0.8rem;
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    border-radius: 4px;
    color: #c0c0e0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

#key-submit:hover, #key-clear:hover {
    background: #252545;
    color: #fff;
}

#key-status {
    font-size: 0.85rem;
    color: #e55;
}

.key-active-label {
    color: #5a5;
    font-size: 0.9rem;
}

/* Pitch section */
.pitch {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.pitch h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #aaa;
    margin-bottom: 1rem;
}

.pitch p {
    color: #999;
    margin-bottom: 1rem;
}

.pitch em {
    color: #bbb;
    font-style: italic;
}

.pitch strong {
    color: #ccc;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.feature {
    padding: 1.2rem;
    background: #12121a;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
}

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

.feature p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

/* Get Access */
.get-access {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #12121a;
    border-top: 1px solid #1a1a2e;
    border-bottom: 1px solid #1a1a2e;
}

.get-access h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #aaa;
    margin-bottom: 0.8rem;
}

.get-access p {
    color: #777;
    margin-bottom: 1.2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: #2a2a5e;
    border: 1px solid #4a4a8e;
    border-radius: 6px;
    color: #c0c0ff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.15s;
}

.cta-button:hover {
    background: #3a3a7e;
    color: #fff;
}

/* Footer */
footer {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a2e;
}

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

footer a:hover {
    color: #88a;
}

.footer-sep {
    color: #333;
    margin: 0 0.3rem;
}

.footer-tech {
    color: #333;
    font-size: 0.8rem;
}

.get-access-alt {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.get-access-alt a {
    color: #6c9bff;
    text-decoration: none;
}

.get-access-alt a:hover {
    text-decoration: underline;
}
