:root {
    --color-bg: #000000;
    --color-text: #e0e0e0;
    --color-primary: #32f08c;
    --color-primary-hover: #28d078;
    --color-surface: #111111;
    --color-border: #333333;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-hover);
}

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

/* Header */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn {
    display: inline-block;
    background: var(--color-primary);
    color: #000;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 240, 140, 0.3);
    color: #000;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--color-primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.tag {
    display: inline-block;
    background: rgba(50, 240, 140, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
}

/* Docs */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    color: #888;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.content h1 {
    font-size: 2.5rem; 
    margin-bottom: 2rem; 
    color: #fff;
}

.content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #fff;
}

.content p {
    margin-bottom: 1rem;
    color: #ccc;
}

.content ul, .content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.content li {
    margin-bottom: 0.5rem;
}

.content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--color-primary);
}

/* FAQ Section */
.faq-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #555;
}

.faq-header {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background-color: var(--color-surface) !important; /* Force background */
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-sans); /* Ensure font consistency */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    outline: none; /* Remove focus outline */
}

.faq-header:hover {
    color: var(--color-primary);
    background-color: var(--color-surface); /* Keep background consistent */
}

.faq-content {
    padding: 0 1.5rem 1.5rem; /* Remove top padding to close gap */
    color: #ccc;
    border-top: 1px solid transparent; /* Hidden by default */
    line-height: 1.7;
    background-color: var(--color-surface);
}

/* Add border only when open if needed, or rely on item border */
[x-show="open"] .faq-content {
    border-top-color: var(--color-border);
    padding-top: 1rem;
}

.faq-content p {
    margin-bottom: 1rem;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

.faq-content ol, .faq-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #666;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}
