/* Hero section */
.hero {
    text-align: center;
    padding: 4em 1em 2em;
}

.hero h1 {
    font-family: "BOLD";
    font-size: clamp(2em, 5vw, 4em);
    line-height: 1.1;
    margin-bottom: 0.3em;
}

.hero p {
    font-size: clamp(1em, 2vw, 1.3em);
    color: rgba(0, 0, 0, 0.55);
    max-width: 700px;
    margin: 0 auto 1.5em;
}

.hero-ctas {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5em;
}

/* Features grid */
.features-section {
    padding: 4em 1em;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 0.5em;
}

.features-section > p {
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto 2em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2em;
    border-radius: 1em;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.feature-card:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.feature-card .icon {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.feature-card h3 {
    font-family: "BOLD";
    font-size: 1.15em;
    margin-bottom: 0.3em;
    color: rgba(0, 0, 0, 0.9);
}

.feature-card p {
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 4em 1em;
    margin: 2em 0;
    border-radius: 1em;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.03));
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.cta-section h2 {
    margin-bottom: 0.3em;
}

.cta-section p {
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 1.5em;
}

/* How it works */
.how-it-works {
    padding: 4em 1em;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 1.5em;
}

.steps {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 1.5em;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    font-family: "BOLD";
    font-size: 1.2em;
    margin-bottom: 0.8em;
}

.step h3 {
    font-family: "BOLD";
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 0.3em;
}

.step p {
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.9em;
    margin: 0;
}

/* ── Docs pages ─────────────────────────────────────────── */

.docs-layout {
    display: flex;
    gap: 2em;
    padding: 2em 1em 4em;
    align-items: flex-start;
}

.docs-sidebar {
    flex-shrink: 0;
    width: 200px;
    position: sticky;
    top: calc(var(--header-height) + 1.5em);
}

.docs-sidebar-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0,0,0,0.35);
    padding: 0 0.5em 0.6em;
    font-family: "BOLD";
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6em;
    width: 100%;
    padding: 0.6em 0.8em;
    border-radius: 0.5em;
    font-size: 0.95em;
    color: rgba(0,0,0,0.55);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.docs-nav-link:hover {
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.8) !important;
}

.docs-nav-link.active {
    background: rgba(123, 216, 63, 0.12);
    color: rgba(0,0,0,0.85) !important;
    font-family: "BOLD";
}

.docs-content {
    flex: 1;
    min-width: 0;
}

/* Markdown rendered content */
.markdown-body {
    line-height: 1.7;
    color: rgba(0,0,0,0.8);
}

.markdown-body h1 {
    font-family: "BOLD";
    font-size: 2em;
    margin-bottom: 0.2em;
    color: rgba(0,0,0,0.9);
}

.markdown-body h2 {
    font-family: "BOLD";
    font-size: 1.3em;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: rgba(0,0,0,0.85);
    padding-bottom: 0.3em;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.markdown-body h3 {
    font-family: "BOLD";
    font-size: 1.05em;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
    color: rgba(0,0,0,0.8);
}

.markdown-body p {
    margin-bottom: 0.9em;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.markdown-body li {
    margin-bottom: 0.3em;
}

.markdown-body code {
    font-family: monospace;
    font-size: 0.88em;
    background: rgba(0,0,0,0.05);
    border-radius: 0.25em;
    padding: 0.1em 0.4em;
}

.markdown-body pre {
    background: rgba(0,0,0,0.05);
    border-radius: 0.5em;
    padding: 1em 1.2em;
    overflow-x: auto;
    margin-bottom: 1em;
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1em;
    margin: 1em 0;
    color: rgba(0,0,0,0.5);
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2em;
    font-size: 0.92em;
}

.markdown-body th {
    font-family: "BOLD";
    text-align: left;
    padding: 0.5em 0.8em;
    background: rgba(0,0,0,0.04);
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.markdown-body td {
    padding: 0.45em 0.8em;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.markdown-body a {
    color: var(--color-primary);
}

.markdown-body strong {
    font-family: "BOLD";
}

.markdown-body hr {
    margin: 2em 0;
}

@media screen and (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
        gap: 1em;
        padding: 1em 0.5em 3em;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
        display: flex;
        gap: 0.5em;
    }

    .docs-sidebar-label {
        display: none;
    }

    .docs-nav-link {
        flex: 1;
        justify-content: center;
        border: 1px solid rgba(0,0,0,0.1);
    }
}
