:root {
    --fm-bg: #0c111b;
    --fm-bg-elevated: #131b28;
    --fm-surface: #161f2e;
    --fm-border: rgba(226, 232, 240, 0.1);
    --fm-text: #f8fafc;
    --fm-muted: #94a3b8;
    --fm-accent: #3b82f6;
    --fm-accent-hover: #2563eb;
    --fm-radius: 12px;
    --fm-container: 1080px;
    --fm-font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.fm-site {
    margin: 0;
    font-family: var(--fm-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fm-text);
    background: var(--fm-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--fm-accent);
    text-decoration: none;
}

a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.fm-site-container {
    width: min(100% - 2.5rem, var(--fm-container));
    margin-inline: auto;
}

/* Header */
.fm-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(12, 17, 27, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fm-border);
}

.fm-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 68px;
}

.fm-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--fm-text);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: -0.015em;
}

.fm-site-brand:hover {
    text-decoration: none;
    color: var(--fm-text);
}

.fm-site-brand img,
.fm-site-brand-logo {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

.fm-site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.fm-site-nav a {
    color: var(--fm-muted);
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fm-site-nav a[aria-current="page"],
.fm-site-nav a:hover {
    color: var(--fm-text);
}

.fm-site-nav-signin {
    padding: 0.5rem 1rem;
    border: 1px solid var(--fm-border);
    border-radius: 8px;
    color: var(--fm-text) !important;
    background: transparent;
    font-size: 0.875rem !important;
}

.fm-site-nav-signin:hover {
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none !important;
}

.fm-site-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: var(--fm-muted);
}

.fm-site-lang a {
    color: inherit;
}

.fm-site-lang a[aria-current="true"] {
    color: var(--fm-text);
    font-weight: 600;
}

.fm-site-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fm-border);
    border-radius: 8px;
    background: transparent;
    padding: 0;
}

.fm-site-nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 4px auto;
    background: var(--fm-text);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Hero */
.fm-hero {
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid var(--fm-border);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 55%);
}

.fm-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.fm-hero-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fm-accent);
}

.fm-hero-copy h1 {
    margin: 0 0 1.15rem;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.fm-hero-lead {
    margin: 0 0 2rem;
    max-width: 52ch;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--fm-muted);
}

.fm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fm-btn:hover {
    text-decoration: none;
}

.fm-btn-primary {
    background: var(--fm-accent);
    color: #fff;
}

.fm-btn-primary:hover {
    background: var(--fm-accent-hover);
    color: #fff;
}

.fm-btn-secondary {
    border-color: var(--fm-border);
    color: var(--fm-text);
    background: transparent;
}

.fm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--fm-text);
}

/* Hero showcase card */
.fm-hero-showcase {
    padding: 1.75rem;
    border-radius: var(--fm-radius);
    border: 1px solid var(--fm-border);
    background: var(--fm-bg-elevated);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.fm-hero-showcase-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--fm-border);
}

.fm-hero-showcase-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.fm-hero-showcase-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fm-text);
}

.fm-hero-showcase-sub {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    color: var(--fm-muted);
}

.fm-hero-showcase-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.fm-hero-showcase-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.fm-hero-showcase-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fm-accent);
}

.fm-hero-showcase-foot {
    margin: 1.35rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--fm-border);
    font-size: 0.8125rem;
    color: var(--fm-muted);
    letter-spacing: 0.02em;
}

/* Sections */
.fm-section {
    padding: 4rem 0;
}

.fm-section-muted {
    background: var(--fm-bg-elevated);
    border-block: 1px solid var(--fm-border);
}

.fm-section-intro {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.fm-section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.fm-section-title::after {
    display: none;
}

.fm-section-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fm-muted);
}

.fm-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.fm-feature-card,
.fm-contact-card,
.fm-audience-card {
    padding: 1.5rem;
    border-radius: var(--fm-radius);
    border: 1px solid var(--fm-border);
    background: var(--fm-surface);
}

.fm-feature-card h3,
.fm-audience-card h3,
.fm-contact-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--fm-text);
}

.fm-feature-card p,
.fm-audience-card p,
.fm-page-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--fm-muted);
}

.fm-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* CTA */
.fm-cta-band {
    padding-bottom: 4.5rem;
}

.fm-cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.25rem;
    border-radius: var(--fm-radius);
    border: 1px solid var(--fm-border);
    background: var(--fm-bg-elevated);
}

.fm-cta-band-inner h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.fm-cta-band-inner p {
    margin: 0.5rem 0 0;
    max-width: 48ch;
    font-size: 0.9375rem;
    color: var(--fm-muted);
}

.fm-cta-band-inner .fm-btn-primary {
    flex-shrink: 0;
}

/* Inner pages */
.fm-page {
    padding-top: 0.5rem;
}

.fm-page::before {
    display: none;
}

.fm-page-content {
    max-width: 720px;
}

.fm-page-content--wide {
    max-width: 960px;
}

.fm-product-screenshot {
    margin: 2rem 0 2.5rem;
    padding: 0;
    border-radius: var(--fm-radius);
    border: 1px solid var(--fm-border);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.fm-product-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.fm-product-screenshot figcaption {
    margin: 0;
    padding: 0.85rem 1.15rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--fm-muted);
    background: var(--fm-bg-elevated);
    border-top: 1px solid var(--fm-border);
}

.fm-page-lead {
    font-size: 1.0625rem;
    color: var(--fm-muted);
}

.fm-checklist {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    color: var(--fm-muted);
}

.fm-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.fm-contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.fm-contact-link {
    font-weight: 600;
    word-break: break-all;
}

/* Legal */
.fm-legal-content h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.625rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.fm-legal-content h1::after {
    display: none;
}

.fm-legal-content h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--fm-text);
}

.fm-legal-content p,
.fm-legal-content li {
    color: var(--fm-muted);
    line-height: 1.75;
    text-align: justify;
    hyphens: auto;
}

.fm-legal-content ul {
    margin: 0.75rem 0 1rem;
    padding-left: 1.25rem;
}

.fm-legal-content li + li {
    margin-top: 0.5rem;
}

.fm-legal-meta {
    margin: 0 0 1.75rem;
    font-size: 0.875rem;
    color: var(--fm-muted);
}

.fm-legal-highlight {
    color: var(--fm-text);
    font-weight: 600;
}

.fm-legal-contact {
    margin: 1.5rem 0 2rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--fm-radius);
    border: 1px solid var(--fm-border);
    background: var(--fm-surface);
}

.fm-legal-contact p {
    margin: 0.35rem 0;
}

.fm-legal-copy {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fm-border);
    font-size: 0.875rem;
    color: var(--fm-muted);
}

/* Footer */
.fm-site-footer {
    border-top: 1px solid var(--fm-border);
    padding: 2.25rem 0 2.5rem;
    background: var(--fm-bg);
}

.fm-site-footer-inner {
    display: grid;
    gap: 1.25rem;
}

.fm-site-footer strong {
    font-size: 0.9375rem;
    font-weight: 600;
}

.fm-site-footer p {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--fm-muted);
}

.fm-site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.fm-site-footer-nav a {
    font-size: 0.875rem;
    color: var(--fm-muted);
    text-decoration: none;
}

.fm-site-footer-nav a:hover {
    color: var(--fm-text);
}

.fm-site-footer-copy {
    font-size: 0.8125rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .fm-hero-grid,
    .fm-feature-grid,
    .fm-contact-cards,
    .fm-audience-grid {
        grid-template-columns: 1fr;
    }

    .fm-cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .fm-site-nav-toggle {
        display: inline-block;
    }

    .fm-site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        background: var(--fm-bg);
        border-bottom: 1px solid var(--fm-border);
    }

    .fm-site-header-inner {
        position: relative;
    }

    body.fm-site-nav-open .fm-site-nav {
        display: flex;
    }
}
