/* Marketing pages (home, pricing): tokens, navigation and hero. */
:root {
    --m-ink: #1b1530;
    --m-ink-2: #4a4463;
    --m-muted: #6f6988;
    --m-line: #e6e1f1;
    --m-line-strong: #d3cce4;
    --m-canvas: #f6f4fb;
    --m-surface: #ffffff;
    --m-brand: #6f42c1;
    --m-brand-strong: #5b34a8;
    --m-brand-soft: #eee8fa;
    --m-green: #2fae7b;
    --m-green-soft: #dff4ea;
    --m-amber: #e0a21b;
    --m-amber-soft: #fbf0d4;
    --m-orange: #f0782e;
    --m-orange-soft: #fdebdd;
    --m-blue: #3f7be0;
    --m-blue-soft: #e1ecfc;
    --m-red: #d9475a;
    --m-focus: 0 0 0 4px rgba(111, 66, 193, 0.22);
}

* {
    scroll-behavior: smooth;
}

body.mk-body {
    margin: 0;
    background: var(--m-surface);
    color: var(--m-ink);
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.mk-body a:focus-visible,
.mk-body button:focus-visible,
.mk-body summary:focus-visible {
    outline: none;
    box-shadow: var(--m-focus);
    border-radius: 8px;
}

.mk-body .container {
    max-width: 1180px;
}

/* ── Navigation ─────────────────────────────────────────── */
.mk-body .navbar {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--m-line);
}

.navbar-logo {
    height: 34px;
    width: auto;
}

.mk-body .nav-link {
    padding: 8px 14px !important;
    color: var(--m-ink-2) !important;
    font-size: 0.95rem;
    font-weight: 500;
}

.mk-body .nav-link:hover,
.mk-body .nav-link.is-current {
    color: var(--m-brand-strong) !important;
}

.mk-body .navbar-toggler {
    border: 1px solid var(--m-line-strong);
    border-radius: 10px;
}

.mk-body .navbar-toggler:focus {
    box-shadow: var(--m-focus);
}

.nav-cta,
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 8px 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--m-brand);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px -14px rgba(111, 66, 193, 0.8);
    transition: background 0.15s, transform 0.1s;
}

.nav-cta {
    min-height: 40px;
}

.nav-cta::after,
.btn-primary-custom::after {
    content: "\2197";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    line-height: 1;
}

.nav-cta:hover,
.btn-primary-custom:hover {
    background: var(--m-brand-strong);
    color: #fff;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--m-brand-strong);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-outline-custom::after {
    content: "\2192";
    transition: transform 0.15s;
}

.btn-outline-custom:hover {
    color: var(--m-brand);
}

.btn-outline-custom:hover::after {
    transform: translateX(3px);
}

.mk-body .locale-switcher {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--m-line);
    border-radius: 999px;
    background: var(--m-surface);
}

.mk-body .locale-switcher-current,
.mk-body .locale-switcher-link {
    min-width: 40px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.mk-body .locale-switcher-current {
    background: var(--m-brand);
    color: #fff;
}

.mk-body .locale-switcher-link {
    color: var(--m-ink-2);
    opacity: 1;
}

.mk-body .locale-switcher-link:hover {
    background: var(--m-brand-soft);
    color: var(--m-brand-strong);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 84px 0 96px;
    overflow: hidden;
    background: #fff;
}

/* Soft diagonal bands behind the hero */
.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    left: -10%;
    width: 130%;
    transform: rotate(-9deg);
    pointer-events: none;
}

.hero-section::before {
    top: 38%;
    height: 340px;
    background: linear-gradient(90deg, rgba(111, 66, 193, 0) 0%, rgba(111, 66, 193, 0.09) 40%, rgba(63, 123, 224, 0.08) 100%);
}

.hero-section::after {
    top: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(224, 162, 27, 0.55), transparent);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--m-brand-strong);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--m-green);
    box-shadow: 0 0 0 4px var(--m-green-soft);
}

.hero-title {
    margin: 0 0 24px;
    color: var(--m-ink);
    font-size: clamp(2.3rem, 4.6vw, 3.4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.06;
    text-wrap: balance;
}

.hero-title em {
    display: block;
    color: var(--m-brand);
    font-style: normal;
}

.hero-subtitle {
    max-width: 34em;
    margin: 0 0 32px;
    color: var(--m-ink-2);
    font-size: 1.12rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 28px;
    color: var(--m-muted);
    font-size: 0.88rem;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-trust svg {
    color: var(--m-green);
}

/* Pipeline board (product illustration) */
.mk-board {
    position: relative;
    padding: 18px;
    border: 1px solid var(--m-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 40px 80px -40px rgba(29, 19, 51, 0.45), 0 2px 8px rgba(29, 19, 51, 0.05);
}

.mk-board__cols {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mk-col {
    --tone: var(--m-amber);
    --tone-soft: var(--m-amber-soft);
    padding: 10px;
    border-radius: 16px;
    background: var(--m-canvas);
}

.mk-col--interview {
    --tone: var(--m-orange);
    --tone-soft: var(--m-orange-soft);
}

.mk-col--hired {
    --tone: var(--m-green);
    --tone-soft: var(--m-green-soft);
}

.mk-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 4px 6px;
    color: var(--m-ink-2);
    font-size: 0.78rem;
    font-weight: 600;
}

.mk-col__dot {
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--tone);
}

.mk-col__count {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--tone-soft);
    color: var(--m-ink);
    font-size: 0.72rem;
}

.mk-card {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid var(--m-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(29, 19, 51, 0.05);
}

.mk-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--tone-soft);
    color: var(--m-ink-2);
    font-size: 0.68rem;
    font-weight: 700;
}

.mk-lines {
    flex: 1;
    min-width: 0;
}

.mk-lines i {
    display: block;
    height: 6px;
    border-radius: 4px;
    background: #e4dff0;
}

.mk-lines i + i {
    width: 58%;
    margin-top: 6px;
    background: #efebf7;
}

/* The moving card: one application travelling through the pipeline */
.mk-mover {
    position: absolute;
    top: 46px;
    left: 10px;
    width: calc((100% - 24px) / 3 - 20px);
    margin: 0;
    border-color: var(--m-brand);
    box-shadow: 0 16px 30px -12px rgba(111, 66, 193, 0.55);
    animation: mkMove 9s ease-in-out infinite;
}

.mk-mover .mk-avatar {
    background: var(--m-brand);
    color: #fff;
}

@keyframes mkMove {
    0%, 14% { translate: 0 0; opacity: 1; }
    30%, 48% { translate: calc(100% + 32px) 0; opacity: 1; }
    64%, 82% { translate: calc(200% + 64px) 0; opacity: 1; }
    92% { translate: calc(200% + 64px) 0; opacity: 0; }
    93% { translate: 0 0; opacity: 0; }
    100% { translate: 0 0; opacity: 1; }
}

.mk-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--m-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 36px -18px rgba(29, 19, 51, 0.4);
    color: var(--m-ink-2);
    font-size: 0.8rem;
    font-weight: 600;
}

.mk-float i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--m-brand-soft);
    color: var(--m-brand);
}

.mk-float--agenda {
    right: -14px;
    bottom: -22px;
}

.mk-float--cv {
    left: 28px;
    bottom: -22px;
}

.mk-float--cv i {
    background: #fbe3e7;
    color: var(--m-red);
}

@media (prefers-reduced-motion: reduce) {
    .mk-mover {
        animation: none;
        translate: calc(100% + 32px) 0;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 56px 0 72px;
    }

    .mk-float--agenda {
        right: 6px;
    }

    .mk-float--cv {
        left: 6px;
    }
}

@media (max-width: 575.98px) {
    .mk-board {
        padding: 12px;
    }

    .mk-col {
        padding: 6px;
    }

    .mk-card {
        padding: 7px;
    }

    .mk-avatar {
        display: none;
    }

    .mk-float {
        display: none;
    }
}
