@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* =========================================================
   1) RESET / GLOBAL
========================================================= */

:root {
    --ink: #0a0a0f;
    --ink-soft: #3d3d4a;
    --ink-muted: #8888a0;
    --surface: #f7f7fb;
    --surface-2: #ededf5;
    --accent: #7c3aed;
    --accent-alt: #5b4fff;
    --accent-light: #f0e8ff;
    --accent-glow: rgba(124, 58, 237, 0.15);
    --green: #00c896;
    --gold: #d4a017;
    --gold-light: #f7e070;
    --border: rgba(124, 58, 237, 0.12);
    --border-alt: rgba(91, 79, 255, 0.12);
    --danger: #e50000;
    --danger-dark: #b32121;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--surface);
    color: var(--ink);
    overflow-x: hidden;
}

a,
.btn-link {
    color: #006bb7;
    text-decoration: none;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* =========================================================
   2) GENERIC FORMS / BUTTONS / VALIDATION
========================================================= */

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid var(--danger);
}

.validation-message {
    color: var(--danger);
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================================
   3) BLAZOR
========================================================= */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem / 1.8rem, var(--danger-dark);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* =========================================================
   4) DOCS PAGE
========================================================= */

.docs-page {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--surface);
    min-height: 100vh;
    color: var(--ink);
    width: 100vw;
}

.docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(247, 247, 251, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-alt);
}

.docs-nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .docs-nav-logo span {
        background: var(--accent-alt);
        color: white;
        font-family: 'DM Mono', monospace;
        font-size: 0.6rem;
        padding: 2px 6px;
        border-radius: 4px;
    }

.docs-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

    .docs-nav-links a {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--ink-soft);
        transition: color 0.2s;
    }

        .docs-nav-links a:hover,
        .docs-nav-links a.active {
            color: var(--accent-alt);
        }

.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    padding-top: 60px;
    width: 100%;
}

.docs-sidebar {
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-alt);
    background: white;
}

.docs-sidebar-group {
    margin-bottom: 2rem;
}

.docs-sidebar-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'DM Mono', monospace;
}

.docs-sidebar-link {
    display: block;
    width: 100%;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--ink-soft);
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

    .docs-sidebar-link:hover,
    .docs-sidebar-link.active {
        background: #ede9ff;
        color: var(--accent-alt);
    }

    .docs-sidebar-link.active {
        font-weight: 600;
    }

.docs-content {
    padding: 3rem 4rem;
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
}

.docs-section-badge {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent-alt);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.docs-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.docs-h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-alt);
}

.docs-h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.docs-p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.docs-lead {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.docs-code {
    background: #282c34;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    position: relative;
    overflow-x: auto;
    color: #abb2bf;
}

    .docs-code pre {
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .docs-code code {
        background: transparent !important;
        padding: 0 !important;
        font-size: 0.8rem !important;
        line-height: 1.85 !important;
        font-family: 'DM Mono', monospace !important;
    }

.docs-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-code-filename {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.docs-code-copy {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: 'DM Mono', monospace;
    transition: all 0.2s;
}

    .docs-code-copy:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }

.ic {
    font-family: 'DM Mono', monospace;
    font-size: 0.82em;
    background: #ede9ff;
    color: var(--accent-alt);
    padding: 1px 6px;
    border-radius: 4px;
}

.docs-callout {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .docs-callout.info {
        background: rgba(91, 79, 255, 0.06);
        border: 1px solid rgba(91, 79, 255, 0.15);
    }

    .docs-callout.tip {
        background: rgba(0, 200, 150, 0.06);
        border: 1px solid rgba(0, 200, 150, 0.2);
    }

    .docs-callout.warn {
        background: rgba(255, 180, 0, 0.06);
        border: 1px solid rgba(255, 180, 0, 0.2);
    }

.docs-callout-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.docs-callout p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    color: var(--ink-soft);
}

    .docs-callout p strong {
        color: var(--ink);
    }

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

    .docs-table th {
        text-align: left;
        padding: 8px 12px;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--ink-muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        border-bottom: 1px solid var(--border-alt);
    }

    .docs-table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--border-alt);
        color: var(--ink-soft);
        vertical-align: top;
        line-height: 1.5;
    }

    .docs-table tr:last-child td {
        border-bottom: none;
    }

    .docs-table td:first-child {
        color: var(--ink);
        font-weight: 500;
    }

.docs-steps {
    counter-reset: step;
}

.docs-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.docs-step-num {
    counter-increment: step;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-alt);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.docs-step-content {
    flex: 1;
}

.docs-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
}

.field-chip {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    border: 1px solid var(--border-alt);
    background: white;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .field-chip strong {
        color: var(--ink);
    }

.docs-divider {
    border: none;
    border-top: 1px solid var(--border-alt);
    margin: 3rem 0;
}

.docs-tab-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-alt);
    background: white;
    color: var(--ink-soft);
    font-family: 'Space Grotesk', sans-serif;
}

    .docs-tab-btn.active {
        background: var(--accent-alt);
        color: white;
        border-color: var(--accent-alt);
    }

.docs-badge-soon {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--warning);
    color: white;
    vertical-align: middle;
    margin-left: 4px;
}

/* =========================================================
   5) DEMO PAGE
========================================================= */

.demo-page {
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    background: var(--surface);
}

.demo-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 60px;
    background: rgba(247, 247, 251, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.demo-nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

    .demo-nav-links a {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--ink-soft);
        transition: color 0.2s;
    }

        .demo-nav-links a:hover {
            color: var(--accent);
        }

.demo-header {
    padding: 100px 2.5rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0e8ff;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.demo-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.1;
}

    .demo-title span {
        color: var(--accent);
    }

.demo-sub {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.demo-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.demo-selector-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    background: white;
    color: var(--ink-muted);
    font-family: 'Space Grotesk', sans-serif;
}

    .demo-selector-btn.active {
        background: var(--accent);
        color: white;
        border-color: var(--accent);
    }

.demo-tabs {
    display: inline-flex;
    gap: 4px;
    background: white;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.demo-tab {
    padding: 8px 20px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    font-family: 'Space Grotesk', sans-serif;
}

    .demo-tab.active {
        background: var(--accent);
        color: white;
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    }

.demo-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2.5rem 6rem;
}

.demo-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(10, 10, 15, 0.08);
}

.demo-card-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #f0f0f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.demo-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.demo-card-body {
    padding: 2rem 1.75rem;
}

.demo-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

    .demo-mode-badge.edit {
        background: rgba(124, 58, 237, 0.1);
        color: var(--accent);
        border: 1px solid rgba(124, 58, 237, 0.2);
    }

    .demo-mode-badge.view {
        background: rgba(0, 200, 150, 0.1);
        color: #00a87a;
        border: 1px solid rgba(0, 200, 150, 0.2);
    }

    .demo-mode-badge.code {
        background: rgba(255, 203, 107, 0.15);
        color: #b87a00;
        border: 1px solid rgba(255, 203, 107, 0.3);
    }

.demo-hint {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.demo-hint-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.demo-hint p {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

.demo-hint strong {
    color: var(--accent);
}

.demo-result {
    margin-top: 2rem;
    background: #13131a;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.demo-result-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.demo-result-content {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: #c3e88d;
    line-height: 1.8;
}

.code-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.code-block {
    background: #13131a;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
}

.code-copy {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: 'DM Mono', monospace;
    transition: all 0.2s;
}

    .code-copy:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }

.cp {
    color: #c792ea;
}

.cb {
    color: #82aaff;
}

.cg {
    color: #c3e88d;
}

.co {
    color: #ffcb6b;
}

.cm {
    color: rgba(255, 255, 255, 0.25);
}

.cw {
    color: rgba(255, 255, 255, 0.85);
}

.field-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 2rem;
}

.field-type-chip {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    background: #fafafe;
    color: var(--ink-soft);
}

    .field-type-chip span {
        font-size: 0.9rem;
    }

/* =========================================================
   6) FM NAV
========================================================= */

.fm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 60px;
    background: rgba(247, 247, 251, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.fm-nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

    .fm-nav-links a {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--ink-soft);
        transition: color 0.2s;
    }

        .fm-nav-links a:hover,
        .fm-nav-links a.active {
            color: var(--accent);
        }

.fm-btn-nav {
    background: var(--accent);
    color: white !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.2s;
}

    .fm-btn-nav:hover {
        background: #5a32a8 !important;
        color: white !important;
    }

/* =========================================================
   7) FM HERO
========================================================= */

.fm-hero {
    padding: 140px 2.5rem 80px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.fm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 63, 199, 0.2);
    letter-spacing: 0.02em;
}

.fm-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

.fm-hero-title {
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
}

    .fm-hero-title .accent {
        color: var(--accent);
    }

.fm-hero-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.fm-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fm-btn-primary {
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px var(--accent-glow);
    letter-spacing: -0.01em;
}

    .fm-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 30px var(--accent-glow);
        color: white;
    }

.fm-btn-secondary {
    background: white;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--surface-2);
    transition: all 0.2s;
}

    .fm-btn-secondary:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* =========================================================
   8) FM CODE CARD
========================================================= */

.fm-code-card {
    background: #13131a;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(10, 10, 15, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

    .fm-code-card::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 160px;
        height: 160px;
        background: var(--accent-glow);
        border-radius: 50%;
        filter: blur(40px);
    }

.fm-code-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

    .fm-code-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

        .fm-code-dots span:nth-child(1) {
            background: #ff5f57;
        }

        .fm-code-dots span:nth-child(2) {
            background: #ffbd2e;
        }

        .fm-code-dots span:nth-child(3) {
            background: #28c840;
        }

.fm-code-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.fm-code {
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

    .fm-code .c-purple {
        color: #c792ea;
    }

    .fm-code .c-green {
        color: #c3e88d;
    }

    .fm-code .c-blue {
        color: #82aaff;
    }

    .fm-code .c-gray {
        color: rgba(255, 255, 255, 0.25);
    }

.fm-vs-card {
    margin-top: 1rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-vs-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fm-vs-text {
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

    .fm-vs-text strong {
        color: var(--ink);
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 2px;
        letter-spacing: -0.01em;
    }

/* =========================================================
   9) FM STATS / SECTIONS
========================================================= */

.fm-stats {
    background: #13131a;
    padding: 2.5rem 0;
    display: flex;
    justify-content: center;
}

.fm-stat {
    text-align: center;
    padding: 0 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

    .fm-stat:last-child {
        border-right: none;
    }

.fm-stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: white;
    display: block;
}

.fm-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
    display: block;
}

.fm-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2.5rem;
}

.fm-section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.fm-section-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.fm-section-sub {
    font-size: 0.95rem;
    color: var(--ink-soft);
    max-width: 480px;
    line-height: 1.65;
    margin-bottom: 3.5rem;
}

/* =========================================================
   10) FM STEPS
========================================================= */

.fm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

    .fm-steps::before {
        content: '';
        position: absolute;
        top: 32px;
        left: calc(16.66% + 1rem);
        right: calc(16.66% + 1rem);
        height: 2px;
        background: var(--border);
    }

.fm-step {
    text-align: center;
    position: relative;
}

.fm-step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s;
}

.fm-step:hover .fm-step-number {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: scale(1.08);
}

.fm-step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.fm-step p {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

.fm-step-code {
    margin-top: 1rem;
    background: #13131a;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

    .fm-step-code .c-purple {
        color: #c792ea;
    }

    .fm-step-code .c-green {
        color: #c3e88d;
    }

    .fm-step-code .c-blue {
        color: #82aaff;
    }

/* =========================================================
   11) FM FEATURES / TYPES
========================================================= */

.fm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.fm-feature {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    transition: all 0.2s;
}

    .fm-feature:hover {
        border-color: var(--accent);
        box-shadow: 0 4px 20px var(--accent-glow);
        transform: translateY(-2px);
    }

.fm-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.fm-feature h3 {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.fm-feature p {
    font-size: 0.83rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.fm-types-band {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
}

.fm-types-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

    .fm-types-inner .fm-section-sub {
        margin: 0 auto 2.5rem;
    }

.fm-types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.fm-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all 0.2s;
}

    .fm-type-pill:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-light);
    }

    .fm-type-pill span {
        font-family: 'DM Mono', monospace;
        font-size: 0.7rem;
        color: var(--ink-muted);
    }

/* =========================================================
   12) FM COMPARE
========================================================= */

.fm-compare {
    background: #13131a;
    padding: 6rem 2.5rem;
}

.fm-compare-inner {
    max-width: 1100px;
    margin: 0 auto;
}

    .fm-compare-inner .fm-section-label {
        color: rgba(255, 255, 255, 0.3);
    }

    .fm-compare-inner .fm-section-title {
        color: white;
    }

    .fm-compare-inner .fm-section-sub {
        color: rgba(255, 255, 255, 0.4);
    }

.fm-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.fm-compare-card {
    border-radius: 14px;
    padding: 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.85;
}

    .fm-compare-card.before {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .fm-compare-card.after {
        background: rgba(108, 63, 199, 0.1);
        border: 1px solid rgba(108, 63, 199, 0.25);
    }

.fm-compare-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .fm-compare-header.before {
        color: rgba(255, 255, 255, 0.25);
    }

    .fm-compare-header.after {
        color: #b08aff;
    }

.fm-compare-card .c-purple {
    color: #c792ea;
}

.fm-compare-card .c-green {
    color: #c3e88d;
}

.fm-compare-card .c-blue {
    color: #82aaff;
}

.fm-compare-card.before .code {
    color: rgba(255, 255, 255, 0.4);
}

.fm-compare-card.after .code {
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   13) FM PRICING
========================================================= */

.fm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.fm-price-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.2s;
}

    .fm-price-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    }

    .fm-price-card.featured {
        border-color: var(--accent);
        box-shadow: 0 4px 20px var(--accent-glow);
    }

.fm-price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fm-plan-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.fm-plan-price {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.25rem;
}

    .fm-plan-price span {
        font-size: 0.95rem;
        font-weight: 400;
        color: var(--ink-muted);
        letter-spacing: 0;
    }

.fm-plan-renewal {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.fm-plan-desc {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-2);
    line-height: 1.55;
}

.fm-plan-features {
    list-style: none;
}

    .fm-plan-features li {
        font-size: 0.82rem;
        color: var(--ink-soft);
        padding: 5px 0;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

        .fm-plan-features li::before {
            content: '✓';
            color: var(--green);
            font-weight: 700;
            flex-shrink: 0;
        }

.fm-plan-btn {
    display: block;
    text-align: center;
    margin-top: 1.75rem;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.2s;
}

    .fm-plan-btn.outline {
        border: 1px solid var(--border);
        color: var(--ink);
    }

        .fm-plan-btn.outline:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

    .fm-plan-btn.filled {
        background: var(--accent);
        color: white;
        box-shadow: 0 4px 15px var(--accent-glow);
    }

        .fm-plan-btn.filled:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 25px var(--accent-glow);
            color: white;
        }

/* =========================================================
   14) FM TECH / CTA / FOOTER
========================================================= */

.fm-tech-band {
    background: #13131a;
    padding: 3rem 2.5rem;
    text-align: center;
}

.fm-tech-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.fm-tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.fm-tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

    .fm-tech-item:hover {
        color: rgba(255, 255, 255, 0.7);
    }

.fm-cta {
    background: var(--accent);
    padding: 5rem 2.5rem;
    text-align: center;
}

.fm-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.fm-cta-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 2rem;
    max-width: 420px;
    line-height: 1.6;
}

.fm-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.fm-btn-white {
    background: white;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.2s;
}

    .fm-btn-white:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.fm-btn-ghost {
    background: transparent;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

    .fm-btn-ghost:hover {
        border-color: white;
    }

.fm-footer {
    background: #13131a;
    padding: 3rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fm-footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-footer-links {
    display: flex;
    gap: 2rem;
}

    .fm-footer-links a {
        font-size: 0.82rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.35);
        transition: color 0.2s;
    }

        .fm-footer-links a:hover {
            color: white;
        }

.fm-footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   15) RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .fm-hero {
        grid-template-columns: 1fr;
        padding: 100px 1.5rem 60px;
    }

    .fm-features-grid,
    .fm-compare-grid,
    .fm-pricing-grid,
    .fm-steps,
    .field-types-grid,
    .field-grid,
    .docs-layout {
        grid-template-columns: 1fr;
    }

        .fm-steps::before {
            display: none;
        }

    .fm-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .fm-stat {
        border-right: none;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

        .fm-stat:last-child {
            border-bottom: none;
        }

    .fm-tech-logos {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .fm-footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .fm-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .docs-content,
    .demo-container,
    .demo-header,
    .fm-section,
    .fm-compare,
    .fm-types-band,
    .fm-tech-band,
    .fm-cta,
    .fm-footer,
    .fm-nav,
    .demo-nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-alt);
    }
}

.fm-page {
    animation: fmPageIn 0.35s ease-out both;
}

@keyframes fmPageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}