/* Marketing site shell: header, mega menu, footer and shared page blocks */

:root {
    --mk-blue: #0077D8;
    --mk-blue-dark: #005BA6;
    --mk-blue-50: #EFF6FF;
    --mk-ink: #0F172A;
    --mk-muted: #4B5563;
    --mk-border: #E5E7EB;
    --mk-orange: #E39943;
    --mk-header-height: 72px;
}

body.landing-body {
    margin-bottom: 0;
}

body.mk-no-scroll {
    overflow: hidden;
}

.mk-footer a:not(.btn):hover,
.mk-industry-card:hover,
.mk-cta-band a:not(.btn):hover {
    color: #fff !important;
}

a.mk-card:hover,
.mk-mega-link:hover {
    color: inherit !important;
}

.landing-body h1,
.landing-body h2,
.landing-body h3,
.landing-body h4 {
    color: var(--mk-ink);
    letter-spacing: -0.01em;
}

.mk-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--mk-blue);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.5rem 0;
}

.mk-skip-link:focus {
    left: 0;
    color: #fff;
}

/* Header */
.mk-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mk-header.is-scrolled {
    border-color: var(--mk-border);
    box-shadow: 0 4px 20px -12px rgba(15, 23, 42, 0.25);
}

.mk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--mk-header-height);
    gap: 1.5rem;
}

.mk-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.mk-nav {
    display: none;
    height: 100%;
    flex: 1;
}

.mk-nav-list {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mk-nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.mk-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.975rem;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.mk-nav-trigger:hover,
.mk-nav-item.is-open .mk-nav-trigger {
    color: var(--mk-blue);
    background: var(--mk-blue-50);
    text-decoration: none;
}

.mk-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.mk-nav-item.is-open .mk-chevron {
    transform: rotate(180deg);
}

.mk-mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--mk-border);
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.25);
    padding: 2rem 0 2.25rem;
}

.mk-nav-item.is-open .mk-mega {
    display: block;
    animation: mkFadeDown 0.16s ease-out;
}

@keyframes mkFadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mk-mega-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
}

.mk-mega-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.mk-mega-grid {
    display: grid;
    gap: 0.25rem 1.5rem;
}

.mk-mega-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mk-mega-link {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.7rem 0.75rem;
    border-radius: 0.75rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mk-mega-link:hover {
    background: #F8FAFC;
    text-decoration: none;
    color: inherit;
}

.mk-mega-link:hover .mk-mega-title {
    color: var(--mk-blue);
}

.mk-mega-link-compact {
    padding: 0.55rem 0.75rem;
    align-items: center;
}

.mk-mega-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: var(--mk-blue-50);
    color: var(--mk-blue);
}

.mk-mega-icon svg {
    width: 18px;
    height: 18px;
}

.mk-mega-title {
    display: block;
    font-weight: 700;
    color: var(--mk-ink);
    font-size: 0.95rem;
    line-height: 1.3;
}

.mk-mega-desc {
    display: block;
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.4;
    margin-top: 0.15rem;
}

.mk-mega-feature {
    background: linear-gradient(160deg, #F0F7FF 0%, #FFFFFF 100%);
    border: 1px solid #DBEAFE;
    border-radius: 1rem;
    padding: 1.5rem;
}

.mk-mega-small-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mk-blue);
    margin-top: 0.4rem;
}

.mk-mega-small-link svg {
    width: 14px;
    height: 14px;
}

.mk-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mk-login {
    display: none;
}

.mk-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--mk-border);
    border-radius: 0.6rem;
    background: #fff;
    color: var(--mk-ink);
    cursor: pointer;
}

.mk-mobile {
    border-top: 1px solid var(--mk-border);
    background: #fff;
    max-height: calc(100vh - var(--mk-header-height));
    overflow-y: auto;
    padding: 0.5rem 1.25rem 1.5rem;
}

.mk-mobile details {
    border-bottom: 1px solid var(--mk-border);
}

.mk-mobile summary {
    list-style: none;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.mk-mobile summary::-webkit-details-marker {
    display: none;
}

.mk-mobile summary::after {
    content: "+";
    font-weight: 400;
    color: var(--mk-blue);
}

.mk-mobile details[open] summary::after {
    content: "\2212";
}

.mk-mobile details a {
    display: block;
    padding: 0.5rem 0 0.5rem 0.75rem;
    color: #374151;
}

.mk-mobile details[open] {
    padding-bottom: 0.75rem;
}

.mk-mobile-top-link {
    display: block;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--mk-ink);
    border-bottom: 1px solid var(--mk-border);
}

@media (min-width: 1200px) {
    .mk-nav {
        display: block;
    }

    .mk-login {
        display: inline-block;
    }

    .mk-burger,
    .mk-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mk-actions .btn-farm-primary {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Breadcrumbs */
.mk-breadcrumbs {
    background: #F8FAFC;
    border-bottom: 1px solid var(--mk-border);
    font-size: 0.85rem;
}

.mk-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0.65rem 0;
    color: #6B7280;
}

.mk-breadcrumbs li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: #CBD5E1;
}

.mk-breadcrumbs a {
    color: #6B7280;
}

.mk-breadcrumbs a:hover {
    color: var(--mk-blue);
}

/* Footer */
.mk-footer {
    background: #0B1220;
    color: #CBD5E1;
    padding: 4.5rem 0 2rem;
    margin-top: auto;
}

.mk-footer a {
    color: #CBD5E1;
}

.mk-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.mk-footer-top {
    display: grid;
    gap: 3rem;
}

@media (min-width: 992px) {
    .mk-footer-top {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 4rem;
    }
}

.mk-footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mk-footer-brand p {
    margin-top: 1.25rem;
    line-height: 1.65;
    font-size: 0.95rem;
    color: #94A3B8;
}

.mk-footer-brand .btn-farm-secondary,
.mk-footer-brand .btn-farm-secondary:hover:not(:disabled) {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.mk-footer-brand .btn-farm-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.mk-footer-apps {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.mk-footer-apps a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mk-footer-apps svg {
    width: 16px;
    height: 16px;
}

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

@media (min-width: 768px) {
    .mk-footer-columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.mk-footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.mk-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.925rem;
}

.mk-footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #64748B;
}

/* Shared page blocks */
.mk-eyebrow {
    display: inline-block;
    background: #DBEAFE;
    color: #1E40AF;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mk-page-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 119, 216, 0.10) 0%, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 85% 0%, rgba(227, 153, 67, 0.12) 0%, rgba(255, 255, 255, 0) 40%),
        #fff;
}

.mk-page-hero h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 1rem 0 1.25rem;
}

@media (min-width: 768px) {
    .mk-page-hero h1 {
        font-size: 3.4rem;
    }
}

.mk-lede {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--mk-muted);
}

.mk-section {
    padding: 5rem 0;
}

.mk-section-alt {
    background: #F8FAFC;
}

.mk-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0.75rem 0 1rem;
}

.mk-card {
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mk-card-auto {
    height: auto;
}

.mk-card-flush {
    padding: 0;
    overflow: hidden;
}

a.mk-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.mk-card:hover {
    border-color: #93C5FD;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.mk-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.mk-card h3:first-child {
    margin-top: 0;
}

.mk-card-tinted {
    background: var(--mk-blue-50);
    border-color: #DBEAFE;
}

.mk-card p {
    color: var(--mk-muted);
    line-height: 1.6;
    margin: 0;
}

.mk-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: var(--mk-blue-50);
    color: var(--mk-blue);
}

.mk-icon-tile svg {
    width: 22px;
    height: 22px;
}

.mk-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.mk-check-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #374151;
    line-height: 1.55;
}

.mk-check-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #16A34A;
    margin-top: 0.15rem;
}

.mk-media-frame {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0B1220;
    box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.45);
    aspect-ratio: 16 / 9;
}

.mk-media-frame video,
.mk-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mk-photo {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.45);
}

.mk-quote {
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mk-quote p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #1F2937;
    margin: 0 0 1.25rem;
    flex: 1;
}

.mk-quote footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mk-quote footer img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid var(--mk-border);
    padding: 2px;
}

.mk-quote cite {
    font-style: normal;
    font-weight: 700;
    color: var(--mk-ink);
    display: block;
}

.mk-quote-meta {
    font-size: 0.85rem;
    color: #6B7280;
}

.mk-stat {
    text-align: center;
}

.mk-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mk-blue);
    line-height: 1;
}

.mk-stat-label {
    margin-top: 0.5rem;
    color: var(--mk-muted);
}

.mk-tldr {
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    border-left: 4px solid var(--mk-blue);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.mk-tldr p:last-child {
    margin-bottom: 0;
}

.mk-cta-band {
    background: linear-gradient(135deg, #0077D8 0%, #005BA6 100%);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.mk-cta-band h2 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.mk-cta-band p {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.mk-cta-band .btn-farm-secondary,
.mk-cta-band .btn-farm-secondary:hover:not(:disabled) {
    background: #fff;
    border-color: #fff;
}

.mk-cta-band .mk-cta-ghost {
    border-radius: 1rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.mk-cta-band .mk-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* FAQ accordion */
.mk-faq details {
    border: 1px solid var(--mk-border);
    border-radius: 1rem;
    background: #fff;
    margin-bottom: 0.75rem;
}

.mk-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--mk-ink);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.mk-faq summary::-webkit-details-marker {
    display: none;
}

.mk-faq summary::after {
    content: "+";
    color: var(--mk-blue);
    font-size: 1.4rem;
    line-height: 1;
}

.mk-faq details[open] summary::after {
    content: "\2212";
}

.mk-faq details > div {
    padding: 0 1.5rem 1.25rem;
    color: var(--mk-muted);
    line-height: 1.7;
}

/* Long-form content */
.mk-prose {
    font-size: 1.075rem;
    line-height: 1.8;
    color: #374151;
}

.mk-prose h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 2.75rem 0 1rem;
}

.mk-prose h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.mk-prose ul,
.mk-prose ol {
    padding-left: 1.4rem;
    margin-bottom: 1.25rem;
}

.mk-prose li {
    margin-bottom: 0.4rem;
}

.mk-prose .mk-check-list {
    padding-left: 0;
}

.mk-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.975rem;
}

.mk-prose th,
.mk-prose td {
    border: 1px solid var(--mk-border);
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.mk-prose th {
    background: #F8FAFC;
}

.mk-toc {
    position: sticky;
    top: calc(var(--mk-header-height) + 1.5rem);
    font-size: 0.925rem;
}

.mk-toc ol {
    padding-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.mk-toc a {
    color: #4B5563;
}

.mk-industry-card {
    position: relative;
    display: block;
    border-radius: 1.25rem;
    overflow: hidden;
    color: #fff;
    min-height: 260px;
    background: #0B1220;
    text-decoration: none;
}

.mk-industry-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.mk-industry-card:hover img {
    transform: scale(1.04);
    opacity: 0.65;
}

.mk-industry-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(11, 18, 32, 0.92), rgba(11, 18, 32, 0));
}

.mk-industry-card h2,
.mk-industry-card h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.mk-industry-card p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
}

.mk-industry-card:hover {
    color: #fff;
    text-decoration: none;
}

.mk-logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
}

.mk-logo-strip img {
    height: 52px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.mk-logo-strip img:hover {
    filter: none;
    opacity: 1;
}

.mk-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.mk-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    animation: mkMarquee 90s linear infinite;
}

.mk-marquee:hover .mk-marquee-track {
    animation-play-state: paused;
}

/* Padding instead of gap keeps both copies the same width, so -50% loops seamlessly */
.mk-marquee-track img {
    flex-shrink: 0;
    height: 64px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    padding: 0 1.75rem;
    box-sizing: content-box;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.mk-marquee-track img:hover {
    filter: none;
    opacity: 1;
}

@keyframes mkMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.mk-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--mk-blue);
    color: #fff;
    font-weight: 800;
}
