:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --card-border: #222222;
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Background Effect */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.2;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.dot {
    color: var(--primary);
}

.links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    /* Changed from inline-flex to flex for better control */
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Take full height to align properly */
}

/* Remove separate margins since we use gap in parent */
.links a:hover {
    color: var(--text-main);
}

.github-link {
    display: flex;
    align-items: center;
    padding-top: 3px;
    /* Micro-adjustment for visual optical alignment if SVG baseline differs */
}

.github-link i {
    width: 20px;
    height: 20px;
    display: block;
    /* Removes inline SVG alignment quirks */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 0;
    /* Add top padding to account for fixed navbar */
    position: relative;
    max-width: 1000px;
    /* Limit width to keep text readable */
    margin: 0 auto;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 2rem;
    /* Increased spacing slightly */
    animation: fadeInDown 0.8s ease-out;
    display: inline-block;
}

h1 {
    font-size: 4.5rem;
    /* Slightly larger */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease-out;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    /* Centered with auto margins */
    line-height: 1.5;
    /* Better readability */
    animation: fadeInUp 1s ease-out;
    font-weight: 400;
}

/* Install Box */
.install-box {
    background: #111;
    /* Darker background */
    border: 1px solid #333;
    padding: 1rem 2rem;
    border-radius: 12px;
    /* Smoother corners */
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Subtle depth */
}

.install-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.15);
}

.prompt {
    color: var(--primary);
    user-select: none;
    font-weight: 700;
}

.command {
    font-size: 1.1rem;
    color: #e5e5e5;
}

.copy-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    padding: 4px;
}

.copy-btn:hover {
    color: var(--text-main);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    /* More space between buttons */
    animation: fadeInUp 1.4s ease-out;
    justify-content: center;
    /* Explicit centering */
}

.btn {
    padding: 1rem 2rem;
    /* Larger buttons */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: var(--primary);
    color: #000;
}

.btn.primary:hover {
    background: #34d399;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-main);
}

.btn.secondary:hover {
    border-color: var(--text-main);
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.features,
.roadmap {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.version-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    color: #555;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 4px;
}

.version-tag.new {
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

/* Roadmap */
.roadmap {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Adjust for mobile, center usually requires media query logic or flex */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.marker {
    position: absolute;
    left: 11px;
    /* Center over line (20px left + 1px half width - 10px half marker) approx */
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid #555;
    border-radius: 50%;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.marker svg {
    width: 12px;
    height: 12px;
}

.timeline-item.done .marker {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.timeline-item.future .marker {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-item.done h3 {
    color: var(--text-main);
}

.timeline-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding: 4rem 1rem 2rem;
    margin-top: 4rem;
    background: #0a0a0a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.brand h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .links {
        display: none;
        /* Simple hiding for mobile for now, can be improved */
    }

    .timeline::before {
        left: 20px;
    }
}

/* --- Documentation Page Styles --- */

.docs-page {
    background-color: var(--bg-color);
}

.docs-page .navbar {
    position: sticky;
    top: 0;
}

/* Docs Layout */
.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding-top: 80px;
    /* Offset fixed navbar */
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 1rem;
    border-right: 1px solid var(--card-border);
}

/* Hide scrollbar for sidebar but keep functionality */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.sidebar-content h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 1.5rem 0 0.8rem;
    font-weight: 700;
}

.sidebar-content h3:first-child {
    margin-top: 0;
}

.sidebar-content a {
    display: block;
    color: #bbb;
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.sidebar-content a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-content a.active-link {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    border-left-color: var(--primary);
}

/* Main Content Area */
.docs-content {
    padding: 2rem 4rem 4rem 2rem;
    max-width: 900px;
    /* Readability limit */
}

/* Typography for Docs */
.docs-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.docs-content .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.docs-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    scroll-margin-top: 100px;
    /* Scroll offset */
}

.docs-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    scroll-margin-top: 100px;
}

.docs-content p,
.docs-content li {
    font-size: 1.05rem;
    color: #ccc;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* Feature Grid Mini */
.feature-grid-mini {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feat-item svg {
    width: 18px;
    height: 18px;
}

/* Step List */
.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 2rem;
    height: 2rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 50%;
    text-align: center;
    line-height: 1.9rem;
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.step-list strong {
    color: var(--text-main);
}

/* Code Blocks */
.code-block {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    position: relative;
    margin: 1.5rem 0;
    padding: 1.2rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: var(--font-mono);
    color: #e5e5e5;
    font-size: 0.9rem;
}

.copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}

.code-block:hover .copy-code {
    opacity: 1;
}

.copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copy-code svg {
    width: 16px;
    height: 16px;
}

/* Inline Code */
p code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: #ddd;
}

/* Table */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #222;
}

.docs-table th {
    background: #1a1a1a;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.docs-table code {
    color: var(--primary);
}

/* Responsive Docs */
@media (max-width: 900px) {
    .docs-container {
        grid-template-columns: 1fr;
        /* Stack sidebar on top or hide it */
        padding-top: 60px;
    }

    .sidebar {
        display: none;
        /* For simplicity on mobile, or could become a drawer */
    }

    .docs-content {
        padding: 1rem;
    }
}

/* Feature Lists in Cards */
.feature-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.feature-list li::before {
    content: "->";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Code Showcase Example */
.code-showcase-section {
    padding: 2rem 0 6rem;
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.code-showcase-container {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.code-header {
    background: #252526;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-header .dot.red {
    background: #ff5f56;
}

.code-header .dot.yellow {
    background: #ffbd2e;
}

.code-header .dot.green {
    background: #27c93f;
}

.code-header .filename {
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #999;
}

.code-showcase-container pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-showcase-container code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #d4d4d4;
    line-height: 1.5;
}

/* Simple Syntax Highlighting for the demo */
.key {
    color: #9cdcfe;
}

.string {
    color: #ce9178;
}

.number {
    color: #b5cea8;
}